:root {
  --ink: #f8fafc;
  --muted: #96a8ad;
  --bg: #02080b;
  --panel: #07161c;
  --panel-2: #0d2630;
  --line: rgba(255, 255, 255, 0.1);
  --green: #18e3d3;
  --cyan-2: #00a9d6;
  --steel: #354b55;
  --white: #ffffff;
  --dark: #001113;
  --danger: #ff5a5f;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #10181d; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.phone { max-width: 430px; min-height: 100vh; margin: 0 auto; background: var(--bg); position: relative; overflow-x: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.phone.theme-amarelo {
  --bg: #100d02;
  --panel: #1f1a08;
  --panel-2: #332a0c;
  --green: #facc15;
  --cyan-2: #fb923c;
  --muted: #d0c5a1;
  --dark: #161004;
}
.phone.theme-rosa {
  --bg: #170813;
  --panel: #28101f;
  --panel-2: #3a1730;
  --green: #ff72b6;
  --cyan-2: #c084fc;
  --muted: #dfb8ce;
  --dark: #210817;
}
.phone.theme-azul {
  --bg: #03101c;
  --panel: #071d2f;
  --panel-2: #0d2c45;
  --green: #38bdf8;
  --cyan-2: #2563eb;
  --muted: #a7bfd2;
  --dark: #03101c;
}
.phone.theme-verde {
  --bg: #03140d;
  --panel: #092116;
  --panel-2: #113724;
  --green: #22c55e;
  --cyan-2: #14b8a6;
  --muted: #a9cdb8;
  --dark: #03140d;
}
.phone.theme-cinza {
  --bg: #080b0f;
  --panel: #141922;
  --panel-2: #222a36;
  --green: #94a3b8;
  --cyan-2: #64748b;
  --muted: #b6c0cf;
  --dark: #080b0f;
}
.phone.theme-vermelho {
  --bg: #150706;
  --panel: #26100f;
  --panel-2: #3b1715;
  --green: #ef4444;
  --cyan-2: #fb7185;
  --muted: #d7aaa7;
  --dark: #1b0807;
}
.phone.theme-amarelo,
.phone.theme-rosa,
.phone.theme-azul,
.phone.theme-verde,
.phone.theme-cinza,
.phone.theme-vermelho {
  background:
    radial-gradient(circle at 12% 4%, color-mix(in srgb, var(--green) 15%, transparent), transparent 30%),
    radial-gradient(circle at 92% 16%, color-mix(in srgb, var(--cyan-2) 13%, transparent), transparent 30%),
    var(--bg);
}
.phone.theme-amarelo .app-header,
.phone.theme-rosa .app-header,
.phone.theme-azul .app-header,
.phone.theme-verde .app-header,
.phone.theme-cinza .app-header,
.phone.theme-vermelho .app-header {
  background: linear-gradient(180deg, color-mix(in srgb, var(--green) 30%, var(--bg)), color-mix(in srgb, var(--bg) 90%, transparent));
  border-bottom-color: color-mix(in srgb, var(--green) 24%, transparent);
}
.screen { min-height: 100vh; padding: 22px 20px 96px; }
.screen.media-first { padding: 0 0 96px; background: var(--white); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.app-header { display: grid; place-items: center; margin: -22px -20px 24px; padding: 26px 20px 24px; background: linear-gradient(180deg, rgba(8, 52, 64, .96), rgba(2, 8, 11, .2)); border-bottom: 1px solid rgba(24,227,211,.18); }
.ngym-brand { display: grid; place-items: center; gap: 4px; }
.ngym-brand h1 { margin: 0; font-size: 34px; line-height: 1; letter-spacing: 0; }
.ngym-brand p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.day-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; overflow-x: auto; }
.day-tabs button { min-width: 80px; min-height: 56px; border-radius: 28px; background: transparent; color: var(--ink); font-weight: 950; text-transform: uppercase; }
.day-tabs .active { background: #0d3540; }
.plan-summary { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-transform: uppercase; }
.row-actions { display: flex; gap: 10px; }
.add-plan-btn { background: linear-gradient(135deg, rgba(24,227,211,.25), rgba(0,169,214,.24)); color: var(--green); border: 1px solid rgba(24,227,211,.28); font-size: 28px; }
.round-action { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: var(--ink); font-size: 20px; }
.exercise-plan-list { display: grid; gap: 0; padding-bottom: 110px; }
.plan-exercise-row { width: 100%; display: grid; grid-template-columns: 112px 1fr 24px; gap: 16px; align-items: center; padding: 16px 0; background: transparent; color: var(--ink); text-align: left; border-bottom: 1px solid rgba(255,255,255,.08); }
.plan-thumb { width: 86px; height: 86px; border-radius: 18px; background: #fff; position: relative; display: grid; place-items: center; overflow: visible; }
.plan-thumb video { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.plan-thumb span { position: absolute; right: -12px; bottom: -8px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #07262d; color: var(--green); border: 1px solid rgba(24,227,211,.22); font-weight: 950; }
.plan-exercise-copy em { display: inline-flex; min-height: 28px; align-items: center; border-radius: 999px; padding: 0 12px; background: rgba(221, 214, 82, .12); color: #d7d069; font-style: normal; font-size: 11px; font-weight: 950; text-transform: uppercase; margin-bottom: 8px; }
.plan-exercise-copy h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.15; }
.plan-exercise-copy p { margin: 0; color: var(--muted); font-size: 15px; }
.floating-session { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); width: min(390px, calc(100vw - 28px)); min-height: 70px; border-radius: 28px; padding: 10px 12px; background: rgba(13,38,48,.96); border: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 10px; z-index: 9; }
.floating-session button { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--ink); font-size: 24px; }
.floating-session span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #22ff00; margin-right: 6px; box-shadow: 0 0 12px #22ff00; }
.floating-session strong { font-weight: 850; }
.floating-session p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.floating-session .danger-mini { color: #ff5a7a; }
.brand { display: flex; align-items: center; gap: 10px; }
.mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #000 url("./assets/brand/acg-logo-mark-hoje.png") center / 76% auto no-repeat; color: transparent; overflow: hidden; font-weight: 950; box-shadow: inset 0 0 0 1px rgba(24,227,211,.2); }
.title { margin: 0; font-size: 28px; line-height: 1.05; letter-spacing: 0; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.avatar { min-width: 52px; height: 52px; border-radius: 18px; background: var(--panel); display: grid; place-items: center; color: var(--green); font-weight: 900; }
.hero-card { background: linear-gradient(160deg, #06323b, #02080b 70%); border: 1px solid rgba(24,227,211,.18); border-radius: 28px; padding: 20px; margin-bottom: 18px; }
.hero-card h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.1; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-ring { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(var(--green) var(--pct), rgba(255,255,255,.1) 0); display: grid; place-items: center; }
.progress-ring span { width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 900; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.profile-card { text-align: center; padding: 22px 16px 18px; }
.profile-badge { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--cyan-2)); color: var(--dark); font-size: 22px; font-weight: 950; }
.profile-card h3 { margin: 0 0 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.profile-stats span { min-height: 42px; border-radius: 16px; background: rgba(255,255,255,.06); display: grid; place-items: center; color: var(--ink); font-size: 12px; font-weight: 900; }
.plan { min-height: 146px; display: flex; flex-direction: column; justify-content: space-between; }
.letter { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: rgba(24,227,211,.13); color: var(--green); font-size: 22px; font-weight: 950; }
.card h3 { margin: 12px 0 5px; font-size: 19px; line-height: 1.1; }
.muted { color: var(--muted); }
.mini { font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: 0; color: var(--muted); }
.btn { min-height: 44px; border-radius: 999px; padding: 0 18px; background: var(--panel-2); color: var(--ink); font-weight: 900; white-space: nowrap; }
.btn.primary { background: linear-gradient(135deg, var(--green), var(--cyan-2)); color: var(--dark); }
.btn.light { background: var(--white); color: var(--dark); }
.btn.danger { background: rgba(255,90,95,.15); color: #ffb4b6; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .4; }
.icon-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 30px; }
.bottom-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(396px, calc(100vw - 24px)); min-height: 74px; border-radius: 24px; background: rgba(5, 18, 24, .96); border: 1px solid rgba(24,227,211,.16); display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 8px; z-index: 10; backdrop-filter: blur(18px); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.bottom-nav button { border-radius: 18px; background: transparent; color: var(--muted); display: grid; gap: 3px; place-items: center; font-size: 10px; line-height: 1; font-weight: 850; padding: 5px 2px; }
.bottom-nav .active { background: linear-gradient(135deg, rgba(24,227,211,.2), rgba(0,169,214,.17)); color: #f8ffff; }
.bottom-nav b { font-size: 18px; line-height: 1; }
.toolbar { display: grid; gap: 10px; margin-bottom: 14px; }
.search, input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; background: #062529; color: var(--ink); outline: none; }
textarea { padding: 12px 14px; min-height: 86px; resize: vertical; }
label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.field { margin-bottom: 12px; }
.color-field { margin: 4px 0 18px; }
.theme-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: center; }
.theme-dot { width: 100%; aspect-ratio: 1; min-height: 40px; border-radius: 18px; display: grid; place-items: center; margin: 0; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.theme-dot input { position: absolute; opacity: 0; pointer-events: none; }
.theme-dot span { width: 28px; height: 28px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 8px 18px rgba(0,0,0,.24); }
.theme-dot.active { border-color: var(--green); background: color-mix(in srgb, var(--green) 13%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 24%, transparent); }
.theme-dot.active span { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 0 0 5px rgba(255,255,255,.1), 0 10px 22px color-mix(in srgb, var(--dot) 38%, transparent); }
.exercise-list { display: grid; gap: 12px; }
.category-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px; margin: -2px 0 8px; }
.category-chips button { min-height: 36px; border-radius: 999px; padding: 0 13px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); font-weight: 850; white-space: nowrap; }
.category-chips button.active { color: var(--dark); background: var(--green); border-color: transparent; }
.exercise-row { display: grid; grid-template-columns: 92px 1fr; gap: 13px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 10px; text-align: left; color: var(--ink); }
.exercise-row.compact { grid-template-columns: 72px 1fr; border-radius: 18px; padding: 8px; }
.exercise-row.compact .thumb { height: 72px; border-radius: 15px; }
.exercise-row.compact h3 { margin: 4px 0; font-size: 16px; }
.thumb { height: 92px; border-radius: 18px; background: var(--white); overflow: hidden; display: grid; place-items: center; position: relative; }
.thumb img, .thumb video, .exercise-media img, .exercise-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.motion img:nth-child(2) { position: absolute; inset: 0; animation: frameSwap 1.15s steps(1, end) infinite; }
@keyframes frameSwap { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { min-height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(255,255,255,.08); color: #d8e6e4; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.chip.green { background: rgba(24,227,211,.16); color: var(--green); }
.exercise-media { height: 54vh; min-height: 360px; background: var(--white); position: relative; display: grid; place-items: center; overflow: hidden; }
.media-actions { position: absolute; inset: 34px 24px auto; display: flex; justify-content: space-between; }
.detail-panel { margin-top: -26px; border-radius: 32px 32px 0 0; background: var(--bg); padding: 28px 22px 112px; position: relative; }
.detail-panel h2 { margin: 14px 0 22px; font-size: 36px; line-height: 1.08; letter-spacing: 0; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 62px; padding: 6px; background: #082b2e; border-radius: 999px; margin-bottom: 24px; }
.tabs button { border-radius: 999px; background: transparent; color: var(--ink); font-weight: 950; text-transform: uppercase; font-size: 12px; }
.tabs .active { background: var(--white); color: var(--dark); }
.muscle { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center; margin: 18px 0 28px; }
.muscle-icon { width: 84px; height: 84px; border-radius: 22px; background: #fff; display: grid; place-items: center; color: var(--green); font-size: 42px; }
.list { display: grid; gap: 10px; }
.list-item { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.workout-card { background: var(--panel); border-radius: 24px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); }
.workout-video { height: 210px; border-radius: 20px; background: #fff; overflow: hidden; margin-bottom: 14px; display: grid; place-items: center; }
.workout-video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.set-grid { display: grid; grid-template-columns: 42px 1fr 1fr 42px; gap: 8px; align-items: center; margin-top: 10px; }
.set-grid input { min-height: 42px; border-radius: 13px; }
.check { height: 42px; border-radius: 13px; background: #113d40; color: var(--muted); font-weight: 900; }
.check.done { background: var(--green); color: var(--dark); }
.fab-area { position: sticky; bottom: 88px; padding-top: 12px; }
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(0, 10, 11, .78); display: grid; align-items: end; }
.sheet { max-width: 430px; width: 100%; max-height: 92vh; overflow: auto; margin: 0 auto; border-radius: 30px 30px 0 0; background: var(--bg); padding: 22px 20px 110px; }
.sheet-handle { width: 72px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.35); margin: -8px auto 28px; }
.sheet-head { align-items: flex-start; }
.sheet-head h2 { margin: 0; max-width: 250px; line-height: 1.05; }
.entry-head { display: grid; grid-template-columns: 120px 1fr; gap: 22px; align-items: center; margin-bottom: 28px; }
.entry-head h2 { margin: 0; font-size: 24px; line-height: 1.1; }
.entry-thumb { width: 120px; height: 120px; border-radius: 24px; background: #fff; overflow: hidden; padding: 0; }
.entry-thumb video { width: 100%; height: 100%; object-fit: contain; display: block; }
.entry-actions { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 28px; padding-bottom: 2px; }
.entry-actions .btn { min-width: max-content; background: rgba(255,255,255,.08); }
.set-head, .sheet-set-row { display: grid; grid-template-columns: .75fr 1.2fr 1.35fr; gap: 10px; align-items: center; }
.set-head { margin: 24px 0 10px; color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 950; padding: 0 8px; }
.sheet-set-row { margin-bottom: 10px; }
.sheet-set-row input { text-align: center; border-radius: 24px; min-height: 56px; background: rgba(255,255,255,.07); }
.sheet-set-row input[readonly] { color: #fff; font-weight: 900; }
.add-set { display: flex; align-items: center; gap: 16px; margin: 12px 0 34px; background: transparent; color: var(--ink); text-transform: uppercase; font-weight: 950; }
.add-set::first-letter { font-size: 30px; }
.big-start { min-height: 66px; font-size: 16px; text-transform: uppercase; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); width: min(360px, calc(100vw - 40px)); background: var(--white); color: var(--dark); padding: 14px 16px; border-radius: 18px; z-index: 30; font-weight: 850; }
.onboarding { min-height: 100vh; display: grid; align-content: center; gap: 24px; padding: 28px 22px; }
.onboarding .mark { width: 74px; height: 74px; border-radius: 24px; font-size: 24px; }
.onboarding h1 { margin: 0; font-size: 52px; letter-spacing: 0; line-height: .95; }
.onboarding p { margin: 10px 0 0; color: var(--muted); }
.auth-screen { align-content: center; gap: 20px; background:
  radial-gradient(circle at 50% 6%, color-mix(in srgb, var(--green) 16%, transparent), transparent 28%),
  linear-gradient(180deg, color-mix(in srgb, var(--panel-2) 42%, transparent), transparent 34%);
}
.auth-hero { text-align: center; display: grid; justify-items: center; gap: 8px; }
.auth-logo { width: 138px; height: 138px; object-fit: contain; border-radius: 34px; filter: drop-shadow(0 22px 38px rgba(0,0,0,.42)); }
.auth-hero h1 { font-size: 48px; margin-top: 2px; }
.auth-hero p { max-width: 290px; margin: 0; line-height: 1.35; }
.auth-card { background: color-mix(in srgb, var(--panel) 94%, transparent); border: 1px solid color-mix(in srgb, var(--green) 16%, var(--line)); border-radius: 28px; padding: 18px; box-shadow: 0 22px 50px rgba(0,0,0,.28); }
.auth-card .btn.primary { min-height: 54px; margin-top: 4px; }
.auth-toggle { width: 100%; min-height: 46px; margin-top: 10px; background: transparent; color: var(--green); font-weight: 900; }
.install-banner { position: fixed; left: 50%; bottom: 98px; transform: translateX(-50%); width: min(392px, calc(100vw - 24px)); z-index: 12; display: grid; grid-template-columns: 1fr auto 34px; gap: 10px; align-items: center; padding: 12px; border-radius: 22px; background: color-mix(in srgb, var(--panel-2) 94%, transparent); border: 1px solid color-mix(in srgb, var(--green) 24%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,.36); backdrop-filter: blur(16px); }
.install-banner strong { display: block; font-size: 15px; }
.install-banner p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.25; }
.install-banner .btn { min-height: 40px; padding: 0 14px; }
.install-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--ink); font-size: 22px; line-height: 1; }
@media (min-width: 760px) { body { padding: 20px 0; } .phone { min-height: calc(100vh - 40px); border-radius: 32px; } .screen { min-height: calc(100vh - 40px); } .bottom-nav { bottom: 28px; } }
