/* ATHLON — Design System (mobile-first) */
:root {
  --bg-deep: #060a10;
  --bg-surface: #0d141d;
  --bg-elevated: #131c28;
  --bg-elevated-2: #1a2531;
  --border-subtle: #212e3d;
  --accent: #8aff1a;
  --accent-dim: #69cc12;
  --accent-glow: rgba(138, 255, 26, 0.25);
  --text-primary: #eef3f7;
  --text-secondary: #8fa2b3;
  --text-muted: #5c7186;
  --danger: #ff5c72;
  --warn: #ffb84d;
  --info: #5ac8ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }

.accent-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-md); font-weight: 600; padding: 12px 20px;
  font-size: 15px; transition: transform .15s ease, opacity .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #04150c; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-subtle); color: var(--text-primary); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255,92,114,0.15); color: var(--danger); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ================= LANDING PAGE ================= */
.landing-body { overflow-x: hidden; }
.landing-header {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px);
  background: rgba(6,10,16,0.85); border-bottom: 1px solid var(--border-subtle);
}
.landing-header-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
}
.brand { font-size: 20px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }
.brand.small { font-size: 16px; justify-content: center; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  background: var(--accent); color: #04150c; border-radius: 8px; font-size: 16px; font-weight: 900;
}
.brand-mark-img { width: 30px; height: 30px; object-fit: contain; }

.hero { position: relative; padding: 56px 20px 40px; text-align: center; overflow: hidden; }
.hero-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 400px; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero-title { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 0 0 16px; position: relative; }
.hero-subtitle { font-size: 16px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 28px; line-height: 1.5; position: relative; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; position: relative; margin-bottom: 40px; }
.hero-actions .btn { width: 100%; max-width: 320px; }
.hero-phone { position: relative; display: flex; justify-content: center; }

.phone-mock {
  width: 220px; background: linear-gradient(160deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border-subtle); border-radius: 32px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.phone-mock-hero { width: 240px; }
.phone-notch { width: 60px; height: 6px; background: var(--bg-deep); border-radius: 4px; margin: 0 auto 10px; }
.phone-screen {
  background: var(--bg-deep); border-radius: 22px; padding: 14px; min-height: 260px;
  display: flex; flex-direction: column; gap: 10px;
}
.mini-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.mini-badge { background: var(--bg-elevated-2); padding: 3px 8px; border-radius: 20px; font-size: 10px; color: var(--text-primary); }
.mini-badge.accent { background: var(--accent-glow); color: var(--accent); }
.mini-card { background: var(--bg-elevated); border-radius: var(--radius-md); padding: 12px; border: 1px solid var(--border-subtle); }
.mini-card.small { font-size: 11px; text-align: center; color: var(--text-secondary); padding: 16px 10px; }
.mini-card-title { font-weight: 700; font-size: 13px; }
.mini-card-sub { font-size: 11px; color: var(--text-muted); margin: 4px 0 8px; }
.mini-progress { height: 6px; background: var(--bg-elevated-2); border-radius: 4px; overflow: hidden; }
.mini-progress-bar { height: 100%; background: var(--accent); border-radius: 4px; }
.mini-stats { display: flex; gap: 8px; }
.mini-stat { flex: 1; background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 8px 6px; text-align: center; border: 1px solid var(--border-subtle); }
.mini-stat-num { display: block; font-weight: 800; font-size: 14px; color: var(--accent); }
.mini-stat-label { display: block; font-size: 9px; color: var(--text-muted); margin-top: 2px; }
.set-row-demo { display: flex; justify-content: space-between; font-size: 12px; padding: 8px 10px; background: var(--bg-elevated); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.set-row-demo.done { border-color: var(--accent-dim); color: var(--accent); }
.mini-chat { display: flex; }
.chat-bubble { font-size: 11px; padding: 8px 10px; border-radius: 12px; max-width: 90%; }
.chat-bubble.bot { background: var(--accent-glow); color: var(--accent); }
.mini-chart { height: 70px; border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--accent-glow), transparent), repeating-linear-gradient(90deg, transparent, transparent 18px, var(--border-subtle) 18px, var(--border-subtle) 19px); }
.mini-leader { display: flex; justify-content: space-between; font-size: 12px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--bg-elevated); margin-bottom: 4px; }
.mini-leader.you { border: 1px solid var(--accent); color: var(--accent); }
.mini-integration { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; background: var(--bg-elevated); border-radius: var(--radius-sm); margin-bottom: 6px; }
.dot-on, .dot-off { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.dot-on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.dot-off { background: var(--text-muted); }

.section-title { text-align: center; font-size: 24px; font-weight: 800; padding: 0 20px; margin: 20px 0 32px; }
.features { display: flex; flex-direction: column; gap: 48px; padding: 20px 20px 60px; max-width: 480px; margin: 0 auto; }
.feature-card { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--accent-glow); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 14px;
}
.feature-text h3 { font-size: 20px; margin: 0 0 10px; }
.feature-text p { color: var(--text-secondary); line-height: 1.6; font-size: 14.5px; margin: 0; }
.feature-phone { display: flex; justify-content: center; }

