/* ===========================================================
   V.MAN TAILOR — CA Training SOP Dashboard
   Design tokens
=========================================================== */
:root{
  --bg:            #05070d;
  --bg-elev-1:     #0c111c;
  --bg-elev-2:     #10152280;
  --panel:         #0f1420;
  --panel-soft:    #0b0f18;
  --border:        #1b2333;
  --border-soft:   #161d2a;
  --border-hover:  #2a3448;

  --gold:          #d4af37;
  --gold-bright:   #f5c451;
  --gold-dim:      #b45309;
  --gold-10:       rgba(212,175,55,.10);
  --gold-20:       rgba(212,175,55,.22);
  --gold-40:       rgba(212,175,55,.40);

  --red:           #ef4444;
  --red-15:        rgba(239,68,68,.14);
  --emerald:       #10b981;
  --emerald-15:    rgba(16,185,129,.14);

  --text-1:        #f1ede4;
  --text-2:        #b7bfcc;
  --text-3:        #7c8698;
  --text-4:        #4b5568;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --sidebar-w: 292px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(212,175,55,.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 20%, rgba(212,175,55,.05), transparent 55%),
    var(--bg);
  color:var(--text-1);
  font-family:var(--sans);
  letter-spacing:-.01em;
  line-height:1.6;
  min-height:100vh;
}

::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:var(--border); border-radius:99px; border:2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background:var(--gold); }

