/* ══════════════════════════════════════════
   DESIGN SYSTEM — KRONIA
   Aesthetic: Dark Athletic · Warm Amber Accent
   Inspiração: Whoop · Nike Training · Strong
══════════════════════════════════════════ */
:root {
  --vh:          1vh;
  --keyboard-offset: 0px;
  --chat-input-height: 0px;
  --bg:          #0f0f0f;
  --bg2:         #161616;
  --surface:     #1a1a1a;
  --card:        #212121;
  --card-hover:  #272727;
  --border:      rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.04);
  --accent:      #f97316;
  --accent-dim:  rgba(249,115,22,0.15);
  --accent-glow: rgba(249,115,22,0.25);
  --accent2:     #fbbf24;
  --green:       #10b981;
  --green-bg:    rgba(16,185,129,0.12);
  --emerald:     #10b981;
  --emerald-dim: rgba(16,185,129,0.12);
  --red:         #ef4444;
  --red-bg:      rgba(239,68,68,0.12);
  --blue:        #3b82f6;
  --blue-bg:     rgba(59,130,246,0.12);
  --purple:      #a855f7;
  --text:        #f5f5f5;
  --text-2:      #a3a3a3;
  --muted:       #525252;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --font:        'DM Sans', sans-serif;
  --mono:        'DM Mono', monospace;
  --display:     'Bebas Neue', sans-serif;
  --r:           14px;
  --r-sm:        10px;
  --r-xs:        6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }

/* ── Layout base: sem página voando ───────────────────────────── */
html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y;
}

#__next, #root, .app-container {
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Área interna com scroll real — use em qualquer tela que precise rolar */
.app-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* ══════════════════════════════════════════
   MODAL CUSTOMIZADO
══════════════════════════════════════════ */
#customModal {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999; align-items: center; justify-content: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#customModal.show { display: flex; }
#customModal .cm-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 22px 20px; width: 88%; max-width: 340px; text-align: center;
  box-shadow: var(--shadow-lg); animation: popIn .2s cubic-bezier(.34,1.56,.64,1);
}
#customModal .cm-msg { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 18px; line-height: 1.45; }
#customModal input {
  width: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg2); color: var(--text); font-size: 1rem; font-family: var(--font);
  margin-bottom: 16px; outline: none; text-align: center; transition: border-color .2s;
}
#customModal input:focus { border-color: var(--accent); }
#customModal .cm-btns { display: flex; gap: 10px; }
#customModal .cm-btn {
  flex: 1; padding: 13px; border-radius: var(--r-sm); font-family: var(--font);
  font-weight: 700; font-size: 0.88rem; cursor: pointer; text-align: center; user-select: none;
  transition: transform .1s, opacity .15s; display: flex; align-items: center; justify-content: center;
}
#customModal .cm-btn:active { transform: scale(.97); opacity:.85; }
#customModal .cm-ok  { background: var(--accent); color: #fff; border-radius: var(--r-sm); box-shadow: 0 4px 16px var(--accent-glow); }
#customModal .cm-no  { background: var(--bg2); color: var(--text-2); border: 1px solid var(--border); border-radius: var(--r-sm); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.top-header { position: sticky; top: 0; z-index: 200; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row1 { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 52px; }
.brand-wrap { display:flex; align-items:center; gap:8px; }
.brand-logo { width:24px; height:24px; border-radius:6px; object-fit:cover; flex-shrink:0; }
.brand { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--text); line-height: 1; }
.brand span { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 8px; }
.date-badge { font-size: 0.68rem; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--border); padding: 5px 10px; border-radius: 20px; letter-spacing: 0.02em; }
.dark-toggle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); cursor: pointer; transition: transform .15s, background .2s; color: var(--text-2); }
.dark-toggle:active { transform: scale(.9); }
.session-strip { display: none; align-items: center; justify-content: space-around; padding: 8px 16px 10px; background: var(--bg2); border-top: 1px solid var(--border); }
.session-strip.visible { display: flex; }
.ss-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.ss-val { font-family: var(--mono); font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.ss-lbl { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.75); }
.ss-div { width: 1px; height: 24px; background: var(--border); }
#workoutProgressBar { height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0%; transition: width .5s ease; }

/* ══════════════════════════════════════════
   TIMER
══════════════════════════════════════════ */
.timer-area { background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px 0; }
#timerSheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 3800;
  background: #1a1a1a; border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 20px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .38s cubic-bezier(.32,1,.6,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  visibility: hidden; pointer-events: none; touch-action: none;
}
#timerSheet.show { transform: translateY(0); visibility: visible; pointer-events: auto; touch-action: auto; }
.tsheet-handle { width: 32px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); margin: 10px auto 8px; }
.tsheet-label { font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 2px; }
#timerDisplay { font-family: var(--mono); font-size: 3.8rem; font-weight: 700; color: #fff; letter-spacing: -.04em; text-align: center; line-height: 1; display: block; margin-bottom: 2px; }
#timerDisplay.done { color: var(--green); }
.tsheet-progress { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.08); margin: 8px 0 10px; overflow: hidden; }
#tbProgressBar { height: 100%; width: 100%; background: var(--accent); transition: width .9s linear, background .3s; border-radius: 2px; }
#tbProgressBar.done { background: var(--green); }
.tsheet-adj { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.tbar-adj-btn { height: 34px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: #fff; font-family: var(--mono); font-size: 0.85rem; font-weight: 700; cursor: pointer; -webkit-appearance: none; transition: background .1s; }
.tbar-adj-btn:active { background: rgba(255,255,255,0.18); }
.tsheet-presets { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.btn-t { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); color: #fff; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all .15s; -webkit-appearance: none; }
.btn-t.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.btn-t:active { opacity: .7; }
.tsheet-actions { display: flex; gap: 10px; }
#ctrlBtn { flex: 1; height: 46px; border-radius: 14px; border: none; background: var(--accent); color: #fff; font-family: var(--font); font-size: 0.95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 4px 16px var(--accent-glow); transition: background .15s, transform .1s; }
#ctrlBtn:active { transform: scale(.97); }
#ctrlBtn.pausing { background: #2a2a2a; border: 1px solid rgba(255,255,255,0.12); }
#ctrlBtn.done    { background: var(--green); box-shadow: 0 4px 16px rgba(16,185,129,.35); }
.tsheet-close { min-width: 86px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font-size: 0.82rem; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.tsheet-close:active { background: rgba(255,255,255,0.15); }
.timer-row-main, .timer-row-presets, .timer-progress-bar-wrap { display: none !important; }

/* ══════════════════════════════════════════
   CONFIG SHEET
══════════════════════════════════════════ */
.setup-panel { display: none; }
#configSheet { display: none; position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); align-items: flex-end; justify-content: center; }
#configSheet.show { display: flex; }
#configBox { background: var(--card); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; border-top: 1px solid var(--border); padding: max(10px, env(safe-area-inset-top, 0px)) 18px 32px; animation: slideUp .28s cubic-bezier(.34,1.1,.64,1); max-height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px) - 8px)); overflow-y: auto; scrollbar-width: none; }
#configBox::-webkit-scrollbar { display: none; }
.config-sheet-header { position: sticky; top: 0; z-index: 3; background: var(--card); margin: 0 -18px 14px; padding: 4px 18px 0; }
.config-handle { width: 32px; height: 3px; background: var(--border); border-radius: 2px; margin: 10px auto 14px; }
.config-title { font-family: var(--display); font-size: 1.4rem; letter-spacing: .04em; color: var(--text); margin-bottom: 20px; }
.config-section { margin-bottom: 22px; }
.config-section-lbl { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.config-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.config-chip { padding: 8px 16px; border-radius: 100px; font-size: 0.92rem; font-weight: 600; cursor: pointer; background: var(--bg2); color: var(--text-2); border: 1px solid var(--border); transition: all .15s; font-family: var(--font); -webkit-appearance: none; }
.config-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.config-chip:active { transform: scale(.95); }
.config-apply { width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: var(--font); font-size: 0.95rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px var(--accent-glow); -webkit-appearance: none; letter-spacing: .02em; }
.config-apply:active { transform: scale(.98); opacity:.9; }
#faseChips .config-chip { flex:1; text-align:center; padding:10px 8px; }
.config-chip-musc, .config-chip-restric { font-size:0.75rem; padding:7px 12px; }

/* ══════════════════════════════════════════
   TABS
══════════════════════════════════════════ */
.nav-pills { display: flex; gap: 6px; padding: 10px 12px; background: var(--bg); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; align-items: center; -webkit-overflow-scrolling: touch; }
.nav-pills::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 7px 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); cursor: pointer; background: transparent; border-radius: 100px; border: 1px solid transparent; white-space: nowrap; transition: all .18s; user-select: none; }
.pill.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(249,115,22,0.3); }
.pill-add { color: rgba(255,255,255,0.7); background: transparent; border: 1px dashed var(--border); padding: 6px 14px; font-size: 1rem; letter-spacing: 0; }
.btn-add-ex { display: flex; align-items: center; justify-content: center; gap: 7px; width: calc(100% - 24px); margin: 10px 12px 20px; padding: 14px; background: transparent; border: 1px dashed var(--border); border-radius: var(--r); font-family: var(--font); font-size: 0.94rem; font-weight: 600; color: rgba(255,255,255,0.7); cursor: pointer; transition: all .2s; }
.btn-add-ex:active { background: var(--card); border-color: var(--accent); color: var(--accent); border-style: solid; }

/* ══════════════════════════════════════════
   FOOTER — z-index 3700 (acima de telas, abaixo de modais)
══════════════════════════════════════════ */
.footer-actions {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 3700;
  display: flex; align-items: stretch;
  background: rgba(13,13,13,1);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom);
  gap: 0;
  min-height: 58px;
  /* Fix iOS Safari position:fixed disappearing during scroll */
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.btn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 8px 4px 10px;
  border: none; background: transparent;
  border-radius: 0; cursor: pointer;
  transition: transform .12s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.88); }
.btn .btn-icon {
  display: flex; align-items: center; justify-content: center;
  height: 24px; width: 24px;
  color: rgba(255,255,255,0.38);
  transition: color .18s, transform .18s;
}
.btn .btn-label {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.35);
  transition: color .18s;
}
/* Indicador ativo — barra no topo do botão */
.btn-nav::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 22px; height: 2.5px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.btn-nav.active::before { transform: translateX(-50%) scaleX(1); }
.btn-nav.active .btn-icon { color: var(--accent); transform: translateY(-1px); }
.btn-nav.active .btn-label { color: var(--accent); font-weight: 700; }
.btn-nav svg { transition: all .18s; }
/* Botão salvar — centro destacado */
.btn-save {
  flex: 1.6; margin: 6px 8px;
  background: var(--accent) !important;
  border-radius: 16px !important;
  box-shadow: 0 2px 16px rgba(249,115,22,0.45);
  padding: 0 !important;
  gap: 2px !important;
  transition: transform .12s, box-shadow .12s !important;
}
.btn-save:active { transform: scale(.9) !important; box-shadow: 0 1px 8px rgba(249,115,22,0.3) !important; }
.btn-save .btn-icon { color: #fff !important; height: 22px !important; }
.btn-save .btn-label { color: rgba(255,255,255,0.9) !important; font-size: 0.55rem !important; font-weight: 700 !important; }
.btn-save::before { display: none; }
.btn-save:active { transform: scale(.95) !important; opacity:.9; }

/* ══════════════════════════════════════════
   STREAK
══════════════════════════════════════════ */
.streak-badge { display: flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; color: var(--accent2); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); padding: 4px 9px; border-radius: 20px; }

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */
#container {
  padding: 14px 12px calc(68px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.section { display: none; }
.section.active { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity:.4; transform: translateY(6px); } to { opacity:1; transform: translateY(0); } }

