/* =================================================================
   AZAM PREMIUM — Midnight Noir / Electric Blue
   Editorial serif display + refined geometric sans
   ================================================================= */
:root {
  --ink: #0b1020;
  --ink-2: #10162a;
  --ink-3: #171f36;
  --ink-4: #212a45;
  --gold: #5aa8ff;          /* primary accent — softer azure */
  --gold-soft: #8fc5ff;     /* lighter sky */
  --gold-deep: #2b5e9a;     /* deep navy */
  --ember: #9d7cf0;         /* secondary accent — softer violet */
  --ember-dim: #7e5dd0;
  --text: #e8eefa;
  --text-dim: #c2cbde;
  --fog: #8a93a8;
  --line: rgba(180, 210, 255, 0.06);
  --line-strong: rgba(180, 210, 255, 0.12);
  /* Softer chapter tints — lower saturation/alpha for smoother feel */
  --tint-amber:   hsla(212, 70%, 62%, 0.14);
  --tint-ember:   hsla(262, 60%, 66%, 0.13);
  --tint-teal:    hsla(184, 58%, 54%, 0.13);
  --tint-plum:    hsla(236, 55%, 62%, 0.13);
  --tint-emerald: hsla(168, 55%, 50%, 0.11);
  --tint-azure:   hsla(202, 70%, 60%, 0.13);
  --shadow-xl: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 8px 22px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 0 1px rgba(90, 168, 255, 0.4), 0 14px 36px -10px rgba(90, 168, 255, 0.22);
  --radius: 6px;
  --radius-lg: 14px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Soft ambient glow pinned behind everything (no blur filter — uses
   naturally-soft radial gradients instead). Cheap on mobile. */
body.home::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 42% at 20% 28%, rgba(90, 168, 255, 0.08), transparent 70%),
    radial-gradient(55% 40% at 82% 18%, rgba(157, 124, 240, 0.06), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(74, 163, 255, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(74, 163, 255, 0.4); }

::selection { background: var(--gold); color: var(--ink); }

/* =================================================================
   Nav — glass with gold under-rule
   ================================================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.9), rgba(11, 16, 32, 0.55));
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(11, 16, 32, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(90, 168, 255, 0.06), 0 12px 24px -14px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.5vw, 48px);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.brand-bolt {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  text-shadow: 0 1px 20px rgba(74, 163, 255, 0.45);
}
.brand-rest {
  color: var(--text);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78em;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2.2vw, 28px);
  flex: 1;
  margin-left: 8px;
}
.nav-links a {
  font-size: 13px;
  color: var(--fog);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

.nav-search {
  position: relative;
}
.nav-search::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8b95' stroke-width='2.2'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.6' y2='16.6'/></svg>") no-repeat center/contain;
  pointer-events: none;
}
#search {
  width: 260px;
  height: 40px;
  padding: 0 18px 0 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13.5px;
  letter-spacing: 0.01em;
  outline: none;
  transition: all 0.25s var(--ease);
}
#search:focus {
  border-color: var(--gold);
  background: rgba(74, 163, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.12);
}
#search::placeholder { color: var(--fog); }

/* Right-side nav cluster — search + user menu */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu { position: relative; }
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  height: 40px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.user-pill:hover {
  border-color: rgba(74, 163, 255, 0.45);
  background: rgba(74, 163, 255, 0.06);
  color: var(--gold-soft);
}
.user-pill .user-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(74, 163, 255, 0.7);
}
.user-drop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: rgba(16, 22, 42, 0.98);
  border: 1px solid rgba(90, 168, 255, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(180, 210, 255, 0.04) inset;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease-out);
  z-index: 100;
}
.user-menu.open .user-drop {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.user-drop-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.user-drop-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  font-variation-settings: "opsz" 48;
}
.user-drop-email {
  font-size: 11.5px;
  color: var(--fog);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.user-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  transition: all 0.15s var(--ease);
}
.user-drop-item:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}
.user-drop-item svg { flex-shrink: 0; opacity: 0.8; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  #search { width: 180px; }
  .user-pill .user-name { display: none; }
  .user-pill { padding: 8px 12px; }
}
@media (max-width: 480px) {
  #search { width: 120px; font-size: 13px; height: 36px; padding-left: 34px; }
  .brand { font-size: 21px; }
}

