/* =============================================================
   content-db.css — styles for content-db v3.0 integrations
   (gate lines, life cross, deep channels, compass transit,
    solar-drift planets visual)
   ============================================================= */

/* ── Gate detail: the six lines ────────────────────────────── */
.dt-lines { display: flex; flex-direction: column; gap: 10px; }
.dt-line {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 14px; border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
.dt-line.mine {
  background: linear-gradient(180deg, rgba(138,92,255,0.14), rgba(138,92,255,0.04));
  border-color: rgba(162,141,254,0.5);
  box-shadow: 0 0 18px rgba(138,92,255,0.15);
}
.dt-line-n {
  flex-shrink: 0; min-width: 44px; text-align: center;
  padding: 5px 8px; border-radius: 10px; font-weight: 700; font-size: 13px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-soft, #D5D7F2);
}
.dt-line.mine .dt-line-n { color: #C4B5FF; border-color: rgba(162,141,254,0.55); }
.dt-line-text { min-width: 0; }
.dt-line-text strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: #fff; }
.dt-line-tag {
  font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; color: var(--gold, #F8C648);
  border: 1px solid rgba(248,198,72,0.5); background: rgba(248,198,72,0.08);
}
.dt-line-text p { margin: 4px 0 6px; font-size: 12.5px; line-height: 1.8; color: var(--text-muted, #AFA8C7); }
.dt-line-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; }
.dt-line-meta .sh { color: #FF78B5; }
.dt-line-meta .gf { color: #5FD6B5; }

/* ── Overview: life cross ──────────────────────────────────── */
.ov-cross {
  border-radius: 18px; padding: 22px 24px;
  background: linear-gradient(160deg, rgba(248,198,72,0.08), rgba(138,92,255,0.06));
  border: 1px solid rgba(248,198,72,0.35);
}
.ovc-keynote { margin: 8px 0 4px; font-size: 14px; font-weight: 700; color: var(--gold, #F8C648); }
.ovc-theme { margin: 10px 0 0; font-size: 12.5px; color: var(--text-muted, #AFA8C7); font-style: italic; }
.ovc-gates { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ovc-gate {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px; min-height: 36px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-soft, #D5D7F2); font-family: inherit; font-size: 12px; font-weight: 600;
}
.ovc-gate:hover { border-color: rgba(248,198,72,0.55); color: #fff; }
.ovc-gate b { color: var(--gold, #F8C648); }

/* ── Overview: deep channels ───────────────────────────────── */
.ov-deep { display: flex; flex-direction: column; gap: 14px; }
.ovd-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ovd-head h3 { margin: 0; font-size: 18px; color: #fff; }
.ovd-head span { font-size: 12.5px; color: var(--text-dim, #686878); }
.ovd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ovd-card {
  border-radius: 16px; padding: 18px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(162,141,254,0.28);
  display: flex; flex-direction: column; gap: 10px;
}
.ovd-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ovd-title strong { font-size: 14.5px; color: #C4B5FF; }
.ovd-title span { font-size: 11.5px; color: var(--text-dim, #686878); font-weight: 700; }
.ovd-nature { margin: 0; font-size: 12.8px; line-height: 1.85; color: var(--text-soft, #D5D7F2); }
.ovd-rows { display: flex; flex-direction: column; gap: 8px; }
.ovd-row { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.ovd-row > span {
  flex-shrink: 0; min-width: 74px; padding: 3px 9px; border-radius: 8px;
  font-size: 10.5px; font-weight: 700; text-align: center;
}
.ovd-row p { margin: 0; line-height: 1.75; color: var(--text-muted, #AFA8C7); }
.ovd-row.g > span { color: #5FD6B5; background: rgba(95,214,181,0.1); border: 1px solid rgba(95,214,181,0.35); }
.ovd-row.c > span { color: #FF78B5; background: rgba(255,120,181,0.08); border: 1px solid rgba(255,120,181,0.32); }
.ovd-row.r > span { color: #62DDFF; background: rgba(98,221,255,0.08); border: 1px solid rgba(98,221,255,0.32); }

/* ── Compass: real transit texts ───────────────────────────── */
.cp-guidance {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(248,198,72,0.07); border: 1px solid rgba(248,198,72,0.3);
  font-size: 13px; line-height: 1.8; color: var(--text-soft, #D5D7F2);
}
.cp-guidance svg { flex-shrink: 0; margin-top: 3px; color: var(--gold, #F8C648); }
.cp-collective {
  margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 11.8px; line-height: 1.7; color: var(--text-dim, #8E88A8);
}

/* ── Home: glowing stroke icons (option B) + smart hover ───── */
.fc-icon {
  position: relative; width: 108px; height: 108px;
  display: grid; place-items: center;
}
.fc-icon::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fci-compass::before { background: radial-gradient(circle, rgba(151,87,255,0.22), transparent 72%); }
.fci-sun::before     { background: radial-gradient(circle, rgba(248,198,72,0.18), transparent 72%); }
.fc-icon svg { position: relative; transition: filter 0.45s ease; }
.fci-compass svg { filter: drop-shadow(0 0 9px rgba(162,141,254,0.5)) drop-shadow(0 0 24px rgba(120,80,220,0.3)); }
.fci-sun svg     { filter: drop-shadow(0 0 9px rgba(248,198,72,0.45)) drop-shadow(0 0 24px rgba(224,143,46,0.28)); }

.fci-needle, .fci-rays, .fci-core, .fci-ring, .fci-ticks {
  transform-box: fill-box; transform-origin: center;
}

/* hover (and mobile tap-hover) — the "smart" pass */
.feature-card:hover .fci-compass svg,
.feature-card.tap-hover .fci-compass svg { filter: drop-shadow(0 0 13px rgba(178,150,255,0.85)) drop-shadow(0 0 34px rgba(140,95,255,0.5)); }
.feature-card:hover .fci-sun svg,
.feature-card.tap-hover .fci-sun svg { filter: drop-shadow(0 0 13px rgba(255,216,110,0.8)) drop-shadow(0 0 34px rgba(248,170,60,0.5)); }
.feature-card:hover .fc-icon::before,
.feature-card.tap-hover .fc-icon::before { opacity: 1; transform: scale(1.18); }

/* compass: needle seeks — full sweep, overshoots, settles home */
@keyframes fciSeek {
  0%   { transform: rotate(0deg); }
  55%  { transform: rotate(300deg); }
  74%  { transform: rotate(385deg); }
  88%  { transform: rotate(352deg); }
  100% { transform: rotate(360deg); }
}
.feature-card:hover .fci-needle,
.feature-card.tap-hover .fci-needle { animation: fciSeek 1.7s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
/* dial breathes + ticks flash while seeking */
@keyframes fciRingPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.feature-card:hover .fci-ring,
.feature-card.tap-hover .fci-ring { animation: fciRingPulse 1.7s ease both; }
@keyframes fciTicks { 0%, 100% { opacity: 0.65; } 45% { opacity: 1; } }
.feature-card:hover .fci-ticks,
.feature-card.tap-hover .fci-ticks { animation: fciTicks 1.7s ease both; }

/* sun: rays sweep a quarter-turn and breathe, core flares */
@keyframes fciRays {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(52deg) scale(1.12); }
  100% { transform: rotate(90deg) scale(1); }
}
.feature-card:hover .fci-rays,
.feature-card.tap-hover .fci-rays { animation: fciRays 1.9s cubic-bezier(0.45, 0, 0.25, 1) both; }
@keyframes fciCore { 0%, 100% { fill-opacity: 0.16; } 50% { fill-opacity: 0.45; } }
.feature-card:hover .fci-core,
.feature-card.tap-hover .fci-core { animation: fciCore 1.9s ease both; }

/* light pulse travelling along the stroke OUTLINE itself (the real
   "لمعة" — a bright dash running the path, not a sheet sliding over) */
.fci-trace { opacity: 0; stroke-linecap: round; }
@keyframes fciTraceC {
  0%   { stroke-dashoffset: 56.55; opacity: 0; }
  10%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -56.55; opacity: 0; }
}
@keyframes fciTraceS {
  0%   { stroke-dashoffset: 28.27; opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -28.27; opacity: 0; }
}
.feature-card:hover .fci-compass .fci-trace,
.feature-card.tap-hover .fci-compass .fci-trace {
  animation: fciTraceC 1.7s cubic-bezier(0.4, 0, 0.3, 1) both;
  filter: drop-shadow(0 0 5px rgba(222,208,255,0.95));
}
.feature-card:hover .fci-sun .fci-trace-sun,
.feature-card.tap-hover .fci-sun .fci-trace-sun {
  animation: fciTraceS 1.9s cubic-bezier(0.4, 0, 0.3, 1) both;
  filter: drop-shadow(0 0 5px rgba(255,236,170,0.95));
}

@media (prefers-reduced-motion: reduce) {
  .fci-needle, .fci-rays, .fci-core, .fci-ring, .fci-ticks, .fci-trace { animation: none !important; }
}

/* ── Premium "sigil" nav icons (enhanced B) ───────────────────
   A slow idle ring orbit + ticks; on hover/active the inner ring
   speeds up and a comet streaks the orbit. Rings take icon color. */
.sigil { position: relative; }
.sigil-rings {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  pointer-events: none; overflow: visible; color: inherit;
}
.sg-outer { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.22; transform-origin: 20px 20px; animation: sgSpin 26s linear infinite; }
.sg-inner { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.34; transform-origin: 20px 20px; animation: sgSpinR 18s linear infinite; }
.sg-ticks line { stroke: currentColor; stroke-width: 1; stroke-linecap: round; opacity: 0.3; transform-origin: 20px 20px; animation: sgSpin 26s linear infinite; }
.sg-comet { fill: currentColor; opacity: 0; transform-origin: 20px 20px; filter: drop-shadow(0 0 4px currentColor); }
.sigil-core { position: relative; z-index: 1; display: grid; place-items: center; transition: filter 0.3s ease, transform 0.3s ease; }
@keyframes sgSpin  { to { transform: rotate(360deg); } }
@keyframes sgSpinR { to { transform: rotate(-360deg); } }
@keyframes sgComet { to { transform: rotate(360deg); } }

/* idle-static variant (content icons): rings hold still until hover */
.sg-static .sg-outer, .sg-static .sg-inner, .sg-static .sg-ticks line { animation: none; }

/* hover / active — stronger motion + glow (nav + any sigil host) */
.nav-item.is-hover .sg-inner, .nav-item.active .sg-inner,
.sigil-host:hover .sg-inner, .mnav-it.on .sg-inner,
.insight-card:hover .sg-inner { opacity: 0.7; animation: sgSpinR 5.5s linear infinite; }
.nav-item.is-hover .sg-outer, .nav-item.active .sg-outer,
.sigil-host:hover .sg-outer, .mnav-it.on .sg-outer,
.insight-card:hover .sg-outer { opacity: 0.4; animation: sgSpin 22s linear infinite; }
.nav-item.is-hover .sg-comet, .nav-item.active .sg-comet,
.sigil-host:hover .sg-comet, .mnav-it.on .sg-comet,
.insight-card:hover .sg-comet { opacity: 1; animation: sgComet 4.5s linear infinite; }
.nav-item.is-hover .sigil-core, .nav-item.active .sigil-core,
.sigil-host:hover .sigil-core, .mnav-it.on .sigil-core,
.insight-card:hover .sigil-core { filter: drop-shadow(0 0 6px currentColor); transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .sg-outer, .sg-inner, .sg-ticks line, .sg-comet { animation: none; }
}

/* ── Centers: active channels card + side panel ────────────── */
.cd-h-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cd-h-row .cd-h { margin: 0; }

.chac-card {
  margin-top: 18px; border-radius: 18px; padding: 20px 22px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(162,141,254,0.3);
}
.chac-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chac-head h3 { margin: 0; font-size: 17px; color: #fff; display: flex; align-items: center; gap: 9px; }
.chac-n {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px;
  padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: #C4B5FF; background: rgba(138,92,255,0.16); border: 1px solid rgba(162,141,254,0.5);
}
.chac-sub { margin: 8px 0 14px; font-size: 12.5px; line-height: 1.8; color: var(--text-muted, #AFA8C7); }
.chac-list { display: flex; gap: 10px; flex-wrap: wrap; }
.chac-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-soft, #D5D7F2); font-family: inherit; font-size: 12.5px; font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.chac-chip:hover { border-color: var(--chc); box-shadow: 0 0 14px color-mix(in srgb, var(--chc) 30%, transparent); transform: translateY(-1px); }
.chac-chip b { color: var(--chc); }
.chac-chip em {
  font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; color: var(--chc);
  border: 1px solid color-mix(in srgb, var(--chc) 55%, transparent);
  background: color-mix(in srgb, var(--chc) 10%, transparent);
}

.chp-dim {
  position: fixed; inset: 0; z-index: 68;
  background: rgba(2,4,13,0.6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: chpFade 0.25s ease both;
}
@keyframes chpFade { from { opacity: 0; } to { opacity: 1; } }
.chp-panel {
  --chpx: -40px;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 69;
  width: min(430px, 94vw);
  padding: 26px 24px calc(26px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(200deg, rgba(20,16,44,0.98), rgba(8,8,24,0.98));
  border-right: 1px solid rgba(162,141,254,0.4);
  box-shadow: 18px 0 60px rgba(0,0,0,0.6);
  border-radius: 0 26px 26px 0;
  animation: chpIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html[dir="rtl"] .chp-panel {
  --chpx: 40px;
  left: auto; right: 0;
  border-right: none; border-left: 1px solid rgba(162,141,254,0.4);
  box-shadow: -18px 0 60px rgba(0,0,0,0.6);
  border-radius: 26px 0 0 26px;
}
@keyframes chpIn { from { opacity: 0; transform: translateX(var(--chpx)); } to { opacity: 1; transform: translateX(0); } }
.chp-x {
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-soft, #D5D7F2);
}
.chp-key {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #C4B5FF;
  border: 1px solid rgba(162,141,254,0.5); background: rgba(138,92,255,0.12);
}
.chp-name { margin: 10px 0 2px; font-size: 21px; color: #fff; }
.chp-circuit { display: block; font-size: 11.5px; color: var(--text-dim, #686878); margin-bottom: 10px; }
.chp-sideline {
  margin: 0 0 14px; padding: 11px 13px; border-radius: 12px;
  font-size: 12.8px; line-height: 1.8; color: var(--text-soft, #D5D7F2);
  background: rgba(95,214,181,0.07); border: 1px solid rgba(95,214,181,0.3);
}
.chp-gates { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.chp-gate {
  border-radius: 13px; padding: 11px 13px;
  background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09);
}
.chp-gate-h {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: #fff; text-align: start;
}
.chp-gate-h b { color: var(--gold, #F8C648); }
.chp-gate-h:hover { color: #C4B5FF; }
.chp-center { font-weight: 600; font-size: 11.5px; color: var(--text-dim, #686878); }
.chp-acts { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.chp-act {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: var(--text-muted, #AFA8C7); border: 1px solid rgba(255,255,255,0.12);
}
.chp-act.p { color: #62DDFF; border-color: rgba(98,221,255,0.4); background: rgba(98,221,255,0.07); }
.chp-act.d { color: #C084FF; border-color: rgba(192,132,255,0.4); background: rgba(192,132,255,0.07); }
.chp-block { margin-bottom: 13px; }
.chp-block-h { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; }
.chp-block p { margin: 0; font-size: 12.8px; line-height: 1.9; color: var(--text-soft, #D5D7F2); }
.chp-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 6px; padding: 12px; min-height: 46px;
  border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700;
  background: rgba(138,92,255,0.12); border: 1px solid rgba(162,141,254,0.5); color: #C4B5FF;
}
.chp-full:hover { background: rgba(138,92,255,0.2); }

/* ── Overview: strengths / watch-outs ──────────────────────── */
.ov-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ovi-card {
  border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.ovi-strong { background: linear-gradient(170deg, rgba(95,214,181,0.07), rgba(255,255,255,0.02)); border: 1px solid rgba(95,214,181,0.35); }
.ovi-watch  { background: linear-gradient(170deg, rgba(255,120,181,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,120,181,0.3); }
.ovi-head { display: flex; align-items: center; gap: 11px; }
.ovi-ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
}
.ovi-strong .ovi-ic { color: #5FD6B5; background: rgba(95,214,181,0.12); border: 1px solid rgba(95,214,181,0.4); }
.ovi-watch .ovi-ic  { color: #FF78B5; background: rgba(255,120,181,0.1); border: 1px solid rgba(255,120,181,0.35); }
.ovi-head h3 { margin: 0 0 2px; font-size: 16px; color: #fff; }
.ovi-head > div > span { font-size: 11.5px; color: var(--text-muted, #AFA8C7); line-height: 1.6; display: block; }
.ovi-list { display: flex; flex-direction: column; }
.ovi-row {
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: start;
  padding: 10px 8px; border-radius: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ovi-row:last-child { border-bottom: none; }
.ovi-row:hover { background: rgba(255,255,255,0.04); }
.ovi-row b { display: block; font-size: 12.8px; margin-bottom: 2px; }
.ovi-strong .ovi-row b { color: #5FD6B5; }
.ovi-watch .ovi-row b { color: #FF9BC8; }
.ovi-row p { margin: 0; font-size: 12.3px; line-height: 1.75; color: var(--text-muted, #AFA8C7); }

/* ── Home: compact strengths / watch-outs ──────────────────── */
.home-insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hi-card { border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.hi-strong { background: linear-gradient(170deg, rgba(95,214,181,0.07), rgba(255,255,255,0.02)); border: 1px solid rgba(95,214,181,0.35); }
.hi-watch  { background: linear-gradient(170deg, rgba(255,120,181,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,120,181,0.3); }
.hi-head { display: flex; align-items: center; gap: 9px; }
.hi-strong .hi-head { color: #5FD6B5; }
.hi-watch .hi-head { color: #FF9BC8; }
.hi-head h3 { margin: 0; font-size: 15px; color: #fff; }
.hi-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.hi-card li { font-size: 12.3px; line-height: 1.75; color: var(--text-muted, #AFA8C7); }
.hi-strong li b { color: #5FD6B5; font-weight: 700; }
.hi-watch li b { color: #FF9BC8; font-weight: 700; }
.hi-more {
  align-self: flex-start; display: flex; align-items: center; gap: 6px;
  margin-top: 4px; padding: 8px 4px; min-height: 36px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 12px; font-weight: 700; color: var(--text-soft, #D5D7F2);
}
.hi-more:hover { color: #fff; }

/* ── Planets: solar drift visual ───────────────────────────── */
.solar-drift-wrap { position: relative; width: 100%; }
.solar-drift-wrap canvas { display: block; width: 100%; height: auto; border-radius: 14px; cursor: pointer; }
.sd-hint {
  position: absolute; bottom: 10px; inset-inline-start: 12px;
  font-size: 10.5px; color: var(--text-dim, #686878); pointer-events: none;
}

/* ── Variables (PHS arrows) in the summary panel ───────────── */
.sum-vars { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255,255,255,0.12); display: flex; flex-direction: column; gap: 2px; }
.sum-vars-h { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold, #F8C648); margin-bottom: 6px; text-transform: uppercase; }
.sum-var-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 8px 10px; min-height: 40px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.06);
  font-family: inherit; text-align: start; transition: background .18s, border-color .18s;
}
.sum-var-row:hover { background: rgba(162,141,254,0.1); border-color: rgba(162,141,254,0.4); }
.sum-var-row .sum-label { font-size: 12px; color: var(--text-muted, #AFA8C7); }
.sum-var-val { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #C4B5FF; }
.sum-var-val svg { opacity: 0.55; }

/* ── Variable popup ── */
.var-pop-dim { position: fixed; inset: 0; z-index: 120; background: rgba(2,4,13,0.66); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: vpFade .18s ease; }
@keyframes vpFade { from { opacity: 0; } to { opacity: 1; } }
.var-pop {
  position: relative; width: min(420px, 92vw); border-radius: 18px; padding: 26px 24px 22px;
  background: linear-gradient(165deg, #161334, #0c0a1f);
  border: 1px solid rgba(162,141,254,0.4); box-shadow: 0 24px 70px rgba(0,0,0,0.6), 0 0 40px rgba(138,92,255,0.16);
  animation: vpRise .22s cubic-bezier(.3,1,.4,1);
}
@keyframes vpRise { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.var-pop-x { position: absolute; top: 14px; inset-inline-end: 14px; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--text-muted, #AFA8C7); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.var-pop-x svg { transform: rotate(45deg); }
.var-pop-x:hover { color: #fff; background: rgba(255,255,255,0.1); }
.var-pop-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--gold, #F8C648); text-transform: uppercase; }
.var-pop-val { font-size: 24px; font-weight: 800; color: #fff; margin: 5px 0 12px; }
.var-pop-hint { font-size: 13.5px; line-height: 1.9; color: var(--text-soft, #D5D7F2); margin: 0 0 18px; }
.var-pop-more { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; min-height: 44px; border-radius: 12px; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 700; color: #0c0a1f; background: linear-gradient(180deg, #F8D575, #F0B23C); border: none; }
.var-pop-more:hover { filter: brightness(1.07); }

/* ── Guide: variable detail (6 values) ── */
.var-guide-source { font-size: 13px; line-height: 1.9; color: var(--text-muted, #AFA8C7); margin: 0 0 20px; padding: 13px 15px; border-radius: 12px; background: rgba(138,92,255,0.07); border: 1px solid rgba(162,141,254,0.28); }
.var-values { display: flex; flex-direction: column; gap: 12px; }
.var-value-card { border-radius: 14px; padding: 16px 18px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.var-value-card.active { background: linear-gradient(180deg, rgba(138,92,255,0.16), rgba(138,92,255,0.04)); border-color: rgba(162,141,254,0.6); box-shadow: 0 0 20px rgba(138,92,255,0.16); scroll-margin-top: 90px; }
.var-value-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.var-value-head strong { font-size: 15px; color: #fff; }
.var-value-yours { font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--gold, #F8C648); border: 1px solid rgba(248,198,72,0.5); background: rgba(248,198,72,0.1); }
.var-value-card p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--text-soft, #D5D7F2); }
