/* ==========================================================================
   PureYou — DAYLIGHT PEARL DEFAULT & CYBER-SPATIAL DASHBOARD (v070)
   3 Superstar Focal Metrics + Side Stepped Quick Guide + 4-Language UI
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg-main: #eff4fc;
  --card-glass: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.99) 100%);
  --monument-surface: radial-gradient(125% 85% at 50% 0%, #ffffff 0%, #f8fbff 66%, #eef4fd 100%);
  --card-inner: #ffffff;
  --pod-surface: #f2f6fd;
  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-hover: rgba(15, 23, 42, 0.18);
  --top-sheen: #ffffff;
  --divider: rgba(15, 23, 42, 0.08);
  --track-bg: #dde6f3;
  --popover-bg: rgba(255, 255, 255, 0.98);

  --text-main: #0f172a;
  --text-sec: #334155;
  --text-muted: #64748b;

  --shadow-3d:
    inset 0 1.5px 0 #ffffff,
    0 20px 44px -12px rgba(15, 23, 42, 0.09),
    0 4px 14px rgba(15, 23, 42, 0.04);

  --beam-color: #10b981;
  --radius-2xl: 24px;
  --radius-xl: 18px;
  --radius-lg: 13px;
}

html[data-theme="dark"] {
  --bg-main: #050812;
  --card-glass: linear-gradient(160deg, rgba(19, 27, 46, 0.90) 0%, rgba(9, 14, 26, 0.96) 100%);
  --monument-surface: radial-gradient(120% 80% at 50% 0%, #16223b 0%, #0b1120 62%, #080d19 100%);
  --card-inner: #0b1222;
  --pod-surface: rgba(255, 255, 255, 0.042);
  --border-subtle: rgba(148, 163, 184, 0.15);
  --border-hover: rgba(255, 255, 255, 0.26);
  --top-sheen: rgba(255, 255, 255, 0.14);
  --divider: rgba(148, 163, 184, 0.11);
  --track-bg: rgba(148, 163, 184, 0.16);
  --popover-bg: rgba(13, 20, 36, 0.98);

  --text-main: #f8fafc;
  --text-sec: #cbd5e1;
  --text-muted: #94a3b8;

  --shadow-3d:
    inset 0 1px 0 var(--top-sheen),
    0 26px 56px -14px rgba(0, 0, 0, 0.78),
    0 8px 22px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.num-font {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-variant-numeric: tabular-nums;
}

code, pre, .mono {
  font-family: "JetBrains Mono", Consolas, monospace;
}

/* ==========================================================================
   INTERACTIVE PARTICLE CANVAS & AMBIENT TOP AURORA
   ========================================================================== */

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-top {
  position: fixed;
  top: -170px;
  left: 50%;
  transform: translateX(-50%);
  width: 880px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.17) 0%, transparent 70%);
  filter: blur(76px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.7s ease;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 20px 22px 72px;
}

/* ==========================================================================
   FLOATING NAVBAR: PureYou LOGO + LANGUAGE SWITCHER + SCAN + THEME
   ========================================================================== */

.navbar {
  position: relative;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 22px;
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  backdrop-filter: blur(22px);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  position: relative;
  width: 46px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emblem-pulse {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.28);
  filter: blur(11px);
  animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.45; }
  50% { transform: scale(1.16); opacity: 0.9; }
}

.emblem-svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 12px rgba(15, 23, 42, 0.20));
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.logo-pure {
  color: var(--text-main);
}

.logo-you {
  background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="dark"] .logo-you {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.live-dot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.34);
  color: #059669;
}