/* =================================================================
   Hero — editorial magazine cover
   ================================================================= */
#hero {
  position: relative;
  height: clamp(520px, 85vh, 820px);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-color: var(--ink);
  transition: background-image 1s var(--ease), opacity 1s var(--ease);
}
.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 36%,
      rgba(11, 16, 32, 0.55) 66%,
      rgba(11, 16, 32, 0.9) 86%,
      var(--ink) 96%,
      var(--ink) 100%),
    linear-gradient(90deg, rgba(11, 16, 32, 0.8) 0%, rgba(11, 16, 32, 0.35) 55%, transparent 100%);
}

/* Soft seam line at the hero→rows boundary — single static gradient,
   no animation, no blend mode. */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(90, 168, 255, 0.28) 35%,
    rgba(157, 124, 240, 0.28) 65%,
    transparent 100%);
}
.hero-waves svg { display: none; }
.hero-content {
  position: absolute;
  bottom: 16%;
  left: clamp(20px, 4vw, 56px);
  max-width: 660px;
  z-index: 2;
  animation: heroEnter 1.1s var(--ease-out) both;
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(157, 124, 240, 0.16);
  color: var(--ember);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid rgba(157, 124, 240, 0.32);
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(157, 124, 240, 0.2);
}
#hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.5vw, 96px);
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "opsz" 144, "WONK" 1;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--text);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  /* Italic leading emphasis on first word via JS? Keep clean here */
}
#hero-tagline {
  margin: 0 0 32px;
  font-size: clamp(15px, 1.3vw, 18.5px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 560px;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(74, 163, 255, 0.5);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(74, 163, 255, 0.65);
}
.btn-primary.small { padding: 11px 20px; font-size: 13px; }
.btn-secondary {
  background: rgba(180, 210, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: rgba(180, 210, 255, 0.14);
  border-color: rgba(74, 163, 255, 0.4);
  transform: translateY(-2px);
}

/* =================================================================
   Rows — editorial sections
   ================================================================= */
main#rows {
  position: relative;
  padding: 48px 0 96px;
  margin-top: -2px;
  z-index: 5;
  isolation: isolate;
}
/* Soft ambient wash — low-alpha radials over ink, no filters */
main#rows::before {
  content: '';
  position: absolute;
  inset: 220px 0 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 40% at 12% 15%, var(--tint-amber), transparent 70%),
    radial-gradient(50% 36% at 88% 22%, var(--tint-ember), transparent 72%),
    radial-gradient(60% 40% at 20% 65%, var(--tint-plum),  transparent 72%),
    radial-gradient(55% 38% at 85% 82%, var(--tint-azure), transparent 72%);
}
.row {
  position: relative;
  margin: 0 0 72px;
  padding: 30px 0 36px;
  animation: rowIn 0.7s var(--ease-out) both;
}
/* Per-row soft wash — no filter, no blend mode */
.row::before {
  content: '';
  position: absolute;
  inset: 0 -10% -20px -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 85% at 15% 55%, var(--row-wash, var(--tint-amber)), transparent 72%),
    radial-gradient(50% 80% at 85% 55%, var(--row-wash-2, var(--tint-ember)), transparent 75%);
}
/* Rotate chapter colors through the row stack */
.row:nth-child(6n+1) { --row-wash: var(--tint-amber);   --row-wash-2: var(--tint-ember); }
.row:nth-child(6n+2) { --row-wash: var(--tint-teal);    --row-wash-2: var(--tint-azure); }
.row:nth-child(6n+3) { --row-wash: var(--tint-plum);    --row-wash-2: var(--tint-ember); }
.row:nth-child(6n+4) { --row-wash: var(--tint-emerald); --row-wash-2: var(--tint-teal); }
.row:nth-child(6n+5) { --row-wash: var(--tint-ember);   --row-wash-2: var(--tint-amber); }
.row:nth-child(6n+6) { --row-wash: var(--tint-azure);   --row-wash-2: var(--tint-plum); }
.row:nth-child(2) { animation-delay: 0.08s; }
.row:nth-child(3) { animation-delay: 0.16s; }
.row:nth-child(4) { animation-delay: 0.24s; }
.row:nth-child(5) { animation-delay: 0.32s; }
.row:nth-child(6) { animation-delay: 0.40s; }
.row:nth-child(7) { animation-delay: 0.48s; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  margin-bottom: 18px;
  gap: 16px;
  position: relative;
}
.row-header::before {
  content: '';
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: -14px;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}
.row-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  font-variation-settings: "SOFT" 40, "opsz" 80;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.row-title .warn-dot {
  width: 7px; height: 7px;
  background: var(--gold-soft);
  border-radius: 50%;
}
.row-count {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--gold-soft);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(74, 163, 255, 0.32);
  border-radius: 999px;
  background: rgba(90, 168, 255, 0.09);
  white-space: nowrap;
}
.row-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 10px clamp(20px, 4vw, 56px) 20px;
}

