/*
  Aether Premium — luxury transparent glass, background visible site-wide
  Load absolutely LAST
*/

body.sr-aether {
  --ae-glass: rgba(255, 255, 255, 0.07);
  --ae-glass-hover: rgba(255, 255, 255, 0.11);
  --ae-border: rgba(255, 255, 255, 0.18);
  --ae-border-soft: rgba(255, 255, 255, 0.1);
  --ae-gold: #e2c178;
  --ae-teal: #6ee7d5;
  --ae-text: rgba(255, 255, 255, 0.96);
  --ae-muted: rgba(255, 255, 255, 0.58);
  --ae-blur: blur(36px) saturate(190%);
  --ae-up: #5eead4;
  --ae-down: #fda4af;
  background: transparent !important;
}

/* ── Background: always visible ── */
body.sr-aether #world-solar-bg {
  opacity: 1 !important;
}

body.sr-aether #world-solar-bg .wsb-nebula,
body.sr-aether #world-solar-bg .wsb-milky {
  opacity: 0.72 !important;
}

body.sr-aether #world-solar-bg .wsb-vignette {
  background:
    radial-gradient(ellipse 120% 90% at 50% 42%, transparent 0%, rgba(6, 8, 12, 0.28) 55%, rgba(6, 8, 12, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.35) 0%, transparent 20%, transparent 72%, rgba(6, 8, 12, 0.55) 100%) !important;
}

body.sr-aether .site-wrapper,
body.sr-aether main,
body.sr-aether section,
body.sr-aether #dashboard,
body.sr-aether .sr-seo-section,
body.sr-aether #guide,
body.sr-aether .sr-faq-section {
  background: transparent !important;
}

body.sr-aether .sr-aether-glass {
  background: var(--ae-glass);
  backdrop-filter: var(--ae-blur);
  -webkit-backdrop-filter: var(--ae-blur);
  border: 1px solid var(--ae-border);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

body.sr-aether .card,
body.sr-aether .sr-seo-paragraph,
body.sr-aether .sr-seo-card,
body.sr-aether .sr-seo-block,
body.sr-aether .sr-faq-card,
body.sr-aether footer.footer-premium,
body.sr-aether nav.nav-glass.nav-premium {
  background: var(--ae-glass) !important;
  backdrop-filter: var(--ae-blur) !important;
  -webkit-backdrop-filter: var(--ae-blur) !important;
  border-color: var(--ae-border-soft) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.sr-aether footer.footer-premium::before {
  display: none !important;
}

body.sr-aether .spectro-analysis-card,
body.sr-aether .spectro-insight-card,
body.sr-aether .metric-card,
body.sr-aether .live-note {
  background: rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid var(--ae-border-soft) !important;
}

/* ═══ HERO — cinematic ═══ */
body.sr-aether .sr-aether-hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--sr-nav-offset, 5rem) + env(safe-area-inset-top, 0px)) clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
}

body.sr-aether .sr-aether-bg-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

body.sr-aether .sr-aether-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 76rem;
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* Editorial header — no box, floats on bg */
body.sr-aether .sr-aether-editorial {
  max-width: 36rem;
}

body.sr-aether .sr-aether-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ae-gold);
}

body.sr-aether .sr-aether-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, var(--ae-gold), transparent);
}

body.sr-aether .sr-aether-h1-main {
  display: block;
  margin: 0;
  font-size: clamp(2.25rem, 6.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ae-text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}

body.sr-aether .sr-aether-h1-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ae-muted);
}

body.sr-aether .sr-aether-lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ae-muted);
  max-width: 28rem;
}

/* Stage */
body.sr-aether .sr-aether-stage {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  flex: 1;
}