.cta-final { text-align: center; padding: 60px 20px; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); }
.cta-final h2 { font-size: 24px; margin-bottom: 24px; }
.cta-hint { color: var(--text-muted); font-size: 13px; margin-top: 14px; }

.landing-footer { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 13px; }
.footer-copy { margin-top: 14px; font-size: 11px; }

@media (min-width: 700px) {
  .hero-title { font-size: 52px; }
  .feature-card { flex-direction: row; text-align: left; gap: 48px; }
  .feature-card.reverse { flex-direction: row-reverse; }
  .feature-text { flex: 1; }
  .feature-icon { margin: 0 0 14px; }
  .features { max-width: 900px; }
  .hero-actions { flex-direction: row; }
}

/* ================= APP SHELL (SPA) ================= */
.app-body { min-height: 100vh; }
.app-root { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  position: sticky; top: 0; z-index: 40; background: rgba(6,10,16,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle); padding: calc(11px + env(safe-area-inset-top)) 16px 11px;
  display: flex; align-items: center; justify-content: space-between;
}
.app-header h1 { font-size: 16px; margin: 0; font-weight: 700; }
.app-header-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 13.5px;
}

.app-main { flex: 1; padding: 12px 14px calc(92px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }

.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(13,20,29,0.95); backdrop-filter: blur(14px); border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-around; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
}
@media (min-width: 560px) { .bottom-nav { left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; } }
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 10px;
  color: var(--text-muted); font-size: 10px; font-weight: 600; flex: 1; min-width: 0;
}
.nav-item i { font-size: 17px; }
.nav-item.active { color: var(--accent); }
.nav-item-fab { position: relative; top: -14px; }
.nav-item-fab .nav-fab-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #04150c;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 8px 20px var(--accent-glow); margin-bottom: 2px;
}

/* Cards / generic */
.card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 13px; margin-bottom: 11px; }
.card-title { font-weight: 700; font-size: 14.5px; margin: 0 0 3px; }
.card-sub { color: var(--text-secondary); font-size: 12.5px; margin: 0; }
.section-heading { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); margin: 15px 0 8px; font-weight: 700; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; margin: 15px 0 8px; }
.section-heading-row .section-heading { margin: 0; }
.section-collapse-btn {
  background: transparent; border: none; color: var(--text-muted); font-size: 13px; padding: 4px 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer;
}
.section-collapse-btn:active { background: var(--bg-elevated); }
.section-collapse-btn i { transition: transform 0.2s ease; }
.section-collapsible { overflow: hidden; transition: max-height 0.2s ease; }
.section-collapsible.collapsed { max-height: 0 !important; }
.section-collapse-btn.is-collapsed i { transform: rotate(-90deg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px; text-align: center; }
.stat-num { display: block; font-size: 18px; font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }

.tabs { display: flex; gap: 6px; background: var(--bg-surface); border-radius: var(--radius-md); padding: 4px; margin-bottom: 12px; overflow-x: auto; }
.tab-btn { flex: 1; padding: 8px 10px; border-radius: 10px; border: none; background: transparent; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tab-btn.active { background: var(--bg-elevated-2); color: var(--accent); }

.list-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.list-item:last-child { border-bottom: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-elevated-2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }

/* Exercise media (thumbnail + demo GIF) */
.exercise-thumb { border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--bg-elevated-2); }
.exercise-thumb-clickable { cursor: pointer; position: relative; }
.exercise-thumb-wrap { position: relative; flex-shrink: 0; }
.exercise-thumb-play { position: absolute; bottom: -3px; right: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #04150c; display: flex; align-items: center; justify-content: center; font-size: 9px; border: 2px solid var(--bg-surface); }
.media-modal-sheet { max-width: 420px; }
.media-modal-img-wrap { border-radius: var(--radius-md); overflow: hidden; background: var(--bg-elevated); display: flex; justify-content: center; }
.media-modal-img { width: 100%; max-height: 60vh; object-fit: contain; display: block; }
.exercise-block-thumb { width: 52px; height: 52px; border-radius: 10px; }

/* Forms */
.form-group { margin-bottom: 12px; }
.form-label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 5px; font-weight: 600; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
  padding: 10px 13px; color: var(--text-primary); font-size: 14.5px; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 70px; }
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 20px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); font-size: 13px; color: var(--text-secondary); }
.chip.active { background: var(--accent-glow); border-color: var(--accent); color: var(--accent); }