/* ══════════════════════════════════════════
   EXERCISE CARD
══════════════════════════════════════════ */
.exercise-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 14px 12px; margin-bottom: 10px; position: relative; overflow: hidden; animation: slideUp .22s ease; box-shadow: var(--shadow-sm); transition: border-color .2s; }
.exercise-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%); border-radius: 3px 0 0 3px; }
.exercise-card.deleting { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.exercise-card.deleting::before { background: var(--red); }
.card-header { padding-left: 12px; margin-bottom: 3px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.ex-title { font-size: 1rem; font-weight: 700; color: var(--text); cursor: pointer; line-height: 1.25; display: block; transition: color .15s; flex: 1; }
.ex-title:active { color: var(--accent); }
.card-rm-badge { font-family: var(--mono); font-size: 0.65rem; font-weight: 700; color: var(--emerald); background: var(--emerald-dim); padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(16,185,129,0.3); display: none; }
.ex-target { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); padding-left: 12px; display: block; margin-bottom: 10px; }
.series-grid { display: grid; grid-template-columns: 36px 1fr 1fr 1fr 40px; gap: 5px; align-items: center; margin-bottom: 5px; }
.header-grid { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); text-align: center; }
.input-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 0; transition: border-color .15s, box-shadow .15s; }
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input-box input { background: transparent; border: none; color: var(--text); width: 100%; text-align: center; font-family: var(--font); font-size: 1rem; font-weight: 700; outline: none; -webkit-appearance: none; }
.input-box input::placeholder { color: var(--muted); font-weight: 400; }
.setcell { text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; user-select: none; }
.setcell .slabel { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.setcell .rmmini { display: none; }
.rpe-inline-alert { grid-column: 1 / -1; margin: -2px 0 4px; padding: 6px 10px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; font-family: var(--font); display: flex; align-items: center; gap: 6px; }
.rpe-inline-alert.warning { background: rgba(249,115,22,0.15); color: var(--accent); border: 1px solid rgba(249,115,22,0.25); }
.rpe-inline-alert.info    { background: var(--emerald-dim);  color: var(--emerald);  border: 1px solid rgba(16,185,129,0.22); }
.rpe-inline-alert.ideal   { background: rgba(16,185,129,0.08); color: var(--emerald);  border: 1px solid rgba(16,185,129,0.16); }
.ghost::placeholder { color: rgba(249,115,22,0.3) !important; }
.btn-confirm { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: transparent; display: flex; align-items: center; justify-content: center; cursor: default; flex-shrink: 0; -webkit-tap-highlight-color: transparent; transition: all .15s; pointer-events: none; }
.series-grid.has-data .btn-confirm { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); cursor: pointer; pointer-events: auto; }
.series-grid.done .btn-confirm { background: var(--green); border-color: var(--green); color: #fff; cursor: pointer; pointer-events: auto; }
.btn-confirm:active { transform: scale(.88); }
.series-grid.done .setcell .slabel { color: var(--green); }
.series-grid.done .input-box { border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.06); }
.series-grid.done .input-box input { color: var(--green); }
.btn-add-set:active { background: var(--accent-dim) !important; border-color: var(--accent) !important; border-style: solid !important; color: var(--accent) !important; }

/* ══════════════════════════════════════════
   ONBOARDING
══════════════════════════════════════════ */
#onboarding { display: none; position: fixed; inset: 0; z-index: 8000; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; text-align: center; }
#onboarding.show { display: flex; }
.ob-content { width: 100%; flex: 1; display: flex; align-items: center; justify-content: center; }
.ob-step { display: none; width: 100%; flex-direction: column; align-items: center; }
.ob-step.active { display: flex; }
.ob-icon { margin-bottom: 28px; display: flex; justify-content: center; align-items: center; }
.ob-icon-wrap { width: 100px; height: 100px; border-radius: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.ob-title { font-family: var(--display); font-size: 2rem; letter-spacing: .04em; color: var(--text); margin-bottom: 10px; line-height: 1.15; }
.ob-sub { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 32px; }
.ob-footer { width: 100%; }
.ob-btn { width: 100%; padding: 15px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: var(--font); font-size: 1rem; font-weight: 700; cursor: pointer; margin-bottom: 12px; box-shadow: 0 4px 20px var(--accent-glow); transition: transform .1s, opacity .15s; }
.ob-btn:active { transform: scale(.98); opacity:.9; }
.ob-skip { font-size: 0.94rem; color: rgba(255,255,255,0.65); cursor: pointer; padding: 8px; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 28px; }
.ob-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all .2s; }
.ob-dot.active { background: var(--accent); width: 18px; border-radius: 3px; }
.ob-persona-chip { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent; text-align: left; }
.ob-persona-chip:active { transform: scale(.97); }
.ob-persona-chip.active { border-color: var(--accent); background: rgba(249,115,22,0.12); box-shadow: 0 0 0 1px var(--accent); }

/* ══════════════════════════════════════════
   EVOLUÇÃO MODAL
══════════════════════════════════════════ */
#evoModal { display: none; position: fixed; inset: 0; z-index: 5000; background: rgba(0,0,0,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); align-items: flex-end; justify-content: center; }
#evoModal.show { display: flex; }
#evoBox { background: var(--card); width: 100%; max-width: 600px; border-radius: 20px 20px 0 0; border-top: 1px solid var(--border); padding: 20px 16px 32px; max-height: 88dvh; overflow-y: auto; animation: slideUp .25s ease; }
.evo-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.evo-title { font-family: var(--display); font-size: 1.4rem; letter-spacing: .04em; color: var(--text); }
.evo-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.evo-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.evo-tabs::-webkit-scrollbar { display: none; }
.evo-tab { flex: none; padding: 7px 14px; border-radius: 20px; font-size: 0.88rem; font-weight: 700; background: var(--bg2); color: rgba(255,255,255,0.7); cursor: pointer; white-space: nowrap; border: 1px solid var(--border); font-family: var(--font); -webkit-appearance: none; transition: all .15s; }
.evo-tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.evo-select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--font); font-size: 1rem; background: var(--bg2); color: var(--text); -webkit-appearance: none; appearance: none; margin-bottom: 14px; cursor: pointer; }
.evo-stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.evo-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; }
.evo-stat-val { font-family: var(--mono); font-size: 1.1rem; font-weight: 700; color: var(--emerald); }
.evo-stat-lbl { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.7); margin-top: 3px; }

/* ══════════════════════════════════════════
   SUMMARY MODAL
══════════════════════════════════════════ */
#summaryModal { display: none; position: fixed; inset: 0; z-index: 6000; background: rgba(0,0,0,0.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); align-items: flex-end; justify-content: center; }
#summaryModal.show { display: flex; }
#summaryBox { background: var(--card); width: 100%; max-width: 520px; border-top: 1px solid var(--border); border-radius: 24px 24px 0 0; padding: 24px 18px calc(32px + env(safe-area-inset-bottom)); animation: slideUp .3s cubic-bezier(.34,1.1,.64,1); }
.sum-handle { width: 32px; height: 3px; background: var(--border); border-radius: 2px; margin: 0 auto 22px; }
#sumTitle { font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em; color: var(--text); text-align: center; margin-bottom: 4px; }
#sumSub { font-size: 0.92rem; color: var(--text-2); text-align: center; margin-bottom: 22px; }
#sumGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.summary-stat { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 10px; text-align: center; }
.summary-stat-val { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--text); }
.summary-stat-lbl { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.7); margin-top: 4px; }
#sumPRs { display: none; margin-bottom: 18px; }
.sum-pr-title { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--emerald); margin-bottom: 8px; }
.summary-pr-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.22); border-radius: 10px; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.summary-pr-val { color: var(--emerald); font-family: var(--mono); font-weight: 700; }
.sum-close { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: var(--r); font-family: var(--font); font-size: 0.95rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px var(--accent-glow); }
.sum-close:active { transform: scale(.98); opacity:.9; }