@media (min-width: 900px) {
  body.sr-aether .sr-aether-stage {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* Complication — luxury dial */
body.sr-aether .sr-aether-complication {
  position: relative;
  border-radius: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  min-height: clamp(18rem, 42vw, 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.sr-aether .sr-aether-orbit-svg {
  position: absolute;
  width: min(92%, 22rem);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  opacity: 0.9;
  animation: ae-orbit 60s linear infinite;
}

@keyframes ae-orbit {
  to { transform: translate(-50%, -52%) rotate(360deg); }
}

body.sr-aether .sr-aether-orbit-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.75;
}

body.sr-aether .sr-aether-orbit-node {
  fill: var(--ae-gold);
  filter: drop-shadow(0 0 4px rgba(226, 193, 120, 0.8));
}

body.sr-aether .sr-aether-orbit-label {
  fill: rgba(255, 255, 255, 0.45);
  font-size: 6px;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
}

body.sr-aether .sr-aether-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(11rem, 44vw);
  height: min(11rem, 44vw);
  transform: translate(-50%, -54%);
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 213, 0.35);
  box-shadow: 0 0 60px rgba(110, 231, 213, 0.08);
  pointer-events: none;
  animation: ae-pulse 3s ease-in-out infinite;
}

@keyframes ae-pulse {
  0%, 100% { transform: translate(-50%, -54%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -54%) scale(1.08); opacity: 0.85; }
}

body.sr-aether .sr-aether-comp-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ae-muted);
}

body.sr-aether .sr-aether-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--ae-teal);
  border: 1px solid rgba(110, 231, 213, 0.35);
  background: rgba(110, 231, 213, 0.08);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
}

body.sr-aether .sr-aether-live-dot i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--ae-teal);
  font-style: normal;
}

body.sr-aether .sr-aether-hz {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
  margin: 0.25rem 0;
}

body.sr-aether .sr-aether-hz .hero-freq-value,
body.sr-aether .sr-aether-hz #hero-freq {
  font-family: var(--sr-font-mono, ui-monospace, monospace) !important;
  font-size: clamp(4.5rem, 20vw, 7.5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.06em !important;
  color: var(--ae-text) !important;
  -webkit-text-fill-color: var(--ae-text) !important;
  background: none !important;
  text-shadow: 0 8px 48px rgba(0, 0, 0, 0.55) !important;
  filter: none !important;
  animation: none !important;
  font-variant-numeric: tabular-nums;
  line-height: 0.9 !important;
}

body.sr-aether .sr-aether-hz .hero-freq-unit {
  font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
  color: var(--ae-muted) !important;
  font-weight: 400 !important;
  padding-bottom: 0.65rem;
}

body.sr-aether .sr-aether-status {
  position: relative;
  z-index: 2;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--ae-muted);
}

body.sr-aether .sr-aether-status strong {
  color: var(--ae-text);
  font-weight: 500;
}

body.sr-aether .sr-aether-trace {
  position: relative;
  z-index: 2;
  width: min(100%, 20rem);
  height: 2.75rem;
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Spectro portal */
body.sr-aether .sr-aether-portal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  border-radius: 1.5rem;
  padding: 0.85rem;
  width: min(100%, 14rem);
  margin-inline: auto;
  transition: background 0.25s ease, transform 0.25s ease;
}

body.sr-aether .sr-aether-portal:hover {
  background: var(--ae-glass-hover);
  transform: translateY(-2px);
}

body.sr-aether .sr-aether-portal-ring {
  position: relative;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(226, 193, 120, 0.6), rgba(110, 231, 213, 0.4));
}

body.sr-aether .sr-aether-portal-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(8, 10, 14, 0.5);
}

body.sr-aether .sr-aether-portal-scan {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent 45%, rgba(110, 231, 213, 0.15) 50%, transparent 55%);
  animation: ae-scan 4s linear infinite;
  pointer-events: none;
}

@keyframes ae-scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

body.sr-aether .sr-aether-portal-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ae-gold);
  text-align: center;
}

body.sr-aether .sr-aether-portal-sub {
  font-size: 0.6875rem;
  color: var(--ae-muted);
  text-align: center;
  line-height: 1.35;
}

/* Command deck — single luxury bar */
body.sr-aether .sr-aether-deck {
  border-radius: 1.25rem;
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.15rem;
}

body.sr-aether .sr-aether-deck-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

body.sr-aether .sr-aether-deck-metric span:first-child {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ae-muted);
}