/* Splash screen */
.splash-wrap {
  position: fixed; inset: 0; z-index: 500; background: #000000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  animation: splash-fade-in .4s ease;
}
.splash-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 340px; height: 340px; background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.splash-logo { width: 220px; height: 220px; object-fit: contain; position: relative; animation: splash-pop .6s cubic-bezier(.2,.8,.2,1); }
.splash-loader { display: flex; gap: 8px; margin-top: 34px; position: relative; }
.splash-loader span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: splash-bounce 1s infinite ease-in-out;
}
.splash-loader span:nth-child(2) { animation-delay: .15s; }
.splash-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes splash-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes splash-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@keyframes splash-bounce { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-6px); } }
.splash-fade-out { animation: splash-fade-out .35s ease forwards; }
@keyframes splash-fade-out { to { opacity: 0; } }

/* Hero intro screen (apresentação pós-splash) */
.hero-intro-wrap {
  position: fixed; inset: 0; z-index: 480; background: #000000;
  overflow-y: auto; display: flex; flex-direction: column;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: splash-fade-in .4s ease;
}
.hero-intro-hexbg {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(120deg, transparent 48%, rgba(138,255,26,.10) 49%, rgba(138,255,26,.10) 51%, transparent 52%),
    repeating-linear-gradient(60deg, rgba(138,255,26,.07) 0, rgba(138,255,26,.07) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(-60deg, rgba(138,255,26,.07) 0, rgba(138,255,26,.07) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(0deg, rgba(138,255,26,.05) 0, rgba(138,255,26,.05) 1px, transparent 1px, transparent 26px);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
  mask-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
}
.hero-intro-diag {
  position: absolute; top: 0; z-index: 0; pointer-events: none;
  width: 130px; height: 130px;
  background:
    repeating-linear-gradient(45deg,
      transparent 0, transparent 12px,
      rgba(138,255,26,.55) 12px, rgba(138,255,26,.55) 13.5px,
      transparent 13.5px, transparent 24px);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
}
.hero-intro-diag-tl { left: 0; transform: none; }
.hero-intro-diag-tr { right: 0; transform: scaleX(-1); }

.hero-intro-header {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 14px;
}
.hero-intro-header-spacer { width: 24px; flex-shrink: 0; }
.hero-intro-brand { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-intro-logo-img { height: 34px; object-fit: contain; }
.hero-intro-tagline { font-size: 10px; letter-spacing: 2px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.hero-intro-menu-btn {
  width: 24px; height: 24px; flex-shrink: 0; background: none; border: none; color: #fff;
  font-size: 18px; display: flex; align-items: center; justify-content: center; padding: 0;
}

.hero-intro-headline {
  position: relative; z-index: 2; text-align: center; margin: 4px 0 16px; line-height: 1.08;
}
.hero-intro-headline-white, .hero-intro-headline-accent {
  display: block; font-style: italic; text-transform: uppercase; font-weight: 900;
  font-size: 26px; letter-spacing: .5px;
}
.hero-intro-headline-white { color: #fff; }
.hero-intro-headline-accent { color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); }

.hero-intro-photo-wrap {
  position: relative; z-index: 1; margin: 0 -16px 14px; flex: 1; min-height: 180px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
}
.hero-intro-photo { width: 68%; max-width: 260px; object-fit: contain; object-position: bottom; display: block; }
.hero-intro-photo-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%);
  pointer-events: none;
}

.hero-intro-features {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px;
}
.hero-intro-feature-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(10, 14, 10, .55); border: 1px solid rgba(138,255,26,.28);
  border-radius: 12px; padding: 10px 14px;
}
.hero-intro-feature-icon {
  width: 20%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px;
}
.hero-intro-feature-divider { width: 1px; align-self: stretch; background: rgba(138,255,26,.25); flex-shrink: 0; }
.hero-intro-feature-text { flex: 1; min-width: 0; }
.hero-intro-feature-title { font-size: 13px; font-weight: 800; color: #f2f6f2; letter-spacing: .3px; text-transform: uppercase; }
.hero-intro-feature-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.hero-intro-cta {
  position: relative; z-index: 2; width: 100%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(180deg, #b6ff2e, var(--accent));
  border: none; border-radius: 28px; padding: 15px 20px;
  box-shadow: 0 10px 26px var(--accent-glow);
}
.hero-intro-cta-badge {
  width: 26px; height: 26px; border-radius: 50%; background: #04150c; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.hero-intro-cta-text { font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .5px; color: #04150c; font-size: 16px; }

/* Auth screen */
.auth-wrap {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px));
  overflow: hidden; background: #000;
}
.auth-bg-photo {
  position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: right top; opacity: 1; z-index: 0;
}
.auth-bg-overlay {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.05) 25%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.85) 68%, #000 88%);
}
.auth-brand { position: relative; z-index: 1; text-align: center; margin-top: 104px; margin-bottom: 18px; }
.auth-logo-img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 0 22px var(--accent-glow)); }
.auth-tagline { font-size: 11px; letter-spacing: 2px; color: var(--text-secondary); margin-top: 2px; font-weight: 500; }