/* =================================================================
   Card — cinematic poster
   ================================================================= */
.card {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(74, 163, 255, 0.16), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(139, 92, 246, 0.14), transparent 55%),
    linear-gradient(135deg, #162238 0%, #0d1526 55%, #070b14 100%);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  box-shadow: var(--shadow-card);
  isolation: isolate;
}
/* Subtle gradient border via pseudo */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(180, 210, 255, 0.14), rgba(180, 210, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-gold), 0 18px 36px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.card:hover::before { opacity: 0; }
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover img {
  transform: scale(1.06);
}
.card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 14px 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
}
.card .card-name {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  flex: 1;
  min-width: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: var(--text);
}
.card .card-tags {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-transform: uppercase;
}
.tag.drm  { background: rgba(74, 163, 255, 0.88); color: var(--ink); }
.tag.free { background: rgba(34, 197, 94, 0.85); color: #03190a; }
.tag.live {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.45);
}

.card.issue { opacity: 0.72; filter: grayscale(0.35); }
.card.issue:hover { filter: grayscale(0.15); opacity: 0.92; }
.card.issue::after {
  content: attr(data-issue);
  position: absolute;
  top: 10px; left: 10px;
  padding: 4px 9px;
  background: rgba(16, 22, 42, 0.95);
  color: #8fb4ff;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(143, 180, 255, 0.35);
  border-radius: 4px;
  z-index: 3;
}
.card.issue .card-name { color: rgba(243, 239, 231, 0.75); }

.card .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(74, 163, 255, 0.14), transparent 60%),
    linear-gradient(135deg, #182236, #0c1322);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  padding: 12px;
  letter-spacing: -0.01em;
}

/* =================================================================
   Footer
   ================================================================= */
footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 4vw, 56px);
  color: var(--fog);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, transparent, rgba(74, 163, 255, 0.015));
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.foot-inner .brand-mini {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
}
.sep { opacity: 0.4; }

/* =================================================================
   Toast
   ================================================================= */
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: rgba(23, 30, 52, 0.98);
  border: 1px solid var(--line-strong);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.warn {
  border-color: rgba(143, 180, 255, 0.5);
  background: rgba(10, 18, 34, 0.96);
  color: #8fb4ff;
}

/* =================================================================
   Watch page — cinematic stage
   ================================================================= */
body.watch { background: #000; overflow: hidden; }

#stage {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #000;
}
#stage-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.96) 100%),
    radial-gradient(60% 50% at 20% 30%, rgba(90, 168, 255, 0.06), transparent 70%);
}

#player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  object-fit: contain;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  cursor: pointer;
}
#player.ready { opacity: 1; }

#stage:fullscreen,
#stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}
#stage:fullscreen #stage-fade,
#stage:-webkit-full-screen #stage-fade { display: none; }
body.is-fullscreen #side-toggle { top: 16px; right: 16px; }

#loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.7s linear;
  visibility: hidden;
}
#loading.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* In-card loading: dim the card and show a simple spinner centered on it */
.card-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  background: rgba(11, 16, 32, 0.72);
  transition: opacity 0.2s ease;
}
.card.loading .card-loading { opacity: 1; }
.card.loading img,
.card.loading .placeholder { opacity: 0.5; }
.card.loading .overlay { opacity: 0; }
.card-rings {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.card-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 2.5px solid transparent;
}
.card-rings .ring-1 {
  inset: 0;
  border-top-color: var(--gold);
  border-right-color: rgba(90, 168, 255, 0.3);
  animation: ringSpin 1s linear infinite;
}
.card-rings .ring-2,
.card-rings .ring-core { display: none; }
.loading-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(11, 16, 32, 0.78) 0%, rgba(6, 9, 20, 0.94) 100%),
    radial-gradient(ellipse 45% 30% at 50% 50%, rgba(90, 168, 255, 0.12), transparent 70%);
}
.loading-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 8px 40px;
}
.loading-rings {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.loading-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
}
.loading-rings .ring-1 {
  inset: 0;
  border-top-color: var(--gold);
  border-right-color: rgba(90, 168, 255, 0.3);
  animation: ringSpin 1.1s linear infinite;
}
.loading-rings .ring-2 {
  inset: 16px;
  border-width: 2px;
  border-top-color: var(--ember);
  border-left-color: rgba(157, 124, 240, 0.3);
  animation: ringSpin 1.6s linear infinite reverse;
}
.loading-rings .ring-3,
.loading-rings .ring-core { display: none; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.pulse-logo {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 400;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pulse-logo .brand-bolt {
  color: var(--gold-soft);
  font-style: italic;
  font-weight: 500;
}
.pulse-logo .brand-rest {
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.28em;
  font-size: 0.4em;
  margin-left: 10px;
  vertical-align: middle;
  opacity: 0.75;
}
.loading-text {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(200, 220, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: -4px;
}
.loading-text strong {
  color: var(--gold-soft);
  font-weight: 400;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3em;
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0 4px;
}
.loading-status {
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: rgba(207, 228, 255, 0.75);
  letter-spacing: 0.01em;
  margin-top: -8px;
  min-height: 1.3em;
  text-align: center;
  animation: statusFadeIn 0.5s ease both;
}
@keyframes statusFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.loading-bar {
  position: relative;
  width: 220px;
  height: 2px;
  background: rgba(74, 163, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}
.loading-bar span {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 45%, var(--ember) 75%, transparent 100%);
  animation: loadingBarSlide 1.6s ease-in-out infinite;
}
@keyframes loadingBarSlide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

#error-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  background: rgba(16, 22, 42, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 44px clamp(28px, 4vw, 60px);
  text-align: center;
  max-width: 480px;
  width: calc(100% - 40px);
  box-shadow: var(--shadow-xl);
}
#error-card.hidden { display: none; }
.err-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #8fb4ff;
  background: rgba(143, 180, 255, 0.08);
  border: 1px solid rgba(143, 180, 255, 0.3);
  border-radius: 50%;
}
.err-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.err-sub {
  color: var(--fog);
  font-size: 13.5px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Controls */
#controls {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px clamp(20px, 4vw, 36px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
#stage:hover #controls { opacity: 1; }
#controls.visible { opacity: 1; }
#controls.hidden { display: none; }
.back {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}
.back:hover {
  background: rgba(74, 163, 255, 0.15);
  border-color: rgba(74, 163, 255, 0.5);
  color: var(--gold);
}

.ctrl-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ctrl-title img {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.ctrl-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 40;
  font-size: 19px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}
.ctrl-cat {
  font-size: 11px;
  color: var(--fog);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}
.ctrl-btn {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--line);
  transition: all 0.25s var(--ease);
}
.ctrl-btn:hover {
  background: rgba(74, 163, 255, 0.15);
  border-color: rgba(74, 163, 255, 0.5);
  color: var(--gold);
}

/* Side panel */
#side {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 100%);
  height: 100vh;
  background: rgba(11, 16, 32, 0.98);
  border-left: 1px solid var(--line);
  z-index: 10;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, 0.8);
}
#side.open { transform: translateX(0); }
.side-head {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.side-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "SOFT" 50;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.side-title::before {
  content: '—';
  color: var(--gold);
  margin-right: 10px;
  font-style: normal;
}
#side-close {
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--fog);
  transition: all 0.2s var(--ease);
}
#side-close:hover {
  background: rgba(74, 163, 255, 0.1);
  color: var(--gold);
}
#side-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}
.side-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  border-left: 2px solid transparent;
}
.side-item:hover {
  background: rgba(74, 163, 255, 0.05);
  border-left-color: rgba(74, 163, 255, 0.4);
}
.side-item.active {
  background: rgba(74, 163, 255, 0.08);
  border-left-color: var(--gold);
}
.side-item img {
  width: 60px; height: 38px;
  object-fit: cover;
  border-radius: 5px;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.side-item-info { flex: 1; min-width: 0; }
.side-item-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.side-item.active .side-item-name { color: var(--gold); }
.side-item-cat {
  font-size: 10.5px;
  color: var(--fog);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 3px;
}

#side-toggle {
  position: fixed;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid var(--line);
  z-index: 6;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
#side-toggle:hover {
  background: rgba(74, 163, 255, 0.15);
  border-color: rgba(74, 163, 255, 0.5);
  color: var(--gold);
}
#side.open + #side-toggle { display: none; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 640px) {
  main#rows { margin-top: 0; padding: 32px 0 64px; }
  .row { margin-bottom: 36px; }
  .row-scroll { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .ctrl-title img { width: 36px; height: 36px; }
  .ctrl-name { font-size: 16px; }
  .ctrl-cat { display: none; }
  .hero-content { bottom: 12%; }
  #hero-title { letter-spacing: -0.04em; }
}
@media (max-width: 480px) {
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { padding: 12px 20px; font-size: 13px; }
}