h1,h2,h3,h4{ font-family:var(--serif); margin:0; letter-spacing:-.01em; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:var(--sans); cursor:pointer; }
input{ font-family:var(--sans); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ===========================================================
   Mobile top bar (hidden on desktop)
=========================================================== */
.mobile-bar{
  display:none;
  position:sticky; top:0; z-index:60;
  align-items:center; gap:12px;
  padding:14px 16px;
  background:rgba(8,11,18,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft);
}
.mobile-logo{ display:flex; align-items:center; gap:8px; flex:1; }
.mobile-logo span{ font-family:var(--serif); font-weight:700; letter-spacing:.18em; font-size:13px; color:var(--gold-bright); }
.mobile-logo .logo-mark{ width:26px; height:26px; }
.mobile-progress{ font-size:12px; font-weight:700; color:var(--gold); font-variant-numeric:tabular-nums; }
.icon-btn{
  background:var(--panel); border:1px solid var(--border); color:var(--text-2);
  width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  transition:border-color .2s var(--ease), color .2s var(--ease);
}
.icon-btn svg{ width:18px; height:18px; }
.icon-btn:hover{ border-color:var(--gold-40); color:var(--gold-bright); }

/* ===========================================================
   Shell layout
=========================================================== */
.app-shell{ display:flex; min-height:100vh; }

/* ---------- Sidebar ---------- */
.sidebar{
  width:var(--sidebar-w);
  flex-shrink:0;
  background:linear-gradient(180deg, var(--bg-elev-1), var(--bg));
  border-right:1px solid var(--border-soft);
  position:sticky; top:0; height:100vh;
  overflow-y:auto;
  z-index:50;
}
.sidebar-inner{ display:flex; flex-direction:column; height:100%; padding:26px 20px 20px; }

.brand{ display:flex; align-items:center; gap:12px; padding-bottom:22px; border-bottom:1px solid var(--border-soft); margin-bottom:22px; }
.logo-mark{ width:42px; height:42px; flex-shrink:0; filter:drop-shadow(0 2px 8px rgba(212,175,55,.25)); }
.brand-text{ display:flex; flex-direction:column; line-height:1.25; }
.brand-title{ font-family:var(--serif); font-weight:700; font-size:15px; letter-spacing:.22em; color:var(--gold-bright); }
.brand-sub{ font-size:8.5px; letter-spacing:.28em; font-weight:700; color:var(--text-3); margin-top:3px; }

.sidebar-section-label{
  font-size:10px; text-transform:uppercase; letter-spacing:.18em; font-weight:700;
  color:var(--text-4); margin-bottom:12px; padding-left:2px;
}

.phase-nav{ display:flex; flex-direction:column; gap:6px; flex:1; }

.phase-nav-item{
  display:flex; align-items:center; gap:12px;
  padding:11px 12px;
  border-radius:var(--radius-sm);
  border:1px solid transparent;
  background:transparent;
  text-align:left;
  color:var(--text-2);
  transition:background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  position:relative;
  width:100%;
}
.phase-nav-item:hover{ background:var(--panel); border-color:var(--border); }
.phase-nav-item.active{
  background:linear-gradient(90deg, var(--gold-10), transparent);
  border-color:var(--gold-20);
}
.phase-nav-item.active::before{
  content:''; position:absolute; left:-20px; top:8px; bottom:8px; width:3px;
  background:linear-gradient(180deg,var(--gold-bright),var(--gold-dim));
  border-radius:3px;
}
.pn-icon{
  width:32px; height:32px; flex-shrink:0; border-radius:9px;
  display:flex; align-items:center; justify-content:center;
  background:var(--panel-soft); color:var(--text-3);
  border:1px solid var(--border-soft);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.phase-nav-item.active .pn-icon{ background:var(--gold); color:var(--bg); border-color:var(--gold); }
.pn-icon svg{ width:16px; height:16px; }
.pn-text{ flex:1; min-width:0; }
.pn-num{ font-size:9.5px; font-weight:700; letter-spacing:.14em; color:var(--gold); display:block; }
.phase-nav-item:not(.active) .pn-num{ color:var(--text-4); }
.pn-title{ font-size:12.5px; font-weight:600; color:var(--text-1); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pn-count{ font-size:10px; color:var(--text-3); font-variant-numeric:tabular-nums; flex-shrink:0; }
.pn-check{ width:6px; height:6px; border-radius:50%; background:var(--text-4); flex-shrink:0; }
.pn-check.done{ background:var(--emerald); box-shadow:0 0 8px rgba(16,185,129,.6); }

.sidebar-footer{ padding-top:16px; border-top:1px solid var(--border-soft); margin-top:16px; display:flex; flex-direction:column; gap:12px; }
.progress-card{ background:var(--panel-soft); border:1px solid var(--border); border-radius:var(--radius-md); padding:14px; }
.progress-card-head{ display:flex; justify-content:space-between; align-items:center; font-size:10.5px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-3); font-weight:700; margin-bottom:8px; }
.progress-pct{ color:var(--gold-bright); font-size:12px; }
.progress-track{ height:6px; border-radius:99px; background:var(--border-soft); overflow:hidden; }
.progress-fill{ height:100%; width:0%; border-radius:99px; background:linear-gradient(90deg,var(--gold-dim),var(--gold-bright)); transition:width .6s var(--ease); }
.progress-count{ margin-top:8px; font-size:10.5px; color:var(--text-3); font-variant-numeric:tabular-nums; }
.reset-btn{
  background:transparent; border:1px solid var(--border); color:var(--text-3);
  font-size:11px; font-weight:600; padding:9px; border-radius:var(--radius-sm);
  transition:all .2s var(--ease);
}
.reset-btn:hover{ color:var(--red); border-color:rgba(239,68,68,.35); background:var(--red-15); }

.sidebar-scrim{ display:none; }

/* ---------- Main ---------- */
.main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:18px;
  padding:16px 32px;
  background:rgba(8,11,18,.85);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border-soft);
}
.search-wrap{ position:relative; flex:1; max-width:380px; }
.search-icon{ position:absolute; left:13px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-4); pointer-events:none; }
.search-wrap input{
  width:100%; background:var(--panel-soft); border:1px solid var(--border);
  border-radius:99px; padding:10px 34px 10px 38px; font-size:12.5px; color:var(--text-1);
  outline:none; transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-wrap input::placeholder{ color:var(--text-4); }
.search-wrap input:focus{ border-color:var(--gold-40); box-shadow:0 0 0 3px var(--gold-10); }
.search-clear{
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  background:none; border:none; color:var(--text-4); font-size:11px; padding:4px 6px;
  opacity:0; pointer-events:none; transition:opacity .15s var(--ease), color .15s var(--ease);
}
.search-clear.visible{ opacity:1; pointer-events:auto; }
.search-clear:hover{ color:var(--text-1); }

.menu-tabs{ display:flex; gap:6px; background:var(--panel-soft); border:1px solid var(--border); border-radius:99px; padding:4px; }
.tab-btn{
  border:none; background:transparent; color:var(--text-3);
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em;
  padding:8px 16px; border-radius:99px; transition:all .25s var(--ease); white-space:nowrap;
}
.tab-btn.active{ background:linear-gradient(135deg,var(--gold-bright),var(--gold)); color:#1a1305; box-shadow:0 4px 14px rgba(212,175,55,.25); }
.tab-btn:not(.active):hover{ color:var(--text-1); }

.topbar-progress{ margin-left:auto; flex-shrink:0; }
.ring-wrap{ position:relative; width:40px; height:40px; }
.ring{ width:40px; height:40px; transform:rotate(-90deg); }
.ring-track{ fill:none; stroke:var(--border); stroke-width:4; }
.ring-fill{ fill:none; stroke:var(--gold); stroke-width:4; stroke-linecap:round; stroke-dasharray:106.8; stroke-dashoffset:106.8; transition:stroke-dashoffset .7s var(--ease); }
.ring-label{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:9.5px; font-weight:800; color:var(--gold-bright); }

/* Search results */
.search-results{ margin:18px 32px 0; background:var(--panel); border:1.5px solid var(--gold-20); border-radius:var(--radius-md); padding:18px 20px; animation:dropIn .3s var(--ease); }
@keyframes dropIn{ from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }
.search-results h3{ font-family:var(--sans); display:flex; align-items:center; gap:8px; font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:var(--gold); font-weight:800; margin-bottom:14px; }
.search-results h3 svg{ width:16px; height:16px; }
.search-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; }
.search-item{ background:var(--panel-soft); border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px; }
.search-item .tag{ font-size:9px; text-transform:uppercase; letter-spacing:.1em; color:var(--gold); font-weight:800; display:block; margin-bottom:5px; }
.search-item p{ font-size:12px; color:var(--text-2); line-height:1.5; }
.search-item mark{ background:var(--gold-20); color:var(--gold-bright); border-radius:3px; padding:0 2px; }
.search-empty{ color:var(--text-3); font-size:12.5px; }

/* Content */
.content{ padding:26px 32px 10px; max-width:1400px; width:100%; margin:0 auto; }

/* Hero */
.hero{
  position:relative; overflow:hidden;
  background:linear-gradient(120deg, var(--panel), rgba(15,20,32,.4), var(--panel));
  border:1px solid var(--border-soft); border-radius:24px;
  padding:32px 34px; margin-bottom:28px;
  display:flex; align-items:center; gap:28px;
}
.hero-glyph{ position:absolute; right:-30px; top:-20px; width:220px; height:220px; opacity:.05; color:var(--gold); pointer-events:none; }
.hero-body{ position:relative; z-index:1; max-width:760px; }
.eyebrow{ display:inline-flex; align-items:center; padding:6px 14px; border-radius:99px; background:var(--gold-10); border:1px solid var(--gold-20); color:var(--gold-bright); font-size:9.5px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; margin-bottom:14px; }
.hero-body h1{ font-size:clamp(22px,3vw,32px); font-weight:700; color:var(--text-1); margin-bottom:10px; letter-spacing:.01em; }
.hero-body p{ font-size:13.5px; color:var(--text-3); line-height:1.7; }

/* Phase strip (horizontal scroller under hero, mirrors sidebar selection) */
.phase-strip-wrap{ overflow-x:auto; margin:0 -6px 26px; padding:6px 6px 14px; }
.phase-strip{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(190px,1fr); gap:14px; min-width:max-content; width:100%; position:relative; }
.strip-card{
  background:var(--panel-soft); border:1px solid var(--border-soft); border-radius:var(--radius-md);
  padding:16px; cursor:pointer; transition:transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
  display:flex; flex-direction:column; justify-content:space-between;
}
.strip-card:hover{ border-color:var(--border-hover); }
.strip-card.active{ background:var(--panel); border-color:var(--gold-40); transform:translateY(-4px); box-shadow:0 10px 30px -8px rgba(212,175,55,.18); }
.strip-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:8px; }
.strip-num{ font-family:var(--serif); font-weight:700; font-size:12px; letter-spacing:.14em; color:var(--gold); }
.strip-icon{ width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; background:var(--panel); color:var(--gold); border:1px solid var(--border); }
.strip-card.active .strip-icon{ background:var(--gold); color:var(--bg); }
.strip-icon svg{ width:13px; height:13px; }
.strip-title{ font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:2px; }
.strip-sub{ font-size:9px; text-transform:uppercase; letter-spacing:.12em; color:var(--text-4); font-weight:700; margin-bottom:12px; }
.strip-foot{ display:flex; justify-content:space-between; align-items:center; font-size:10px; color:var(--text-4); font-weight:600; padding-top:10px; border-top:1px solid var(--border-soft); }
.strip-foot b{ color:var(--gold); font-variant-numeric:tabular-nums; }