html[data-theme="dark"] .live-dot-badge {
  color: #34d399;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: blinkDot 1.3s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.brand-copy p {
  font-size: 12.2px;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Language Selector Dropdown */
.lang-dropdown-wrap {
  position: relative;
}

.btn-lang-pill {
  height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: var(--pod-surface);
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.16s ease;
}

.btn-lang-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.lang-auto-tag {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.13);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

html[data-theme="dark"] .lang-auto-tag {
  color: #38bdf8;
}

.lang-caret {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 196px;
  padding: 6px;
  border-radius: 16px;
  background: var(--popover-bg);
  border: 1px solid var(--border-hover);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

html[data-theme="dark"] .lang-popover {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.72);
}

.lang-option {
  width: 100%;
  padding: 9px 11px;
  border-radius: 11px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.lang-option:hover {
  background: var(--pod-surface);
}

.lang-option.active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

html[data-theme="dark"] .lang-option.active {
  color: #34d399;
}

.lang-flag-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-sec);
}

.btn-cyber-scan {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #10b981 0%, #059669 55%, #0284c7 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.4),
    0 10px 24px -6px rgba(16, 185, 129, 0.45);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.btn-cyber-scan:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    0 15px 30px -6px rgba(16, 185, 129, 0.6);
}

.btn-cyber-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-22deg);
  animation: btnSweep 3.4s infinite;
  pointer-events: none;
}

@keyframes btnSweep {
  0% { left: -120%; }
  45%, 100% { left: 160%; }
}

.btn-theme-orb {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid var(--border-subtle);
  background: var(--pod-surface);
  color: var(--text-sec);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-theme-orb:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  color: var(--text-main);
}

/* ==========================================================================
   CINEMATIC RADAR TURNTABLE WHILE SCANNING
   ========================================================================== */

.scanner-stage-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  padding: 32px 34px;
  border-radius: var(--radius-2xl);
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  margin-bottom: 24px;
}

.radar-turntable {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.36);
}

.ring-outer {
  inset: 0;
  border-style: dashed;
  animation: spinClock 9s linear infinite;
}

.ring-mid {
  inset: 16px;
  border-color: rgba(14, 165, 233, 0.36);
  animation: spinCounter 6s linear infinite;
}

.radar-sweep-cone {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 260deg, rgba(16, 185, 129, 0.35) 360deg);
  animation: spinClock 1.7s linear infinite;
}

@keyframes spinClock {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.radar-center-num {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--card-inner);
  border: 1.5px solid rgba(16, 185, 129, 0.42);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.radar-center-num span {
  font-size: 25px;
  font-weight: 800;
  color: #059669;
  line-height: 1;
}

html[data-theme="dark"] .radar-center-num span {
  color: #34d399;
}

.radar-center-num small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

.scanner-info {
  flex: 1;
  min-width: 260px;
}

.scanner-stage-text {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 11px;
}

.scanner-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--track-bg);
  overflow: hidden;
  margin-bottom: 14px;
}

.scanner-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #0ea5e9, #10b981);
  background-size: 200% 100%;
  animation: gradFlow 1.8s linear infinite;
  transition: width 0.28s ease;
}

@keyframes gradFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.scanner-steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scan-chip {
  font-size: 11.8px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.scan-chip.active {
  color: #059669;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-1px);
}

html[data-theme="dark"] .scan-chip.active {
  color: #34d399;
}

.scan-chip.done {
  color: var(--text-sec);
  border-color: rgba(16, 185, 129, 0.28);
}

/* ==========================================================================
   STAGGERED SPRING ENTRANCE ANIMATION
   ========================================================================== */

@keyframes springReveal {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-item {
  animation: springReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--delay, 0ms);
}

/* ==========================================================================
   ASYMMETRIC TOP STAGE:
   [3 HERO MONUMENTS AT TOP]  +  [SIDE QUICK GUIDE STEPPED SLIGHTLY LOWER]
   ========================================================================== */

.top-stage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.hero-triptych {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Side Quick Guide: On one side near top, stepped 32px lower than Hero top! */
.side-guide-card {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-2xl);
  padding: 20px 18px 18px;
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.side-guide-head {
  margin-bottom: 14px;
}

.side-guide-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 8px;
  line-height: 1.32;
}

.side-steps-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.side-step-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.16s ease;
}

.side-step-item:hover {
  border-color: var(--border-hover);
  transform: translateX(2px);
}

