/* ═══ VARIABLES ═══ */
:root {
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --text: #1a1a2e;
  --muted: #8a8a9a;
  --border: #E8E4DE;
  --c-gold: #B8860B;
  --c-power: #1A8B6E;
  --c-boost: #D4880E;
  --c-warn: #C0475A;
  --c-muted: #aaa;
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body: 'Montserrat', system-ui, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
}

/* ═══ BASE ═══ */
.ncc { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 14px; line-height: 1.6; max-width: 100%;  }
.ncc * { box-sizing: border-box; }

/* ═══ PROGRESS BAR + NAV DOTS ═══ */
#ncc-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--c-gold), #D4A020); z-index: 999; transition: width 0.5s ease; }
#ncc-nav { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 990; display: flex; flex-direction: column; gap: 10px; }
.nd { width: 10px; height: 10px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.3s; border: 2px solid transparent; }
.nd.on { background: var(--c-gold); border-color: var(--c-gold); transform: scale(1.3); }
.nd.ok { background: var(--c-gold); opacity: 0.4; }

/* ═══ SECTIONS (pages) ═══ */
.ncc-st { min-height: 80vh; padding: 60px 24px; max-width: 780px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; display:none;}
.ncc-st.vis { opacity: 1; transform: translateY(0); display:block; }
.ncc-bg { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ncc-sn { width: 28px; height: 28px; border-radius: 50%; background: var(--c-gold); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 13px; font-weight: 500; }
.ncc-bg > span, .ncc-bg > div:not(.ncc-sn) { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ncc-h { font-family: var(--f-display); font-size: clamp(28px, 5vw, 56px); font-weight: 400; line-height: 1.2; margin: 0 0 8px; color: var(--text); text-align: center;}
.ncc-h em { font-style: italic; color: var(--c-gold); }
.ncc-d { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 24px; max-width: 560px; }

/* Navigation buttons */
.ncc-nr { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }
.ncc-pg { font-size: 12px; color: var(--muted); font-family: var(--f-display); }
.ncc-btn { font-family: var(--f-body); font-size: 13px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; transition: all 0.3s; }
.ncc-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }
.ncc-btn.pr { background: var(--text); color: #fff; border-color: var(--text); }
.ncc-btn.pr:hover { background: #2a2a4e; }

/* ═══ S0: HERO + FORM ═══ */
.ncc-orb-w { display: flex; justify-content: center; margin: 32px 0; position: relative; }
.ncc-orb { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, rgba(184,134,11,0.15), rgba(184,134,11,0.05)); animation: orbPulse 3s ease-in-out infinite; }
@keyframes orbPulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.05);opacity:1} }
.ncc-orb-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#ncc-pct { font-family: var(--f-display); font-size: 28px; color: var(--c-gold); display: none; }
.ncc-orb-lbl { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.ncc-go { width: 100%; padding: 14px !important; border: none !important; border-radius: 12px !important; background: var(--text) !important; color: #fff !important; font-family: var(--f-body); font-size: 15px !important; cursor: pointer; transition: background 0.3s; }
.ncc-go:hover { background: #2a2a4e; }
.ncc-form label { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: block; }
.ncc-form input, .ncc-form select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--f-body); background: var(--bg-card); color: var(--text); }
.ncc-fr { margin-bottom: 14px; }
.ncc-fg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ═══ S1: PERSONAL COLOR ═══ */
.fo-w { display: flex; justify-content: center; position: relative; margin: 40px 0 24px; }
.fo { width: 140px; height: 140px; border-radius: 50%; opacity: 0; transform: scale(0.7); transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
.fo.rev { opacity: 1; transform: scale(1); }
.fr { position: absolute; border-radius: 50%; border: 1px solid rgba(184,134,11,0.15); }
.fr1 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.fr2 { width: 260px; height: 260px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.fhex { text-align: center; font-family: var(--f-display); font-size: 28px; font-weight: 500; opacity: 0; transition: opacity 0.5s; }
.fhex.rev { opacity: 1; }
.fhsl { text-align: center; font-size: 12px; color: var(--muted); margin-top: 4px; opacity: 0; transition: opacity 0.5s; }
.fhsl.rev { opacity: 1; }
.fnm { text-align: center; font-family: var(--f-display); font-size: 20px; font-style: italic; color: var(--c-gold); margin-top: 6px; opacity: 0; transition: opacity 0.5s; }
.fnm.rev { opacity: 1; }
.pal { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.pal-i { display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(8px); transition: all 0.4s; }
.pal-i.sh { opacity: 1; transform: translateY(0); }
.pal-dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.pal-lb { font-size: 11px; color: var(--muted); }

/* ═══ S2: ACCORDION (methodology only) ═══ */
.ncc-acc { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; background: var(--bg-card); overflow: hidden; }
.ncc-acc-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; gap: 12px; font-size: 13px; transition: background 0.2s; }
.ncc-acc-h:hover { background: rgba(0,0,0,0.015); }
.ncc-acc-h span:first-child { flex: 1; }
.arr { font-size: 14px; color: var(--muted); transition: transform 0.3s; }
.ncc-acc.open .arr { transform: rotate(180deg); }
.ncc-acc-b { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.ncc-acc.open .ncc-acc-b { overflow: visible; max-height: none;}
.ncc-acc-inner { padding: 4px 18px 18px; }

/* Planet grid */
.pg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pc { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--bg); }
.pd { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--shadow-sm); }

/* Zodiac rows */
.zr { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.04); font-size: 13px; }
.cc { padding: 3px 8px; border-radius: 6px; font-size: 10px; font-family: var(--f-display); color: #fff; min-width: 60px; text-align: center; }
.eb { font-size: 10px; padding: 2px 8px; border-radius: 4px; }
.el-f { background: rgba(220,80,30,0.1); color: #D06020; }
.el-e { background: rgba(80,150,60,0.1); color: #448830; }
.el-a { background: rgba(80,160,200,0.1); color: #4090B0; }
.el-w { background: rgba(50,100,200,0.1); color: #2860B0; }

/* Astrodyne bars */
.ab { display: flex; flex-direction: column; gap: 6px; }
.ar { display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 0; }
.bw { height: 6px; border-radius: 3px; background: rgba(0,0,0,0.05); margin-top: 4px; overflow: hidden; }
.bf { height: 100%; border-radius: 3px; width: 0; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.aw { font-size: 10px; padding: 2px 6px; border: 1px solid; border-radius: 6px; font-family: var(--f-display); }

/* Aspect cards */
.asg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.asc { padding: 12px; border-radius: 10px; background: var(--bg); border-left: 3px solid; }
.asc-t { font-family: var(--f-display); font-size: 14px; margin: 4px 0; }
.mc { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: middle; }

/* Canvas mixing */
#ncc-mx { width: 100%; height: 280px; position: relative; }
#ncc-cv { width: 100%; height: 100%; border-radius: 12px; }
.mx-f { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--f-display); }
.fv { color: var(--c-gold); font-weight: 500; }

/* ═══ S3: LITHO RPG HOUSES ═══ */
.ncc-hs { display: flex; flex-direction: column; gap: 16px; }

/* House card */
.hc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color 0.35s, box-shadow 0.35s; opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s, border-color 0.35s, box-shadow 0.35s; }
.hc.sh { opacity: 1; transform: none; }
.hc.has-gem { border-color: rgba(184,134,11,0.3); box-shadow: 0 0 20px rgba(184,134,11,0.06); }

/* House header */
.ht { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 15px; font-weight: 500; flex-shrink: 0; transition: all 0.3s; }
.hn.strong { border-color: var(--c-power); color: var(--c-power); }
.hn.medium { border-color: var(--c-boost); color: var(--c-boost); }
.hn.weak { border-color: var(--c-warn); color: var(--c-warn); }
.hi { flex: 1; min-width: 0; }
.hi-n { font-family: var(--f-display); font-size: 16px; font-weight: 500; }
.hi-s { font-size: 12px; color: var(--muted); }
.hi-m { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.hcl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hd { width: 22px; height: 22px; border-radius: 6px; box-shadow: var(--shadow-sm); transition: all 0.3s; }
.ha { color: var(--muted); font-size: 12px; }
.rb { font-size: 9px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.rb.confirm { background: rgba(26,139,110,0.1); color: var(--c-power); }
.rb.activate { background: rgba(192,71,90,0.1); color: var(--c-warn); }
.rb.harmonize { background: rgba(212,136,14,0.1); color: var(--c-boost); }
.rb.enhance { background: rgba(100,100,180,0.1); color: #6464B4; }

/* House stats */
.hs { display: flex; gap: 20px; font-size: 12px; margin-bottom: 12px; padding: 10px 14px; background: var(--bg); border-radius: 10px; }
.sl { color: var(--muted); }
.sv { font-family: var(--f-display); font-weight: 500; }

/* Equipped gem display */
.h-equipped { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(184,134,11,0.04); border: 1px solid rgba(184,134,11,0.15); border-radius: 10px; margin-bottom: 12px; }
.h-equipped.show { display: flex; }
.h-eq-orb { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.h-eq-info { flex: 1; font-size: 12px; }
.h-eq-name { font-family: var(--f-display); font-weight: 500; font-size: 14px; }
.h-eq-effect { color: var(--muted); font-size: 11px; }
.h-eq-remove { font-size: 11px; color: var(--c-warn); cursor: pointer; border: 1px solid rgba(192,71,90,0.2); background: none; padding: 4px 10px; border-radius: 6px; }

/* Stats with boost */
.h-stat-delta { font-size: 11px; color: var(--c-power); font-weight: 600; opacity: 0; transition: opacity 0.3s; margin-left: 4px; }
.h-stat-delta.show { opacity: 1; }

/* Stat bars */
.h-bar-wrap { height: 5px; border-radius: 3px; background: rgba(0,0,0,0.05); position: relative; overflow: hidden; flex: 1; }
.h-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease-out; }
.h-bar-boost { position: absolute; top: 0; left: 0; height: 100%; border-radius: 3px; background: var(--c-gold); opacity: 0; transition: width 0.4s, left 0.4s, opacity 0.4s; animation: none; }
.h-bar-boost.show { opacity: 0.5; animation: boostPulse 1.5s ease-in-out infinite; }
@keyframes boostPulse { 0%,100%{opacity:0.35} 50%{opacity:0.6} }

/* Gem options grid */
.gr { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gm { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); cursor: pointer; transition: all 0.3s; }
.gm:hover { border-color: rgba(184,134,11,0.3); box-shadow: var(--shadow-sm); }
.gm.selected { border-color: var(--c-gold); box-shadow: 0 0 16px rgba(184,134,11,0.12); background: rgba(184,134,11,0.02); }
.gt { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.t1 { color: var(--c-gold); }
.t2 { color: var(--muted); }
.gtp { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gdt { width: 24px; height: 24px; border-radius: 50%; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.gn { font-family: var(--f-display); font-size: 14px; font-weight: 500; }
.gcr { font-size: 10px; color: var(--muted); }
.geo { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; font-style: italic; }
.gps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.gp { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.03); color: var(--muted); }
.gbo { display: flex; gap: 12px; font-size: 11px; margin-bottom: 8px; }
.gbo span:first-child { color: var(--c-power); }
.gbo span:last-child { color: var(--c-boost); }

/* Match bar */
.g-match { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.g-match-lbl { font-size: 10px; color: var(--muted); white-space: nowrap; }
.g-match-bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(0,0,0,0.05); overflow: hidden; }
.g-match-fill { height: 100%; border-radius: 2px; }
.g-match-pct { font-size: 11px; font-weight: 600; min-width: 30px; text-align: right; }

/* Gem CTA link */
.gl { display: block; font-size: 11px; color: var(--c-gold); text-decoration: none; transition: color 0.2s; }
.gl:hover { color: #D4A020; }

/* ═══ S4: ZODIAC GEMS ═══ */
.zt { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.ztb { padding: 10px 18px; font-size: 13px; font-family: var(--f-display); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; color: var(--muted); transition: all 0.3s; }
.ztb.on { color: var(--c-gold); border-bottom-color: var(--c-gold); }
.zp { display: none; }
.zp.on { display: block; }
.zp-kw { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(184,134,11,0.06); color: var(--c-gold); }

/* ═══ S5: ELEMENT BALANCE ═══ */
.elg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.elb { text-align: center; padding: 14px 10px; border-radius: var(--radius); }
.elb-fire { background: rgba(230,100,40,0.06); }
.elb-earth { background: rgba(80,150,60,0.06); }
.elb-air { background: rgba(120,180,220,0.06); }
.elb-water { background: rgba(50,100,200,0.06); }
.elb-p { font-family: var(--f-display); font-size: 22px; font-weight: 500; margin: 4px 0; }
.elb-f { height: 5px; border-radius: 3px; background: rgba(0,0,0,0.06); overflow: hidden; }
.elb-i { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; }
.elb-fire .elb-i { background: #D06020; }
.elb-earth .elb-i { background: #448830; }
.elb-air .elb-i { background: #4090B0; }
.elb-water .elb-i { background: #2860B0; }
.ncc-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

/* Ideal set */
.ideal { margin-top: 28px; text-align: center; }
.ideal-t { font-family: var(--f-display); font-size: 22px; margin-bottom: 4px; }
.ideal-d { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.ideal-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; text-align: center; }
.ideal-c { padding: 20px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.ideal-why { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.ideal-orb { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; box-shadow: var(--shadow-sm); }
.ideal-nm { font-family: var(--f-display); font-size: 16px; font-weight: 500; }
.ideal-es { font-size: 11px; color: var(--muted); font-style: italic; margin: 6px 0 10px; line-height: 1.5; }
.ideal-a { font-size: 12px; color: var(--c-gold); text-decoration: none; }
.ideal-a:hover { text-decoration: underline; }

/* ═══ TOTALS STICKY BAR (litho) ═══ */
.ncc-totals { position: sticky; top: 50px; z-index: 50; background: rgba(250,250,247,0.92); backdrop-filter: blur(12px); padding: 10px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; font-size: 12px; margin: -20px -24px 20px; }
.ts-stat { display: flex; align-items: center; gap: 4px; }
.ts-val { font-family: var(--f-display); font-size: 16px; font-weight: 500; }
.ts-boost { font-size: 11px; color: var(--c-power); font-weight: 600; opacity: 0; transition: opacity 0.3s; margin-left: 2px; }
.ts-boost.show { opacity: 1; }
.ts-gems-wrap { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ts-gem-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--border); position: relative; transition: all 0.3s; }
.ts-gem-dot.equipped { border-color: var(--c-gold); }
.ts-gem-fill { width: 100%; height: 100%; border-radius: 50%; transition: background 0.3s; }
.ts-count { font-size: 11px; color: var(--muted); margin-left: 6px; }

/* Build summary */
.build-summary { display: none; margin-top: 20px; padding: 20px; background: var(--bg-card); border: 1px solid rgba(184,134,11,0.2); border-radius: var(--radius); }
.bs-gem { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bs-gem-orb { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; }
.bs-gem-name { font-family: var(--f-display); font-size: 13px; }
.bs-gem-house { font-size: 10px; color: var(--muted); }
.bs-total { display: flex; gap: 20px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.bs-total-val { font-family: var(--f-display); font-size: 20px; font-weight: 500; }
.bs-total-lbl { font-size: 10px; color: var(--muted); }
.bs-cta { display: block; text-align: center; margin-top: 14px; padding: 12px; background: var(--text); color: #fff; border-radius: 10px; text-decoration: none; font-size: 13px; transition: background 0.3s; }
.bs-cta:hover { background: #2a2a4e; }

/* Float number animation */
.float-num { position: absolute; pointer-events: none; font-family: var(--f-display); font-size: 18px; font-weight: 600; z-index: 100; animation: floatUp 1.2s ease-out forwards; }
@keyframes floatUp { 0%{opacity:1;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(-40px) scale(0.8)} }

/* ═══ S3: TENSE ASPECTS ═══ */
.ncc-tas-hdr { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 14px; }
.ncc-tas-icon { font-size: 20px; line-height: 1; margin-top: 2px; }
.ncc-tas-title { font-family: var(--f-display); font-size: 18px; font-weight: 500; }
.ncc-tas-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ncc-tas { display: flex; flex-direction: column; gap: 12px; }

/* Tense aspect card (mirrors .hc) */
.tac { background: var(--bg-card); border: 1px solid rgba(192,71,90,0.18); border-radius: var(--radius); padding: 18px 20px; opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s; }
.tac.sh { opacity: 1; transform: none; }
.tac-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tac-badge { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; background: rgba(192,71,90,0.08); color: var(--c-warn); white-space: nowrap; }
.tac-planets { font-family: var(--f-display); font-size: 15px; font-weight: 500; flex: 1; }
.tac-orb { font-size: 10px; color: var(--muted); }
.tac-swatch { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; }
.tac-body { font-size: 11px; color: var(--muted); line-height: 1.6; }
.tac-gem { margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); font-size: 11px; cursor: pointer; transition: all 0.3s; }
.tac-gem:hover { border-color: rgba(184,134,11,0.3); }
.tac-gem.selected { border-color: var(--c-gold); background: rgba(184,134,11,0.03); }
.tac-gem-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.tac-gem-name { font-family: var(--f-display); font-size: 12px; flex: 1; }
.tac-gem-eff { font-size: 10px; color: var(--c-power); }

/* Legend */
.ncc-legend { margin-top: 28px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.ncc-legend-title { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ncc-legend-grid { display: flex; flex-direction: column; gap: 8px; }
.ncc-legend-item { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.5; }
.ncc-legend-key { flex-shrink: 0; min-width: 100px; }
.ncc-legend-val { color: var(--muted); }

/* ⚡ stressed ruler badge */

/* ── Микробейджи астрологических факторов ── */
.h-mb {
  display: inline-block; vertical-align: middle;
  font-size: 8px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  padding: 1px 5px; border-radius: 3px; margin-left: 5px;
  cursor: help; line-height: 16px;
}
.h-mb-ang { background: rgba(184,150,90,.18); color: var(--c-gold); border: 1px solid rgba(184,150,90,.3); }
.h-mb-cr  { background: rgba(120,80,200,.15); color: #a07de0; border: 1px solid rgba(120,80,200,.25); }
.h-mb-sect{ background: rgba(74,155,110,.12); color: var(--c-power); border: 1px solid rgba(74,155,110,.25); }
.h-mb-stell { background: rgba(220,100,60,.13); color: #e07050; border: 1px solid rgba(220,100,60,.28); }
.h-mb-dign  { background: rgba(60,160,200,.12); color: #5bb8d4; border: 1px solid rgba(60,160,200,.26); }
.h-stressed { font-size: 11px; margin-left: 4px; cursor: help; }

/* ═══ S3: ACCORDION-EXPLAIN texts ═══ */
.acc-explain { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; padding: 10px 14px; background: var(--bg); border-radius: 8px; border-left: 3px solid var(--border); }
.acc-explain strong { color: var(--text); font-weight: 600; }
.acc-explain code { font-family: var(--f-display); font-size: 11px; color: var(--c-gold); background: rgba(184,134,11,0.06); padding: 1px 5px; border-radius: 4px; }

/* ═══ RESPONSIVE additions ═══ */
.ncc-page { width: 100%; }


.ncc-cta-block {
    margin-top: 28px;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.04), rgba(184, 134, 11, 0.01));
    border-width: 1px;
    border-style: solid;
    border-color: rgba(184, 134, 11, 0.15);
    border-image: initial;
    border-radius: var(--radius);
}
.ncc-cta-text {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.6;
}
.ncc-cta-btn {
    display: inline-block;
    color: rgb(255, 255, 255);
    font-family: var(--f-body);
    font-size: 14px;
    cursor: pointer;
    padding: 12px 28px;
    background: var(--c-gold);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 10px;
    transition: 0.3s;
}

/* ═══ CONSULTATION POPUP ═══ */
.ncc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  backdrop-filter: blur(4px);
}
.ncc-popup {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: 90%;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}
.ncc-popup-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.ncc-popup-close:hover { color: var(--text); }
.ncc-popup-title {
  font-family: var(--f-display);
  font-size: 22px;
  margin-bottom: 8px;
  text-align: center;
}
.ncc-popup-desc {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.6;
}
.ncc-popup-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--f-body);
  margin-bottom: 10px;
  background: var(--bg);
  color: var(--text);
}
.ncc-popup-ok {
  text-align: center;
  font-size: 14px;
  color: var(--c-power);
  margin-top: 12px;
  font-weight: 500;
}


@media(max-width:650px){
  .ncc-h { font-size: clamp(24px, 6vw, 36px); }
  .ncc-fg { display:flex; flex-direction:column; gap:0; }
  .ncc-form input, .ncc-form select { line-height: 20px; }
  .ncc-st { padding: 40px 16px; }
  .pg { grid-template-columns: 1fr 1fr; }
  .gr { grid-template-columns: 1fr; }
  .zr { grid-template-columns: 1fr auto auto; font-size: 11px; }
  .zr > div:nth-child(5) { display: none; }
  .elg { grid-template-columns: 1fr 1fr; }
  .ideal-g { grid-template-columns: 1fr; }
  .ht { flex-wrap: wrap; }
  .hcl { width: 100%; margin-top: 4px; }
  #ncc-nav { display: none; }
  .ncc-totals { margin: -10px -16px 16px; padding: 8px 12px; }
  .ncc-legend-item { flex-direction: column; gap: 3px; }
  .ncc-legend-key { min-width: unset; }
}