/* Detail grid */
.detail-grid{ display:grid; grid-template-columns:2fr 1fr; gap:26px; align-items:start; }

.detail-main{ background:var(--panel-soft); border:1px solid var(--border-soft); border-radius:var(--radius-lg); padding:28px; }
.detail-header{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; border-bottom:1px solid var(--border-soft); padding-bottom:18px; margin-bottom:22px; }
.detail-header-left{ display:flex; align-items:center; gap:14px; }
.detail-icon{ width:52px; height:52px; border-radius:14px; background:var(--gold-10); border:1px solid var(--gold-20); color:var(--gold); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.detail-icon svg{ width:24px; height:24px; }
.detail-eyebrow{ font-size:10.5px; font-weight:800; letter-spacing:.12em; color:var(--gold); text-transform:uppercase; margin-bottom:2px; }
.detail-header h2{ font-size:22px; font-weight:700; color:var(--text-1); letter-spacing:.02em; }
.phase-pct-badge{ background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:8px 14px; display:flex; align-items:center; gap:8px; font-size:10.5px; color:var(--text-3); font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.phase-pct-badge b{ color:var(--gold); font-size:14px; font-family:var(--sans); }

.detail-intro{ font-family:var(--serif); font-style:italic; font-size:15px; color:var(--text-2); line-height:1.7; border-left:3px solid var(--gold); padding-left:16px; margin-bottom:28px; }

.checklist-label{ font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; color:var(--text-3); margin-bottom:12px; }
.checklist{ display:flex; flex-direction:column; gap:10px; }

.check-item{
  display:flex; align-items:flex-start; gap:14px; padding:15px 16px;
  border-radius:var(--radius-sm); border:1px solid var(--border-soft); background:var(--bg-elev-1);
  cursor:pointer; transition:background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  animation:riseIn .45s var(--ease) both;
}
.check-item:hover{ background:#12182a; border-color:var(--border-hover); }
.check-item:active{ transform:scale(.995); }
.check-item.done{ background:var(--gold-10); border-color:var(--gold-40); }
.check-box{
  width:21px; height:21px; border-radius:6px; border:1.5px solid var(--border-hover);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px;
  transition:background .2s var(--ease), border-color .2s var(--ease), transform .25s var(--ease);
}
.check-item.done .check-box{ background:var(--gold); border-color:var(--gold); transform:scale(1.05); }
.check-box svg{ width:13px; height:13px; color:var(--bg); opacity:0; transition:opacity .15s var(--ease); }
.check-item.done .check-box svg{ opacity:1; }
.check-text-wrap{ flex:1; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.check-text{ font-size:13.5px; font-weight:500; color:var(--text-1); transition:color .2s var(--ease); }
.check-item.done .check-text{ color:var(--text-4); text-decoration:line-through; }
.badge-important{ font-size:8.5px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:3px 8px; border-radius:5px; background:var(--gold-10); border:1px solid var(--gold-20); color:var(--gold-bright); flex-shrink:0; }

.academy-cta{ margin-top:26px; padding-top:22px; border-top:1px solid var(--border-soft); }
.academy-cta-inner{ background:linear-gradient(90deg,var(--gold-10),transparent); border:1px solid var(--gold-20); border-radius:var(--radius-md); padding:16px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.academy-cta-inner h4{ font-family:var(--sans); font-size:13.5px; font-weight:700; color:var(--text-1); margin-bottom:4px; }
.academy-cta-inner p{ font-size:11.5px; color:var(--text-3); }
.academy-cta-btn{ background:var(--bg-elev-1); border:1px solid var(--gold-40); color:var(--gold-bright); font-size:11.5px; font-weight:700; padding:10px 18px; border-radius:10px; display:flex; align-items:center; gap:8px; transition:all .2s var(--ease); flex-shrink:0; white-space:nowrap; }
.academy-cta-btn svg{ width:15px; height:15px; }
.academy-cta-btn:hover{ background:var(--gold); color:var(--bg); }

/* Side cards */
.detail-side{ display:flex; flex-direction:column; gap:18px; }
.side-card{ border-radius:var(--radius-lg); padding:22px; position:relative; overflow:hidden; border:1px solid; background:linear-gradient(180deg, var(--panel-soft), var(--bg-elev-1)); }
.side-card h3{ font-family:var(--sans); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.1em; margin-bottom:12px; position:relative; z-index:1; }
.side-card p, .side-card li{ font-size:12.5px; line-height:1.65; color:var(--text-2); position:relative; z-index:1; }
.side-icon-bg{ position:absolute; right:10px; top:10px; opacity:.08; width:64px; height:64px; }
.side-icon-bg svg{ width:100%; height:100%; }
.side-gold{ border-color:var(--gold-20); } .side-gold h3{ color:var(--gold-bright); } .side-gold .side-icon-bg{ color:var(--gold); }
.side-gold p{ font-family:var(--serif); font-size:14.5px; font-style:italic; }
.side-red{ border-color:rgba(239,68,68,.22); } .side-red h3{ color:var(--red); } .side-red .side-icon-bg{ color:var(--red); }
.side-red ul{ display:flex; flex-direction:column; gap:10px; }
.side-red li{ display:flex; gap:8px; align-items:flex-start; }
.side-red li::before{ content:'•'; color:var(--red); font-weight:900; flex-shrink:0; }
.side-emerald{ border-color:rgba(16,185,129,.22); } .side-emerald h3{ color:var(--emerald); } .side-emerald .side-icon-bg{ color:var(--emerald); }
.side-emerald p{ font-family:var(--serif); }

/* Academy tab */
.academy-intro{ text-align:center; max-width:720px; margin:6px auto 30px; }
.academy-intro h2{ font-size:26px; font-weight:700; color:var(--gold-bright); margin-bottom:10px; }
.academy-intro p{ font-size:12.5px; color:var(--text-3); }

.module-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.module-card{
  background:var(--panel-soft); border:1px solid var(--border-soft); border-radius:var(--radius-md);
  padding:20px; display:flex; flex-direction:column; justify-content:space-between;
  transition:border-color .3s var(--ease), transform .3s var(--ease);
  animation:riseIn .5s var(--ease) both;
}
.module-card:hover{ border-color:var(--gold-40); transform:translateY(-3px); }
.module-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.module-num{ font-size:9px; font-weight:800; letter-spacing:.1em; color:var(--gold); text-transform:uppercase; }
.module-tag{ font-size:11px; color:var(--text-3); font-weight:700; }
.module-card h4{ font-family:var(--sans); font-size:15.5px; font-weight:700; color:var(--text-1); margin-bottom:8px; }
.module-card > p{ font-size:12px; color:var(--text-3); line-height:1.6; margin-bottom:16px; }
.module-detail{ background:var(--bg-elev-1); border:1px solid var(--border-soft); border-radius:9px; padding:12px; font-size:11.5px; }
.module-row{ display:flex; justify-content:space-between; gap:8px; padding:4px 0; color:var(--text-3); }
.module-row b{ color:var(--text-1); font-weight:600; }
.module-trio{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; text-align:center; }
.module-trio div{ background:var(--bg-elev-1); border:1px solid var(--border-soft); border-radius:8px; padding:8px 6px; }
.module-trio span.t{ display:block; font-size:10px; font-weight:800; color:var(--gold); margin-bottom:4px; }
.module-trio span.d{ display:block; font-size:9.5px; color:var(--text-3); line-height:1.35; }
.module-duo{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.module-duo div{ background:var(--bg-elev-1); border:1px solid var(--border-soft); border-radius:8px; padding:10px; text-align:center; }
.module-duo span.t{ display:block; font-size:9.5px; font-weight:800; color:var(--gold); margin-bottom:4px; }
.module-duo span.d{ display:block; font-size:9.5px; color:var(--text-3); }
.module-light{ display:flex; gap:8px; align-items:center; background:var(--bg-elev-1); border:1px solid var(--border-soft); border-radius:8px; padding:8px 10px; margin-bottom:6px; font-size:11px; }
.module-light .dot{ width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.module-light b{ color:var(--text-1); font-weight:700; }
.module-light span{ color:var(--text-3); }

.upsell-input-wrap{ margin-bottom:10px; }
.upsell-input-wrap label{ display:block; font-size:9px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-4); font-weight:800; margin-bottom:5px; }
.upsell-input-wrap input{
  width:100%; background:var(--bg-elev-1); border:1px solid var(--border); border-radius:7px;
  padding:8px 10px; font-size:12.5px; color:var(--gold-bright); font-weight:700; outline:none;
  transition:border-color .2s var(--ease);
}
.upsell-input-wrap input:focus{ border-color:var(--gold); }
.upsell-row{ display:flex; justify-content:space-between; font-size:11.5px; padding:4px 0; }
.upsell-row .k{ color:var(--text-3); }
.upsell-row .v{ font-weight:700; color:var(--text-1); font-variant-numeric:tabular-nums; }
.upsell-row.higher .k, .upsell-row.higher .v{ color:var(--gold-bright); }

/* Footer */
.site-footer{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; padding:30px 32px 40px; max-width:1400px; margin:0 auto; border-top:1px solid var(--border-soft); margin-top:36px; font-size:11px; color:var(--text-4); }
.footer-tag{ font-family:var(--serif); letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--gold); }

/* ===========================================================
   Animations
=========================================================== */
@keyframes riseIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
.card-fade-in{ animation:riseIn .55s var(--ease) both; }

.tab-panel{ animation:fadeSwap .35s var(--ease); }
@keyframes fadeSwap{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }

/* ===========================================================
   Responsive
=========================================================== */
@media (max-width: 1080px){
  .detail-grid{ grid-template-columns:1fr; }
  .module-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 860px){
  .mobile-bar{ display:flex; }
  .sidebar{
    position:fixed; left:0; top:0; height:100vh; transform:translateX(-100%);
    transition:transform .32s var(--ease); box-shadow:20px 0 60px rgba(0,0,0,.5);
  }
  .sidebar.open{ transform:translateX(0); }
  .sidebar-scrim{ display:block; position:fixed; inset:0; background:rgba(0,0,0,.55); opacity:0; pointer-events:none; transition:opacity .3s var(--ease); z-index:45; }
  .sidebar-scrim.open{ opacity:1; pointer-events:auto; }

  .topbar{ padding:14px 16px; flex-wrap:wrap; }
  .search-wrap{ order:1; max-width:none; flex:1 1 100%; }
  .menu-tabs{ order:3; flex:1 1 100%; overflow-x:auto; }
  .topbar-progress{ order:2; margin-left:0; }
  .content{ padding:20px 16px 6px; }
  .search-results{ margin:16px; }
  .hero{ flex-direction:column; align-items:flex-start; padding:24px; }
  .module-grid{ grid-template-columns:1fr; }
  .site-footer{ padding:24px 16px 32px; }
}

@media (max-width:520px){
  .detail-main{ padding:20px; }
  .detail-header{ align-items:flex-start; }
  .strip-card{ min-width:170px; }
}