.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px;
  background: rgba(8, 14, 10, .72); border: 1px solid rgba(138,255,26,.4);
  border-radius: 24px; padding: 26px 22px; backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(138,255,26,.08), 0 20px 50px rgba(0,0,0,.55), 0 0 30px var(--accent-glow);
}
.auth-title { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 6px; color: #fff; }
.auth-sub { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; }
.auth-divider { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-dim)); }
.auth-divider span:last-child { background: linear-gradient(90deg, var(--accent-dim), transparent); }
.auth-divider i { color: var(--accent); font-size: 6px; }

.auth-input-wrap { position: relative; display: flex; align-items: center; }
.auth-input-icon {
  position: absolute; left: 14px; color: var(--accent); font-size: 14px; pointer-events: none;
}
.auth-input { padding-left: 40px !important; background: rgba(19,28,20,.65) !important; }
.auth-input-pass { padding-right: 40px !important; }
.auth-input-eye {
  position: absolute; right: 12px; background: none; border: none; color: var(--accent);
  font-size: 14px; padding: 4px; display: flex; align-items: center;
}
.auth-submit-btn { margin-top: 6px; border-radius: 16px; }

.auth-switch { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-secondary); }
.auth-switch a { color: var(--accent); font-weight: 600; }
.auth-back-link { font-size: 12px; color: var(--text-muted); }
.demo-hint { background: var(--bg-elevated); border: 1px dashed var(--border-subtle); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 18px; }

/* Workout screen */
.workout-timer { text-align: center; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0 16px; }
.workout-nav-row { margin-top: 4px; }

/* Lista de exercícios do treino (tela inicial): cada item abre a execução
   em tela cheia ao ser clicado, estilo "abrir em outra aba". */
.ex-list { display: flex; flex-direction: column; gap: 10px; }
.ex-list-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 10px 14px; color: var(--text-primary); cursor: pointer; transition: border-color 0.15s ease;
}
.ex-list-item:active { border-color: var(--accent-dim); }
.ex-list-item-done { opacity: 0.7; }
.ex-list-thumb img, .ex-list-thumb .avatar { border-radius: 10px; }
.ex-list-info { flex: 1; min-width: 0; }
.ex-list-name { font-size: 14.5px; font-weight: 700; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-list-meta { font-size: 12px; color: var(--text-muted); margin: 0; }
.ex-list-status {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0; color: var(--text-muted); border: 2px solid var(--border-subtle);
}
.ex-list-status.partial { color: var(--accent); border-color: var(--accent); }
.ex-list-status.done { background: var(--accent); color: #04150c; border-color: var(--accent); }
.ex-list-chevron { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }

/* Cabeçalho da tela de execução em foco (aberta em tela cheia ao clicar num
   exercício da lista — "Executando Treino"). */
.workout-focus-header .icon-btn { background: transparent; border: none; font-size: 18px; color: var(--text-primary); }
.workout-focus-header h1 { flex: 1; text-align: center; }
#workout-focus-main { padding-bottom: 110px; }

/* Overlay de execução avulsa (Treino Rápido / Plano com IA): cobre a tela inteira
   por cima do #app, como uma "outra janela", sem depender do workout ativo em D1. */
.exec-fullscreen-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--bg-deep);
  display: flex; flex-direction: column; overflow-y: auto;
}
#exec-focus-main { padding-bottom: 40px; }

