*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #0D0D0D; --surface: #1A1A1A; --sel: #222222; --border: #2A2A2A;
  --accent: #39D353;
  --accent-glow: rgba(57,211,83,.28);
  --accent-dim: rgba(57,211,83,.13);
  --accent-light: #7EDFA0;
  --text: #FFFFFF; --t2: #888888; --t3: #3A3A3A;
  --red: #FF5555; --blue: #4B8EFF; --orange: #FF9B3D; --green: #39D353; --yellow: #FACC15;
}
body {
  background: #060606;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(57,211,83,.09) 0%, transparent 70%);
}

/* ─── CONTAINER ─── */
.app-container { width: 100%; max-width: 500px; height: 100dvh; background: var(--bg); position: relative; overflow: hidden; display: flex; flex-direction: column; margin: 0 auto; border-left: 1px solid var(--border); border-right: 1px solid var(--border); box-shadow: 0 0 50px rgba(0,0,0,.8); }
.content { flex: 1; overflow: hidden; position: relative; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.screen.active { opacity: 1; pointer-events: all; }
.screen-pad { padding: 10px 20px 24px; }

/* ─── FAB ─── */
.fab {
  position: absolute; bottom: 20px; right: 16px;
  width: 54px; height: 54px;
  background: var(--accent); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 80;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 4px 20px rgba(168,85,247,.5);
  animation: fabPulse 2.5s ease-in-out infinite;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; stroke: #fff; }
.fab.hidden { display: none; }
@keyframes fabPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow), 0 4px 20px rgba(168,85,247,.5); }
  50%      { box-shadow: 0 0 0 10px rgba(168,85,247,0), 0 4px 20px rgba(168,85,247,.5); }
}

