@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at top, #160a06 0%, #050505 55%, #000 100%);
  min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
}
.wrap { padding: 1.4rem 0; width: 100%; }
.tagline { text-align: center; margin-bottom: 14px; font-size: 11px; color: #6a6a6a; letter-spacing: 0.04em; }

.phone {
  width: 360px; max-width: 94vw; margin: 0 auto;
  background: #050505; border-radius: 38px;
  border: 2px solid #1a1a1a; overflow: hidden;
  height: 760px; max-height: 92vh; position: relative;
  box-shadow: 0 0 60px rgba(255,107,43,0.10), 0 24px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
}
.screen { display: none; flex-direction: column; height: 100%; flex: 1; }
.screen.active { display: flex; animation: screenIn .28s ease; }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.status-bar { padding: 12px 18px 0; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.status-time { font-size: 13px; font-weight: 500; color: #fff; }
.status-icons { display: flex; gap: 5px; align-items: center; }
.status-icons i { font-size: 14px; color: #fff; }

/* ── Animated fire (yellow → orange → red) ─────────────────────────────── */
.flicker { transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
@keyframes flicker {
  0%,100% { transform: scaleY(1) scaleX(1) skewX(0deg); filter: drop-shadow(0 0 5px rgba(255,90,20,0.55)); }
  25%     { transform: scaleY(1.06) scaleX(0.97) skewX(1.5deg); }
  50%     { transform: scaleY(0.95) scaleX(1.03) skewX(-1deg); filter: drop-shadow(0 0 9px rgba(255,140,30,0.75)); }
  75%     { transform: scaleY(1.04) scaleX(0.98) skewX(1deg); }
}

/* SPLASH */
.splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; position: relative; background: radial-gradient(ellipse at center, #210d05 0%, #050505 62%); }
.splash-wrap { position: relative; margin-bottom: 44px; cursor: pointer; }
.splash-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(255,180,40,0.40) 0%, rgba(255,77,23,0.22) 32%, transparent 62%); filter: blur(22px); animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%,100%{opacity:.65} 50%{opacity:1} }
.splash-title { font-family: 'Cormorant Garamond', serif; font-size: 46px; font-weight: 600; color: #fff; letter-spacing: 0.12em; margin-bottom: 14px; }
.splash-title .b-orange { background: linear-gradient(180deg,#FFD23F,#FF6B2B 55%,#E0301E); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.splash-tag { font-size: 11px; color: #6a6a6a; letter-spacing: 0.35em; text-transform: uppercase; }
.splash-cta { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #999; cursor: pointer; padding: 12px 24px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:.6} 50%{opacity:1} }

/* ONBOARDING */
.ob { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 100px; text-align: center; position: relative; }
.ob-icon-wrap { width: 130px; height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 36px; }
.ob-icon-wrap i { font-size: 86px; color: #FF6B2B; opacity: 0.92; }
.ob-title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: #fff; letter-spacing: 0.01em; margin-bottom: 14px; line-height: 1.1; }
.ob-sub { font-size: 14px; color: #999; line-height: 1.6; max-width: 280px; }
.ob-bot { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dot { width: 6px; height: 6px; border-radius: 50%; background: #2a2a2a; transition: all .3s; }
.ob-dot.active { background: #FF6B2B; width: 22px; border-radius: 10px; }
.ob-next { width: 100%; padding: 14px; background: #FF6B2B; border: none; border-radius: 28px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: transform .1s, filter .2s; }
.ob-next:active { transform: scale(.98); filter: brightness(1.1); }
.ob-skip { position: absolute; top: 18px; right: 18px; font-size: 13px; color: #666; cursor: pointer; padding: 8px; }

/* PROFILE FORM */
.ob-page { flex: 1; padding: 30px 24px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.ob-page::-webkit-scrollbar { display: none; }
.ob-header { text-align: center; margin-bottom: 22px; }
.ob-quote { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.ob-quote em { color: #FF6B2B; font-style: italic; }
.ob-sub-text { font-size: 12px; color: #999; line-height: 1.5; }
.form-field { margin-bottom: 12px; }
.form-label { font-size: 10px; color: #999; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.form-input { background: #0d0d0d; border: 0.5px solid #2a2a2a; border-radius: 10px; padding: 11px 13px; color: #fff; font-size: 14px; font-family: 'Inter', sans-serif; width: 100%; transition: border-color .2s; }
.form-input:focus { outline: none; border-color: #FF6B2B; }
.form-input::placeholder { color: #555; }
.form-row { display: flex; gap: 10px; margin-bottom: 12px; }
.form-row .form-field { flex: 1; margin-bottom: 0; }
.level-picker { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.level-option { background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 12px; padding: 11px 13px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: border-color .2s, background .2s; }
.level-option.selected { border-color: #FF6B2B; background: #FF6B2B0a; }
.level-option-icon { width: 34px; height: 34px; border-radius: 9px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.level-option.selected .level-option-icon { background: #FF6B2B22; }
.level-option-icon i { font-size: 16px; color: #888; }
.level-option.selected .level-option-icon i { color: #FF6B2B; }
.level-option-info { flex: 1; }
.level-option-title { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #fff; line-height: 1; }
.level-option-desc { font-size: 11px; color: #999; margin-top: 2px; }
.level-option-check { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.level-option.selected .level-option-check { background: #FF6B2B; border-color: #FF6B2B; }
.level-option-check i { font-size: 11px; color: transparent; }
.level-option.selected .level-option-check i { color: #fff; }

/* TOP BAR */
.top-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; flex-shrink: 0; }
.avatar-ring { width: 42px; height: 42px; border-radius: 50%; background: #0a0a0a; border: 1.5px solid #FF6B2B; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: #fff; }
.top-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #fff; line-height: 1; }
.top-level { font-size: 11px; color: #999; font-weight: 500; margin-top: 3px; }
.top-bell { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #0d0d0d; border: 0.5px solid #1f1f1f; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.top-bell i { font-size: 15px; color: #888; }

.content { flex: 1; overflow-y: auto; padding: 14px 16px; }
.content::-webkit-scrollbar { display: none; }

/* ── FIRE HERO (extra red + yellow) ────────────────────────────────────── */
.fire-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,120,30,0.12) 0%, transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(224,48,18,0.10) 0%, transparent 50%),
    #0d0d0d;
  border: 0.5px solid #3a1c0e;
  border-radius: 14px; padding: 14px; margin-bottom: 10px;
  box-shadow: inset 0 0 24px rgba(255,90,20,0.06), 0 0 0 0.5px rgba(255,120,40,0.10);
}
.fire-hero-top { display: flex; align-items: center; gap: 14px; }
.fire-hero-flame { position: relative; width: 40px; height: 48px; flex-shrink: 0; }
.fire-hero-flame svg { width: 40px; height: 48px; }
.ember { position: absolute; left: 50%; bottom: 8px; width: 3px; height: 3px; border-radius: 50%; background: #FFC24A; opacity: 0; box-shadow: 0 0 5px #FF8A1E; }
.ember.e1 { animation: ember 2.4s ease-in infinite; }
.ember.e2 { animation: ember 2.9s ease-in infinite .8s; background: #FF6B2B; }
.ember.e3 { animation: ember 3.3s ease-in infinite 1.5s; background: #FFD23F; }
@keyframes ember {
  0% { opacity: 0; transform: translate(-50%, 0) scale(1); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 6px)), -34px) scale(0.4); }
}
.ember.e1 { --dx: -7px; } .ember.e3 { --dx: 9px; }
.fire-hero-info { flex: 1; }
.fire-hero-label { font-size: 10px; color: #b06a3a; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.fire-hero-stat { display: flex; align-items: baseline; gap: 6px; }
.fire-hero-num {
  font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #FFE45A 0%, #FF8A1E 45%, #FF3B1D 78%, #C81E0F 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,90,20,0.35));
}
.fire-hero-unit { font-size: 12px; color: #b08a6a; }
.fire-hero-mult { background: linear-gradient(180deg,#2a160b,#1a1a1a); border: 0.5px solid #4a2410; border-radius: 8px; padding: 5px 9px; text-align: center; }
.fire-hero-mult-num { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 700; color: #FFB23F; line-height: 1; }
.fire-hero-mult-label { font-size: 8px; color: #9a6a3a; letter-spacing: 0.1em; margin-top: 2px; font-weight: 600; }
.fire-hero-msg { font-size: 11px; color: #8a7a6a; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid #2a1a10; }

/* LEVEL CARD */
.level-card-v2 { background: #0d0d0d; border: 0.5px solid #1f1f1f; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.level-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ring-mini { position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.ring-mini-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 700; color: #fff; }
.level-card-info { flex: 1; }
.level-card-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: #fff; line-height: 1; }
.level-card-sub { font-size: 11px; color: #888; margin-top: 3px; }
.level-card-xp-num { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-weight: 700; color: #888; }
.level-bar { height: 4px; background: #1a1a1a; border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.level-bar-fill { height: 100%; background: linear-gradient(90deg,#FF6B2B,#FF8A1E); border-radius: 10px; transition: width .5s ease; }
.next-unlock { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 0.5px solid #1a1a1a; }
.next-unlock-icon { width: 22px; height: 22px; border-radius: 6px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; }
.next-unlock-icon i { font-size: 11px; color: #888; }
.next-unlock-text { flex: 1; font-size: 11px; color: #888; }
.next-unlock-text strong { color: #fff; font-weight: 600; }
.next-unlock-xp { font-family: 'Cormorant Garamond', serif; font-size: 11px; color: #888; font-weight: 600; }

/* FLASH CARD */
.flash-card-home { background: linear-gradient(135deg, rgba(255,107,43,0.05), #0d0d0d 60%); border: 1px solid #FF6B2B; border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.flash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.flash-live { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: #FF6B2B; letter-spacing: 0.15em; }
.flash-dot { width: 6px; height: 6px; border-radius: 50%; background: #FF6B2B; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.flash-time { font-size: 11px; color: #999; font-weight: 500; }
.flash-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.flash-tier-msg { font-size: 11px; color: #888; margin-bottom: 10px; }
.flash-btn { width: 100%; padding: 10px; background: #FF6B2B; border: none; border-radius: 22px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: transform .1s, filter .2s; }
.flash-btn:active { transform: scale(.98); filter: brightness(1.1); }

/* TRIAL LIST */
.trial-list-mini { margin-bottom: 10px; }
.trial-mini-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.section-label { font-size: 10px; color: #888; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.trial-progress-label { font-size: 10px; color: #888; }
.trial-mini-item { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: border-color .2s; }
.trial-mini-item:not(.done):active { border-color: #FF6B2B66; }
.trial-mini-item.done { opacity: 0.4; }
.trial-mini-icon { width: 26px; height: 26px; border-radius: 7px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trial-mini-icon i { font-size: 13px; color: #888; }
.trial-mini-info { flex: 1; }
.trial-mini-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #fff; }
.trial-mini-item.done .trial-mini-name { color: #888; text-decoration: line-through; text-decoration-color: #444; }
.trial-mini-bar { margin-top: 4px; height: 3px; background: #1a1a1a; border-radius: 10px; overflow: hidden; }
.trial-mini-fill { height: 100%; background: linear-gradient(90deg,#FF6B2B,#FFB23F); border-radius: 10px; }
.trial-mini-count { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 600; color: #fff; }
.trial-mini-item.done .trial-mini-count { color: #888; }

/* GOAL */
.goal-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.goal-icon { width: 34px; height: 34px; border-radius: 9px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.goal-icon i { font-size: 16px; color: #FF6B2B; }
.goal-info { flex: 1; }
.goal-header { font-size: 9px; color: #888; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-bottom: 3px; }
.goal-line { font-size: 13px; color: #fff; line-height: 1.3; }
.goal-line strong { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700; color: #FF6B2B; }
.goal-line .arrow { color: #555; margin: 0 5px; font-family: 'Cormorant Garamond', serif; }
.goal-line .target { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700; color: #fff; }
.goal-reward { font-size: 10px; color: #888; margin-top: 3px; }

/* FORGE CARD */
.forge-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.forge-icon-wrap { position: relative; flex-shrink: 0; width: 56px; height: 28px; display: flex; align-items: center; }
.forge-avs { display: flex; }
.forge-av-stack { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 10px; font-weight: 700; border: 2px solid #0d0d0d; margin-left: -8px; flex-shrink: 0; background: #1a1a1a; color: #aaa; }
.forge-av-stack:first-child { margin-left: 0; }
.forge-pulse { position: absolute; bottom: -2px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #FF6B2B; border: 2px solid #0d0d0d; box-shadow: 0 0 6px #FF6B2B66; animation: pulse 2s infinite; }
.forge-info { flex: 1; min-width: 0; }
.forge-title-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.forge-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: #fff; line-height: 1; }
.forge-meta { font-size: 11px; color: #999; }
.forge-meta-strong { color: #fff; font-weight: 600; }
.forge-arrow i { font-size: 16px; color: #555; }

/* BOTTOM NAV */
.bottom-nav { display: flex; background: rgba(8,8,8,0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 0.5px solid rgba(255,255,255,0.06); padding: 10px 10px 14px; gap: 4px; flex-shrink: 0; }
.nav-btn { flex: 1; padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: transparent; cursor: pointer; font-family: 'Inter', sans-serif; border-radius: 14px; transition: all .2s; }
.nav-btn i { font-size: 21px; color: #888; }
.nav-btn span { font-size: 9.5px; color: #888; font-weight: 500; }
.nav-btn.active { background: #FF6B2B14; }
.nav-btn.active i { color: #FF6B2B; }
.nav-btn.active span { color: #FF6B2B; font-weight: 600; }

/* TRAIN */
.screen-h-bar { padding: 12px 18px 0; flex-shrink: 0; }
.screen-title { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: #fff; line-height: 1; }
.screen-sub { font-size: 12px; color: #999; margin-top: 4px; }
.mode-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .2s; }
.mode-card:active { border-color: #FF6B2B66; }
.mode-icon { width: 40px; height: 40px; border-radius: 10px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mode-icon i { font-size: 18px; color: #FF6B2B; }
.mode-body { flex: 1; }
.mode-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: #fff; line-height: 1; }
.mode-sub { font-size: 11px; color: #999; margin-top: 4px; }
.mode-pr { font-size: 11px; color: #FF6B2B; margin-top: 4px; font-weight: 500; }
.mode-pill { font-size: 9px; padding: 3px 7px; border-radius: 8px; letter-spacing: 0.04em; font-weight: 600; background: #1a1a1a; color: #888; border: 0.5px solid #2a2a2a; }
.mode-pill.daily { color: #FF6B2B; border-color: #FF6B2B33; background: #FF6B2B0a; }

/* SETUP */
.back-bar { padding: 12px 18px 0; display: flex; align-items: flex-start; gap: 10px; flex-shrink: 0; }
.back-btn { background: none; border: none; cursor: pointer; padding: 11px 14px 11px 8px; }
.back-btn i { font-size: 22px; color: #FF6B2B; }
.setup-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; line-height: 1; }
.setup-sub { font-size: 11px; color: #999; margin-top: 4px; }
.pr-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.pr-mark { width: 36px; height: 36px; flex-shrink: 0; }
.pr-info { flex: 1; }
.pr-num { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: #FF6B2B; line-height: 1; }
.pr-label { font-size: 11px; color: #999; margin-top: 4px; }
.pr-sub { font-size: 10px; color: #666; margin-top: 1px; }
.pr-gap { text-align: right; }
.pr-gap-num { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.pr-gap-label { font-size: 9px; color: #888; margin-top: 3px; }
.section-h { font-size: 10px; color: #888; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; margin-bottom: 10px; }
.ex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ex-cell { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 10px; padding: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.ex-cell.sel { border-color: #FF6B2B; background: #FF6B2B0a; }
.ex-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #ccc; margin-bottom: 3px; }
.ex-cell.sel .ex-name { color: #FF6B2B; }
.ex-pr { font-size: 10px; color: #888; }
.info-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 10px; padding: 11px 12px; margin-bottom: 14px; }
.info-text { font-size: 12px; color: #999; line-height: 1.6; }
.info-text span { color: #FF6B2B; font-weight: 600; }
.primary-btn { width: 100%; padding: 14px; background: #FF6B2B; border: none; border-radius: 26px; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; transition: transform .1s, filter .2s; }
.primary-btn:active { transform: scale(.98); filter: brightness(1.1); }
.primary-btn:disabled { opacity: .6; cursor: default; }
.footnote { text-align: center; font-size: 10px; color: #666; margin-top: 10px; }
.time-row { display: flex; gap: 6px; margin-bottom: 12px; }
.time-chip { flex: 1; padding: 10px 4px; border-radius: 10px; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; cursor: pointer; border: 0.5px solid #2a2a2a; background: #0d0d0d; color: #888; }
.time-chip.sel { background: #FF6B2B0a; border-color: #FF6B2B; color: #FF6B2B; }
.pr-table { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.pr-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 0.5px solid #1a1a1a; }
.pr-row:last-child { border-bottom: none; }
.pr-row.sel { background: #FF6B2B08; }
.pr-window { font-size: 12px; color: #999; }
.pr-row.sel .pr-window { color: #FF6B2B; }
.pr-val { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #FF6B2B; }
.pr-rank-tag { font-size: 10px; color: #888; margin-left: 8px; }

/* PRACTICE */
.practice-hero { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.practice-hero-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.practice-hero-sub { font-size: 11px; color: #999; line-height: 1.5; }
.practice-hero-sub strong { color: #fff; font-weight: 600; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.practice-ex { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; transition: border-color .2s; }
.practice-ex:active { border-color: #FF6B2B66; }
.practice-ex i { font-size: 26px; color: #FF6B2B; margin-bottom: 8px; }
.practice-ex-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #fff; }
.practice-ex-sub { font-size: 9px; color: #666; margin-top: 4px; letter-spacing: 0.08em; }

/* ACTIVE — "Forge Glass HUD": edge-to-edge camera, glass controls, flame skeleton */
#screen-active { position: relative; background: #050505; }
.active-content { position: relative; flex: 1; padding: 0; margin: 0; display: block; overflow: hidden; }
.camera-box { position: absolute; inset: 0; background: #060606; border: 0; border-radius: 0; margin: 0; overflow: hidden; }
.cam-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
#cam-canvas { z-index: 2; }
#cam-video { z-index: 0; background: #060606; }

/* legibility scrims — keep the thin glass readable over any camera image */
.scrim-top { position: absolute; top: 0; left: 0; right: 0; height: 140px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,5,0.62), transparent); }
.scrim-bot { position: absolute; bottom: 0; left: 0; right: 0; height: 280px; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(5,5,5,0.74), transparent); }

/* top flame heat-bar — fills toward the rep / time target */
.rep-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.10); z-index: 8; }
.rep-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg,#FFF6CC,#FFD23F,#FF8A1E,#FF3B1D); box-shadow: 0 0 10px rgba(255,120,30,0.7); transition: width .35s cubic-bezier(.2,.85,.25,1); }

/* frameless top status line */
.active-header { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 0; right: 0; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; z-index: 7; background: none; }
.header-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: #fff; line-height: 1; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.live-badge { display: flex; align-items: center; gap: 6px; background: rgba(12,11,10,0.5); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 0.5px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 4px 10px; box-shadow: inset 0 0.5px 0 rgba(255,255,255,0.10); }
.live-badge span { font-size: 9px; color: #FF6B2B; font-weight: 700; letter-spacing: 0.16em; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #FF6B2B; animation: blink 1s infinite; }

@keyframes flashbg { 0%,100%{opacity:.82; transform:translate(-50%,-50%) scale(1);} 50%{opacity:1; transform:translate(-50%,-50%) scale(1.015);} }
.rep-flash { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; z-index: 4; pointer-events: none; animation: flashbg 2.2s ease-in-out infinite; }
/* Soft dark halo behind the count so it stays readable over any camera image —
   the key to glancing at it side-on from the floor. */
.rep-flash::before {
  content: ""; position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 320px; height: 320px; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 38%, rgba(0,0,0,0.16) 58%, transparent 72%);
}
.rep-flash .rep-number {
  display: inline-block; transform-origin: 50% 60%;
  font-family: 'Cormorant Garamond', serif; font-size: 232px; font-weight: 700;
  line-height: 1; letter-spacing: -0.04em;
  /* white-hot core → gold → orange, hotter and higher-glow for glanceability */
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF3B8 20%, #FFD23F 46%, #FF9E2C 76%, #FF5E1E 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.4);
  filter: drop-shadow(0 0 30px rgba(255,180,60,0.9)) drop-shadow(0 0 12px rgba(255,90,20,0.65)) drop-shadow(0 3px 8px rgba(0,0,0,0.75));
}
/* Every rep: the number pops AND flares white-hot, then settles. */
.rep-flash .rep-number.bump { animation: repPop .36s cubic-bezier(.2,.85,.25,1); }
@keyframes repPop {
  0%   { transform: scale(.74); filter: drop-shadow(0 0 48px rgba(255,235,160,.98)) drop-shadow(0 3px 8px rgba(0,0,0,.7)) brightness(1.8) saturate(1.1); }
  50%  { transform: scale(1.18); filter: drop-shadow(0 0 38px rgba(255,185,70,.95)) drop-shadow(0 3px 8px rgba(0,0,0,.7)) brightness(1.35); }
  100% { transform: scale(1); filter: drop-shadow(0 0 30px rgba(255,180,60,.9)) drop-shadow(0 0 12px rgba(255,90,20,.65)) drop-shadow(0 3px 8px rgba(0,0,0,.75)) brightness(1); }
}
/* Counter dims while paused (not counting), but stays legible enough to read the last count. */
.rep-flash .rep-number.idle { opacity: .42; filter: grayscale(.45) brightness(.9); }

.cam-overlay { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 42%, rgba(22,12,6,0.88), rgba(5,5,5,0.96)); backdrop-filter: blur(8px) saturate(1.2); -webkit-backdrop-filter: blur(8px) saturate(1.2); transition: opacity .28s ease; }
.cam-overlay.hide { opacity: 0; pointer-events: none; }
.cam-guide { position: relative; }
.cam-guide::before { content: ""; position: absolute; inset: -28px; z-index: -1; background: radial-gradient(circle, rgba(255,138,30,0.14), transparent 70%); }
.cam-overlay-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; margin: 16px 0 8px; }
.cam-overlay-sub { font-size: 12px; color: #9a9a9a; line-height: 1.5; max-width: 264px; }
.cam-rules { width: 100%; max-width: 320px; margin: 18px 0 2px; display: flex; flex-direction: column; gap: 13px; text-align: left; }
.cam-rule { display: flex; gap: 11px; align-items: flex-start; }
.cam-rule > i { font-size: 16px; color: #FF8A1E; flex-shrink: 0; margin-top: 1px; width: 18px; text-align: center; }
.cam-rule > div { font-size: 12.5px; color: #b9b4ad; line-height: 1.45; }
.cam-rule b { color: #fff; font-weight: 600; margin-right: 5px; }
#cam-start-btn { background: linear-gradient(135deg,#FF8A1E,#FF3B1D); box-shadow: 0 6px 24px rgba(255,90,20,0.4); }

/* one unified glass control bar = stats (row 1) + coaching & end (row 2) */
.ctrl-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 7; background: rgba(12,11,10,0.62); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); border: 0.5px solid rgba(255,255,255,0.12); border-radius: 22px; box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 0.5px 0 rgba(255,255,255,0.10); padding: 11px 15px; display: flex; flex-direction: column; gap: 9px; }
.camera-hud { display: flex; align-items: flex-end; justify-content: space-between; }
.hud-col { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.hud-col:nth-child(2) { align-items: center; }
.hud-col:nth-child(3) { align-items: flex-end; }
.hud-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; line-height: 1; color: #fff; }
.hud-label { font-size: 8px; color: #8a8a8a; letter-spacing: 0.18em; font-weight: 600; }
.hud-reps { display: flex; align-items: baseline; gap: 2px; }
.hud-reps .current { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: #FFE9B0; line-height: 1; text-shadow: 0 0 10px rgba(255,120,30,0.6); }
.hud-reps .slash { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: #888; }
.hud-reps .target { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: #888; font-weight: 500; }

.ai-row { display: flex; align-items: center; gap: 9px; border-top: 0.5px solid rgba(255,255,255,0.09); padding-top: 9px; }
.ai-row::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #FF6B2B; flex: none; animation: blink 1.4s infinite; }
.ai-row-text { font-size: 12px; color: #d8d4cf; line-height: 1.3; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-row-text span { color: #FF8A1E; font-weight: 600; }
.end-btn { all: unset; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,107,43,0.55); background: rgba(255,107,43,0.10); display: grid; place-items: center; cursor: pointer; flex: none; box-sizing: border-box; transition: filter .2s; }
.end-btn:active { filter: brightness(1.4); }
.end-btn-icon { width: 15px; height: 15px; border: 1.5px solid #FF6B2B; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.end-btn-icon-inner { width: 6px; height: 6px; background: #FF6B2B; border-radius: 2px; }

/* NEW PR / RESULTS */
.pr-modal { background: linear-gradient(160deg, rgba(255,107,43,0.06), #0d0d0d 55%); border: 1px solid #FF6B2B; border-radius: 20px; padding: 24px 18px; text-align: center; margin: 16px 0; }
.pr-modal.no-pr { border-color: #2a2a2a; background: #0d0d0d; }
.pr-modal-label { font-size: 11px; color: #FF6B2B; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 8px; font-weight: 600; }
.pr-modal-num { font-family: 'Cormorant Garamond', serif; font-size: 88px; font-weight: 700; color: #fff; line-height: 1; }
.pr-modal-unit { font-size: 11px; color: #888; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 6px; }
.pr-modal-prev { font-size: 13px; color: #999; margin-top: 10px; }
.pr-modal-banner { background: #1a1a1a; border: 0.5px solid #2a2a2a; border-radius: 10px; padding: 10px; font-family: 'Cormorant Garamond', serif; font-size: 15px; color: #FF6B2B; margin-top: 14px; font-weight: 600; }
/* ── Celebratory finish ──────────────────────────────────────────────── */
#screen-newpr { position: relative; }
#celebrate-canvas { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
#screen-newpr .pr-modal { animation: prPopIn .55s cubic-bezier(.2,.85,.25,1) both; }
@keyframes prPopIn { 0%{opacity:0; transform:scale(.82) translateY(12px);} 55%{transform:scale(1.04);} 100%{opacity:1; transform:scale(1);} }
#screen-newpr .pr-modal:not(.no-pr) { box-shadow: 0 0 54px rgba(255,107,43,0.20); }
#screen-newpr .pr-modal-num { animation: prNumGlow 2.4s ease-in-out infinite; }
@keyframes prNumGlow { 0%,100%{ text-shadow: 0 0 18px rgba(255,120,30,0.45); } 50%{ text-shadow: 0 0 40px rgba(255,160,50,0.9); } }
#screen-newpr .pr-modal:not(.no-pr) .pr-modal-banner { animation: bannerPulse 2.4s ease-in-out infinite; }
@keyframes bannerPulse { 0%,100%{ box-shadow: 0 0 0 transparent; } 50%{ box-shadow: 0 0 18px rgba(255,107,43,0.35); } }
.mini-stats { display: flex; gap: 8px; margin: 12px 0; }
.mini-stat { flex: 1; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 10px; padding: 9px 6px; text-align: center; }
.mini-num { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; line-height: 1; }
.mini-label { font-size: 9px; color: #888; margin-top: 4px; letter-spacing: 0.12em; }
.ghost-btn { width: 100%; padding: 13px; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 26px; color: #999; font-size: 13px; cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 8px; font-weight: 500; }
/* Guest → create-account nudge on the results screen (after first workout) */
.acct-nudge { background: linear-gradient(160deg, rgba(255,107,43,0.10), #0d0d0d 62%); border: 0.5px solid #FF6B2B66; border-radius: 14px; padding: 13px; margin: 6px 0 12px; }
.acct-nudge-top { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; }
.acct-nudge-top i { font-size: 20px; color: #FF6B2B; margin-top: 1px; flex-shrink: 0; }
.acct-nudge-title { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #fff; line-height: 1; }
.acct-nudge-sub { font-size: 11.5px; color: #b9b0a8; line-height: 1.45; margin-top: 4px; }
.acct-nudge-btn { width: 100%; padding: 11px; border-radius: 22px; border: none; background: #FF6B2B; color: #fff; font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; }
.acct-nudge-btn:active { filter: brightness(1.1); }

/* RANKS + LEAGUE */
.ranks-header { padding: 14px 18px 0; flex-shrink: 0; }
.ranks-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: #fff; line-height: 1; }
.ranks-sub { font-size: 11px; color: #999; margin-top: 4px; }
.league-banner { background: #0d0d0d; border: 0.5px solid #1f1f1f; border-radius: 14px; padding: 14px; margin: 12px 14px; flex-shrink: 0; }
.league-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.league-shield { width: 42px; height: 42px; background: #1a1a1a; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.league-shield i { font-size: 22px; color: #FF6B2B; }
.league-info { flex: 1; }
.league-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: #fff; line-height: 1; }
.league-sub { font-size: 10px; color: #888; margin-top: 3px; }
.league-position { text-align: right; flex-shrink: 0; }
.league-pos-num { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: #FF6B2B; line-height: 1; }
.league-pos-label { font-size: 8px; color: #888; letter-spacing: 0.12em; margin-top: 3px; }
.league-bar-wrap { margin-bottom: 10px; }
.league-bar-labels { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 9px; color: #888; }
.league-bar { height: 6px; background: #0a0a0a; border: 0.5px solid #2a2a2a; border-radius: 10px; overflow: hidden; position: relative; }
.league-bar-promote { position: absolute; top: 0; right: 0; height: 100%; width: 30%; background: #FF6B2B22; border-left: 0.5px dashed #FF6B2B66; }
.league-bar-you { position: absolute; top: -3px; height: 12px; width: 3px; background: #FF6B2B; border-radius: 2px; box-shadow: 0 0 6px #FF6B2B; }
.league-time { font-size: 10px; color: #888; text-align: center; padding-top: 8px; border-top: 0.5px solid #1a1a1a; }
.league-time strong { color: #fff; font-weight: 600; }

.filter-bar { margin: 0 14px 10px; background: #0a0a0a; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.filter-segment { display: flex; gap: 4px; overflow-x: auto; }
.filter-segment::-webkit-scrollbar { display: none; }
.filter-segment.primary { padding-bottom: 5px; border-bottom: 0.5px solid #1a1a1a; }
.seg-tab { flex: 1; min-width: max-content; padding: 6px 10px; font-size: 10px; cursor: pointer; border: none; background: transparent; color: #888; font-family: 'Inter', sans-serif; font-weight: 500; border-radius: 8px; white-space: nowrap; }
.seg-tab.active { background: #FF6B2B; color: #fff; font-weight: 600; }

.ranks-content { flex: 1; overflow-y: auto; padding: 0 14px 4px; }
.ranks-content::-webkit-scrollbar { display: none; }
.rank-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; margin-bottom: 6px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
.rank-card.top { border-color: #FF6B2B33; }
.rank-card.you { background: #FF6B2B0a; border-color: #FF6B2B; }
.rank-num-wrap { width: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank-num { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; line-height: 1; color: #888; }
.top .rank-num { color: #FF6B2B; }
.you .rank-num { color: #FF6B2B; }
.rank-av { width: 30px; height: 30px; border-radius: 50%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 11px; font-weight: 700; color: #aaa; flex-shrink: 0; }
.top .rank-av { color: #FF6B2B; border: 1px solid #FF6B2B33; }
.you .rank-av { color: #FF6B2B; border: 1px solid #FF6B2B; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.1; }
.you .rank-name { color: #FF6B2B; }
.rank-meta { font-size: 10px; color: #888; margin-top: 3px; }
.rank-score-wrap { text-align: right; flex-shrink: 0; }
.rank-score { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 700; color: #FF6B2B; line-height: 1; }
.rank-score-label { font-size: 9px; color: #888; margin-top: 2px; letter-spacing: 0.08em; }

/* FORGE FEED */
.feed-header { padding: 16px 18px 12px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; border-bottom: 0.5px solid #1a1a1a; }
.feed-header > div { flex: 1; }
.feed-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: #fff; line-height: 1; }
.feed-sub { font-size: 11px; color: #999; margin-top: 4px; }
.feed-header-flame { font-size: 22px; color: #FF6B2B; filter: drop-shadow(0 0 8px rgba(255,90,20,0.5)); }
.feed-content { flex: 1; overflow-y: auto; padding: 14px; }
.feed-content::-webkit-scrollbar { display: none; }
.post { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.post.pr-post { border-color: #FF6B2B44; }
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-av { width: 36px; height: 36px; border-radius: 50%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 700; color: #aaa; flex-shrink: 0; }
.post-info { flex: 1; }
.post-name { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 600; color: #fff; line-height: 1.1; }
.post-meta { font-size: 10px; color: #888; margin-top: 3px; }
.post-badge { background: #1a1a1a; border: 0.5px solid #FF6B2B; border-radius: 20px; padding: 3px 9px; font-size: 9px; color: #FF6B2B; font-weight: 700; letter-spacing: 0.1em; }
.post-action { font-size: 13px; color: #fff; line-height: 1.5; margin-bottom: 10px; }
.post-action .verb { color: #999; }
.post-action strong { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 700; color: #FF6B2B; }
.post-stats { display: flex; gap: 8px; margin-bottom: 12px; }
.post-stat { flex: 1; background: #050505; border: 0.5px solid #1a1a1a; border-radius: 8px; padding: 8px; text-align: center; }
.post-stat-num { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 700; color: #fff; }
.post-stat-label { font-size: 9px; color: #888; margin-top: 2px; letter-spacing: 0.1em; }
.post-reactions { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 0.5px solid #1a1a1a; }
.react-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 5px; padding: 4px 0; font-family: 'Inter', sans-serif; }
.react-btn i { font-size: 16px; color: #666; }
.react-btn span { font-size: 11px; color: #999; font-weight: 500; }
.react-btn.liked i { color: #FF6B2B; }
.react-btn.liked span { color: #FF6B2B; }
.post-time { margin-left: auto; font-size: 10px; color: #555; }

/* ME */
.profile-top { text-align: center; padding: 18px 0 14px; }
.profile-av { width: 70px; height: 70px; border-radius: 50%; background: #0a0a0a; border: 2px solid #FF6B2B; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: #fff; margin: 0 auto 10px; box-shadow: 0 0 18px rgba(255,107,43,0.25); }
.profile-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #fff; line-height: 1; }
.profile-handle { font-size: 12px; color: #FFB23F; margin-top: 4px; font-weight: 600; letter-spacing: 0.02em; }
.profile-sub { font-size: 12px; color: #999; margin-top: 5px; font-weight: 500; }
.streak-chip { color: #FFB23F; text-shadow: 0 0 10px rgba(255,90,20,0.5); font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.stat-cell { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 12px; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: #FF6B2B; line-height: 1; }
.stat-label { font-size: 10px; color: #888; margin-top: 5px; }
.pr-list { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.pr-list-row { display: flex; justify-content: space-between; padding: 10px 14px; border-bottom: 0.5px solid #1a1a1a; }
.pr-list-row:last-child { border-bottom: none; }
.pr-list-label { font-size: 12px; color: #999; }
.pr-list-val { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 700; color: #FF6B2B; }
.badge-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.badge-cell { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 12px 8px; text-align: center; }
.badge-cell.earned { border-color: #FF6B2B33; }
.badge-cell i { font-size: 22px; margin-bottom: 6px; color: #333; }
.badge-cell.earned i { color: #FF6B2B; }
.badge-cell .badge-name { font-size: 9px; color: #666; line-height: 1.3; }
.badge-cell.earned .badge-name { color: #fff; }
.me-footer { text-align: center; font-size: 10px; color: #666; margin: 14px 0 4px; }

/* TOAST */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: #1a1208; border: 0.5px solid #FF6B2B66; color: #ffd9b0;
  font-size: 13px; font-weight: 500; padding: 11px 18px; border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 100; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ════════════════════ v2 ADDITIONS ════════════════════ */

/* Tappable identity on home */
.top-id { display: flex; align-items: center; gap: 12px; cursor: pointer; border-radius: 12px; padding: 2px; transition: opacity .15s; }
.top-id:active { opacity: .7; }

/* Compact streak + level cards on home */
.fire-hero { padding: 11px 13px; margin-bottom: 8px; }
.fire-hero-flame, .fire-hero-flame svg { width: 34px; height: 40px; }
.fire-hero-num { font-size: 30px; }
.fire-hero-label { margin-bottom: 2px; }
.fire-hero-msg { margin-top: 9px; padding-top: 9px; font-size: 10.5px; }
.level-card-v2 { padding: 11px 13px; margin-bottom: 8px; }
.level-card-top { margin-bottom: 8px; }
.next-unlock { padding-top: 8px; }

/* Profile gear */
.profile-top { position: relative; }
.profile-gear { position: absolute; top: 14px; right: 4px; width: 34px; height: 34px; border-radius: 50%; background: #0d0d0d; border: 0.5px solid #1f1f1f; cursor: pointer; }
.profile-gear i { font-size: 16px; color: #888; }
.profile-av { cursor: pointer; }

/* ── Forge composer + comments ─────────────────────────── */
.composer { display: flex; align-items: center; gap: 10px; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 8px 10px; margin-bottom: 12px; }
.composer-av { width: 34px; height: 34px; border-radius: 50%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 700; color: #FF6B2B; border: 1px solid #FF6B2B33; flex-shrink: 0; }
.composer-input { flex: 1; background: transparent; border: none; color: #fff; font-size: 13px; font-family: 'Inter', sans-serif; outline: none; }
.composer-input::placeholder { color: #888; }
.composer-send { width: 34px; height: 34px; border-radius: 50%; background: #FF6B2B; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.composer-send i { font-size: 16px; color: #fff; }
.post-sub-note { font-size: 11px; color: #888; }
.comments { border-top: 0.5px solid #1a1a1a; margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.comment { font-size: 12px; color: #ccc; line-height: 1.4; }
.comment-author { font-family: 'Cormorant Garamond', serif; font-weight: 700; color: #fff; margin-right: 5px; }
.comment-composer { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.comment-input { flex: 1; background: #050505; border: 0.5px solid #1a1a1a; border-radius: 18px; padding: 8px 12px; color: #fff; font-size: 12px; font-family: 'Inter', sans-serif; outline: none; }
.comment-input:focus { border-color: #FF6B2B66; }
.comment-input::placeholder { color: #555; }
.comment-send { width: 30px; height: 30px; border-radius: 50%; background: #1a1a1a; border: 0.5px solid #2a2a2a; cursor: pointer; flex-shrink: 0; }
.comment-send i { font-size: 15px; color: #FF6B2B; }

/* ── League ladder ─────────────────────────────────────── */
.league-ladder { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 2px; margin-bottom: 6px; flex-shrink: 0; }
.league-ladder::-webkit-scrollbar { display: none; }
.ladder-step { flex: 0 0 auto; min-width: 76px; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 9px 8px; text-align: center; }
.ladder-step i { font-size: 15px; color: #444; }
.ladder-step.locked i { opacity: .5; }    /* not-yet-reached tiers: coloured, but faded */
.ladder-step.current { border-color: #FF6B2B; background: linear-gradient(160deg, rgba(255,107,43,0.10), #0d0d0d 70%); }
.ladder-step.current i { color: #FF6B2B; }
.ladder-name { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 700; color: #888; margin-top: 4px; }
.ladder-step.current .ladder-name { color: #fff; }
.ladder-step.done .ladder-name { color: #bbb; }
.ladder-lvl { font-size: 8px; color: #666; letter-spacing: 0.08em; margin-top: 2px; }

/* ── Account screen ────────────────────────────────────── */
.account-content { padding-top: 4px; }
.account-hero { display: flex; align-items: center; gap: 12px; background: linear-gradient(150deg, rgba(255,107,43,0.07), #0d0d0d 60%); border: 0.5px solid #2a1a10; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.account-hero .profile-av { border-width: 2px; box-shadow: 0 0 14px rgba(255,107,43,0.25); }
.account-hero-info { flex: 1; min-width: 0; }
.account-hero-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #fff; line-height: 1; }
.account-hero-sub { font-size: 11px; color: #999; margin-top: 4px; }
.account-code { text-align: right; flex-shrink: 0; }
.account-code-label { font-size: 8px; color: #888; letter-spacing: 0.12em; }
.account-code-val { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 700; color: #FFB23F; margin-top: 3px; }

.acct-tabs { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tab { flex: 0 0 auto; padding: 7px 13px; font-size: 12px; border: 0.5px solid #1f1f1f; background: #0d0d0d; color: #888; font-family: 'Inter', sans-serif; font-weight: 500; border-radius: 18px; cursor: pointer; white-space: nowrap; }
.acct-tab.active { background: #FF6B2B; border-color: #FF6B2B; color: #fff; font-weight: 600; }
.acct-pane { display: none; }
.acct-pane.active { display: block; animation: screenIn .2s ease; }

.add-friend-row { display: flex; gap: 8px; }
.add-friend-row .form-input { flex: 1; }
.add-friend-btn { padding: 0 18px; background: #FF6B2B; border: none; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; flex-shrink: 0; }
.count-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 5px; background: #FF6B2B; color: #fff; border-radius: 8px; font-size: 9px; font-weight: 700; margin-left: 6px; vertical-align: middle; letter-spacing: 0; }
.empty-note { font-size: 12px; color: #666; padding: 4px 2px; }
.friend-row { display: flex; align-items: center; gap: 10px; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.friend-av { width: 34px; height: 34px; border-radius: 50%; background: #1a1a1a; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 12px; font-weight: 700; color: #aaa; flex-shrink: 0; }
.friend-info { flex: 1; min-width: 0; }
.friend-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.1; }
.friend-meta { font-size: 10px; color: #888; margin-top: 2px; }
.friend-actions { display: flex; gap: 6px; }
.fr-accept, .fr-decline { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; border: none; }
.fr-accept { background: #FF6B2B; } .fr-accept i { color: #fff; font-size: 15px; }
.fr-decline { background: #1a1a1a; border: 0.5px solid #2a2a2a; } .fr-decline i { color: #888; font-size: 15px; }

.seg-control { display: flex; gap: 6px; margin-bottom: 10px; }
.seg-pill { flex: 1; padding: 11px 4px; border-radius: 12px; border: 0.5px solid #2a2a2a; background: #0d0d0d; color: #888; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg-pill.active { background: #FF6B2B0a; border-color: #FF6B2B; color: #FF6B2B; font-weight: 600; }
.sense-desc { font-size: 12px; color: #999; line-height: 1.5; padding: 0 2px; }

.current-plan { font-size: 13px; color: #999; margin-bottom: 12px; }
.current-plan strong { color: #FF6B2B; font-family: 'Cormorant Garamond', serif; }
.plan-card { background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.plan-card.featured { border-color: #FF6B2B; background: linear-gradient(160deg, rgba(255,107,43,0.06), #0d0d0d 55%); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.plan-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: #fff; }
.plan-price { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700; color: #FF6B2B; }
.plan-perks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.plan-perk { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #bbb; }
.plan-perk i { font-size: 13px; color: #FF6B2B; }
.plan-btn { width: 100%; padding: 11px; border-radius: 22px; border: none; background: #FF6B2B; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }
.plan-btn.owned { background: #1a1a1a; color: #888; cursor: default; border: 0.5px solid #2a2a2a; }

.sec-row { display: flex; align-items: center; gap: 12px; background: #0d0d0d; border: 0.5px solid #1a1a1a; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.sec-row-info { flex: 1; }
.sec-row-title { font-size: 13px; color: #fff; font-weight: 600; }
.sec-row-sub { font-size: 11px; color: #888; margin-top: 2px; line-height: 1.4; }
.toggle { width: 42px; height: 24px; border-radius: 14px; background: #1a1a1a; border: 0.5px solid #2a2a2a; position: relative; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.toggle-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #666; transition: transform .2s, background .2s; }
.toggle.on { background: #FF6B2B; border-color: #FF6B2B; }
.toggle.on .toggle-knob { transform: translateX(18px); background: #fff; }
.danger-btn { width: 100%; padding: 13px; border-radius: 26px; background: #0d0d0d; border: 0.5px solid #3a1414; color: #e06a5a; font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; }

/* ── Lock screen ───────────────────────────────────────── */
.lock-screen { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at center, #160a06 0%, #000 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lock-flame { margin-bottom: 18px; }
.lock-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #fff; }
.lock-sub { font-size: 12px; color: #888; margin-top: 6px; margin-bottom: 22px; }
.lock-pin-input { width: 160px; text-align: center; letter-spacing: 0.4em; font-size: 24px; background: #0d0d0d; border: 0.5px solid #2a2a2a; border-radius: 14px; padding: 14px; color: #fff; outline: none; font-family: 'Cormorant Garamond', serif; }
.lock-pin-input:focus { border-color: #FF6B2B; }
.lock-err { font-size: 12px; color: #e06a5a; margin-top: 12px; min-height: 16px; }

/* ════════════════════ v3 ADDITIONS ════════════════════ */

/* Ranks — per-exercise toggle row */
.ex-filter { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; flex-shrink: 0; }
.ex-filter::-webkit-scrollbar { display: none; }
.ex-chip { flex: 0 0 auto; padding: 6px 13px; font-size: 11px; border: 0.5px solid #2a2a2a; background: #0d0d0d; color: #888; font-family: 'Inter', sans-serif; font-weight: 500; border-radius: 16px; cursor: pointer; white-space: nowrap; }
.ex-chip.active { background: #FF6B2B0a; border-color: #FF6B2B; color: #FF6B2B; font-weight: 600; }

/* Forge — challenge a friend */
.challenge-cta { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(255,107,43,0.10), #0d0d0d 70%); border: 0.5px solid #FF6B2B66; border-radius: 14px; color: #FF6B2B; font-size: 13px; font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.challenge-cta i { font-size: 16px; }
.challenge-cta.open { border-color: #FF6B2B; background: #FF6B2B1f; }
.challenge-panel { background: #0d0d0d; border: 0.5px solid #FF6B2B44; border-radius: 14px; padding: 14px; margin-bottom: 12px; animation: screenIn .2s ease; }
.challenge-panel-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.challenge-panel .form-field { margin-bottom: 10px; }
.challenge-panel .form-row { margin-bottom: 10px; }
.challenge-panel select.form-input { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.challenge-panel .primary-btn { margin-top: 4px; }

/* Today's Trial — pronounced accent card */
.trial-card { background: linear-gradient(158deg, rgba(255,107,43,0.12), #0d0d0d 62%); border: 1px solid #FF6B2B; border-radius: 16px; padding: 13px; margin-bottom: 10px; box-shadow: 0 0 0 0.5px rgba(255,120,40,0.18), inset 0 0 28px rgba(255,90,20,0.06), 0 6px 22px rgba(255,90,20,0.06); }
.trial-card-header { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.trial-card-icon { width: 38px; height: 38px; border-radius: 11px; background: #FF6B2B22; border: 0.5px solid #FF6B2B55; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trial-card-icon i { font-size: 19px; color: #FF6B2B; }
.trial-card-head-info { flex: 1; }
.trial-card-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: 0.01em; }
.trial-card-sub { font-size: 11px; color: #FFB23F; margin-top: 4px; font-weight: 600; letter-spacing: 0.02em; }
.trial-card-pct { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: #FF6B2B; line-height: 1; }
.trial-card-bar { height: 5px; background: #1f140d; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.trial-card-bar-fill { height: 100%; background: linear-gradient(90deg, #FFD23F, #FF6B2B 55%, #FF3B1D); border-radius: 10px; transition: width .5s ease; box-shadow: 0 0 8px rgba(255,120,30,0.5); }

/* Notification bell add-on */
.top-bell { position: relative; }
.notif-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: linear-gradient(180deg,#FF8A1E,#E0301E); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid #050505; box-shadow: 0 0 8px rgba(255,90,20,0.6); }
.top-bell.open { background: #FF6B2B1f; border-color: #FF6B2B66; }
.top-bell.open i { color: #FF6B2B; }
.notif-panel { position: absolute; top: 52px; right: 14px; width: 264px; max-height: 60%; z-index: 90; flex-direction: column; background: #0f0b08; border: 0.5px solid #3a2414; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,120,40,0.12); overflow: hidden; animation: notifIn .18s ease; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 0.5px solid #241710; flex-shrink: 0; }
.notif-head span { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 700; color: #fff; }
.notif-close { background: none; border: none; cursor: pointer; padding: 2px; }
.notif-close i { font-size: 16px; color: #888; }
.notif-list { overflow-y: auto; padding: 6px; }
.notif-list::-webkit-scrollbar { display: none; }
.notif-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.notif-row:active { background: #FF6B2B14; }
.notif-icon { width: 30px; height: 30px; border-radius: 9px; background: #1a120b; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon i { font-size: 15px; }
.notif-info { flex: 1; min-width: 0; }
.notif-title { font-size: 12px; color: #fff; font-weight: 500; line-height: 1.3; }
.notif-sub { font-size: 10px; color: #9a8472; margin-top: 2px; }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 14px; color: #777; font-size: 12px; }
.notif-empty i { font-size: 26px; color: #FF6B2B88; }

/* Flatten the trial rows inside the accent card (was boxes-in-a-box) */
.trial-card .trial-card-bar { margin-bottom: 6px; }
.trial-card .trial-mini-item { background: transparent; border: none; border-bottom: 0.5px solid rgba(255,120,40,0.14); border-radius: 0; padding: 10px 2px; margin: 0; }
.trial-card .trial-mini-item:last-child { border-bottom: none; padding-bottom: 2px; }
.trial-card .trial-mini-item:not(.done):active { background: rgba(255,107,43,0.06); }
.trial-card .trial-mini-icon { width: 24px; height: 24px; border-radius: 7px; background: rgba(255,107,43,0.12); }
.trial-card .trial-mini-icon i { font-size: 12px; color: #FF8A1E; }
.trial-card .trial-mini-name { font-size: 15px; }

/* Train — suggested goal banner (moved off Home) */
.suggest-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(255,107,43,0.10), #0d0d0d 65%); border: 0.5px solid #FF6B2B66; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; cursor: pointer; transition: border-color .2s; }
.suggest-banner:active { border-color: #FF6B2B; }
.suggest-icon { width: 38px; height: 38px; border-radius: 11px; background: #FF6B2B22; border: 0.5px solid #FF6B2B44; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.suggest-icon i { font-size: 18px; color: #FF6B2B; }
.suggest-info { flex: 1; min-width: 0; }
.suggest-label { font-size: 9px; color: #b06a3a; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 3px; }
.suggest-line { font-family: 'Cormorant Garamond', serif; font-size: 15px; color: #fff; }
.suggest-line strong { color: #FF6B2B; font-weight: 700; font-size: 18px; }
.suggest-arrow { color: #555; margin: 0 7px; }
.suggest-tar { font-weight: 700; font-size: 18px; }
.suggest-xp { text-align: center; flex-shrink: 0; background: #1a1208; border: 0.5px solid #4a2410; border-radius: 9px; padding: 5px 10px; }
.suggest-xp-num { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 700; color: #FFB23F; line-height: 1; }
.suggest-xp-label { font-size: 8px; color: #9a6a3a; letter-spacing: 0.1em; margin-top: 2px; font-weight: 600; }

/* Sign up / sign in screen */
.auth-page { flex: 1; display: flex; flex-direction: column; padding: 20px 24px 26px; overflow-y: auto; }
.auth-page::-webkit-scrollbar { display: none; }
.auth-top { text-align: center; margin: 8px 0 16px; display: flex; flex-direction: column; align-items: center; }
.auth-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: #fff; line-height: 1.1; }
.auth-sub { font-size: 12px; color: #999; line-height: 1.5; max-width: 260px; margin-top: 8px; }
.auth-seg { display: flex; gap: 4px; background: #0d0d0d; border: 0.5px solid #1f1f1f; border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.auth-seg-tab { flex: 1; padding: 9px; border: none; background: transparent; color: #888; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; border-radius: 9px; cursor: pointer; transition: background .2s, color .2s; }
.auth-seg-tab.active { background: #FF6B2B; color: #fff; }
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.auth-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px; border-radius: 26px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: filter .15s; }
.auth-btn:active { filter: brightness(0.94); }
.auth-btn i { font-size: 18px; }
.auth-btn.google { background: #fff; color: #1a1a1a; }
.auth-btn.apple { background: #111; color: #fff; border: 0.5px solid #333; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #666; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 0.5px; background: #2a2a2a; }
.auth-email { display: flex; flex-direction: column; gap: 10px; }
.auth-email .primary-btn { margin-top: 2px; }
.auth-foot { text-align: center; font-size: 11px; color: #777; margin-top: auto; padding-top: 18px; line-height: 1.5; }
.auth-foot span { color: #FF6B2B; cursor: pointer; font-weight: 600; }
.auth-btn:disabled { opacity: .55; cursor: default; }

/* ════════════════════ ONBOARDING QUIZ ════════════════════ */
.quiz-page { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.quiz-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px 14px; flex-shrink: 0; }
.quiz-back { background: none; border: none; cursor: pointer; padding: 4px 6px 4px 0; flex-shrink: 0; }
.quiz-back i { font-size: 20px; color: #FF6B2B; }
.quiz-back.hidden { visibility: hidden; }
.quiz-progress { flex: 1; height: 5px; background: #1a1a1a; border-radius: 10px; overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 20%; background: linear-gradient(90deg, #FFD23F, #FF6B2B 55%, #FF3B1D); border-radius: 10px; transition: width .35s ease; box-shadow: 0 0 8px rgba(255,120,30,0.5); }
.quiz-step-label { font-family: 'Cormorant Garamond', serif; font-size: 13px; font-weight: 700; color: #888; flex-shrink: 0; min-width: 30px; text-align: right; }
.quiz-body { flex: 1; overflow-y: auto; padding: 4px 22px 18px; }
.quiz-body::-webkit-scrollbar { display: none; }
.quiz-title { font-family: 'Cormorant Garamond', serif; font-size: 27px; font-weight: 600; color: #fff; line-height: 1.15; margin-bottom: 6px; }
.quiz-sub { font-size: 12px; color: #999; line-height: 1.5; margin-bottom: 18px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option { display: flex; align-items: center; gap: 12px; background: #0d0d0d; border: 1px solid #1a1a1a; border-radius: 13px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-option:active { border-color: #FF6B2B66; }
.quiz-option.selected { border-color: #FF6B2B; background: #FF6B2B0d; }
.quiz-option-icon { width: 34px; height: 34px; border-radius: 10px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-option-icon i { font-size: 17px; color: #888; }
.quiz-option.selected .quiz-option-icon { background: #FF6B2B22; }
.quiz-option.selected .quiz-option-icon i { color: #FF6B2B; }
.quiz-option-label { flex: 1; font-size: 14px; color: #ddd; font-weight: 500; }
.quiz-option.selected .quiz-option-label { color: #fff; }
.quiz-option-check { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quiz-option.multi .quiz-option-check { border-radius: 6px; }
.quiz-option.selected .quiz-option-check { background: #FF6B2B; border-color: #FF6B2B; }
.quiz-option-check i { font-size: 12px; color: transparent; }
.quiz-option.selected .quiz-option-check i { color: #fff; }
.quiz-note { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: #8a7461; line-height: 1.5; margin-top: 16px; }
.quiz-note i { color: #FF6B2B; font-size: 14px; margin-top: 1px; flex-shrink: 0; }
.quiz-foot { padding: 12px 22px 20px; flex-shrink: 0; border-top: 0.5px solid #141414; background: #050505; }
.quiz-skip { text-align: center; font-size: 12px; color: #777; cursor: pointer; padding: 12px 12px 2px; }
.qf-hint { color: #7a6a5a; font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 9px; }

/* ════════════════════ CAMERA FORM GUIDE ════════════════════ */
.cam-guide { width: 168px; height: 106px; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.ff { width: 100%; height: 100%; overflow: visible; }
.ff path { fill: none; stroke: #FF8A1E; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255,120,30,0.5)); }
.ff .ff-j { fill: #FFD23F; stroke: none; }
.ff-ground { stroke: #4a2a16; stroke-width: 2.5; stroke-linecap: round; }
.ff-cross .ff-a { animation: ffA 2.6s ease-in-out infinite; }
.ff-cross .ff-b { animation: ffB 2.6s ease-in-out infinite; }
@keyframes ffA { 0%,24%{opacity:1} 50%,74%{opacity:0} 100%{opacity:1} }
@keyframes ffB { 0%,24%{opacity:0} 50%,74%{opacity:1} 100%{opacity:0} }
.ff-hold .ff-h { animation: ffHold 2.8s ease-in-out infinite; transform-origin: 110px 88px; }
@keyframes ffHold { 0%,100%{opacity:1; transform:none} 50%{opacity:.72; transform:translateY(1.5px)} }
/* Burpees: a 5-frame loop — stand → squat → plank → jump-to-squat → jump up. */
.ff-ex-burpees [class^="ff-s"] { opacity: 0; }
.ff-ex-burpees .ff-s1 { animation: ffSeq 4.4s ease-in-out infinite; }
.ff-ex-burpees .ff-s2 { animation: ffSeq 4.4s ease-in-out infinite; animation-delay: .88s; }
.ff-ex-burpees .ff-s3 { animation: ffSeq 4.4s ease-in-out infinite; animation-delay: 1.76s; }
.ff-ex-burpees .ff-s4 { animation: ffSeq 4.4s ease-in-out infinite; animation-delay: 2.64s; }
.ff-ex-burpees .ff-s5 { animation: ffSeq 4.4s ease-in-out infinite; animation-delay: 3.52s; }
@keyframes ffSeq { 0%{opacity:0} 4%{opacity:1} 18%{opacity:1} 22%{opacity:0} 100%{opacity:0} }
.ff .ff-lift { stroke: #FFB23F; stroke-width: 3; stroke-dasharray: 4 7; opacity: .5; filter: none; }
.cam-view-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #FFB23F; background: #1a1208; border: 0.5px solid #4a2410; border-radius: 14px; padding: 4px 10px; margin-bottom: 12px; }
.cam-view-badge i { font-size: 12px !important; color: #FFB23F !important; margin: 0 !important; }

/* ════════════════════ PRO / PAYWALL ════════════════════ */
/* Trial-status banner on Home */
.pro-banner { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, rgba(255,107,43,0.14), #0d0d0d 70%); border: 0.5px solid #FF6B2B66; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 12px; color: #FFB23F; font-weight: 600; }
.pro-banner > i:first-child { font-size: 15px; color: #FF6B2B; }
.pro-banner span { flex: 1; }
.pro-banner > i:last-child { font-size: 15px; color: #FF6B2B99; }
.pro-banner.locked { border-color: #FF4D1788; background: linear-gradient(135deg, rgba(224,48,18,0.16), #0d0d0d 70%); color: #ff9a7a; }
.pro-banner.locked > i:first-child { color: #FF4D17; }

/* Dormant Flash card (between windows) */
.flash-card-home.dormant { border-color: #2a2a2a; background: #0d0d0d; }
.flash-card-home.dormant .flash-live { color: #888; }
.flash-card-home.dormant .flash-dot { background: #888; animation: none; }
.flash-card-home.dormant .flash-title { color: #bbb; }
.flash-card-home.dormant .flash-btn { background: #1a1a1a; color: #ccc; }

/* Paywall screen */
.paywall { flex: 1; display: flex; flex-direction: column; padding: 14px 22px 24px; overflow-y: auto; position: relative; }
.paywall::-webkit-scrollbar { display: none; }
.paywall-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: #0d0d0d; border: 0.5px solid #1f1f1f; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.paywall-close i { font-size: 16px; color: #888; }
.paywall-top { text-align: center; display: flex; flex-direction: column; align-items: center; margin: 8px 0 16px; }
.paywall-kicker { font-size: 10px; letter-spacing: 0.25em; color: #FF6B2B; font-weight: 700; }
.paywall-title { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; color: #fff; line-height: 1.1; margin-top: 8px; }
.paywall-sub { font-size: 12px; color: #999; line-height: 1.5; max-width: 280px; margin-top: 8px; }
.paywall-perks { display: flex; flex-direction: column; gap: 9px; background: #0d0d0d; border: 0.5px solid #1f1f1f; border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.paywall-perk { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #ddd; }
.paywall-perk i { font-size: 15px; color: #FF6B2B; }
.paywall-plans { display: flex; gap: 10px; margin-bottom: 14px; }
.pw-plan { flex: 1; position: relative; background: #0d0d0d; border: 1px solid #1f1f1f; border-radius: 14px; padding: 16px 12px 14px; cursor: pointer; text-align: center; font-family: 'Inter', sans-serif; transition: border-color .15s, background .15s; }
.pw-plan.sel { border-color: #FF6B2B; background: #FF6B2B0d; }
.pw-badge { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg,#FFC24A,#FF6B2B); color: #1a0f06; font-size: 8px; font-weight: 800; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.pw-plan-price { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; color: #fff; line-height: 1; }
.pw-plan-price span { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: #888; }
.pw-plan.sel .pw-plan-price { color: #FF6B2B; }
.pw-plan-note { font-size: 10px; color: #999; margin-top: 6px; }
.paywall-foot { text-align: center; font-size: 11px; color: #777; margin-top: 12px; }
.paywall-foot span { color: #FF6B2B; cursor: pointer; font-weight: 600; }
.paywall-later { text-align: center; font-size: 13px; color: #888; cursor: pointer; margin-top: 14px; padding: 6px; font-weight: 500; }
.paywall-later:active { color: #fff; }

/* ════════════════════ STARTUP PERMISSIONS + EMPTY STATES ════════════════════ */
.perm-modal { position: fixed; inset: 0; z-index: 210; background: rgba(5,4,3,0.86); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.perm-card { width: 320px; max-width: 92vw; background: #0d0b09; border: 0.5px solid #3a2414; border-radius: 22px; padding: 24px 22px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,120,40,0.12); animation: notifIn .22s ease; }
.perm-flame { display: flex; justify-content: center; margin-bottom: 12px; }
.perm-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: #fff; }
.perm-sub { font-size: 12px; color: #999; line-height: 1.5; margin-top: 8px; }
.perm-rows { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; text-align: left; }
.perm-row { display: flex; align-items: flex-start; gap: 12px; }
.perm-row-ic { width: 38px; height: 38px; border-radius: 11px; background: #FF6B2B1a; border: 0.5px solid #FF6B2B44; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.perm-row-ic i { font-size: 18px; color: #FF6B2B; }
.perm-row-t { font-size: 13px; color: #fff; font-weight: 600; }
.perm-row-s { font-size: 11px; color: #999; line-height: 1.4; margin-top: 2px; }
.perm-later { font-size: 12px; color: #888; cursor: pointer; padding: 12px; margin-top: 2px; }

.feed-empty { text-align: center; padding: 40px 24px; color: #777; }
.feed-empty i { font-size: 34px; color: #FF6B2B88; }
.feed-empty-t { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #ccc; margin-top: 10px; }
.feed-empty-s { font-size: 12px; color: #888; line-height: 1.5; margin-top: 6px; max-width: 240px; margin-left: auto; margin-right: auto; }

/* ════════ Installed PWA / phone: fill the screen like a native app ════════
   On desktop the app stays a centered "phone" mockup; on a real phone or when
   added to the home screen it goes edge-to-edge with no frame and no fake
   status bar (the OS one shows instead), respecting the notch via safe-area. */
@media (max-width: 560px), (display-mode: standalone) {
  body { display: block; padding: 0; }
  .wrap { padding: 0; margin: 0; width: 100%; }
  .tagline { display: none; }
  .phone {
    width: 100%; max-width: 100%; margin: 0;
    height: 100vh; height: 100dvh; max-height: none;
    border: none; border-radius: 0; box-shadow: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .status-bar { display: none; }
}

/* ════════════════ Terms acceptance · legal · moderation ════════════════ */
/* Onboarding Terms checkbox */
.terms-check { display: flex; gap: 11px; align-items: flex-start; margin-top: 16px; padding: 13px; border: 0.5px solid #2a2a2a; border-radius: 14px; background: #0d0c0b; cursor: pointer; transition: border-color .15s, background .15s; }
.terms-check.checked { border-color: #FF6B2B66; background: #160d07; }
.terms-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #444; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; transition: background .15s, border-color .15s; }
.terms-box i { font-size: 14px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.terms-check.checked .terms-box { background: linear-gradient(135deg,#FFB23E,#FF6B2B); border-color: #FF6B2B; }
.terms-check.checked .terms-box i { opacity: 1; transform: scale(1); }
.terms-text { font-size: 11.5px; color: #b3b3b3; line-height: 1.5; }
.terms-text b { color: #e8e8e8; }
.terms-link { color: #FF8A4C; font-weight: 600; cursor: pointer; }
.terms-link:hover { text-decoration: underline; }
.quiz-missing { font-size: 11.5px; color: #FFB23F; font-weight: 600; margin-top: 12px; text-align: center; min-height: 14px; }
.quiz-missing:empty { display: none; }

/* Legal / policy overlay */
.legal-modal { position: fixed; inset: 0; z-index: 230; background: rgba(5,4,3,0.88); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.legal-card { width: 380px; max-width: 94vw; height: 80vh; max-height: 680px; background: #0c0b0a; border: 0.5px solid #3a2414; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 0.5px rgba(255,120,40,0.12); animation: notifIn .22s ease; }
.legal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.legal-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #fff; }
.legal-close { width: 30px; height: 30px; border-radius: 50%; background: #161514; border: 0.5px solid #2a2a2a; color: #ccc; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.legal-tabs { display: flex; gap: 6px; padding: 0 14px 12px; border-bottom: 0.5px solid #1c1b1a; }
.legal-tab { flex: 1; padding: 8px 4px; border-radius: 10px; background: transparent; border: 0.5px solid #242322; color: #9a9a9a; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s; }
.legal-tab.active { background: #160d07; border-color: #FF6B2B66; color: #FF8A4C; }
.legal-body { flex: 1; overflow-y: auto; padding: 16px 18px 26px; -webkit-overflow-scrolling: touch; }
.legal-section { display: none; }
.legal-section.active { display: block; }
.legal-h { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: #fff; }
.legal-meta { font-size: 10.5px; color: #777; letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.legal-sub { font-size: 13px; font-weight: 700; color: #FF8A4C; margin-top: 16px; }
.legal-p { font-size: 12.5px; color: #bdbdbd; line-height: 1.6; margin-top: 7px; }
.legal-p b { color: #ececec; }
.legal-note { color: #888; font-style: italic; border-top: 0.5px solid #1c1b1a; padding-top: 10px; margin-top: 16px; }

/* Account: blocked-accounts list + tappable rows */
.sec-row.tappable { cursor: pointer; }
.count-pill { display: inline-block; min-width: 18px; padding: 0 6px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: #FF6B2B; color: #1a0a02; font-size: 11px; font-weight: 800; vertical-align: middle; margin-left: 4px; }
#blocked-list { margin-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.blocked-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 0.5px solid #242322; border-radius: 11px; background: #0d0c0b; }
.blocked-name { font-size: 13px; color: #ddd; font-weight: 600; }
.unblock-btn { padding: 5px 12px; border-radius: 9px; background: #161514; border: 0.5px solid #3a3a3a; color: #FF8A4C; font-size: 11.5px; font-weight: 700; cursor: pointer; }

/* Forge feed: overflow (⋯) menus for report / block */
.post { position: relative; }
.comment { position: relative; }
.post-kebab, .comment-kebab { background: transparent; border: none; color: #777; cursor: pointer; padding: 4px; line-height: 1; border-radius: 8px; }
.post-kebab { position: absolute; top: 0; right: 0; font-size: 18px; }
.post-kebab:hover, .comment-kebab:hover { color: #ccc; background: #ffffff0a; }
.comment-kebab { font-size: 14px; vertical-align: middle; margin-left: 2px; opacity: .55; }
.post-menu, .cmenu { position: absolute; right: 0; z-index: 12; min-width: 184px; background: #15110e; border: 0.5px solid #3a2414; border-radius: 13px; padding: 5px; box-shadow: 0 16px 40px rgba(0,0,0,0.6); animation: notifIn .14s ease; }
.post-menu { top: 28px; }
.cmenu { top: 20px; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border: none; background: transparent; color: #ddd; font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; border-radius: 9px; }
.menu-item i { font-size: 15px; }
.menu-item:hover { background: #ffffff0d; }
.menu-item.danger { color: #ff7a6b; }

/* "PRO" lock pill on gated Train modes (Max Reps / Timed) — shown to free users */
.mode-lock { display: none; align-items: center; gap: 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #FF6B2B; background: #FF6B2B1a; border: 0.5px solid #FF6B2B55; border-radius: 20px; padding: 3px 8px; margin-right: 6px; white-space: nowrap; }
.mode-lock i { font-size: 11px; }
.mode-lock.show { display: inline-flex; }