/* Vídeo/gif de demonstração do exercício, em destaque no topo da tela de execução
   (tanto na tela cheia do Treino ativo quanto no overlay de execução avulsa). */
.exec-video-wrap {
  position: relative;
  width: 100%; aspect-ratio: 4 / 3; max-height: 320px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
}
.exec-video-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.exec-video-placeholder { color: var(--text-muted); font-size: 40px; }
/* Botões flutuantes de enviar/remover vídeo próprio do exercício (qualquer modalidade) */
.exec-video-upload-btn, .exec-video-remove-btn {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(10, 16, 22, 0.72); color: var(--accent); font-size: 15px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(4px);
}
.exec-video-upload-btn { bottom: 10px; right: 10px; }
.exec-video-remove-btn { bottom: 10px; right: 56px; color: var(--danger); }
.exec-video-upload-btn:disabled { opacity: 0.6; cursor: default; }

/* Card do exercício em foco (1 exercício por vez, estilo Hevy/Strong) */
.ex-focus-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; }
.ex-focus-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.ex-focus-thumb-wrap img, .ex-focus-thumb-wrap .avatar { border-radius: 12px; }
.ex-focus-info { flex: 1; min-width: 0; }
.ex-focus-counter { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.ex-focus-title { font-size: 16px; font-weight: 800; margin: 2px 0 0; line-height: 1.25; }
.ex-focus-info-btn { flex-shrink: 0; color: var(--text-muted); }
.ex-focus-nav { display: flex; justify-content: space-between; margin: 12px 0 4px; }
.ex-nav-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 12.5px; font-weight: 600; padding: 6px 4px; display: flex; align-items: center; gap: 6px; }
.ex-nav-btn:disabled { opacity: 0.35; }