.side-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-green { background: rgba(16, 185, 129, 0.14); color: #059669; border: 1px solid rgba(16, 185, 129, 0.34); }
.step-amber { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.35); }
.step-red { background: rgba(239, 68, 68, 0.14); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.35); }

html[data-theme="dark"] .step-green { color: #34d399; }
html[data-theme="dark"] .step-amber { color: #fbbf24; }
html[data-theme="dark"] .step-red { color: #f87171; }

.side-step-body h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.side-step-body p {
  font-size: 11.8px;
  color: var(--text-sec);
  line-height: 1.46;
}

@media (max-width: 1240px) {
  .top-stage-layout {
    grid-template-columns: 1fr;
  }
  .side-guide-card {
    margin-top: 0;
  }
  .side-steps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 980px) {
  .hero-triptych {
    grid-template-columns: 1fr;
  }
  .center-throne {
    order: -1;
  }
  .side-steps-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3 MONUMENTAL CARDS WITH PERIMETER LASER BORDER BEAMS
   ========================================================================== */

.monument-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 2px;
  background: var(--border-subtle);
  box-shadow: var(--shadow-3d);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.laser-border-beam {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg 282deg, var(--beam-color, #10b981) 345deg, #38bdf8 360deg);
  animation: spinClock 5.4s linear infinite;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

.beam-cyan {
  --beam-color: #0ea5e9;
  animation-duration: 7s;
}

.monument-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  border-radius: calc(var(--radius-2xl) - 2px);
  background: var(--monument-surface);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 1.5px 0 var(--top-sheen);
}

.center-throne {
  transform: translateY(-4px);
}

@media (max-width: 980px) {
  .center-throne {
    transform: none;
  }
}

.card-spotlight {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

.tilt-card:hover .card-spotlight {
  opacity: 1;
}

.shockwave-burst {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 1;
}

.shockwave-burst.fire {
  animation: burstOut 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes burstOut {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(8.5); opacity: 0; }
}

.monument-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.metric-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-sec);
}

.tag-cyan {
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.32);
  background: rgba(14, 165, 233, 0.10);
}

html[data-theme="dark"] .tag-cyan {
  color: #38bdf8;
}

.mini-code-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 999px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  white-space: nowrap;
}

.monument-label {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
  margin-top: 12px;
}

.throne-verdict-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-top: 11px;
  line-height: 1.25;
}

/* ==========================================================================
   SIDE MONUMENTS: GIANT ORBITAL COUNTERS
   ========================================================================== */

.orbital-counter-stage {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 2px dashed rgba(14, 165, 233, 0.36);
  animation: spinClock 14s linear infinite;
}

.orbit-pulse-wave {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 72%);
  animation: pulseWave 2.8s ease-in-out infinite;
}

@keyframes pulseWave {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.1); opacity: 1; }
}

.giant-metric-wrap {
  position: relative;
  z-index: 2;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  background: var(--card-inner);
  border: 1.5px solid var(--border-hover);
  box-shadow:
    inset 0 2px 0 var(--top-sheen),
    0 12px 26px rgba(15, 23, 42, 0.09);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .giant-metric-wrap {
  box-shadow:
    inset 0 1.5px 0 var(--top-sheen),
    0 14px 30px rgba(0, 0, 0, 0.42);
}

.giant-metric-num {
  font-size: 62px;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.cyan-glow-text {
  color: #0284c7;
}

html[data-theme="dark"] .cyan-glow-text {
  color: #38bdf8;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

.giant-metric-unit {
  font-size: 9.4px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 5px;
  padding: 0 8px;
  line-height: 1.15;
}

.hw-nodes-bar,
.param-watch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.hw-node {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(14, 165, 233, 0.30);
  color: #0284c7;
}

html[data-theme="dark"] .hw-node {
  color: #38bdf8;
}

.hw-node-line {
  width: 8px;
  height: 2px;
  background: rgba(14, 165, 233, 0.35);
}

.watch-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.watch-chip.changed {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
  color: #dc2626;
  animation: blinkAlert 1.5s infinite;
}

html[data-theme="dark"] .watch-chip.changed {
  color: #f87171;
}

@keyframes blinkAlert {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.monument-status-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5.5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--pod-surface);
  margin-bottom: 8px;
}

.merged-badges-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-bottom: 8px;
}

.merged-badges-stack .monument-status-pill {
  margin-bottom: 0;
  font-size: 11.6px;
  padding: 5px 12px;
}

.hw-match-pill {
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.10);
}