/* =================================================================
   Auth pages — editorial cover for sign-in / register
   ================================================================= */
body.auth {
  min-height: 100vh;
  background: var(--ink);
  overflow: auto;
  display: flex;
  align-items: stretch;
  position: relative;
}
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(45% 38% at 15% 18%, hsla(212, 68%, 62%, 0.16), transparent 70%),
    radial-gradient(42% 34% at 88% 28%, hsla(262, 58%, 66%, 0.14), transparent 72%),
    radial-gradient(52% 40% at 78% 82%, hsla(236, 55%, 62%, 0.14), transparent 72%),
    radial-gradient(45% 34% at 12% 84%, hsla(184, 55%, 54%, 0.12), transparent 74%),
    linear-gradient(165deg, #0c1226 0%, #0f1628 55%, #080c1a 100%);
}
.auth-grain { display: none; }

.auth-wrap {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px clamp(20px, 6vw, 80px);
  gap: 24px;
  min-height: 100vh;
}
.auth-brand {
  justify-self: start;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 6px 2px;
}
.auth-brand .brand-bolt {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  font-size: 26px;
  margin-right: 4px;
}
.auth-brand .brand-rest {
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
}

.auth-card {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  padding: 44px 40px 36px;
  background: rgba(17, 24, 44, 0.95);
  border: 1px solid rgba(180, 210, 255, 0.08);
  border-radius: 20px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(180, 210, 255, 0.05);
  animation: authIn 0.6s var(--ease-out) both;
}
.auth-card.wide { max-width: 560px; }
@keyframes authIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-eyebrow {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.auth-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.auth-title em {
  font-style: italic;
  color: var(--gold-soft);
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
}
.auth-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fog);
  margin: 0 0 28px;
  max-width: 42ch;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) {
  .row-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 22px 26px; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
}
.field input {
  height: 46px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 210, 255, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14.5px;
  letter-spacing: 0.005em;
  outline: none;
  transition: all 0.25s var(--ease);
}
.field input::placeholder { color: rgba(139, 139, 149, 0.7); }
.field input:focus {
  border-color: var(--gold);
  background: rgba(74, 163, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 163, 255, 0.14);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(139, 92, 246, 0.45);
}