/* Abas Séries / Comentários */
.ex-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border-subtle); margin: 14px 0 16px; }
.ex-tab-btn { background: transparent; border: none; padding: 0 0 10px; font-size: 14.5px; font-weight: 700; color: var(--text-muted); border-bottom: 2.5px solid transparent; }
.ex-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Tabela de séries */
.set-table-header { display: grid; grid-template-columns: 30px 1fr 68px 32px; gap: 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); font-weight: 700; margin-bottom: 10px; text-align: center; }
.set-table-header span:first-child { text-align: left; }
.set-row { display: grid; grid-template-columns: 30px 1fr 68px 32px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.set-table-body .set-row:last-child { border-bottom: none; }

/* Bolhas de status da série (concluída / atual / pendente) */
.set-status-badge {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin: 0 auto;
}
.set-status-badge.completed-set { background: var(--accent); color: #04150c; }
.set-status-badge.active-set { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.set-status-badge.pending-set { background: transparent; color: var(--text-muted); border: 2px solid var(--border-subtle); }

/* Colunas Reps X Peso (pílulas lado a lado) */
.set-reps-weight { display: flex; align-items: center; justify-content: center; gap: 8px; }
.set-pill-input {
  width: 46px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 20px;
  padding: 8px 4px; color: var(--text-primary); text-align: center; font-size: 14px; font-weight: 600;
}
.set-pill-input:focus { outline: none; border-color: var(--accent); }
.set-x { color: var(--text-muted); font-size: 11px; font-weight: 700; }

/* Coluna PSE: chama (esforço percebido) + tendência */
.set-pse-group { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pse-flame-btn, .pse-trend-btn {
  width: 26px; height: 26px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer;
}
.pse-flame-btn.lit, .pse-flame-btn.done { background: var(--accent-glow); color: var(--accent); border-color: var(--accent); }
.set-del { width: 28px; height: 28px; border-radius: 8px; background: transparent; color: var(--text-muted); border: none; display: flex; align-items: center; justify-content: center; }
.set-check {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.set-row-pending { opacity: 0.5; transition: opacity 0.2s ease; }
.set-row-pending.set-row-active { opacity: 1; }

/* Botão "Adicionar comentário" (borda tracejada, estilo do print) */
.add-comment-btn {
  width: 100%; padding: 12px; margin-top: 6px; border-radius: var(--radius-md); border: 1.5px dashed var(--accent);
  background: transparent; color: var(--text-secondary); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Aba Comentários */
.comments-list { margin-bottom: 14px; max-height: 220px; overflow-y: auto; }
.comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.comment-text { margin: 0; font-size: 13.5px; }
.comment-time { font-size: 11px; color: var(--text-muted); }

/* Timer de descanso padronizado: -10s / contagem / +10s / Pular */
.rest-timer-bar {
  position: sticky; bottom: 76px; z-index: 30; background: var(--bg-elevated-2); border: 1.5px solid var(--accent);
  border-radius: var(--radius-md); padding: 10px 12px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; margin-bottom: 12px; gap: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.rest-timer-center { color: var(--accent); font-size: 18px; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.rest-adj-btn {
  background: transparent; border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 11px;
  font-weight: 700; padding: 6px 8px; border-radius: 8px; display: flex; align-items: center; gap: 4px;
}
.rest-adj-btn:active { background: var(--bg-elevated); }
.rest-skip-btn { background: transparent; border: none; color: var(--warn); font-size: 12px; font-weight: 700; padding: 6px 4px; }

/* Barra de ação fixa: "Registrar Série" + menu ⋮ (fica acima da bottom-nav) */
.workout-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 45;
  max-width: 560px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 10px; align-items: center;
}
@media (min-width: 560px) { .workout-sticky-bar { left: 50%; transform: translateX(-50%); } }
/* Na tela de execução em foco não há bottom-nav, então a barra fica direto no
   fim da tela (com fundo sólido, já que não sobrepõe navegação nenhuma). */
.workout-sticky-bar-focus { bottom: 0; background: var(--bg-deep); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.workout-sticky-bar .btn-primary { border-radius: 16px; box-shadow: 0 8px 24px var(--accent-glow); }
.workout-sticky-bar .btn-primary:disabled { opacity: 0.4; box-shadow: none; }
.sticky-menu-btn {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--accent); color: #04150c;
  border: none; font-size: 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: flex-end; z-index: 100; }
@media (min-width: 560px) { .modal-overlay { align-items: center; justify-content: center; } }
.modal-sheet { background: var(--bg-surface); border-radius: 20px 20px 0 0; padding: 20px; width: 100%; max-height: 85vh; overflow-y: auto; border-top: 1px solid var(--border-subtle); }
@media (min-width: 560px) { .modal-sheet { border-radius: var(--radius-lg); max-width: 480px; margin: 0 16px; } }
.modal-handle { width: 40px; height: 4px; background: var(--border-subtle); border-radius: 3px; margin: 0 auto 16px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h3 { margin: 0; font-size: 17px; }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 18px; }

/* Registro de treino (câmera / gravação / animação) */
.record-camera-wrap { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 420px; background: #000; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px; }
.record-camera-wrap video, .record-camera-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.record-camera-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); }
.record-timer-badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.record-timer-badge .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: rec-pulse 1s infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.record-btn-row { display: flex; gap: 10px; margin-bottom: 14px; }
.record-card { display: flex; gap: 12px; align-items: center; }
.record-card-media { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: #000; flex-shrink: 0; }
.record-card-media img, .record-card-media video { width: 100%; height: 100%; object-fit: cover; }
.day-chip { font-size: 11px; padding: 5px 10px; }

/* Feed */
.feed-post { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 12px; margin-bottom: 11px; }
.feed-post-header { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.feed-post-name { font-weight: 700; font-size: 14px; }
.feed-post-time { font-size: 11px; color: var(--text-muted); }
.feed-post-content { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.feed-post-workout { background: var(--bg-elevated); border-radius: var(--radius-sm); padding: 10px; font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; display: flex; gap: 14px; }
.feed-post-actions { display: flex; gap: 18px; }
.feed-action { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); background: transparent; border: none; }
.feed-action.liked { color: var(--danger); }
.feed-action.liked i { color: var(--danger); }

/* Toast */
#toast-container { position: fixed; top: 16px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--bg-elevated-2); border: 1px solid var(--border-subtle); color: var(--text-primary); padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,0.4); max-width: 90%; text-align: center; }
.toast.success { border-color: var(--accent); color: var(--accent); }
.toast.error { border-color: var(--danger); color: var(--danger); }
.toast.pr { background: var(--accent); color: #04150c; }

/* Empty state / skeleton */
.empty-state { text-align: center; padding: 38px 20px; color: var(--text-muted); }
.empty-state i { font-size: 32px; margin-bottom: 12px; opacity: 0.5; }
.skeleton { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-elevated-2) 50%, var(--bg-elevated) 75%); background-size: 200% 100%; animation: skeleton-loading 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.level-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--bg-elevated); color: var(--text-secondary); }
.progress-bar-track { height: 8px; background: var(--bg-elevated); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }

.muscle-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); }
.muscle-row:last-child { border-bottom: none; }
.muscle-row-bar { flex: 1; margin: 0 12px; }

.link-inline { color: var(--accent); font-weight: 600; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ================= EXERCISE COMPLETION CHECK (aba Treinos / Plano IA) ================= */
.plan-ex-row { transition: opacity .2s ease; }
.plan-ex-row.done { opacity: 0.55; }
.plan-ex-row.done .plan-ex-name { text-decoration: line-through; color: var(--text-muted); }
.plan-check-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--border-subtle); background: var(--bg-elevated);
  color: var(--text-muted); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.plan-check-btn.checked { background: var(--accent); color: #04150c; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.plan-check-btn:disabled { opacity: 0.6; }

/* ================= ONBOARDING QUIZ WIZARD ================= */
.onb-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-deep); }
.onb-topbar { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 18px 14px; position: sticky; top: 0; z-index: 10; background: var(--bg-deep); }
.onb-back { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.onb-back:disabled { opacity: 0.3; pointer-events: none; }
.onb-progress-track { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 4px; overflow: hidden; }
.onb-progress-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s ease; }
.onb-progress-num { font-size: 11px; color: var(--text-muted); font-weight: 700; flex-shrink: 0; min-width: 40px; text-align: right; }

.onb-main { flex: 1; padding: 6px 20px 28px; max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.onb-title { font-size: 24px; font-weight: 800; line-height: 1.25; margin: 6px 0 6px; }
.onb-subtitle { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 20px; }

.onb-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.onb-opt {
  display: flex; align-items: center; gap: 14px; background: var(--bg-surface); border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px; text-align: left; width: 100%; color: var(--text-primary);
}
.onb-opt.active { border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 3px var(--accent-glow); }
.onb-opt-label { flex: 1; font-size: 14.5px; font-weight: 600; }
.onb-opt-desc { font-size: 12px; color: var(--text-secondary); margin-top: 3px; font-weight: 400; }
.onb-opt-emoji { font-size: 22px; flex-shrink: 0; }
.onb-opt-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-elevated-2); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 16px; flex-shrink: 0; }
.onb-opt-badge { background: var(--accent); color: #04150c; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 10px; margin-left: 8px; }
.onb-opt-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border-subtle); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: transparent; }
.onb-opt.active .onb-opt-check { background: var(--accent); border-color: var(--accent); color: #04150c; }

/* Grade de imagens interativas (2 colunas) */
.onb-img-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 12px; margin-bottom: 16px; }
.onb-img-card {
  background: var(--bg-surface); border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md);
  overflow: hidden; text-align: center; display: flex; flex-direction: column; color: var(--text-primary);
}
.onb-img-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.onb-img-card-media { background: var(--bg-elevated); padding: 14px 8px 6px; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 118px; }
.onb-img-card-label { padding: 9px 6px; font-size: 12.5px; font-weight: 700; background: var(--bg-elevated-2); }
.onb-img-card.active .onb-img-card-label { color: var(--accent); }
.onb-img-card-wide { flex-direction: row; align-items: center; text-align: left; padding: 14px; gap: 14px; }
.onb-img-card-wide .onb-img-card-media { min-height: auto; background: transparent; padding: 0; flex: 0 0 auto; }
.onb-img-card-wide .onb-img-card-label { background: transparent; padding: 0; flex: 1; }
.onb-img-card-wide .onb-img-card-desc { font-size: 11.5px; color: var(--text-secondary); font-weight: 400; margin-top: 3px; }