body.sr-aether .sr-aether-deck-metric strong,
body.sr-aether .sr-aether-deck-metric .sr-aether-deck-val {
  font-family: var(--sr-font-mono, ui-monospace, monospace);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ae-text);
}

body.sr-aether .sr-aether-deck-metric .metric-up { color: var(--ae-up) !important; }
body.sr-aether .sr-aether-deck-metric .metric-down { color: var(--ae-down) !important; }

body.sr-aether .sr-aether-deck-sep {
  width: 1px;
  height: 1.75rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

body.sr-aether .sr-aether-deck-traffic {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

body.sr-aether .sr-aether-deck-traffic .sr-aether-deck-val {
  font-size: 1.25rem;
}

body.sr-aether .sr-aether-deck-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}

body.sr-aether .sr-aether-btn-primary,
body.sr-aether .sr-aether-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

body.sr-aether .sr-aether-btn-primary {
  background: rgba(226, 193, 120, 0.92);
  color: #0a0c10;
  border: none;
}

body.sr-aether .sr-aether-btn-primary:hover {
  transform: translateY(-1px);
  background: #e8c872;
}

body.sr-aether .sr-aether-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ae-text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

/* Harmonic arc labels — desktop only inline under complication */
body.sr-aether .sr-aether-harmonics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

body.sr-aether .sr-aether-h-chip {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.5625rem;
  font-family: var(--sr-font-mono, ui-monospace, monospace);
  color: var(--ae-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

body.sr-aether .sr-aether-h-chip em {
  font-style: normal;
  color: var(--ae-gold);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Dashboard + spectrogram */
body.sr-aether .sr-prism-dash-head,
body.sr-aether .sr-aether-dash-head {
  border-radius: 1rem;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--ae-gold);
  background: var(--ae-glass) !important;
  backdrop-filter: var(--ae-blur) !important;
}

body.sr-aether .sr-aether-dash-head h2,
body.sr-aether .sr-prism-dash-head h2 {
  color: var(--ae-text) !important;
  font-weight: 600 !important;
  text-align: left !important;
}

body.sr-aether #spectrogram.sr-prism-spectro,
body.sr-aether #spectrogram {
  background: var(--ae-glass) !important;
  backdrop-filter: var(--ae-blur) !important;
  border: 1px solid var(--ae-border) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
}

body.sr-aether .sr-prism-spectro-viewport,
body.sr-aether .sr-aether-spectro-viewport {
  background: rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.sr-aether .sr-prism-spectro-viewport #main-spectro {
  opacity: 0.97;
}

/* Hide old prism hero clutter */
body.sr-aether .sr-prism-hero,
body.sr-aether .sr-prism-inner,
body.sr-aether .sr-prism-layout,
body.sr-aether .sr-prism-telemetry {
  display: none !important;
}

@media (max-width: 719px) {
  body.sr-aether .sr-aether-deck-actions {
    width: 100%;
    margin-left: 0;
  }

  body.sr-aether .sr-aether-btn-primary,
  body.sr-aether .sr-aether-btn-ghost {
    flex: 1;
    justify-content: center;
  }

  body.sr-aether .sr-aether-deck-sep {
    display: none;
  }

  body.sr-aether .sr-aether-hero {
    min-height: auto;
  }
}

body.sr-aether .sr-seo-kicker,
body.sr-aether .sr-faq-kicker {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--ae-border-soft) !important;
  backdrop-filter: blur(16px) !important;
}

body.sr-aether .sr-seo-title,
body.sr-aether .sr-faq-title {
  color: var(--ae-text) !important;
  -webkit-text-fill-color: var(--ae-text) !important;
  background: none !important;
}

body.sr-aether .sr-aether-dash-label,
body.sr-aether .sr-prism-dash-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ae-gold);
}

@media (prefers-reduced-motion: reduce) {
  body.sr-aether .sr-aether-orbit-svg,
  body.sr-aether .sr-aether-pulse,
  body.sr-aether .sr-aether-portal-scan {
    animation: none !important;
  }
}