.field .pw-wrap { position: relative; display: block; }
.field .pw-wrap input { padding-right: 44px; width: 100%; }
.field .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fog);
  padding: 6px;
  line-height: 0;
  border-radius: 6px;
  transition: color 0.2s ease;
}
.field .pw-toggle:hover { color: var(--gold-soft); }
.field .pw-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.auth-error {
  padding: 12px 14px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  color: #ffa8a0;
  font-size: 13px;
  line-height: 1.45;
}
.auth-error.shake { animation: shake 0.45s ease-out; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.auth-submit {
  position: relative;
  margin-top: 8px;
  height: 50px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  transition: all 0.25s var(--ease);
  box-shadow: 0 10px 24px -6px rgba(74, 163, 255, 0.45);
}
.auth-submit:hover:not(.loading) {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -6px rgba(74, 163, 255, 0.6);
}
.auth-submit:active { transform: translateY(0); }
.auth-submit .spin {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(5, 7, 13, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.auth-submit.loading {
  background: var(--gold-deep);
  color: transparent;
  cursor: wait;
}
.auth-submit.loading .label { visibility: hidden; }
.auth-submit.loading .spin {
  display: block;
  position: absolute;
  left: 50%; top: 50%;
  margin: -9px 0 0 -9px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--fog);
}
.auth-foot a {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid rgba(74, 163, 255, 0.4);
  padding-bottom: 1px;
  transition: all 0.2s var(--ease);
}
.auth-foot a:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

.auth-tag {
  justify-self: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--fog);
  font-variation-settings: "opsz" 48;
  letter-spacing: 0.01em;
}

/* ---- Split layout: welcome prose on the left, form on the right ---- */
.auth-hero { display: none; }

@media (min-width: 1024px) {
  .auth-wrap.split {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "brand brand"
      "hero  card"
      "tag   tag";
    align-items: center;
    gap: 28px clamp(48px, 7vw, 120px);
  }
  .auth-wrap.split .auth-brand { grid-area: brand; }
  .auth-wrap.split .auth-hero  { grid-area: hero; display: block; }
  .auth-wrap.split .auth-card  { grid-area: card; justify-self: end; align-self: center; margin: 0; }
  .auth-wrap.split .auth-tag   { grid-area: tag; }
}

.auth-hero {
  max-width: 580px;
  animation: authIn 1.05s var(--ease-out) both;
  animation-delay: 0.08s;
}
.auth-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(74, 163, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 163, 255, 0.14), rgba(139, 92, 246, 0.08));
  margin-bottom: 28px;
}
.auth-hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(90, 168, 255, 0.18);
}
.auth-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 35;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 22px;
}
.auth-hero-title em {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  background: linear-gradient(92deg, var(--gold) 0%, var(--gold-soft) 52%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-hero-sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 30px;
  max-width: 50ch;
}
.auth-hero-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.auth-hero-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.005em;
}
.auth-hero-list .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(74, 163, 255, 0.18), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(74, 163, 255, 0.3);
  color: var(--gold-soft);
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}
.auth-hero-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.auth-hero-meta .meta-n {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 20;
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: var(--gold-soft);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-right: 3px;
}

/* =================================================================
   Page-level loading overlay (login submit, home initial load)
   ================================================================= */
#page-overlay,
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(11, 16, 32, 0.96);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
#page-overlay.visible,
#page-loader.active { opacity: 1; }
#page-overlay[hidden] { display: none; }
#page-loader {
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s var(--ease) 0.15s;
}
#page-loader.done { opacity: 0; }
#page-overlay .pulse-logo,
#page-loader .pulse-logo {
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
#page-overlay .pulse-logo .brand-bolt,
#page-loader .pulse-logo .brand-bolt {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  font-variation-settings: "opsz" 72, "SOFT" 30;
  margin-right: 6px;
}
#page-overlay .pulse-logo .brand-rest,
#page-loader .pulse-logo .brand-rest {
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text);
}
#page-overlay .spinner,
#page-loader .spinner {
  width: 32px; height: 32px;
  border: 2.5px solid rgba(74, 163, 255, 0.18);
  border-top-color: var(--gold);
  border-right-color: var(--gold-soft);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#page-overlay .loading-text,
#page-loader .loading-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--fog);
  font-variation-settings: "opsz" 48;
  letter-spacing: 0.01em;
}