/* ══════════════════════════════════════════
   DIALOGS
══════════════════════════════════════════ */
dialog { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; width: 100%; max-width: 540px; max-height: 90dvh; padding: 20px 16px 24px; margin: auto auto 0; overflow-y: auto; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); }
.dialog-handle { width: 32px; height: 3px; background: var(--border); border-radius: 2px; margin: 0 auto 16px; }
.dialog-title { font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em; color: var(--text); margin-bottom: 16px; }
.dialog-title::before { content: ''; display: inline-block; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; margin-right: 8px; vertical-align: middle; }
.lib-cat { font-size: 0.88rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding: 10px 0 5px; border-bottom: 1px solid var(--border); }
.lib-item { padding: 11px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-weight: 500; color: var(--text-2); transition: color .15s, padding-left .12s; }
.lib-item:active { color: var(--accent); padding-left: 8px; }
.modal-input { width: 100%; padding: 10px 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text); font-family: var(--font); font-size: 0.95rem; outline: none; transition: border-color .2s; }
.modal-input:focus { border-color: var(--accent); background: var(--card); }
.d-btn { padding: 11px 16px; border-radius: var(--r-sm); border: none; font-family: var(--font); font-size: 0.94rem; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: opacity .15s, transform .1s; }
.d-btn:active { opacity:.8; transform: scale(.97); }
.d-btn-primary   { background: var(--green); color: #fff; }
.d-btn-secondary { background: var(--bg2); color: var(--text-2); border: 1px solid var(--border); }
.d-btn-danger    { background: var(--red-bg); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.d-btn-blue      { background: var(--blue); color: #fff; }
.d-btn-purple    { background: rgba(168,85,247,0.1); color: var(--purple); border: 1px solid rgba(168,85,247,0.2); }
#histList { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-sm); }
.hist-item { border-bottom: 1px solid var(--border); }
.hist-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 12px; transition: background .15s; }
.hist-header:active { background: var(--bg2); }
.hist-header strong { color: var(--accent); font-size: 0.88rem; font-weight: 700; }
.hist-details { display: none; padding: 10px 12px; background: var(--bg2); font-size: 0.88rem; color: rgba(255,255,255,0.75); border-top: 1px solid var(--border); }
.hist-details.open { display: block; }
.hist-ex-row { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.hist-ex-name { display: block; color: var(--accent); font-weight: 700; font-size: 0.94rem; margin-bottom: 2px; }
.hist-actions { display: flex; gap: 8px; margin-top: 14px; }
.hist-actions button { flex: 1; }

/* ══════════════════════════════════════════
   ANIMAÇÕES
══════════════════════════════════════════ */
@keyframes slideUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
@keyframes popIn   { from { opacity:0; transform: scale(.9); }         to { opacity:1; transform: scale(1); } }

/* ══════════════════════════════════════════
   LIGHT MODE
══════════════════════════════════════════ */
body.light-mode { --bg:#f5f5f5; --bg2:#ebebeb; --surface:#ffffff; --card:#ffffff; --card-hover:#f9f9f9; --border:rgba(0,0,0,0.08); --border-soft:rgba(0,0,0,0.04); --text:#0f0f0f; --text-2:#525252; --muted:#a3a3a3; --accent:#ea6c0a; --accent-dim:rgba(234,108,10,0.1); --accent-glow:rgba(234,108,10,0.2); color-scheme: light; }
body.light-mode .top-header { background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08); }
body.light-mode .footer-actions { background: rgba(250,250,250,0.98) !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
body.light-mode .btn .btn-icon { color: rgba(0,0,0,0.3) !important; }
body.light-mode .btn .btn-label { color: rgba(0,0,0,0.3) !important; }
body.light-mode .btn-nav.active .btn-icon { color: var(--accent) !important; }
body.light-mode .btn-nav.active .btn-label { color: var(--accent) !important; }
body.light-mode .nav-pills { background: #fff; }
body.light-mode .exercise-card { background: #fff; border: 1px solid rgba(0,0,0,0.08); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
body.light-mode .ex-title { color: #111; }
body.light-mode .ex-target { color: #666; }
body.light-mode .header-grid { color: #666; }
body.light-mode .setcell .slabel { color: #333; }
body.light-mode .setcell .rmmini { color: #888; }
body.light-mode .series-grid.done .setcell .slabel { color: var(--green); }
body.light-mode .input-box { background: #f0f0f0; border: 1px solid rgba(0,0,0,0.1); }
body.light-mode .input-box:focus-within { border-color: var(--accent); background: #fff; }
body.light-mode .input-box input { color: #111; }
body.light-mode .series-grid.done .input-box { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.3); }
body.light-mode .series-grid.done .input-box input { color: #059669; }
body.light-mode .btn-add-set { color: #666; border-color: rgba(0,0,0,0.12); background: transparent; }
body.light-mode #timerSheet { background: #fff; border-top: 1px solid rgba(0,0,0,0.1); box-shadow: 0 -4px 20px rgba(0,0,0,0.12); }
body.light-mode .tsheet-handle { background: rgba(0,0,0,0.15); }
body.light-mode .tsheet-label { color: rgba(0,0,0,0.4); }
body.light-mode #timerDisplay { color: #111; }
body.light-mode .tsheet-progress { background: rgba(0,0,0,0.08); }
body.light-mode .tbar-adj-btn { background: #f0f0f0; border-color: rgba(0,0,0,0.12); color: #333; }
body.light-mode .btn-t { background: #f0f0f0; border-color: rgba(0,0,0,0.12); color: #333; }
body.light-mode .tsheet-close { background: #f0f0f0; border-color: rgba(0,0,0,0.12); color: #666; }
body.light-mode #configBox { background: #fff; }
body.light-mode .config-sheet-header { background: #fff; }
body.light-mode #summaryBox { background: #fff; }
body.light-mode #evoBox { background: #fff; }
body.light-mode dialog { background: #fff; }
body.light-mode .cm-box { background: #fff; }
body.light-mode .d-btn-secondary { background: #ebebeb; color: #333; }
body.light-mode .modal-input { background: #f0f0f0; color: #111; }
body.light-mode .hist-header { color: #111; }
body.light-mode .hist-header:active { background: #f0f0f0; }
body.light-mode .hist-details { background: #f5f5f5; }
body.light-mode #onboarding { background: #f5f5f5; }
body.light-mode .evo-tab { background: #ebebeb; color: #555; }
body.light-mode .evo-tab.active { background: var(--accent); color: #fff; }
body.light-mode .summary-stat { background: #f0f0f0; }
body.light-mode .date-badge { background: #ebebeb; border-color: rgba(0,0,0,0.08); color: #333; }
body.light-mode .dark-toggle { background: #ebebeb; }
body.light-mode .kronos-ai-card {
  background: linear-gradient(145deg, rgba(168,85,247,0.22) 0%, rgba(196,181,253,0.38) 58%, rgba(255,255,255,0.82) 100%);
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 10px 26px rgba(124,58,237,0.18);
}
body.light-mode .kronia-tools-card {
  background: linear-gradient(145deg, rgba(255,128,0,0.24) 0%, rgba(255,184,120,0.34) 55%, rgba(255,255,255,0.82) 100%);
  border-color: rgba(255,107,0,0.52);
  box-shadow: 0 10px 26px rgba(234,108,10,0.18);
}
body.light-mode .kronos-ai-card:active,
body.light-mode .kronia-tools-card:active { transform: scale(.975); }
body.light-mode .kronos-ai-title { color: #7e22ce; }
body.light-mode .kronos-ai-subtitle { color: rgba(126,34,206,0.74); }
body.light-mode .kronos-ai-tip { color: #8b5cf6; }
body.light-mode .kronos-ai-model { color: rgba(124,58,237,0.82); }
body.light-mode .kronia-tools-title { color: #9a3412; }
body.light-mode .kronia-tools-subtitle { color: rgba(194,65,12,0.84); }
body.light-mode .risk-card-title { color: rgba(17,24,39,0.55); }

@keyframes lightCardDrift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
body.light-mode .kronos-ai-card,
body.light-mode .kronia-tools-card {
  background-size: 160% 160%;
  animation: lightCardDrift 8s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   AI COACH
══════════════════════════════════════════ */
#aiModal.show { display: flex !important; }
@keyframes aiPulse { 0%, 100% { box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 4px 20px var(--accent-glow), 0 0 0 10px rgba(249,115,22,0); } }
/* Travar scroll do body e ocultar flutuantes quando overlay está aberta */
body.overlay-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
body.overlay-open #aiFloatBtn { display: none !important; }
@keyframes fadeInUp { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.ai-msg { display: flex; width: 100%; animation: fadeInUp .22s ease; }
.ai-msg.user { justify-content: flex-end; }
.ai-msg.assistant { justify-content: flex-start; flex-direction: row; gap: 10px; align-items: flex-start; }
.ai-avatar { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; margin-top: 2px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; }
.ai-avatar-inner { flex: 1; min-width: 0; }
.ai-bubble { font-size: 0.92rem; line-height: 1.7; }
.ai-msg.user .ai-bubble { background: rgba(249,115,22,0.18); color: var(--text); padding: 10px 16px; border-radius: 18px 18px 4px 18px; border: 1px solid rgba(249,115,22,0.3); max-width: 82%; }
.ai-msg.assistant .ai-bubble { background: transparent; color: var(--text); padding: 2px 0; width: 100%; }
.ai-msg.assistant .ai-bubble.thinking { color: var(--text-2); font-style: italic; }
.ai-msg-time { font-size: 0.62rem; color: rgba(255,255,255,0.2); margin-top: 4px; padding: 0 2px; }
.ai-bubble p { margin: 0 0 10px; }
.ai-bubble p:last-child { margin-bottom: 0; }
.ai-bubble ul, .ai-bubble ol { padding-left: 20px; margin: 6px 0 10px; }
.ai-bubble li { margin-bottom: 4px; }
.ai-bubble strong { color: var(--accent); font-weight: 700; }
.ai-bubble h3 { font-size: 0.95rem; font-weight: 700; margin: 14px 0 6px; color: var(--text); }
.ai-bubble h4 { font-size: 0.88rem; font-weight: 700; margin: 10px 0 4px; color: rgba(255,255,255,.8); }
.ai-bubble code { background: rgba(255,255,255,.08); border-radius: 5px; padding: 1px 6px; font-size: 0.85em; font-family: monospace; }
.ai-bubble hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.ai-suggest-btn { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; color: var(--text); font-family: var(--font); font-size: 0.85rem; cursor: pointer; transition: all .15s; }
.ai-suggest-btn:active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.ai-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: dotBounce 1.2s infinite; }
.ai-dots span:nth-child(2) { animation-delay: .2s; }
.ai-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dotBounce { 0%, 60%, 100% { transform: translateY(0); opacity:.4; } 30% { transform: translateY(-6px); opacity:1; } }
.ai-input-wrap:focus-within { border-color: var(--accent) !important; }

/* ══════════════════════════════════════════
   TELA DE INÍCIO
══════════════════════════════════════════ */
#homeScreen { display: none; position: fixed; inset: 0; z-index: 3500; background: var(--bg); flex-direction: column; overflow-y: auto; padding-bottom: calc(68px + env(safe-area-inset-bottom)); overscroll-behavior: none; }
#homeScreen.show { display: flex; animation: homeIn .22s cubic-bezier(.25,.46,.45,.94) both; }
@keyframes homeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* ═══ HOME SCREEN ═══ */
.home-header { padding: 56px 20px 20px; background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%); }
.home-greeting { font-size: 0.82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.home-title { font-family: var(--display); font-size: 2.4rem; letter-spacing: .03em; color: var(--text); line-height: 1.05; }
.home-title span { color: var(--accent); }
.home-today { margin: 0 16px 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 20px; padding: 20px; will-change: transform; }
.home-quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 16px; }
.home-quick-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent; }
/* KRONOS PULSE — insight inline dentro do card de treino */
#pulseInsightCard { display: none; margin: 0 0 10px; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; padding: 10px 12px; background: rgba(0,0,0,0.18); transition: all .3s; }
.pulse-action-btn:active { opacity: .85; transform: scale(.98); }
@keyframes pulse-dot { 0%,100%{ opacity:1; } 50%{ opacity:.3; } }
.home-quick-card:active { transform: scale(.97); background: var(--card-hover); }
.home-quick-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.home-quick-name { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.home-quick-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.75); }
.home-stats-row { display: flex; gap: 10px; padding: 0 16px 16px; }
.home-stat-card { flex: 1; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; text-align: center; }
.home-stat-val { font-family: var(--display); font-size: 1.6rem; color: var(--accent); letter-spacing: .04em; }
.home-stat-lbl { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* ═══ BOTÃO CONFIGURAR TREINO ═══ */
.btn-config-treino {
  margin: 0 16px 16px;
  background: rgba(255,140,0,0.08);
  border: 1.5px solid rgba(255,140,0,0.55);
  border-radius: 14px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 1rem; letter-spacing: .1em;
  color: #FFB347; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s, background .15s;
  box-shadow: 0 0 18px rgba(255,140,0,0.1);
}
.btn-config-treino:active { transform: scale(.97); background: rgba(255,140,0,0.14); }

/* ═══ KRONOS AI CARD ═══ */
.kronos-ai-card {
  flex: 1; background: linear-gradient(140deg, rgba(124,58,237,0.25) 0%, rgba(93,63,211,0.12) 100%);
  border: 1.5px solid rgba(168,85,247,0.45); border-radius: 20px; padding: 16px 14px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .22s ease, border-color .2s ease;
  box-shadow: 0 8px 22px rgba(71,32,173,0.16);
}
.kronos-ai-card:active { transform: scale(.97); }
.kronos-ai-title { font-family:var(--display);font-size:1rem;letter-spacing:.06em;color:#c084fc;line-height:1; }
.kronos-ai-subtitle { font-size:0.5rem;font-weight:800;color:rgba(168,85,247,0.8);letter-spacing:.1em; }
.kronos-ai-tip { font-size:0.68rem;font-weight:700;color:#c084fc;text-transform:uppercase;letter-spacing:.04em;line-height:1.3;margin-bottom:8px; }
.kronos-ai-model { font-size:0.58rem;color:rgba(168,85,247,0.7);font-weight:600; }

/* ═══ KRONIA TOOLS CARD ═══ */
.kronia-tools-card {
  flex: 1; background: linear-gradient(140deg, rgba(255,107,0,0.18) 0%, rgba(255,140,0,0.07) 100%);
  border: 1.5px solid rgba(255,107,0,0.4); border-radius: 20px; padding: 16px 14px;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s, box-shadow .22s ease, border-color .2s ease;
  box-shadow: 0 8px 22px rgba(200,96,16,0.16);
}
.kronia-tools-card:active { transform: scale(.97); }
.kronia-tools-title { font-family:var(--display);font-size:1rem;letter-spacing:.06em;color:#fff;line-height:1; }
.kronia-tools-subtitle { font-size:0.5rem;font-weight:800;color:rgba(255,140,0,0.9);letter-spacing:.1em; }
.risk-card-title { font-size:0.55rem;font-weight:800;color:rgba(255,255,255,0.35);letter-spacing:.1em;margin-bottom:6px; }
.risk-card-title-sm { font-size:0.5rem; font-weight:700; letter-spacing:.08em; margin-bottom:4px; }

/* ═══ WEEKLY PERFORMANCE CARD ═══ */
.weekly-perf-card {
  margin: 0 16px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 20px; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.weekly-perf-left { flex-shrink: 0; }
.weekly-ring-wrap { position: relative; width: 110px; height: 110px; }
.weekly-ring-svg { width: 110px; height: 110px; }
.weekly-ring-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.weekly-ring-num {
  font-family: var(--display); font-size: 2.4rem; color: #fff;
  letter-spacing: .02em; line-height: 1;
}
.weekly-ring-lbl {
  font-size: 0.42rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,0.55); text-align: center; margin-top: 3px;
  line-height: 1.3;
}
.weekly-perf-right { flex: 1; min-width: 0; }
.weekly-bar-item {}
.weekly-bar-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.weekly-bar-name { font-size: 0.6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.weekly-bar-val { font-size: 0.72rem; font-weight: 800; color: var(--text); }
.weekly-bar-track { height: 7px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.weekly-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF8C00, #FFB347); transition: width .6s cubic-bezier(.4,0,.2,1); }
.weekly-bar-fill.vol { background: linear-gradient(90deg, #f97316, #fb923c); }

/* ═══ UPGRADE BANNER PREMIUM ═══ */
.upgrade-banner-premium {
  display: flex; align-items: center; gap: 14px;
  margin: 0 16px 10px;
  background: linear-gradient(135deg, rgba(93,63,211,0.2) 0%, rgba(255,107,0,0.15) 100%);
  border: 1px solid rgba(255,107,0,0.35); border-radius: 16px; padding: 14px 16px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.upgrade-banner-premium:active { transform: scale(.98); }

/* ═══ ACHIEVEMENT + RECOMMENDED CARDS ═══ */
.achievement-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 14px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.achievement-card:active { transform: scale(.97); }
.achievement-card-title {
  font-size: 0.52rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 8px;
}
.achievement-card-desc {
  font-size: 0.75rem; font-weight: 700; color: var(--text-2); line-height: 1.35; margin-top: 4px;
}
.recommended-card {
  background: linear-gradient(145deg, rgba(255,140,0,0.12), rgba(255,107,0,0.06));
  border: 1px solid rgba(255,107,0,0.3); border-radius: 18px;
  padding: 14px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .15s;
}
.recommended-card:active { transform: scale(.97); }
.recommended-card-thumb {
  display: flex; align-items: center; justify-content: center; padding: 6px 0;
}

/* ═══ START WORKOUT SCREEN ═══ */
#startWorkoutScreen {
  display: none; position: fixed; inset: 0; z-index: 2500;
  background: var(--bg); flex-direction: column; overflow-y: auto;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
#startWorkoutScreen.show { display: flex; }
.sws-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 16px) + 12px) 20px 12px;
  flex-shrink: 0;
}
.sws-back-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); -webkit-tap-highlight-color: transparent;
}
.sws-title-area { padding: 8px 20px 20px; }
.sws-subtitle { font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.sws-title { font-family: var(--display); font-size: 2.6rem; color: #fff; letter-spacing: .03em; line-height: 1.05; }

/* WorkoutHeroCard */
.workout-hero-card {
  margin: 0 16px 14px;
  background: linear-gradient(135deg, #C8960C 0%, #FF8C00 50%, #FF6B00 100%);
  border-radius: 22px; padding: 22px 20px; box-shadow: 0 8px 32px rgba(255,140,0,0.35);
}
.workout-hero-badge {
  font-size: 0.6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.workout-hero-badge::before { content: ''; width: 14px; height: 14px; border-radius: 4px; background: rgba(0,0,0,0.2); display: inline-block; }
.workout-hero-title {
  font-family: var(--display); font-size: 1.7rem; color: #fff;
  letter-spacing: .03em; line-height: 1.1; margin-bottom: 16px;
}
.workout-hero-customize-btn {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 10px;
  padding: 8px 14px; color: rgba(255,255,255,0.9); font-family: var(--font);
  font-size: 0.65rem; font-weight: 800; letter-spacing: .06em; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.workout-hero-customize-btn:active { opacity: .8; }

/* KronosFeedbackCard */
.kronos-feedback-card {
  margin: 0 16px 16px;
  background: linear-gradient(135deg, rgba(93,63,211,0.35) 0%, rgba(124,58,237,0.2) 100%);
  border: 1.5px solid rgba(168,85,247,0.4); border-radius: 20px; padding: 18px;
}

/* Audio wave animation */
.audio-wave { display: flex; align-items: center; gap: 3px; height: 28px; flex: 1; }
.audio-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: rgba(168,85,247,0.7); animation: audioWave 1.2s ease-in-out infinite;
}
.audio-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.audio-wave span:nth-child(2) { height: 14px; animation-delay: .1s; }
.audio-wave span:nth-child(3) { height: 22px; animation-delay: .2s; }
.audio-wave span:nth-child(4) { height: 16px; animation-delay: .3s; }
.audio-wave span:nth-child(5) { height: 26px; animation-delay: .4s; }
.audio-wave span:nth-child(6) { height: 18px; animation-delay: .5s; }
.audio-wave span:nth-child(7) { height: 22px; animation-delay: .6s; }
.audio-wave span:nth-child(8) { height: 12px; animation-delay: .7s; }
.audio-wave span:nth-child(9) { height: 8px; animation-delay: .8s; }
@keyframes audioWave {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(1.6); opacity: 1; }
}

/* StartWorkoutButton */
.start-workout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0 16px 16px; width: calc(100% - 32px);
  background: linear-gradient(135deg, #FF8C00, #FF6B00);
  border: none; border-radius: 100px; padding: 18px 24px;
  color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800;
  letter-spacing: .06em; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 24px rgba(255,107,0,0.5);
  animation: startBtnPulse 2.5s ease-in-out infinite;
}
.start-workout-btn:active { transform: scale(.97); box-shadow: 0 3px 12px rgba(255,107,0,0.4); }
@keyframes startBtnPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(255,107,0,0.5); }
  50% { box-shadow: 0 6px 32px rgba(255,107,0,0.75), 0 0 0 8px rgba(255,107,0,0.1); }
}

/* ExercisePreviewList */
.exercise-preview-list {
  display: flex; gap: 10px; padding: 0 16px 16px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.exercise-preview-list::-webkit-scrollbar { display: none; }
.exercise-preview-item {
  flex-shrink: 0; width: 110px; border-radius: 14px; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); position: relative;
}
.exercise-preview-thumb {
  width: 110px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,140,0,0.1), rgba(93,63,211,0.1));
}
.exercise-preview-label {
  padding: 6px 8px; font-size: 0.6rem; font-weight: 700; color: var(--text-2); line-height: 1.3;
}

/* ══════════════════════════════════════════
   PLAN MODAL — TABS + SLIDES
══════════════════════════════════════════ */
#planCarousel::-webkit-scrollbar { display: none; }
#planModal.show { display: flex !important; }
.plan-card-slide { animation: planSlideIn .18s ease-out; }
@keyframes planSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── PLAN MODAL (UPGRADE) ── */
.plan-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 10px calc(8px + env(safe-area-inset-bottom));
}
.plan-modal-card {
  background: #131313;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  width: min(100%, 620px);
  max-height: min(940px, calc(100dvh - 14px - env(safe-area-inset-bottom)));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.62), 0 1px 0 rgba(255,255,255,0.08) inset;
}
.plan-modal-header-wrap {
  padding: max(10px, calc(6px + env(safe-area-inset-top))) 18px 0;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 85%),
    radial-gradient(ellipse at 12% -30%, rgba(255,107,0,0.16) 0%, rgba(255,107,0,0) 58%);
}
.plan-modal-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  margin: 0 auto 14px;
  background: rgba(255,255,255,0.2);
}
.plan-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 18px 8px 18px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.plan-modal-brand {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(100% - 88px);
  max-width: calc(100% - 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
}
.plan-modal-brand img,
.plan-modal-brand svg,
.plan-modal-brand .logo,
.plan-modal-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
}
.plan-modal-logo {
  min-width: 0;
}
.plan-modal-subtitle {
  margin: 6px 0 0 0;
  text-align: left;
  padding: 0;
  font-size: 0.79rem;
  line-height: 1.4;
  letter-spacing: .01em;
  color: rgba(255,255,255,0.68);
}
.plan-modal-close,
.plan-modal-close-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  color: rgba(255,255,255,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all .16s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22), 0 1px 0 rgba(255,255,255,0.08) inset;
  -webkit-tap-highlight-color: transparent;
}
.plan-modal-close-btn:hover,
.plan-modal-close-btn:active {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  transform: translateY(1px);
}
.plan-modal-tabs {
  display: flex;
  gap: 5px;
  margin: 12px 18px 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 4px;
  flex-shrink: 0;
}
.plan-modal-carousel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 13px 18px 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.plan-modal-carousel::-webkit-scrollbar { display: none; }
.plan-modal-billing {
  display: flex;
  gap: 6px;
  margin: 8px 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px;
  flex-shrink: 0;
}
.plan-modal-footer {
  padding: 0 18px calc(16px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .plan-modal-shell { padding-inline: 8px; }
  .plan-modal-card { border-radius: 26px; }
  .plan-modal-header {
    min-height: 56px;
    padding: 8px 14px 6px 14px;
    gap: 10px;
  }
  .plan-modal-brand {
    width: calc(100% - 52px);
    max-width: calc(100% - 52px);
  }
  .plan-modal-brand img,
  .plan-modal-brand svg,
  .plan-modal-brand .logo,
  .plan-modal-logo {
    max-height: 40px;
    width: 100%;
  }
  .plan-modal-close,
  .plan-modal-close-btn {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }
  .plan-modal-subtitle { font-size: 0.74rem; }
  .plan-modal-tabs,
  .plan-modal-billing { margin-left: 14px; margin-right: 14px; }
  .plan-modal-carousel { padding-left: 14px; padding-right: 14px; }
  .plan-modal-footer { padding-left: 14px; padding-right: 14px; }
  .plan-modal-carousel { padding-top: 11px; }
}
#homePlanBadge.badge-pro   { background:rgba(249,115,22,0.22); border-color:rgba(249,115,22,0.55); color:var(--accent); }
#homePlanBadge.badge-ultra { background:rgba(168,85,247,0.22); border-color:rgba(168,85,247,0.55); color:#c084fc; }
#homePlanBadge.badge-trial { background:rgba(168,85,247,0.15); border-color:rgba(168,85,247,0.4); color:#c084fc; }
#homePlanBadge:active { transform: scale(.95); }

/* ══════════════════════════════════════════
   TELA DE CONFIGURAÇÕES
══════════════════════════════════════════ */
#settingsScreen { display: none; position: fixed; inset: 0; z-index: 3900; background: var(--bg); flex-direction: column; overflow-y: auto; padding-bottom: max(32px, env(safe-area-inset-bottom, 24px)); overscroll-behavior: none; }
#settingsScreen.show { display: flex; }
.settings-header { display: flex; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px 8px; gap: 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.settings-title { flex: 1; font-family: var(--display); font-size: 1.2rem; letter-spacing: .06em; color: var(--text); text-align: center; }
.settings-section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 20px 20px 8px; flex-shrink: 0; }
.settings-group { margin: 0 16px 6px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; flex-shrink: 0; }
.settings-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .12s; border-bottom: 1px solid rgba(255,255,255,0.1); min-height: 54px; }
.settings-row:last-child { border-bottom: none; }
.settings-row:active { background: var(--card-hover); }
.settings-row-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-row-label { flex: 1; font-size: 0.93rem; font-weight: 600; color: var(--text); }
.settings-row-value { font-size: 0.8rem; color: var(--muted); margin-right: 4px; }
.settings-row-arrow { color: var(--muted); flex-shrink: 0; }
.settings-plan-badge { font-size: 0.62rem; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 20px; }
/* ══════════════════════════════════════════
   TELA DE PERFIL
══════════════════════════════════════════ */
.btn-voltar { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; color: var(--accent); font-family: var(--font); font-size: 0.9rem; font-weight: 700; padding: 16px 20px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.btn-voltar svg { flex-shrink: 0; }
#perfilScreen { display: none; position: fixed; inset: 0; z-index: 3800; background: var(--bg); flex-direction: column; overflow-y: auto; padding-bottom: 24px; overscroll-behavior: none; }
#perfilScreen.show { display: flex; }
.perfil-section { padding: 16px 16px 0; }
.perfil-section-title { font-size: 0.88rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 12px; }
.perfil-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.perfil-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; }
.perfil-stat-val { font-family: var(--display); font-size: 1.4rem; color: var(--accent); letter-spacing: .02em; }
.perfil-stat-lbl { font-size: 0.52rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.65); margin-top: 2px; }
.perfil-pr-list { margin-bottom: 16px; }
.perfil-pr-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
.perfil-pr-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.perfil-pr-val { font-family: var(--mono); font-size: 0.85rem; color: var(--emerald); font-weight: 700; }
.perfil-medidas-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.perfil-input-wrap { display: flex; flex-direction: column; gap: 4px; }
.perfil-input-lbl { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.75); }
.perfil-input { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: var(--font); font-size: 1rem; color: var(--text); width: 100%; box-sizing: border-box; -webkit-appearance: none; }
.perfil-input:focus { outline: none; border-color: var(--accent); }
.perfil-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(2px, 0.8vw, 5px); margin-bottom: 16px; }
.perfil-cal-day { aspect-ratio: 1; border-radius: 6px; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.75); }
.perfil-cal-day.treinou { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.perfil-cal-day.today   { border-color: var(--accent2); color: var(--accent2); }

/* ══════════════════════════════════════════
   TELA EDITAR PERFIL
══════════════════════════════════════════ */
#editarPerfilScreen { display: none; position: fixed; inset: 0; z-index: 3600; background: var(--bg); flex-direction: column; overflow-y: auto; overscroll-behavior: none; }
#editarPerfilScreen.show { display: flex; }
.ep-avatar-wrap { display: flex; flex-direction: column; align-items: center; padding: 56px 20px 24px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.ep-avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 2.4rem; color: #fff; position: relative; cursor: pointer; overflow: hidden; border: 3px solid var(--accent); }
.ep-avatar-cam { position: absolute; bottom: 0; left: 0; right: 0; height: 34px; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; }
.ep-name-display { margin-top: 12px; font-family: var(--display); font-size: 1.3rem; color: var(--text); letter-spacing: .04em; }
.ep-level { margin-top: 4px; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent); border-radius: 100px; padding: 2px 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ep-body { padding: 24px 20px; flex: 1; }
.ep-field { margin-bottom: 18px; }
.ep-field-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; display: block; }
.ep-input { width: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 13px 16px; font-family: var(--font); font-size: 1rem; color: var(--text); box-sizing: border-box; -webkit-appearance: none; transition: border-color .15s; }
.ep-input:focus { outline: none; border-color: var(--accent); }
.ep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ep-save { width: 100%; padding: 16px; background: var(--accent); border: none; border-radius: 14px; color: #fff; font-family: var(--font); font-size: 1rem; font-weight: 800; cursor: pointer; margin-top: 8px; -webkit-tap-highlight-color: transparent; letter-spacing: .03em; }
.ep-save:active { opacity: .85; }

/* ══════════════════════════════════════════
   TELA ORIENTAÇÃO
══════════════════════════════════════════ */
#orientacaoScreen { display: none; position: fixed; inset: 0; z-index: 3500; background: #000; flex-direction: column; overflow: hidden; }
#orientacaoScreen.show { display: flex; }
#dietaScreen { display: none; position: fixed; inset: 0; z-index: 3500; background: var(--bg); flex-direction: column; overflow-y: auto; padding-bottom: calc(70px + env(safe-area-inset-bottom)); overscroll-behavior: none; }
#dietaScreen.show { display: flex; }
.transforms-screen { display: none; position: fixed; inset: 0; z-index: 4500; background: #0a0a0a; flex-direction: column; overflow: hidden; }
.transforms-screen.show { display: flex; }
.dav-header { padding: 56px 16px 16px; background: var(--bg2); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.dav-title { font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em; color: var(--text); flex: 1; text-align: center; }
.dav-body { padding: 16px; padding-bottom: 100px; }
.dav-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.dav-stat { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: 12px; padding: 14px; text-align: center; }
.dav-stat-val { font-family: var(--display); font-size: 1.6rem; color: var(--accent); letter-spacing: .04em; }
.dav-stat-lbl { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.6); margin-top: 4px; }
.dav-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.dav-table-head { display: grid; grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 0.7fr; gap: 4px; padding: 8px 12px; background: var(--bg2); }
.dav-th { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dav-th:not(:first-child) { text-align: right; }
.dav-th:nth-child(2) { color: var(--accent); }
.orient-header { padding: 56px 20px 16px; background: #000; border-bottom: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; position: relative; }
.orient-title { font-family: var(--display); font-size: 1.8rem; color: var(--text); letter-spacing: .04em; }
.orient-content { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.orient-shortcuts-row { display: flex; gap: 6px; padding: 12px 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; flex-direction: column; flex: none; max-height: 32vh; border-bottom: 1px solid rgba(255,255,255,0.07); transition: max-height .3s ease, opacity .3s ease, padding .3s ease; background: #000; }
.orient-shortcuts-row::-webkit-scrollbar { display: none; }
.orient-category-label { font-size: 0.65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 4px 2px 2px; margin-top: 6px; }
.orient-category-label:first-child { margin-top: 0; }
.orient-chip { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; cursor: pointer; width: 100%; box-sizing: border-box; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.orient-chip:active { background: var(--accent-dim); border-color: var(--accent); }
.orient-chip-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.orient-chip-name { font-size: 0.82rem; font-weight: 700; color: var(--text); letter-spacing: .01em; flex: 1; }
.orient-chat-wrap, .chat-wrapper { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.orient-chat-messages, .chat-messages { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 0 calc(var(--chat-input-height, 0px) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 0; }
/* Spacer empurra mensagens para baixo quando pouco conteúdo */
#orientExpertMessages::before { content: ''; flex: 1; min-height: 0; }
/* ─── WhatsApp iOS Dark Mode — KRONOS Chat ─── */
#orientExpertMessages .ai-msg { flex-direction: row !important; justify-content: flex-start !important; align-items: flex-end !important; gap: 8px !important; padding: 0 !important; border-bottom: none !important; background: transparent !important; animation: fadeInUp .22s ease; }
#orientExpertMessages .ai-msg:hover { background: transparent !important; }
#orientExpertMessages .ai-msg.user { justify-content: flex-end !important; }
#orientExpertMessages .ai-msg::before { display: none !important; content: none !important; }
/* KRONOS avatar — monograma premium */
.orient-kronos-avatar, .kronos-reactor-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2B2B2E 0%, #17171A 58%, #0E0E10 100%);
  border: 1px solid rgba(246,195,107,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 4px 12px rgba(0,0,0,0.38),
    0 0 0 1px rgba(165,103,0,0.22);
  overflow: hidden;
}
.orient-kronos-avatar img, .kronos-reactor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#orientExpertMessages .ai-msg .ai-avatar { display: none !important; }
/* Bubble wrappers */
#orientExpertMessages .ai-msg.assistant .ai-avatar-inner { flex: unset !important; min-width: 0; max-width: 84%; display: block !important; }
#orientExpertMessages .ai-msg.user .ai-avatar-inner { flex: unset !important; min-width: 0; max-width: 82%; margin-left: auto; display: block !important; }
/* Bubble: KRONOS (recebida) — WhatsApp iOS Dark #1C1C1E */
#orientExpertMessages .ai-msg.assistant .ai-bubble { background: #1C1C1E !important; border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 8px 18px 18px 18px !important; padding: 13px 17px !important; font-size: 17px !important; line-height: 1.52 !important; color: #FFFFFF !important; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important; font-weight: 400 !important; display: block !important; }
/* Bubble: Usuário (enviada) — Stark amber dim */
#orientExpertMessages .ai-msg.user .ai-bubble { background: #A56700 !important; border: 1px solid rgba(255,195,105,0.92) !important; border-radius: 18px 8px 18px 18px !important; padding: 13px 17px !important; font-size: 17px !important; line-height: 1.52 !important; color: #FFFFFF !important; font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important; font-weight: 400 !important; display: block !important; }
/* Gap entre mensagens consecutivas */
#orientExpertMessages .ai-msg { margin-bottom: 6px !important; }
/* Barra de input — pílula iOS nativa */
.orient-chat-bar, .chat-input { position: fixed; left: 0; right: 0; bottom: var(--keyboard-offset, 0px); z-index: 1000; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid rgba(255,255,255,0.06); flex: none; background: #000; }
.orient-input-wrap { display: flex; align-items: center; margin: 8px 12px; padding: 8px 12px; gap: 8px; background: #1C1C1E; border-radius: 22px; border: 1px solid rgba(255,255,255,0.08); }
.orient-input-wrap textarea { flex: 1; background: transparent; border: none; color: #fff; font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif; font-size: 1.05rem; outline: none; -webkit-appearance: none; resize: none; overflow: hidden; line-height: 1.5; max-height: 120px; overflow-y: auto; padding: 1px 0; }
.orient-input-wrap textarea::placeholder { color: rgba(255,255,255,.45); }
.orient-input-wrap:focus-within { border-color: rgba(165,103,0,0.5); }
.orient-suggestions-toggle { width: 28px; height: 28px; background: none; border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; -webkit-tap-highlight-color: transparent; opacity: .55; transition: opacity .15s; }
.orient-suggestions-toggle:active, .orient-suggestions-toggle.open { opacity: 1; }
#orientSendBtn { width: 32px; height: 32px; border-radius: 50%; background: #A56700; border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s, transform .1s; box-shadow: 0 2px 8px rgba(165,103,0,0.4); }
#orientSendBtn:active { transform: scale(.85); }
.orient-shortcuts-row.collapsed { max-height: 0 !important; overflow: hidden; opacity: 0; padding-top: 0; padding-bottom: 0; border: none; }
/* Botão de ação KRONOS (ex: Ir para Treino) */
.kronos-action-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 14px 20px; background: #1C1005; border: 1.5px solid rgba(165,103,0,0.5); border-radius: 14px; color: #D4892A; font-family: -apple-system, 'SF Pro Text', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; width: 100%; justify-content: center; box-sizing: border-box; }

/* ══════════════════════════════════════════
   HEATMAP MUSCULAR
══════════════════════════════════════════ */
.heatmap-wrap { display: flex; gap: 16px; justify-content: center; padding: 16px 0; flex-wrap: wrap; }
.heatmap-side { text-align: center; }
.heatmap-side-label { font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.muscle-map svg { width: 120px; height: auto; }
.muscle-group { transition: fill .3s; }
.muscle-group.level-0 { fill: var(--bg2); }
.muscle-group.level-1 { fill: rgba(249,115,22,0.25); }
.muscle-group.level-2 { fill: rgba(249,115,22,0.55); }
.muscle-group.level-3 { fill: rgba(249,115,22,0.85); }
.heatmap-legend { display: flex; gap: 8px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.heatmap-legend-item { display: flex; align-items: center; gap: 4px; font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.heatmap-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ══════════════════════════════════════════
   GUIA DE EXERCÍCIO
══════════════════════════════════════════ */
#guiaModal { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.85); backdrop-filter: blur(6px); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .25s; }
#guiaModal.show { opacity: 1; pointer-events: auto; }
#guiaModal.show .guia-sheet { transform: translateY(0); }
.guia-sheet { background: #161616; border-radius: 24px 24px 0 0; width: 100%; max-height: 92vh; overflow-y: auto; transform: translateY(100%); transition: transform .38s cubic-bezier(.32,1,.6,1); padding-bottom: env(safe-area-inset-bottom, 16px); }
.guia-handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.15); margin: 12px auto 0; }
.guia-header { padding: 16px 20px 0; display: flex; align-items: center; gap: 12px; }
.guia-back { background: none; border: none; color: var(--accent); font-family: var(--font); font-size: 0.88rem; font-weight: 700; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.guia-name { font-family: var(--display); font-size: 1.8rem; letter-spacing: .06em; padding: 10px 20px 2px; }
.guia-muscles { font-size: 0.72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 20px 18px; }
.guia-video-wrap { margin: 0 16px 20px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }
.guia-video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: #111; min-height: 200px; }
.guia-yt-btn { background: #FF0000; color: #fff; border: none; border-radius: 12px; padding: 14px 24px; font-family: var(--font); font-size: 0.95rem; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 10px; -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.guia-yt-btn:active { transform: scale(.97); }
.guia-yt-tip { font-size: 0.72rem; color: #525252; text-align: center; padding: 0 20px; line-height: 1.5; }

/* ══════════════════════════════════════════
   SPLASH SCREEN
══════════════════════════════════════════ */
#splashScreen {
position: fixed; inset: 0; z-index: 99999;
display: flex; align-items: center; justify-content: center;
overflow: hidden;
animation: splashAutoHide 0.4s ease 3.5s forwards;
}
@keyframes splashAutoHide {
from { opacity: 1; pointer-events: auto; }
to   { opacity: 0; pointer-events: none; visibility: hidden; }
}
#splashBg {
position: absolute; inset: 0;
background:
  radial-gradient(ellipse at 50% 35%, rgba(249,115,22,0.22) 0%, rgba(9,9,9,0.8) 52%, #090909 100%),
  #090909;
}
#splashContent {
position: relative; z-index: 1;
display: flex; flex-direction: column;
align-items: center; justify-content: center;
animation: splashEntrada 1s cubic-bezier(.34,1.2,.64,1) forwards;
}
@keyframes splashEntrada {
from { opacity: 0; transform: scale(0.7); }
to   { opacity: 1; transform: scale(1); }
}
#splashLogoWrap {
width: 160px; height: 160px;
display: flex; align-items: center; justify-content: center;
animation: splashPulse 2.5s ease-in-out 1s infinite;
}
#splashLogo {
width: 100%; height: 100%;
object-fit: contain;
filter: drop-shadow(0 0 32px rgba(249,115,22,0.6));
}
@keyframes splashPulse {
0%, 100% { filter: drop-shadow(0 0 32px rgba(249,115,22,0.6)); }
50%       { filter: drop-shadow(0 0 64px rgba(249,115,22,1)); }
}
#splashTexto {
display: flex; align-items: baseline; gap: 0;
margin-top: 20px;
animation: splashTextIn 0.7s ease 0.8s both;
}
@keyframes splashTextIn {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
}
#splashTitan {
font-family: 'Bebas Neue', sans-serif;
font-size: clamp(2.8rem, 12vw, 4rem);
letter-spacing: .08em; color: #fff; line-height: 1;
}
#splashPro {
font-family: 'Bebas Neue', sans-serif;
font-size: clamp(2.8rem, 12vw, 4rem);
letter-spacing: .08em; color: #f97316; line-height: 1;
}
#splashTagline {
font-size: 0.62rem; font-weight: 600;
color: rgba(255,255,255,0.4);
letter-spacing: .12em; text-transform: uppercase;
margin-top: 6px;
animation: splashTextIn 0.7s ease 1.1s both;
}
#splashBarWrap {
width: 140px; height: 2px;
background: rgba(255,255,255,0.1);
border-radius: 2px; overflow: hidden;
margin-top: 36px;
animation: splashTextIn 0.5s ease 1.3s both;
}
#splashBar {
height: 100%; width: 0%;
background: linear-gradient(90deg, #f97316, #fbbf24);
border-radius: 2px;
animation: splashBarFill 1.2s ease 1.3s forwards;
}
@keyframes splashBarFill {
from { width: 0%; }
to   { width: 100%; }
}

/* ══════════════════════════════════════════
   LOGIN SCREEN
══════════════════════════════════════════ */
#loginScreen { position: fixed; inset: 0; z-index: 99998; display: none; flex-direction: column; align-items: center; justify-content: space-between; }
#loginBg { position: absolute; inset: 0; background-image: url('bg-login.jpg'); background-size: cover; background-position: center top; }
#loginBg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0.88) 70%, rgba(0,0,0,0.98) 100%); }
#loginTop { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: calc(env(safe-area-inset-top, 16px) + 60px) 28px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
#loginSub { font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.85); text-align: center; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,0.8); letter-spacing: 0.01em; }
#loginBottom { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 0 28px calc(env(safe-area-inset-bottom, 16px) + 36px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
#btnShowEmail:active { transform: scale(0.97); background: #e55f00; }
#loginRegisterLink { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-align: center; cursor: pointer; }
#loginRegisterLink span { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════
   EMAIL LOGIN
══════════════════════════════════════════ */
#emailLoginScreen { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: var(--bg); overflow-y: auto; overscroll-behavior: none; min-height: 100dvh; min-height: -webkit-fill-available; }
#emailLoginScreen.show { display: flex; }
#emailLoginHeader { display: flex; align-items: center; padding: calc(env(safe-area-inset-top, 12px) + 12px) 20px 0; gap: 12px; position: relative; z-index: 2; flex-shrink: 0; }
#emailLoginBack { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text); cursor: pointer; border-radius: 10px; transition: background 0.15s; }
#emailLoginBack:active { background: var(--surface); }
#emailLoginHeaderTitle { font-family: var(--font); font-size: 1.1rem; font-weight: 700; color: var(--text); position: absolute; left: 50%; transform: translateX(-50%); }
#emailLoginBody { position: relative; margin-top: auto; width: 100%; box-sizing: border-box; padding: 28px 28px calc(env(safe-area-inset-bottom, 16px) + 48px); display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin-left: auto; margin-right: auto; }
#emailLoginBody h2 { font-family: var(--font); font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.login-input { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.3); border-radius: 12px; color: #fff; font-family: var(--font); font-size: 0.95rem; outline: none; box-sizing: border-box; transition: border-color .2s; }
.login-input::placeholder { color: var(--muted); }
.login-input:focus { border-color: var(--accent); }
#forgotPassLink { font-size: 0.85rem; color: var(--accent); font-weight: 600; cursor: pointer; text-align: right; margin-top: -6px; background: none; border: none; font-family: var(--font); }
#btnEmail { width: 100%; padding: 15px 32px; background: #FF6B00; color: #fff; border: none; border-radius: 14px; font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 4px; box-shadow: 0 6px 24px rgba(255,107,0,0.3); letter-spacing: 0.3px; display: block; }
#btnEmail:active { transform: scale(0.97); }
#loginToggle { font-size: 0.85rem; color: var(--text-2); text-align: center; cursor: pointer; margin-top: 8px; }
#loginToggle span { color: var(--accent); font-weight: 700; }
#loginError { color: #f87171; font-size: 0.82rem; text-align: center; min-height: 0; }

/* ══════════════════════════════════════════
   TREINO DASHBOARD
══════════════════════════════════════════ */
#treinoDash { padding: 14px 16px 8px; }
.tdash-quick { width: 100%; background: var(--bg2); border: 1.5px dashed var(--border); border-radius: 14px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 20px; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; text-align: left; font-family: var(--font); }
.tdash-quick:active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.tdash-section { font-size: 0.6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
body.light-mode .tdash-section { color: rgba(0,0,0,0.4); }

/* ══════════════════════════════════════════
   DIVISÃO PICKER
══════════════════════════════════════════ */
.div-freq-row { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; padding-top: 14px; }
.div-freq-row::-webkit-scrollbar { display: none; }
.div-freq-btn { flex: 1; min-width: 56px; min-height: 64px; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 6px; text-align: center; cursor: pointer; transition: all .15s; -webkit-tap-highlight-color: transparent; position: relative; font-family: var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.div-freq-btn.active { background: var(--accent-dim); border-color: rgba(249,115,22,0.6); }
.div-freq-btn .dfb-num { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; display: block; }
.div-freq-btn.active .dfb-num { color: var(--accent); }
.div-freq-btn .dfb-lbl { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; }
.div-freq-btn.active .dfb-lbl { color: rgba(249,115,22,0.9); }
.div-freq-btn .dfb-rec { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 0.65rem; font-weight: 800; letter-spacing: .03em; padding: 2px 8px; border-radius: 100px; white-space: nowrap; }
.div-meta-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 14px; }
.div-meta-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-dim); border: 1px solid rgba(249,115,22,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.div-meta-split { font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--text); }
.div-meta-sub { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-top: 5px; line-height: 1.5; }
body.light-mode .div-meta-sub { color: rgba(0,0,0,0.55); }
.div-meta-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.div-meta-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; border: 1px solid; }
.div-day-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.div-day-row { display: flex; align-items: flex-start; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.div-day-row:active { background: var(--card); border-color: var(--accent); }
.div-day-row.selected { border-color: var(--accent); background: var(--accent-dim); }
.div-day-badge { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim); border: 1px solid rgba(249,115,22,0.25); color: var(--accent); font-size: 0.85rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--display); }
.div-day-name { font-size: 1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.div-day-exs { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 6px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 5px; }
body.light-mode .div-day-exs { color: rgba(0,0,0,0.5); }
.div-day-ex-chip { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-size: 0.82rem; }
.div-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.div-cta-manual { padding: 16px; background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); border-radius: 12px; font-size: 0.88rem; font-weight: 800; color: var(--blue); cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: var(--font); display: flex; align-items: center; justify-content: center; gap: 6px; }
.div-cta-ia { padding: 16px; background: var(--accent); border: none; border-radius: 12px; font-size: 0.88rem; font-weight: 800; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: var(--font); letter-spacing: .04em; display: flex; align-items: center; justify-content: center; gap: 6px; }
.div-cta-empty { grid-column: 1/-1; padding: 14px; background: transparent; border: 1px dashed var(--border); border-radius: 12px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; font-family: var(--font); margin-top: 4px; }

/* ══════════════════════════════════════════
   INSTRUÇÕES
══════════════════════════════════════════ */
.instr-section { margin-bottom: 24px; }
.instr-section-title { font-size: 0.72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.instr-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.instr-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(249,115,22,0.3); color: var(--accent); font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.instr-step-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.instr-step-desc { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
body.light-mode .instr-step-desc { color: rgba(0,0,0,0.45); }
.instr-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.instr-feat-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px; }
.instr-feat-icon { font-size: 1.4rem; margin-bottom: 8px; }
.instr-feat-title { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.instr-feat-desc { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
body.light-mode .instr-feat-desc { color: rgba(0,0,0,0.45); }
.instr-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.instr-tip-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.instr-tip-text { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
body.light-mode .instr-tip-text { color: rgba(0,0,0,0.5); }
.instr-tip-text strong { color: var(--text); }

/* ══════════════════════════════════════════
   BOTTOM SHEETS
══════════════════════════════════════════ */
.bottom-sheet { position: fixed; inset: 0; z-index: 8500; background: rgba(0,0,0,0.65); display: none; align-items: flex-end; justify-content: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bottom-sheet.show { display: flex; }
.bs-box { background: var(--bg2); border-radius: 22px 22px 0 0; border: 1px solid var(--border); border-bottom: none; width: 100%; max-width: 680px; max-height: 92dvh; overflow-y: auto; padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.bs-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 20px; }
.bs-title { font-family: var(--display); font-size: 1.25rem; letter-spacing: .05em; color: var(--text); margin-bottom: 3px; }
.bs-sub { font-size: 0.78rem; color: var(--text-2); margin-bottom: 20px; }
.bs-label { font-size: 0.63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 7px; display: block; }
.bs-input { width: 100%; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; color: var(--text); font-family: var(--font); font-size: 0.9rem; outline: none; -webkit-appearance: none; appearance: none; }
.bs-input:focus { border-color: var(--accent); }
.bs-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bs-full { margin-bottom: 14px; }
.bs-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.bs-chip { padding: 7px 12px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--card); color: var(--text-2); font-family: var(--font); font-size: 0.78rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: all .15s; }
.bs-chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.basal-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.basal-res-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; text-align: center; }
.basal-res-card.hi { background: var(--accent-dim); border-color: var(--accent); }
.basal-res-val { font-family: var(--display); font-size: 1.5rem; color: var(--accent); letter-spacing: .04em; }
.basal-res-lbl { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-top: 3px; }
.bs-tdee-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.87rem; }
.bs-tdee-row:last-child { border: none; }

/* ══════════════════════════════════════════
   SECTION TITLE
══════════════════════════════════════════ */
.home-section-title { font-size: 0.68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.45); padding: 20px 20px 10px; display: flex; align-items: center; gap: 8px; }
.home-section-title::before { content: ''; display: inline-block; width: 3px; height: 12px; background: var(--accent); border-radius: 2px; flex-shrink: 0; }
body.light-mode .home-section-title { color: rgba(0,0,0,0.4); }

/* ══════════════════════════════════════════
   HOME BANNER
══════════════════════════════════════════ */
#homeBanner { margin: 0 16px 14px; background: linear-gradient(135deg,rgba(249,115,22,.14),rgba(251,191,36,.06)); border: 1px solid rgba(249,115,22,.22); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.home-banner-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; background: linear-gradient(145deg,var(--accent),#ea580c); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(249,115,22,.35); }
#homeBannerTitle { font-size: .88rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
#homeBannerSub   { font-size: .72rem; color: var(--text-2); }

/* ══════════════════════════════════════════
   HOME TOOLS
══════════════════════════════════════════ */
.home-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.home-tool-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .1s; }
.home-tool-card:active { background: var(--card-hover); transform: scale(.98); }
.home-tool-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.home-tool-name { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.home-tool-sub  { font-size: 0.72rem; color: var(--text-2); line-height: 1.4; }

/* ══════════════════════════════════════════
   SUPERSET
══════════════════════════════════════════ */
.superset-group { position: relative; margin-bottom: 12px; border-left: 3px solid #a855f7; border-radius: 0 var(--r) var(--r) 0; padding-left: 8px; }
.superset-label { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a855f7; padding: 4px 10px 4px 0; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.superset-label::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #a855f7; flex-shrink:0; }
.btn-superset { font-size: .66rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(168,85,247,.3); background: rgba(168,85,247,.1); color: #a855f7; cursor: pointer; font-family: var(--font); flex-shrink:0; -webkit-tap-highlight-color: transparent; }
.btn-superset.active { background: rgba(168,85,247,.22); border-color: #a855f7; }

/* ══════════════════════════════════════════
   VOICE LOG
══════════════════════════════════════════ */
.btn-voz { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: #3b82f6; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; -webkit-tap-highlight-color: transparent; }
.btn-voz.listening { background: rgba(239,68,68,.15); border-color: #ef4444; color: #ef4444; animation: vozPulse .9s ease-in-out infinite; }
@keyframes vozPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.35); } 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
#vozIndicator { display: none; position: fixed; top: 64px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1.5px solid #ef4444; border-radius: 24px; padding: 8px 18px; font-size: .8rem; font-weight: 700; color: #ef4444; z-index: 9990; box-shadow: 0 4px 20px rgba(0,0,0,.4); align-items: center; gap: 8px; white-space: nowrap; }
#vozIndicator.show { display: flex; }

/* ══════════════════════════════════════════
   BREATHING
══════════════════════════════════════════ */
#breathingModal { display: none; position: fixed; inset: 0; z-index: 9500; background: rgba(0,0,0,.93); flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; }
#breathingModal.show { display: flex; }
.breath-title { font-family: var(--display); font-size: 1.5rem; letter-spacing: .08em; color: var(--text); margin-bottom: 4px; text-align: center; }
.breath-sub { font-size: .72rem; color: var(--muted); margin-bottom: 28px; text-align: center; letter-spacing: .06em; }
.breath-phase-label { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); min-height: 22px; text-align: center; margin-bottom: 16px; }
.breath-circle-wrap { width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
#breathCircle { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.35), rgba(249,115,22,.08)); border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; transition: transform 4s cubic-bezier(.4,0,.2,1); }
#breathCircle.expand   { transform: scale(1.55); }
#breathCircle.contract { transform: scale(1); }
.breath-count { font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: #fff; }
.breath-cycles-label { font-size: .75rem; color: var(--text-2); margin-bottom: 28px; }
.breath-btn-close { padding: 13px 36px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); color: var(--text-2); font-family: var(--font); font-size: .88rem; font-weight: 700; cursor: pointer; }

/* ══════════════════════════════════════════
   DESAFIOS
══════════════════════════════════════════ */
.desafio-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; }
.desafio-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.desafio-ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.desafio-name { font-size: .88rem; font-weight: 700; color: var(--text); }
.desafio-desc { font-size: .7rem; color: var(--text-2); margin-top: 2px; }
.desafio-bar  { height: 5px; background: var(--bg2); border-radius: 3px; overflow: hidden; }
.desafio-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg,var(--accent),#fbbf24); transition: width .6s ease; }
.desafio-pct  { font-size: .62rem; font-weight: 700; color: var(--muted); text-align: right; margin-top: 3px; font-family: var(--mono); }

/* ══════════════════════════════════════════
   MESOCICLO
══════════════════════════════════════════ */
.meso-week-row { display: flex; gap: 5px; margin-bottom: 6px; align-items: center; }
.meso-week-lbl { font-size: .62rem; font-weight: 700; color: var(--muted); width: 26px; flex-shrink: 0; font-family: var(--mono); }
.meso-day { flex: 1; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .5rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.meso-day.treino { background: rgba(249,115,22,.18); border: 1px solid rgba(249,115,22,.35); color: var(--accent); }
.meso-day.deload { background: rgba(16,185,129,.12);  border: 1px solid rgba(16,185,129,.3);   color: var(--emerald); }
.meso-day.rest   { background: var(--bg2);            border: 1px solid var(--border);          color: var(--muted); }
.meso-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.meso-badge.adapt  { background: rgba(59,130,246,.15); color: #3b82f6;  border: 1px solid rgba(59,130,246,.3); }
.meso-badge.sob    { background: rgba(249,115,22,.15); color: var(--accent); border: 1px solid rgba(249,115,22,.3); }
.meso-badge.pico   { background: rgba(168,85,247,.15); color: #a855f7;  border: 1px solid rgba(168,85,247,.3); }
.meso-badge.deload { background: rgba(16,185,129,.12);  color: var(--emerald);  border: 1px solid rgba(16,185,129,.25); }

/* ══════════════════════════════════════════
   SHARE & RESPIRA BUTTONS
══════════════════════════════════════════ */
.btn-share-rel { width: 100%; padding: 12px; margin-top: 8px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); border-radius: var(--r); color: var(--emerald); font-family: var(--font); font-size: .85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-respira { width: 100%; padding: 12px; margin-top: 8px; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.3); border-radius: var(--r); color: #3b82f6; font-family: var(--font); font-size: .85rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ══════════════════════════════════════════
   SUGESTÃO INLINE POR SÉRIE
══════════════════════════════════════════ */
.row-suggest { display: none; grid-column: 1 / -1; margin: -4px 0 6px 0; padding: 7px 12px; border-radius: 8px; font-size: 0.74rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em; animation: suggestFade .3s ease; }
.row-suggest.up   { background: rgba(249,115,22,0.1); border-left: 3px solid var(--accent); color: var(--accent); }
.row-suggest.down { background: rgba(234,179,8,0.1);  border-left: 3px solid #eab308; color: #eab308; }
@keyframes suggestFade { from { opacity:0; transform: translateY(-4px); } to { opacity:1; transform: translateY(0); } }

/* ══════════════════════════════════════════
   TITAN TRANSFORMS ENGINE SCREEN
══════════════════════════════════════════ */
#transformsScreen {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: #090909;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
  pointer-events: none;
}
#transformsScreen.show {
  transform: translateY(0);
  pointer-events: auto;
}
.transforms-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9,9,9,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,107,0,0.12);
  padding: 0 16px;
  padding-top: env(safe-area-inset-top);
  height: calc(56px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.transforms-header-title {
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.transforms-back-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.transforms-back-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
}
.transforms-kernel-badge {
  font-size: 0.55rem;
  font-weight: 800;
  color: #FF6B00;
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 20px;
  padding: 2px 10px;
  letter-spacing: 1px;
}
.transforms-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}
.transforms-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.transforms-tab {
  display: flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  font-family: var(--font);
}
.transforms-tab.active {
  background: linear-gradient(135deg,#FF6B00,#FF9A3C);
  color: #fff;
}
.transforms-panel {
  animation: teFadeIn 0.2s ease;
}
@keyframes teFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.transforms-graph-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,107,0,0.15);
  border-radius: 14px;
  height: 340px;
  margin-bottom: 12px;
  overflow: hidden;
}
.transforms-node-detail {
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.25);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  animation: teFadeIn 0.2s ease;
}
.transforms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.te-legend-chip {
  display: flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.te-legend-chip:active { opacity: 0.7; }
.te-catalog-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  transition: border-color 0.2s, background 0.2s;
}
.te-catalog-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,107,0,0.2); }
.te-catalog-item:active { border-color: rgba(255,107,0,0.4); }
.transforms-scan-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg,#FF6B00,#FF9A3C);
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
}
.transforms-scan-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.te-defensive-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}
.te-defensive-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.13); }
.te-defensive-item.hit { animation: tePulse 0.4s ease; }
@keyframes tePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.01); }
  100% { transform: scale(1); }
}
.te-def-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transforms-log {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  max-height: 150px;
  overflow-y: auto;
}
.transforms-log-title {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,107,0,0.6);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.transforms-kronos-box {
  background: rgba(255,107,0,0.07);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 12px;
  padding: 14px;
  animation: teFadeIn 0.3s ease;
}

/* ═══════════════════════════════════════
   LUCIDE ICONS — estilos globais
═══════════════════════════════════════ */
.lucide {
  display: inline;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══════════════════════════════════════════
   FITFLOW-AI NEW LAYOUT — Login, Onboarding, Pricing
   Design: Dark #090909 · Orange #FF6B00 · Barlow
══════════════════════════════════════════ */

/* ── LOGIN SCREEN ── */
#loginScreen {
  display: none;
  position: fixed;
  inset: 0;
  background: #090909 url('splash.png') center 28% / min(78vw,360px) auto no-repeat;
  z-index: 99998;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  font-family: 'Barlow', 'DM Sans', sans-serif;
  padding: 0 16px 48px;
  overflow: hidden;
}
#loginScreen.show { display: flex; }
#loginBg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,107,0,0.12) 0%, transparent 55%);
}
#loginBgGrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,107,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}
#loginContent {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
}
#loginLogoText {
  font-family: 'Rajdhani', 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 52px;
  letter-spacing: 8px;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
  margin-top: 2px;
}
#loginLogoText span { color: #fff; }
#loginLogoSub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
  font-style: italic;
  letter-spacing: 0.4px;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
}
#btnGoogle {
  width: 100%;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(255,255,255,0.12);
  font-family: 'Barlow', 'DM Sans', sans-serif;
}
#btnGoogle:hover { background: rgba(255,255,255,1); }
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.login-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.login-divider span {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
#btnShowEmail {
  width: 100%;
  padding: 13px 32px;
  background: #FF6B00;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Barlow', 'DM Sans', sans-serif;
  transition: all 0.2s;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(255,107,0,0.3);
  letter-spacing: 0.3px;
  display: block;
}
#btnShowEmail:hover { background: #e55f00; }
#loginRegisterLink {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  margin-bottom: 16px;
}
#loginRegisterLink span { color: #FF6B00; font-weight: 700; }
#loginLgpd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ── EMAIL LOGIN SCREEN ── */
#emailLoginScreen {
  background:
    linear-gradient(to bottom, rgba(9,9,9,0.1) 20%, rgba(9,9,9,0.82) 56%, #090909 74%),
    #090909;
  justify-content: flex-end;
}
.email-login-logo {
  width: min(44vw, 164px);
  max-width: 164px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(255,107,0,0.22));
}
.ff-input {
  background: rgba(255,255,255,0.07) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  border-radius: 12px !important;
}
.ff-input:focus {
  border-color: var(--accent) !important;
}

/* ── ONBOARDING — FitFlow carousel ── */
#onboarding {
  position: fixed;
  inset: 0;
  height: 100dvh;
  min-height: 100svh;
  background: #090909;
  z-index: 8000;
  display: none;
  flex-direction: column;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-x pan-y;
}
@supports (-webkit-touch-callout: none) {
  #onboarding {
    min-height: -webkit-fill-available;
  }
}
#ff-ob-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.5s;
}
#ff-ob-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,107,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
#ff-ob-header {
  position: relative;
  z-index: 10;
  padding: max(6px, env(safe-area-inset-top, 0px)) 16px 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#ff-ob-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 1px;
  color: #fff;
}
#ff-ob-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6B00, #FF9A3C);
  display: flex;
  align-items: center;
  justify-content: center;
}
#ff-ob-skip {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-family: 'Barlow', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}
#ff-ob-dots {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}
.ff-dot {
  height: 6px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  width: 6px;
  transition: all 0.3s;
  padding: 0;
}
.ff-dot-active {
  background: #FF6B00;
  width: 24px;
}
#ff-ob-slides {
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 10;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ff-slide {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 20px 8px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  animation: ffSlideIn 0.26s ease;
}
.ff-slide::-webkit-scrollbar { display: none; }
@media (max-height: 700px) {
  .ff-slide { justify-content: flex-start; padding-top: 6px; }
}
.ff-slide-active {
  display: flex;
}
@keyframes ffSlideIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.ff-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,0,0.07);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  align-self: flex-start;
  font-family: 'DM Sans', 'Barlow', sans-serif;
}
.ff-slide-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ff-slide-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
  white-space: pre-line;
  color: #fff;
  font-family: 'DM Sans', 'Barlow', sans-serif;
}
.ff-slide-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.52);
  line-height: 1.6;
  margin: 0 0 12px;
  font-family: 'DM Sans', 'Barlow', sans-serif;
  font-weight: 400;
}
.ff-slide-highlight {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 14px;
  align-self: flex-start;
  font-family: 'DM Sans', 'Barlow', sans-serif;
}
/* Visuals */
.ff-visual-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 72px;
  padding: 0 8px;
  position: relative;
  margin-top: 6px;
}
.ff-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
}
.ff-chart-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: rgba(20,10,0,0.75);
  border: 1px solid rgba(255,107,0,0.5);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #FF6B00;
  font-family: 'Barlow', sans-serif;
  z-index: 2;
}
.ff-visual-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,0,0.22);
  background: rgba(255,107,0,0.06);
  box-shadow: 0 0 30px rgba(255,107,0,0.1);
  margin-top: 6px;
}
.ff-timer-num {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  font-family: 'DM Sans', monospace;
  line-height: 1;
  margin-top: 4px;
}
.ff-timer-label {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  margin-top: 3px;
}
.ff-visual-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.ff-eco-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid transparent;
  justify-content: center;
}
.ff-eco-icon span {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
  margin-top: 28px;
  position: absolute;
  font-family: 'Barlow', sans-serif;
}
.ff-visual-icons .ff-eco-icon {
  position: relative;
}
.ff-visual-chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.ff-chat-msg {
  max-width: 82%;
  border-radius: 14px;
  padding: 8px 11px;
  font-size: 11px;
  color: #fff;
  line-height: 1.55;
  font-family: 'DM Sans', 'Barlow', sans-serif;
  font-weight: 400;
}
.ff-chat-user {
  align-self: flex-end;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px 14px 4px 14px;
}
.ff-chat-ai {
  align-self: flex-start;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.3);
  border-radius: 14px 14px 14px 4px;
}
.ff-chat-ai-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #FF6B00;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-family: 'Barlow', sans-serif;
}
#ff-ob-footer {
  position: relative;
  z-index: 10;
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, padding 0.24s ease;
}
#ff-ob-footer.has-cta {
  padding: 12px 28px max(24px, calc(12px + env(safe-area-inset-bottom)));
  max-height: 120px;
}
/* ── Krona Setup ── */
.ks-step { position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:16px 28px 20px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;opacity:0;pointer-events:none;transform:translateX(48px);transition:opacity .35s ease,transform .35s cubic-bezier(.4,0,.2,1); }
.ks-step-active { opacity:1;pointer-events:all;transform:translateX(0); }
.ks-step-exit { opacity:0;transform:translateX(-48px); }
.ks-step-inner { width:100%;max-width:340px; }
.ks-step-inner { padding-bottom:16px; }
.ks-icon-wrap { width:60px;height:60px;border-radius:18px;border:1px solid;display:flex;align-items:center;justify-content:center;margin-bottom:22px; }
.ks-title { font-family:var(--display);font-size:2rem;color:#fff;line-height:1.15;letter-spacing:.02em;margin:0 0 10px; }
.ks-sub { font-size:0.82rem;color:rgba(255,255,255,0.38);line-height:1.65;margin:0 0 24px; }
.ks-field-label { font-size:0.58rem;font-weight:700;letter-spacing:.12em;color:rgba(255,255,255,0.3);margin-bottom:6px; }
.ks-input { width:100%;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:14px 15px;color:#fff;font-family:var(--font);font-size:1rem;font-weight:500;outline:none;box-sizing:border-box;transition:border-color .2s,background .2s; }
.ks-input:focus { border-color:rgba(255,107,0,0.5);background:rgba(255,107,0,0.04); }
.ks-goal-chip { display:flex;align-items:center;gap:14px;width:100%;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:13px;padding:14px 18px;color:rgba(255,255,255,0.55);font-family:var(--font);font-size:0.88rem;font-weight:600;cursor:pointer;transition:all .18s;text-align:left; }
.ks-goal-chip.selected { background:rgba(255,107,0,0.12);border-color:rgba(255,107,0,0.4);color:#fff; }
.ks-goal-chip.selected svg { stroke:#FF6B00; }
#ksFooter { position:relative;z-index:4; }
.ks-footer { padding:12px 20px max(24px, calc(12px + env(safe-area-inset-bottom)));background:linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.82) 18%, #0A0A0A 100%);backdrop-filter:blur(6px); }
.ks-footer-hint { font-size:.66rem;letter-spacing:.04em;color:rgba(255,255,255,0.34);text-align:center;margin-bottom:10px; }
.ks-cta { width:100%;border:none;border-radius:16px;padding:17px 18px;color:#fff;font-family:var(--font);font-size:1rem;font-weight:800;cursor:pointer;background:linear-gradient(135deg,#FF6B00 0%,#FF7E1F 100%);letter-spacing:.02em;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .14s ease,opacity .2s,filter .2s;box-shadow:0 14px 34px rgba(255,107,0,.28);touch-action:manipulation;-webkit-tap-highlight-color:transparent; }
.ks-cta:active:not(:disabled) { transform:translateY(1px) scale(.997); }
.ks-cta:disabled { cursor:not-allowed;box-shadow:none;filter:saturate(.75); }
/* Nav grid no tour */
.ff-nav-grid { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px;width:100%; }
.ff-nav-item { display:flex;align-items:center;gap:10px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:13px 14px;font-size:0.82rem;font-weight:600;color:rgba(255,255,255,0.7); }
.ff-nav-item:last-child { grid-column:span 1; }
/* ───────────────── */
#ff-ob-cta {
  width: 100%;
  margin-top: 20px;
  padding: 18px;
  background: linear-gradient(135deg, #FF6B00, #FF9A3C);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(255,107,0,0.3);
  font-family: 'Barlow', 'DM Sans', sans-serif;
}

/* ── PRICING SCREEN ── */
#pricingScreen {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 5500;
  display: flex;
  flex-direction: column;
  font-family: 'Barlow', 'DM Sans', sans-serif;
  overflow: hidden;
}
.pr-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 70% -10%, rgba(255,107,0,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(139,92,246,0.08) 0%, transparent 45%);
  z-index: 0;
}
.pr-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.pr-logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pr-logo-txt {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
}
.pr-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pr-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pr-scroll {
  position: relative;
  z-index: 1;
  overflow-y: auto;
  flex: 1;
  padding: 24px 18px 48px;
  -webkit-overflow-scrolling: touch;
}
.pr-headline {
  text-align: center;
  margin-bottom: 18px;
}
.pr-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.22);
  border-radius: 30px;
  padding: 4px 13px;
  font-size: 9px;
  font-weight: 800;
  color: #FF6B00;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.pr-title {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 35px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0;
}
.pr-subtitle {
  margin: 11px auto 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,0.72);
}
.pr-offer-banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.22), rgba(124,58,237,0.3));
  border: 1px solid rgba(167,243,208,0.45);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(16,185,129,0.22);
}
.pr-offer-main {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.4px;
}
.pr-offer-sub {
  margin-top: 7px;
  font-size: 12px;
  color: rgba(236,253,245,0.95);
  font-weight: 700;
}
/* Billing toggle */
.pr-billing-toggle {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 20px;
  gap: 2px;
}
.pr-billing-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Barlow', 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pr-billing-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.pr-discount-chip {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
/* Plan cards */
.pr-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.pr-card {
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.pr-card-free {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
}
.pr-card-free:active { transform: scale(0.99); }
.pr-card-pro {
  background: linear-gradient(145deg, rgba(255,107,0,0.035) 0%, rgba(255,107,0,0.012) 100%);
  border: 1px solid rgba(255,107,0,0.18);
  box-shadow: 0 0 0 1px rgba(255,107,0,0.04) inset, 0 4px 14px rgba(255,107,0,0.05);
}
.pr-card-pro:active { transform: scale(0.99); }
.pr-card-ultra {
  background: linear-gradient(145deg, rgba(139,92,246,0.22) 0%, rgba(124,58,237,0.1) 100%);
  border: 1.5px solid rgba(168,85,247,0.68);
  box-shadow: 0 0 0 1px rgba(216,180,254,0.2) inset, 0 18px 44px rgba(124,58,237,0.34);
}
.pr-card-ultra-main {
  padding: 24px;
  margin-bottom: 16px;
}
.pr-card-ultra:active { transform: scale(0.99); }
/* Popular / TUDO badges */
.pr-popular-badge, .pr-ultra-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
  padding: 3px 9px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pr-popular-badge {
  background: rgba(255,107,0,0.18);
  border: 1px solid rgba(255,107,0,0.3);
  color: #FF6B00;
}
.pr-ultra-badge {
  background: rgba(139,92,246,0.28);
  border: 1px solid rgba(168,85,247,0.45);
  color: #d8b4fe;
}
/* Card inner layout */
.pr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pr-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 5px 12px;
  border-radius: 10px;
}
.pr-pill-free {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
}
.pr-pill-pro {
  background: rgba(255,107,0,0.12);
  color: #FF6B00;
}
.pr-pill-ultra {
  background: rgba(139,92,246,0.12);
  color: #A855F7;
}
.pr-price-block {
  text-align: right;
}
.pr-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 1px;
}
.pr-price-main {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.pr-price-cents {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}
.pr-price-sub {
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
}
.pr-card-desc {
  font-size: 12px;
  color: rgba(233,213,255,0.8);
  margin-bottom: 14px;
  line-height: 1.4;
  font-weight: 700;
}
.pr-feats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.pr-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  line-height: 1.35;
}
.pr-feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pr-feat-locked {
  opacity: 0.3;
  font-size: 12px;
}
.pr-feat-locked span, .pr-feat-locked svg { opacity: 0.5; }
/* CTA Buttons */
.pr-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Barlow', 'DM Sans', sans-serif;
}
.pr-cta:active { transform: scale(0.97); }
.pr-cta-free {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}
.pr-cta-pro {
  background: linear-gradient(135deg, #FF6B00, #FF9A3C);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,107,0,0.35);
}
.pr-cta-pro:hover { box-shadow: 0 8px 28px rgba(255,107,0,0.5); }
.pr-cta-ultra {
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(139,92,246,0.3);
}
.pr-cta-ultra:hover { box-shadow: 0 8px 28px rgba(139,92,246,0.45); }
.pr-cta-sticky {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  font-size: 14px;
  padding: 16px 12px;
  margin-bottom: 6px;
  box-shadow: 0 14px 34px rgba(124,58,237,0.5);
}
.pr-cta-subtext {
  text-align: center;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  margin-bottom: 18px;
}
.pr-anchor-price {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  color: #f5f3ff;
  font-size: 13px;
  font-weight: 800;
}
.pr-compare {
  margin-bottom: 20px;
}
.pr-compare-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.pr-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pr-compare-col {
  border-radius: 14px;
  padding: 12px;
}
.pr-compare-muted {
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  opacity: 0.58;
}
.pr-compare-plan {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 19px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 800;
  color: rgba(255,255,255,0.64);
}
.pr-compare-item {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 5px;
  line-height: 1.35;
}
.pr-compare-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
}
.pr-compare-price small {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
}
.pr-compare-note {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.58);
  line-height: 1.4;
}
/* Trust bar */
.pr-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-top: 4px;
}
.pr-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pr-trust-sep {
  color: rgba(255,255,255,0.12);
}
.pr-domain {
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.1);
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   FITFLOW — Transform Engine visual overrides
══════════════════════════════════════════ */
.te-ff-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,107,0,0.06) 0%, transparent 50%),
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 0;
}
#transformsScreen .transforms-header,
#transformsScreen .transforms-content {
  position: relative;
  z-index: 1;
}
.te-ff-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FF6B00, #FF9A3C);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.transforms-header-title {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif !important;
  font-weight: 900 !important;
  font-size: 1rem !important;
  letter-spacing: 1px !important;
}
.transforms-kernel-badge {
  font-family: 'Barlow', 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.transforms-graph-box {
  height: 380px;
}


/* KRONOS chat skin — aplica também no modal compacto */
#aiModal { background: #000 !important; }
#aiModal .ai-topbar { border-bottom: 1px solid rgba(255,255,255,0.08); background: #000; }
#aiMessages { background: #000; }
#aiMessages .ai-msg { gap: 8px; align-items: flex-end; }
#aiMessages .ai-msg.assistant { justify-content: flex-start; }
#aiMessages .ai-msg.user { justify-content: flex-end; }
#aiMessages .ai-msg .ai-avatar-inner { max-width: 84%; }
#aiMessages .ai-msg.user .ai-avatar-inner { margin-left: auto; }
#aiMessages .ai-msg.user .ai-bubble { background: #A56700; color: #fff; border: 1px solid rgba(165,103,0,.82); border-radius: 18px 8px 18px 18px; padding: 12px 16px; font-size: 16px; line-height: 1.45; }
#aiMessages .ai-msg.assistant .ai-bubble { background: #1C1C1E; color: #fff; border: 1px solid rgba(255,255,255,0.04); border-radius: 8px 18px 18px 18px; padding: 12px 16px; font-size: 16px; line-height: 1.45; width: auto; }
#aiMessages .ai-msg-time { color: #8E8E93; font-size: 0.65rem; margin-top: 5px; }
#aiModal .ai-input-wrap { background: #1C1C1E !important; border: 1px solid rgba(255,255,255,0.08) !important; border-radius: 22px !important; }
#aiModal .ai-input-wrap textarea { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif !important; font-size: 16px !important; }
#aiModal #aiSendBtn { width: 32px; height: 32px; border-radius: 50%; background: #A56700 !important; }