/* Silhueta corporal via CSS puro (sem dependência de geração de imagem) */
.body-fig { position: relative; width: 64px; height: 108px; margin: 0 auto; }
.body-fig .bf-head { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elevated-2); border: 2px solid var(--accent); margin: 0 auto 2px; }
.body-fig .bf-torso { height: 44px; background: var(--bg-elevated-2); border: 2px solid var(--accent); border-radius: 10px 10px 6px 6px; margin: 0 auto; }
.body-fig .bf-legs { display: flex; gap: 4px; justify-content: center; margin-top: 3px; }
.body-fig .bf-leg { width: 12px; height: 32px; background: var(--bg-elevated-2); border: 2px solid var(--accent); border-radius: 6px; }
.body-fig.danger .bf-head, .body-fig.danger .bf-torso, .body-fig.danger .bf-leg { border-color: var(--danger); }
.bf-torso--skinny { width: 26px; }
.bf-torso--average { width: 36px; }
.bf-torso--heavy { width: 48px; border-radius: 16px; }
.bf-torso--veryheavy { width: 58px; border-radius: 20px; }
.bf-torso--lean { width: 30px; clip-path: polygon(8% 0, 92% 0, 74% 100%, 26% 100%); }
.bf-torso--fit { width: 38px; clip-path: polygon(4% 0, 96% 0, 70% 100%, 30% 100%); background-image: linear-gradient(var(--bg-elevated-2), var(--bg-elevated-2)), repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(138,255,26,0.35) 8px, rgba(138,255,26,0.35) 9px); background-blend-mode: normal; }
.bf-torso--muscular { width: 46px; clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%); background-image: linear-gradient(var(--bg-elevated-2), var(--bg-elevated-2)), repeating-linear-gradient(180deg, transparent, transparent 7px, rgba(138,255,26,0.4) 7px, rgba(138,255,26,0.4) 8px); }
.bf-torso--bodybuilder { width: 56px; clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%); background-image: linear-gradient(var(--bg-elevated-2), var(--bg-elevated-2)), repeating-linear-gradient(180deg, transparent, transparent 6px, rgba(138,255,26,0.45) 6px, rgba(138,255,26,0.45) 7px); }
.bf-highlight { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(138,255,26,0.55); box-shadow: 0 0 0 6px rgba(138,255,26,0.22); }
.bf-highlight.danger-zone { background: rgba(255,92,114,0.6); box-shadow: 0 0 0 6px rgba(255,92,114,0.25); }
.bf-highlight--chest { top: 26px; left: 50%; transform: translateX(-50%); }
.bf-highlight--shoulders { top: 22px; left: 8px; }
.bf-highlight--arms { top: 40px; left: 2px; width: 14px; height: 14px; }
.bf-highlight--abs { top: 46px; left: 50%; transform: translateX(-50%); }
.bf-highlight--back { top: 30px; left: 50%; transform: translateX(-50%); }
.bf-highlight--legs { bottom: 4px; left: 50%; transform: translateX(-50%); }