.ecom-safety-panel {
  width: 100%;
  text-align: left;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ecom-explain-text {
  font-size: 11.9px;
  color: var(--text-sec);
  line-height: 1.46;
  margin: 0;
}

.ecom-rules-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px dashed var(--border-subtle);
}

.ecom-rule-line {
  font-size: 11.2px;
  line-height: 1.4;
  color: var(--text-sec);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.ecom-rule-line .rule-tag {
  font-weight: 800;
  white-space: nowrap;
}

.rule-safe {
  color: #059669;
}

.rule-danger {
  color: #dc2626;
}

html[data-theme="dark"] .rule-safe {
  color: #34d399;
}

html[data-theme="dark"] .rule-danger {
  color: #f87171;
}

.monument-desc {
  font-size: 12.2px;
  color: var(--text-sec);
  line-height: 1.48;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 9px 12px;
  width: 100%;
}

/* ==========================================================================
   CENTER THRONE: 36-SEGMENT LED REACTOR SPEEDOMETER (% CHROME THẬT)
   ========================================================================== */

.reactor-gauge-stage {
  position: relative;
  width: 244px;
  height: 244px;
  margin: 8px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor-core-glow {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.22;
  background: #10b981;
  transition: background 0.5s ease;
  pointer-events: none;
}

.reactor-svg {
  width: 244px;
  height: 244px;
  overflow: visible;
}

.reactor-halo-ring {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  transform-origin: 130px 130px;
  animation: spinClock 22s linear infinite;
}

.reactor-inner-track {
  fill: none;
  stroke: var(--track-bg);
  stroke-width: 11;
  transform: rotate(-90deg);
  transform-origin: 130px 130px;
}

.reactor-main-arc {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 130px 130px;
  transition: stroke-dashoffset 0.95s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}

.led-seg {
  stroke-width: 4.4;
  stroke-linecap: round;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

.reactor-center-core {
  position: absolute;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  background: var(--card-inner);
  border: 1.5px solid var(--border-hover);
  box-shadow:
    inset 0 2px 0 var(--top-sheen),
    0 12px 26px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .reactor-center-core {
  box-shadow:
    inset 0 2px 0 var(--top-sheen),
    0 16px 34px rgba(0, 0, 0, 0.45);
}

.core-caption {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.core-pct-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 2px;
}

.core-big-num {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.core-pct-symbol {
  font-size: 21px;
  font-weight: 800;
  margin-left: 2px;
}

.core-state-pill {
  font-size: 10.8px;
  font-weight: 800;
  margin-top: 4px;
}

/* ==========================================================================
   REDESIGNED PRECISION GLASS SPECTRUM METER (CLEAN LED DOTS + JEWEL BEACON)
   ========================================================================== */

.risk-spectrum-panel {
  width: 100%;
  margin: 2px 0 11px;
  padding: 11px 13px 12px;
  border-radius: 15px;
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
}

.spectrum-zones-row {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1.15fr;
  align-items: center;
  gap: 4px;
  margin-bottom: 9px;
}

.zone-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-sec);
  white-space: nowrap;
}

.zone-left { justify-content: flex-start; }
.zone-center { justify-content: center; }
.zone-right { justify-content: flex-end; }

.zone-pct {
  font-family: "Space Grotesk", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-main);
}

.zone-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-safe { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.55); }
.dot-warn { background: #eab308; box-shadow: 0 0 6px rgba(234, 179, 8, 0.50); }
.dot-high { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.50); }
.dot-fake { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.55); }