/* ─── BOTTOM NAV ─── */
.bnav { min-height: 82px; background: var(--surface); border-top: 1px solid var(--border); border-radius: 28px 28px 0 0; display: flex; align-items: center; justify-content: space-around; padding: 0 8px calc(18px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; z-index: 50; transition: transform .25s ease, opacity .25s ease; }
.bnav.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
.nitem { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: all .22s cubic-bezier(.34,1.56,.64,1); background: transparent; border: none; color: var(--t2); }
.nitem svg { width: 21px; height: 21px; stroke: var(--t2); transition: stroke .2s; }
.nitem.active { background: var(--accent); box-shadow: 0 0 18px var(--accent-glow); color: #fff; }
.nitem.active svg { stroke: #fff; }
.nlabel { font-family: 'Barlow Condensed'; font-size: 14px; font-weight: 700; letter-spacing: .6px; display: none; }
.nitem.active .nlabel { display: block; }

/* ─── COMMON ─── */
.bebas { font-family: 'Bebas Neue'; letter-spacing: 1.5px; color: var(--text); }
.cap { font-size: 12px; color: var(--t2); letter-spacing: .4px; }
.slabel { font-size: 12px; font-weight: 600; color: var(--t2); letter-spacing: 1.1px; text-transform: uppercase; margin-bottom: 12px; }
.card { background: var(--surface); border-radius: 20px; padding: 18px; }
.divv { width: 1px; background: var(--border); align-self: stretch; margin: 4px 0; }
.pill-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 12px 22px; font-family: 'Barlow Condensed'; font-size: 15px; font-weight: 700; letter-spacing: 1px; cursor: pointer; box-shadow: 0 0 16px var(--accent-glow); transition: transform .15s; }
.cfg-btn { background: var(--border); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; }
.cfg-input { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); padding: 12px 14px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; }
.cfg-input:focus { border-color: var(--accent); }
select.cfg-input { color-scheme: dark; }
select.cfg-input option { background: #1A1A1A; color: #fff; }

/* ─── SELETOR CUSTOMIZADO (provedor/modelo de IA) ─── */
.csel { position: relative; }
.csel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); padding: 12px 14px; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; text-align: left; }
.csel-btn:hover, .csel.open .csel-btn { border-color: var(--accent); }
.csel-btn svg { width: 16px; height: 16px; stroke: var(--t2); flex-shrink: 0; transition: transform .2s; }
.csel.open .csel-btn svg { transform: rotate(180deg); stroke: var(--accent); }
.csel-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #1A1A1A; border: 1px solid var(--border); border-radius: 10px; max-height: 240px; overflow-y: auto; z-index: 200; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.csel.open .csel-list { display: block; }
.csel-opt { padding: 11px 14px; font-size: 14px; color: #fff; cursor: pointer; }
.csel-opt:hover { background: rgba(57,211,83,.12); }
.csel-opt.sel { background: var(--accent-dim); color: var(--accent-light); font-weight: 600; }

.gym-eq-lbl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; user-select: none; transition: background .2s ease; }
.gym-eq-lbl:hover { background: rgba(255,255,255,.05); }
.gym-eq-lbl input { display: none; }
.gym-eq-box { width: 22px; height: 22px; border: 2px solid var(--t3); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all .2s ease; flex-shrink: 0; }
.gym-eq-box svg { width: 14px; height: 14px; color: var(--bg); opacity: 0; transform: scale(0.5); transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); }
.gym-eq-lbl input:checked ~ .gym-eq-box { background: #FF4444; border-color: #FF4444; }
.gym-eq-lbl input:checked ~ .gym-eq-box svg { opacity: 1; transform: scale(1); }
.gym-eq-text { font-size: 14px; color: var(--text); flex: 1; }
.gym-eq-lbl input:checked ~ .gym-eq-text { color: #FF4444; text-decoration: line-through; opacity: 0.8; }

.pill-btn:hover { transform: scale(1.02); }
.pill-btn svg { width: 16px; height: 16px; stroke: #fff; }
.pill-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.ghost-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 11px 20px; font-family: 'Barlow Condensed'; font-size: 14px; font-weight: 600; letter-spacing: .8px; cursor: pointer; }
.icon-btn { width: 42px; height: 42px; background: var(--surface); border-radius: 13px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; stroke: var(--text); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; font-family: 'DM Sans'; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.tag svg { width: 11px; height: 11px; }
.tag-a { background: var(--accent-dim); color: var(--accent-light); border: 1px solid rgba(168,85,247,.3); }
.tag-a svg { stroke: var(--accent-light); }
.tag-d { background: var(--sel); color: var(--t2); border: 1px solid var(--border); }
.tag-d svg { stroke: var(--t2); }
.input-wrap { position: relative; margin-bottom: 14px; }
.input-wrap > svg, .input-wrap > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; }
.input-wrap > i svg { width: 18px; height: 18px; stroke: var(--t2); }
.input-wrap > i.toggle-eye { left: auto; right: 16px; cursor: pointer; }
.inp { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-family: 'DM Sans'; font-size: 15px; font-weight: 500; padding: 15px 16px 15px 46px; outline: none; transition: border-color .2s; }
.inp::placeholder { color: var(--t2); }
.inp:focus { border-color: var(--accent); }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.see-all { font-size: 11px; color: var(--accent); font-weight: 600; letter-spacing: .5px; cursor: pointer; }
/* Hide spin buttons for number inputs */
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ━━━━━━━━━━━━━━━━━━━━ LOGIN ━━━━━━━━━━━━━━━━━━━━ */
#s-login { background: var(--bg); }
.login-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 80% 45% at 50% -5%, rgba(57,211,83,.16) 0%, transparent 70%); pointer-events: none; }
.login-grid { position: absolute; inset: 0; z-index: 0; opacity: .035; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.login-inner { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: 40px 28px 36px; }
.login-wordmark { font-family: 'Bebas Neue'; font-size: 66px; color: var(--text); letter-spacing: 3px; line-height: 1; margin-top: 18px; }
.login-wordmark span { color: var(--accent); }
.login-tag { font-size: 13px; color: var(--t2); letter-spacing: .3px; margin-top: 5px; }
.login-deco { font-family: 'Bebas Neue'; font-size: 140px; color: var(--accent); opacity: .05; position: absolute; right: 10px; top: 10px; line-height: 1; pointer-events: none; letter-spacing: -4px; }
.login-form { margin-top: auto; }
.login-form-title { font-family: 'Barlow Condensed'; font-size: 30px; font-weight: 800; color: var(--text); letter-spacing: .3px; margin-bottom: 20px; }
.login-forgot { font-size: 13px; color: var(--t2); text-align: right; margin-top: -8px; margin-bottom: 20px; cursor: pointer; }
.new-here { margin-top: 14px; background: var(--accent-dim); border: 1px solid rgba(168,85,247,.3); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.new-here-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.new-here-icon svg { width: 18px; height: 18px; stroke: var(--accent); }
.new-here-text { flex: 1; }
.new-here-title { font-family: 'Barlow Condensed'; font-size: 16px; font-weight: 700; color: var(--accent); letter-spacing: .3px; }
.new-here-sub { font-size: 12px; color: var(--t2); margin-top: 1px; }
.new-here svg.chev { width: 18px; height: 18px; stroke: var(--accent); }

/* ━━━━━━━━━━━━━━━━━━━━ ONBOARDING ━━━━━━━━━━━━━━━━━━━━ */
#s-onboarding { display: flex !important; flex-direction: column; padding: 0; }
.ob-header { padding: 16px 20px 14px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ob-avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-dim); border: 1px solid rgba(168,85,247,.35); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.ob-avatar svg { width: 20px; height: 20px; stroke: var(--accent); }
.ob-name { font-family: 'Barlow Condensed'; font-size: 18px; font-weight: 700; color: var(--text); }
.ob-status { font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 5px; }
.ob-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 6px rgba(74,222,128,.6); }
.ob-progress { padding: 12px 20px 0; flex-shrink: 0; }
.ob-prog-bg { height: 3px; background: var(--border); border-radius: 999px; }
.ob-prog-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; box-shadow: 0 0 6px var(--accent-glow); }
.ob-prog-label { font-size: 11px; color: var(--t2); margin-top: 5px; margin-bottom: 2px; }
.ob-chat { flex: 1; overflow-y: auto; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.ob-chat::-webkit-scrollbar { display: none; }
.chat-ai { display: flex; gap: 8px; align-items: flex-end; max-width: 90%; }
.chat-ai-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 2px; color: var(--accent); }
.chat-ai-ico svg { width: 14px; height: 14px; stroke: var(--accent); }
.bubble-ai { background: var(--surface); border-radius: 18px 18px 18px 4px; padding: 12px 15px; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.55; }
.chat-user { display: flex; justify-content: flex-end; }
.bubble-user { background: var(--accent); border-radius: 18px 18px 4px 18px; padding: 12px 15px; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.5; max-width: 75%; }
.ob-options { padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px)); flex-shrink: 0; border-top: 1px solid var(--border); background: var(--bg); }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ob-chip { padding: 9px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .18s; white-space: nowrap; }
.ob-chip:hover { border-color: var(--accent); color: var(--accent-light); }
.ob-chip.sel { background: var(--accent-dim); border-color: var(--accent); color: var(--accent-light); }
.typing-wrap { display: flex; align-items: center; gap: 4px; padding: 12px 15px; }
.typing-wrap span { width: 6px; height: 6px; background: var(--t2); border-radius: 50%; animation: bounce .9s infinite; }
.typing-wrap span:nth-child(2) { animation-delay: .15s; }
.typing-wrap span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }

/* ━━━━━━━━━━━━━━━━━━━━ AI MODAL (FAB) ━━━━━━━━━━━━━━━━━━━━ */
.ai-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(6px); z-index: 120; opacity: 0; pointer-events: none; transition: opacity .25s; }
.ai-overlay.open { opacity: 1; pointer-events: all; }
.ai-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; max-height: 85%; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.ai-overlay.open .ai-sheet { transform: translateY(0); }
.ai-sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 999px; margin: 14px auto 0; }
.ai-sheet-header { padding: 14px 20px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ai-sheet-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; }
.ai-sheet-avatar svg { width: 20px; height: 20px; stroke: var(--accent); color: var(--accent); fill: var(--accent); }
.ai-sheet-title { font-family: 'Barlow Condensed'; font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.ai-sheet-sub { font-size: 14px; color: var(--t2); }
.ai-close { margin-left: auto; }
.ai-quickactions { padding: 14px 16px 0; flex-shrink: 0; }
.ai-qa-label { font-size: 13px; font-weight: 700; color: var(--t2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.ai-qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ai-qa-item { background: var(--sel); border-radius: 14px; padding: 13px 14px; cursor: pointer; border: 1px solid var(--border); transition: border-color .18s; }
.ai-qa-item:hover { border-color: var(--accent); }
.ai-qa-item svg { width: 22px; height: 22px; stroke: var(--accent); margin-bottom: 8px; }
.ai-qa-title { font-family: 'Barlow Condensed'; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.ai-qa-sub { font-size: 13px; color: var(--t2); margin-top: 4px; line-height: 1.3; }
.ai-chat-area { flex: 1; overflow-y: auto; padding: 8px 16px; scrollbar-width: none; }
.ai-chat-area::-webkit-scrollbar { display: none; }
.ai-input-row { padding: 12px 16px 20px; display: flex; gap: 10px; flex-shrink: 0; border-top: 1px solid var(--border); }
.ai-input { flex: 1; background: var(--sel); border: 1px solid var(--border); border-radius: 14px; color: var(--text); font-family: 'DM Sans'; font-size: 14px; padding: 12px 16px; outline: none; transition: border-color .2s; }
.ai-input::placeholder { color: var(--t2); }
.ai-input:focus { border-color: var(--accent); }
.ai-send { width: 44px; height: 44px; background: var(--accent); border-radius: 12px; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 0 12px var(--accent-glow); }
.ai-send svg { width: 18px; height: 18px; stroke: #fff; }

/* ━━━━━━━━━━━━━━━━━━━━ HOME ━━━━━━━━━━━━━━━━━━━━ */
.home-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.greeting-small { font-size: 12px; font-weight: 500; color: var(--t2); letter-spacing: 1px; text-transform: uppercase; }
.greeting-name { font-family: 'Bebas Neue'; font-size: 36px; color: var(--text); letter-spacing: 2px; line-height: .95; }
.header-btns { display: flex; gap: 8px; margin-top: 4px; }
.ai-card { background: linear-gradient(135deg, #1D1426 0%, #160F1E 100%); border: 1px solid rgba(168,85,247,.22); border-radius: 20px; padding: 16px 18px; margin-bottom: 22px; display: flex; align-items: flex-start; gap: 12px; }
.ai-card-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-card-icon svg { width: 19px; height: 19px; stroke: var(--accent-light); }
.ai-card-text { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.5; }
.ai-card-sub { font-size: 12px; color: var(--accent-light); font-weight: 600; margin-top: 4px; }
.streak-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.streak-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; padding-bottom: 2px; }
.day-strip::-webkit-scrollbar { display: none; }
.day-card { flex: 1; min-width: 0; background: var(--surface); border-radius: 16px; padding: 11px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: all .2s cubic-bezier(.34,1.2,.64,1); border: 1px solid transparent; }
.day-card.sel { background: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.day-lbl { font-size: 11px; font-weight: 600; color: var(--t2); letter-spacing: .5px; text-transform: uppercase; }
.day-card.sel .day-lbl { color: rgba(255,255,255,.7); }
.day-num { font-family: 'Barlow Condensed'; font-size: 22px; font-weight: 800; color: var(--text); }
.day-card.sel .day-num { color: #fff; }
.day-zap { font-size: 8px; line-height: 1; color: var(--accent); }
.day-card.sel .day-zap { color: rgba(255,255,255,.8); }
.day-card.today-day:not(.sel) { border-color: rgba(57,211,83,0.4); }
.day-card.today-day:not(.sel) .day-num { color: var(--accent); }
.wk-cards { display: flex; gap: 12px; margin-bottom: 26px; }
.wk-main { flex: 1; } .wk-side { flex: 1; }
.wkcard { background: var(--surface); border-radius: 20px; padding: 18px; height: 100%; display: flex; flex-direction: column; gap: 11px; }
.wk-title { font-family: 'Barlow Condensed'; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.05; text-transform: uppercase; }
.wk-dur { font-size: 13px; color: var(--t2); flex: 1; }
.week-card { background: var(--surface); border-radius: 20px; padding: 20px 16px; display: flex; align-items: center; }
.wmet { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wmet-icon { color: var(--text); }
.wmet-icon svg { width: 22px; height: 22px; }
.wmet-val { font-family: 'Bebas Neue'; font-size: 26px; color: var(--text); letter-spacing: 1px; line-height: 1; }
.wmet-unit { font-size: 11px; color: var(--t2); }

/* ━━━━━━━━━━━━━━━━━━━━ TREINOS ━━━━━━━━━━━━━━━━━━━━ */
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-icon { width: 42px; height: 42px; background: var(--sel); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ex-icon svg { width: 20px; height: 20px; stroke: var(--t2); }
/* ━━━━━━━━━━━━━━━━━━━━ GYM MODAL ━━━━━━━━━━━━━━━━━━━━ */
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-sheet { position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface); border-radius: 28px 28px 0 0; padding: 0 0 32px; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 999px; margin: 14px auto 20px; }
.modal-title { font-family: 'Barlow Condensed'; font-size: 24px; font-weight: 800; color: var(--text); text-transform: uppercase; padding: 0 20px; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--t2); padding: 0 20px 16px; }
.gym-list { display: flex; flex-direction: column; gap: 8px; padding: 0 16px; }
.gym-item { background: var(--sel); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; border: 1.5px solid transparent; transition: border-color .18s; }
.gym-item.sel, .gym-item:hover { border-color: var(--accent); }
.gym-icon { width: 44px; height: 44px; background: var(--surface); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gym-icon svg { width: 22px; height: 22px; stroke: var(--t2); }
.gym-item.sel .gym-icon svg { stroke: var(--accent); }
.gym-name { font-family: 'Barlow Condensed'; font-size: 17px; font-weight: 700; color: var(--text); }
.gym-info { font-size: 12px; color: var(--t2); margin-top: 2px; }
.gym-check { margin-left: auto; flex-shrink: 0; }
.gym-check svg { width: 22px; height: 22px; stroke: var(--accent); display: none; }
.gym-item.sel .gym-check svg { display: block; }
.gym-add { background: transparent; border: 1.5px dashed var(--border); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color .18s; }
.gym-add:hover { border-color: var(--accent); }
.gym-add svg { width: 22px; height: 22px; stroke: var(--accent); }
.gym-add span { font-family: 'Barlow Condensed'; font-size: 16px; font-weight: 700; color: var(--accent); }
.gym-add span { font-family: 'Barlow Condensed'; font-size: 16px; font-weight: 700; color: var(--accent); }
.modal-cta { padding: 16px 16px 0; }

/* ━━━━━━━━━━━━━━━━━━━━ GYM MANAGER ACCORDION ━━━━━━━━━━━━━━━━━━━━ */
.gym-acc { margin-bottom: 12px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.gym-acc.open { border-color: var(--accent); }
.gym-acc-header { display: flex; align-items: center; padding: 14px 16px; cursor: pointer; user-select: none; gap: 12px; }
.gym-acc-body { display: none; padding: 16px; border-top: 1px dashed rgba(255,255,255,.05); background: rgba(0,0,0,0.2); }
.gym-acc.open .gym-acc-body { display: block; }
.gym-acc.open .gym-acc-chev { transform: rotate(180deg); color: var(--accent) !important; }
.gym-acc.open .ex-num { background: var(--accent-dim) !important; }
.gym-acc.open .ex-num svg { stroke: var(--accent) !important; }

/* ━━━━━━━━━━━━━━━━━━━━ STATS ━━━━━━━━━━━━━━━━━━━━ */
.stat-droprow { display: flex; gap: 10px; margin: 16px 0 20px; }
.ddrop { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); }
.ddrop svg { width: 16px; height: 16px; stroke: var(--t2); }
.mets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.met-card { background: var(--surface); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mc-ico svg { width: 22px; height: 22px; }
.mc-v { font-family: 'Bebas Neue'; font-size: 26px; color: var(--text); letter-spacing: 1px; line-height: 1; }
.mc-u { font-size: 12px; color: var(--t2); }
.mc-l { font-size: 11px; color: var(--t2); letter-spacing: .5px; text-transform: uppercase; margin-top: 2px; }
.watch-row { display: flex; align-items: stretch; }
.wmet2 { flex: 1; padding: 0 16px; }
.wmet2:first-child { padding-left: 0; }
.wm2-lrow { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.wm2-lrow svg { width: 14px; height: 14px; stroke: var(--t2); }
.wm2-lbl { font-size: 11px; color: var(--t2); letter-spacing: .5px; text-transform: uppercase; }
.wm2-val { font-family: 'Bebas Neue'; font-size: 24px; color: var(--text); letter-spacing: 1px; line-height: 1; }
.wm2-sub { font-size: 11px; color: var(--green); margin-top: 2px; font-weight: 600; }
.sync-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; display: inline-block; margin-left: 8px; box-shadow: 0 0 6px rgba(74,222,128,.5); }

/* ━━━━━━━━━━━━━━━━━━━━ PERFIL ━━━━━━━━━━━━━━━━━━━━ */
.pf-header { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.avatar { width: 66px; height: 66px; background: var(--sel); border-radius: 20px; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 20px var(--accent-glow); }
.avatar svg { width: 30px; height: 30px; stroke: var(--accent); }
.pf-name { font-family: 'Bebas Neue'; font-size: 36px; color: var(--text); letter-spacing: 2px; line-height: 1; }
.pf-level { font-size: 13px; color: var(--t2); margin: 3px 0 8px; }
.xp-bg { height: 6px; background: var(--sel); border-radius: 999px; overflow: hidden; }
.xp-fill { height: 100%; width: 72%; background: var(--accent); border-radius: 999px; box-shadow: 0 0 8px var(--accent-glow); }
.xp-txt { font-size: 11px; color: var(--t2); margin-top: 4px; }
.pf-stats { display: flex; gap: 8px; margin-bottom: 26px; }
.pfs-card { flex: 1; background: var(--surface); border-radius: 16px; padding: 14px 8px; text-align: center; }
.pfs-val { font-family: 'Bebas Neue'; font-size: 28px; color: var(--accent); letter-spacing: 1px; line-height: 1; }
.pfs-lbl { font-size: 10px; color: var(--t2); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; line-height: 1.3; }
.cfg-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-item { background: var(--surface); border-radius: 16px; padding: 15px 16px; display: flex; align-items: center; gap: 13px; cursor: pointer; transition: background .15s; }
.cfg-item:hover { background: var(--sel); }
.cfg-item.highlight { border: 1px solid rgba(168,85,247,.3); background: var(--accent-dim); }
.cfg-ico svg { width: 20px; height: 20px; stroke: var(--t2); }
.cfg-item.highlight .cfg-ico svg { stroke: var(--accent-light); }
.cfg-lbl { flex: 1; font-size: 15px; font-weight: 500; color: var(--text); }
.cfg-item.highlight .cfg-lbl { color: var(--accent-light); }
.cfg-chev svg { width: 18px; height: 18px; stroke: var(--t2); }
.cfg-item.cfg-disabled { opacity: .55; }
.cfg-badge { display: inline-block; background: rgba(255,155,61,.15); color: var(--orange); border-radius: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; margin-left: 6px; letter-spacing: .4px; vertical-align: middle; }

/* ─── ZEUS ICON ─── */
.zeus-svg { width: 100%; height: 100%; display: block; }
.zeus-svg-fab { width: 26px; height: 26px; display: block; }
/* ─── NOTIFICAÇÕES ─── */
.notif-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); z-index: 130; opacity: 0; pointer-events: none; transition: opacity .2s; }
.notif-overlay.open { opacity: 1; pointer-events: all; }
.notif-sheet { position: absolute; top: 65px; left: 16px; right: 16px; background: var(--surface); border-radius: 20px; border: 1px solid var(--border); padding: 16px; transform: translateY(-6px) scale(.98); transition: transform .2s; }
.notif-overlay.open .notif-sheet { transform: translateY(0) scale(1); }
.notif-head { font-family: 'Barlow Condensed'; font-size: 18px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; padding-bottom: 0; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 6px var(--accent-glow); }
.notif-txt { font-size: 13px; color: var(--text); line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--t2); margin-top: 2px; }
/* ─── EX TIP ─── */
.ex-tip-btn { font-size: 11px; color: var(--accent); font-weight: 600; cursor: pointer; margin-top: 5px; display: inline-flex; align-items: center; gap: 3px; }
.ex-tip-panel { display: none; background: var(--bg); border-radius: 10px; padding: 9px 11px; margin-top: 5px; font-size: 12px; color: var(--t2); line-height: 1.6; border-left: 2px solid var(--accent); }
.ex-tip-panel.open { display: block; }
/* ─── PRE-TREINO ─── */
.pt-overlay { position: absolute; inset: 0; background: var(--bg); z-index: 115; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s cubic-bezier(.32,.72,0,1); }
.pt-overlay.open { transform: translateY(0); }
/* ─── ACCORDION ─── */
.ex-acc { background: var(--surface); border-radius: 16px; margin-bottom: 10px; border: 1px solid var(--border); overflow: hidden; }
.ex-acc-hd { display: flex; align-items: center; gap: 10px; padding: 14px; cursor: pointer; user-select: none; }
.ex-acc-hd.open { border-bottom: 1px solid var(--border); }
.ex-acc-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.ex-acc-info { flex: 1; min-width: 0; }
.ex-acc-name { font-family: 'Barlow Condensed'; font-size: 16px; font-weight: 800; color: var(--text); text-transform: uppercase; }
.ex-acc-mus { font-size: 11px; color: var(--t2); margin-top: 1px; }
.ex-acc-badge { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-dim); padding: 3px 10px; border-radius: 999px; flex-shrink: 0; }
.ex-acc-chev { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--t2); transition: transform .25s; }
.ex-acc-hd.open .ex-acc-chev { transform: rotate(180deg); }
.ex-acc-body { display: none; padding: 10px 12px 14px; }
.ex-acc-body.open { display: block; }
.ex-serie-row { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 11px; background: var(--sel); margin-bottom: 7px; border: 1.5px solid transparent; transition: all .18s; }
.ex-serie-row.done { border-color: var(--accent); background: rgba(57,211,83,.07); }
.ex-serie-chk { width: 25px; height: 25px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .18s; }
.ex-serie-chk.done { background: var(--accent); border-color: var(--accent); }
.ex-serie-chk svg { width: 12px; height: 12px; stroke: transparent; transition: stroke .15s; }
.ex-serie-chk.done svg { stroke: #000; }
.ex-serie-lbl { font-family: 'Barlow Condensed'; font-size: 14px; font-weight: 700; color: var(--text); width: 56px; flex-shrink: 0; }
.ex-serie-inp { width: 42px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 600; padding: 5px 4px; outline: none; text-align: center; transition: border-color .2s; font-family: 'DM Sans'; }
.ex-serie-inp:focus { border-color: var(--accent); }
.ex-serie-unit { font-size: 10px; color: var(--t2); }
/* ─── HISTÓRICO ─── */
.hist-card { background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); }
.hist-date { font-size: 11px; color: var(--t2); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 5px; }
.hist-title { font-family: 'Barlow Condensed'; font-size: 20px; font-weight: 800; color: var(--text); text-transform: uppercase; }
.hist-meta { display: flex; gap: 14px; margin: 8px 0 12px; flex-wrap: wrap; }
.hist-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--t2); }
.hist-meta-item svg { width: 13px; height: 13px; stroke: var(--t2); }
.hist-meta-item b { color: var(--text); font-weight: 600; }
/* ─── RECORDES ─── */
.rec-list { display: flex; flex-direction: column; }
.rec-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rec-item:last-child { border-bottom: none; padding-bottom: 0; }
.rec-rank { width: 30px; height: 30px; border-radius: 9px; background: var(--sel); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue'; font-size: 15px; color: var(--t2); flex-shrink: 0; }
.rec-rank.gold { background: rgba(250,204,21,.15); color: var(--yellow); }
.rec-name { flex: 1; }
.rec-ex { font-family: 'Barlow Condensed'; font-size: 15px; font-weight: 700; color: var(--text); text-transform: uppercase; }
.rec-sub { font-size: 11px; color: var(--t2); margin-top: 1px; }
.rec-val { font-family: 'Bebas Neue'; font-size: 21px; color: var(--accent); letter-spacing: 1px; line-height: 1; text-align: right; }
.rec-unit { font-size: 10px; color: var(--t2); text-align: right; }
/* ── REST TIMER E WORKOUT TIMER ── */
.rest-timer { position: fixed; bottom: 95px; left: 50%; transform: translate(-50%, 200px); opacity: 0; pointer-events: none; width: 90%; max-width: 320px; background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; padding: 10px 16px; display: flex; align-items: center; gap: 12px; z-index: 100; box-shadow: 0 8px 30px rgba(57,211,83,.15); transition: all 0.35s cubic-bezier(.32,.72,0,1); }
.rest-timer.open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.rt-icon { color: var(--accent); display: flex; align-items: center; }
.rt-info { flex: 1; }
.rt-lbl { font-size: 10px; color: var(--t2); text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }
.rt-time { font-family: 'Bebas Neue'; font-size: 22px; color: var(--text); line-height: 1; letter-spacing: 1px; }
.rt-controls { display: flex; gap: 6px; }
.rt-controls button { background: var(--sel); border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--text); padding: 0 12px; height: 32px; border: none; cursor: pointer; }
.rt-controls .rt-close { width: 32px; padding: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,85,85,.1); color: var(--red); }

.workout-timer { display: none; flex-shrink: 0; background: #0f1d12; border-top: 1px solid rgba(57,211,83,.25); padding: 10px 20px; flex-direction: row; align-items: center; justify-content: space-between; }
.workout-timer.active { display: flex; }
.wtb-info { display: flex; align-items: center; gap: 10px; }
.wt-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.wt-time { font-family: 'Barlow Condensed'; font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.wtb-actions { display: flex; align-items: center; gap: 8px; }
.wtb-btn { display: inline-flex; align-items: center; gap: 5px; background: rgba(57,211,83,.12); border: 1px solid rgba(57,211,83,.3); border-radius: 10px; color: var(--accent); padding: 7px 12px; font-family: 'Barlow Condensed'; font-size: 12px; font-weight: 700; letter-spacing: .6px; cursor: pointer; }
.wtb-btn svg { width: 14px; height: 14px; stroke: var(--accent); }
.wtb-save { background: var(--accent); color: #000; border-color: var(--accent); }
.wtb-save svg { stroke: #000; }
.wt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); animation: wtBlink 1s infinite; flex-shrink: 0; }
@keyframes wtBlink { 50% { opacity: 0.4; } }
/* ── EXERCISE ADJUST BUTTON ── */
.ex-adjust-btn { width: 100%; margin-top: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--t2); cursor: pointer; text-align: left; transition: all .18s; }
.ex-adjust-btn:hover { border-color: var(--accent); color: var(--accent-light); }