.onb-slider-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 22px; }
.onb-slider-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.onb-slider-value { flex: 1; text-align: center; font-size: 40px; font-weight: 800; }
.onb-slider-value span { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.onb-unit-toggle { display: flex; background: var(--bg-elevated); border-radius: 20px; padding: 3px; margin-bottom: 18px; align-self: center; }
.onb-unit-toggle button { border: none; background: transparent; color: var(--text-secondary); padding: 7px 18px; border-radius: 16px; font-size: 13px; font-weight: 700; }
.onb-unit-toggle button.active { background: var(--accent); color: #04150c; }

.onb-hint-card { display: flex; gap: 10px; background: var(--bg-elevated); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.onb-hint-card.warn { background: rgba(255,184,77,0.12); }
.onb-hint-card.danger { background: rgba(255,92,114,0.15); }
.onb-hint-card.success { background: rgba(138,255,26,0.12); }
.onb-hint-emoji { font-size: 18px; flex-shrink: 0; }
.onb-hint-title { font-weight: 700; font-size: 13.5px; margin: 0 0 4px; }
.onb-hint-body { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

.onb-bmi-scale { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5ac8ff, var(--accent), var(--warn), var(--danger)); margin: 14px 0 8px; }
.onb-bmi-pointer { position: absolute; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--bg-deep); box-shadow: 0 0 0 2px var(--border-subtle); transform: translateX(-50%); }
.onb-bmi-labels { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-muted); margin-bottom: 16px; }
.onb-bmi-badge { display: inline-flex; flex-direction: column; align-items: flex-end; background: var(--bg-elevated); padding: 8px 14px; border-radius: 12px; }
.onb-bmi-value { font-size: 20px; font-weight: 800; color: var(--accent); }

.onb-chart-wrap { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.onb-footer { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; width: 100%; margin: 0 auto; }
.onb-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px 20px; text-align: center; }
.onb-loading i { font-size: 40px; color: var(--accent); }

.onb-plan-summary-card { text-align: center; padding: 24px 18px; }
.onb-plan-summary-card i { font-size: 40px; color: var(--accent); margin-bottom: 12px; }