.spectrum-rail-shell {
  position: relative;
  height: 14px;
  padding: 2px;
  border-radius: 999px;
  background: var(--card-inner);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.spectrum-rainbow-bar {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #10b981 0%,
    #22c55e 18%,
    #84cc16 34%,
    #eab308 54%,
    #f97316 76%,
    #ef4444 100%
  );
}

.spectrum-rainbow-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04));
  pointer-events: none;
}

.spec-tick {
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Precision Jewel Capsule Pointer */
.spectrum-pointer {
  --pin-color: #10b981;
  position: absolute;
  top: 50%;
  width: 14px;
  height: 22px;
  border-radius: 7px;
  background: #ffffff;
  border: 2.5px solid var(--pin-color);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.24),
    0 0 0 3px rgba(255, 255, 255, 0.55);
  transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
  z-index: 3;
}

html[data-theme="dark"] .spectrum-pointer {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.65),
    0 0 0 3px rgba(15, 23, 42, 0.55);
}

.pointer-core {
  width: 4px;
  height: 10px;
  border-radius: 99px;
  background: var(--pin-color);
  transition: background 0.35s ease;
}

/* ==========================================================================
   SPOOFING DIFF DRAWER (WHEN DEVICE CHANGES CAUGHT)
   ========================================================================== */

.spoof-diff-banner {
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, rgba(239, 68, 68, 0.11) 0%, var(--card-inner) 75%);
  border: 1.5px solid rgba(239, 68, 68, 0.38);
  box-shadow: var(--shadow-3d);
}

.spoof-diff-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 9px;
}

html[data-theme="dark"] .spoof-diff-title {
  color: #f87171;
}

.spoof-diff-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.diff-tag-item {
  font-size: 12px;
  font-weight: 700;
  padding: 5.5px 11px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: var(--text-main);
}

/* ==========================================================================
   ANIMATED NETWORK PIPELINE: IP WEB ➔ IP 6-STUN
   ========================================================================== */

.pipeline-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 20px 24px;
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  margin-bottom: 20px;
  overflow: hidden;
}

.pipeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.pipeline-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 130px 1fr;
  align-items: center;
  gap: 14px;
}

@media (max-width: 820px) {
  .pipeline-nodes-grid {
    grid-template-columns: 1fr;
  }
  .packet-stream-bridge {
    transform: rotate(90deg);
    margin: 8px auto;
  }
}

.net-node-pod {
  padding: 14px 18px;
  border-radius: var(--radius-xl);
  background: var(--pod-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 14px;
}

.net-node-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(14, 165, 233, 0.11);
  border: 1px solid rgba(14, 165, 233, 0.28);
  flex-shrink: 0;
}

.net-node-caption {
  font-size: 10.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.net-node-ip {
  font-size: 18.5px;
  font-weight: 800;
  margin-top: 2px;
}

.net-node-sub {
  font-size: 11.8px;
  color: var(--text-muted);
  margin-top: 2px;
}

.packet-stream-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.packet-line {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--track-bg);
  overflow: hidden;
}

.packet-dots {
  position: absolute;
  inset: 0;
  background-size: 28px 100%;
  animation: packetMove 0.9s linear infinite;
}

@keyframes packetMove {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}

.bridge-rtt-label {
  font-size: 10.8px;
  font-weight: 800;
}

.pipeline-note {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--divider);
  font-size: 12.8px;
  color: var(--text-sec);
}

/* ==========================================================================
   FULL-WIDTH VERDICT BANNER
   ========================================================================== */

.verdict-banner-wrap {
  margin-bottom: 20px;
}

.status-banner-3d {
  border-radius: var(--radius-2xl);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 260px;
}

.banner-icon-3d {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-title {
  font-size: 15px;
  font-weight: 900;
}

.banner-desc {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 3px;
}

.btn-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 17px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid currentColor;
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.extra-fails-grid {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.extra-fail-card {
  background: var(--card-glass);
  border: 1px solid rgba(239, 68, 68, 0.34);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  box-shadow: var(--shadow-3d);
}

.extra-fail-card h4 {
  font-size: 13.2px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 4px;
}

html[data-theme="dark"] .extra-fail-card h4 { color: #f87171; }
.extra-fail-card p { font-size: 12.4px; color: var(--text-sec); }

/* ==========================================================================
   7-AXIS POLYGON SPIDER CHART + 7 SPECTRUM CATEGORIES
   ========================================================================== */

.radar-and-cats-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .radar-and-cats-grid {
    grid-template-columns: 1fr;
  }
}

.polygon-radar-card {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 22px;
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  text-align: center;
  overflow: hidden;
}

.radar-card-title {
  font-size: 16.5px;
  font-weight: 800;
  margin-top: 10px;
}

.radar-card-sub {
  font-size: 12.2px;
  color: var(--text-muted);
  margin-top: 4px;
}

.spider-svg-wrap {
  width: 100%;
  max-width: 288px;
  margin: 12px auto 0;
}

.spider-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cats-list-head {
  margin-bottom: 11px;
}

.cats-list-head h3 {
  font-size: 16.5px;
  font-weight: 800;
}

.cats-list-head p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

details.cat-accordion {
  background: var(--card-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  transition: border-color 0.2s ease, transform 0.16s ease;
}

details.cat-accordion:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

details.cat-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) 1fr auto;
  align-items: center;
  gap: 16px;
  user-select: none;
}

details.cat-accordion > summary::-webkit-details-marker { display: none; }

@media (max-width: 760px) {
  details.cat-accordion > summary { grid-template-columns: 1fr auto; }
  .cat-bar-wrap { display: none; }
}

.cat-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.cat-main-name {
  font-size: 13.8px;
  font-weight: 800;
}

.cat-easy-desc {
  font-size: 11.6px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cat-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--track-bg);
  border-radius: 999px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-right-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-score-badge {
  font-size: 11.8px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.chevron-icon {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

details.cat-accordion[open] .chevron-icon { transform: rotate(180deg); }

.cat-body {
  border-top: 1px solid var(--divider);
  background: var(--pod-surface);
}

.check-table {
  width: 100%;
  border-collapse: collapse;
}

.check-table th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  padding: 9px 16px;
  text-align: left;
  border-bottom: 1px solid var(--divider);
}

.check-table td {
  padding: 9.5px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 12.2px;
  color: var(--text-sec);
}

.check-table tr:last-child td { border-bottom: none; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.2px;
  font-weight: 800;
}

.badge-PASS { background: rgba(16, 185, 129, 0.14); color: #059669; border: 1px solid rgba(16, 185, 129, 0.34); }
.badge-WARN { background: rgba(245, 158, 11, 0.15); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.36); }
.badge-FAIL, .badge-CRITICAL { background: rgba(239, 68, 68, 0.14); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.36); }

html[data-theme="dark"] .badge-PASS { color: #34d399; }
html[data-theme="dark"] .badge-WARN { color: #fbbf24; }
html[data-theme="dark"] .badge-FAIL, html[data-theme="dark"] .badge-CRITICAL { color: #f87171; }

/* Local Admin /history Fallback Compatibility */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid var(--border-subtle); background: var(--card-glass); color: var(--text-main); text-decoration: none; }
.btn-primary { background: #10b981; border-color: #059669; color: #fff; }
.btn-danger { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #dc2626; }
.card, .cluster-card, .meta-box { background: var(--card-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow-3d); }
.summary-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.meta-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.meta-val { font-size: 14px; font-weight: 800; margin-top: 4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.data-table th, .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--divider); text-align: left; }
.diff-changed td { background: rgba(239, 68, 68, 0.12) !important; }
.sim-bar-track { width: 100%; height: 7px; background: var(--track-bg); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.sim-bar-fill { height: 100%; border-radius: 99px; }

.hidden {
  display: none !important;
}
