/* ==========================================================================
   DARK CINEMATIC THEME — LONESTAR (Modder Collective)
   Vision: Black/Dark Background → Transparent Dark Glass → White Typography → Subtle White Glow → Cinematic Motion
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Dark Palette */
  --bg-near-black: #060608;
  --bg-charcoal: #0a0a0d;
  --bg-deep: #111114;
  --bg-surface: #141418;
  --bg-elevated: #1c1c20;

  --text-primary: #f5f5f3;
  --text-soft: #e8e8e6;
  --text-muted: #9a9aa0;
  --text-dim: #6d6d74;

  --glass-bg: rgba(0, 0, 0, 0.35);
  --glass-bg-strong: rgba(10, 10, 14, 0.55);
  --glass-bg-subtle: rgba(0, 0, 0, 0.18);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.06);

  --glow-soft: 0 0 5px rgba(255,255,255,0.35), 0 0 15px rgba(255,255,255,0.15);
  --glow-medium: 0 0 8px rgba(255,255,255,0.45), 0 0 22px rgba(255,255,255,0.20);
  --glow-strong: 0 0 10px rgba(255,255,255,0.5), 0 0 30px rgba(255,255,255,0.22), 0 0 60px rgba(255,255,255,0.08);
  --glow-hover: 0 0 8px rgba(255,255,255,0.55), 0 0 25px rgba(255,255,255,0.25);

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg-near-black);
  color: var(--text-soft);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Background System ---------- */
.bg-root {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: radial-gradient(1200px 800px at 50% -10%, #1e1e24 0%, #0d0d10 45%, #050507 75%, #000000 100%);
  overflow: hidden;
}
.bg-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.35) contrast(1.05) brightness(0.85);
}
.bg-media img, .bg-media video {
  width: 100%; height: 100%; object-fit: cover;
}

/* Background Darkening — ensures readability over GIF/MP4/PNG/JPG/WebP */
.background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.70)),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.background-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 600px at 50% 35%, transparent 45%, rgba(0,0,0,0.35) 100%);
}

/* Cinematic Vignette */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.45) 82%, rgba(0,0,0,0.88) 100%);
  opacity: 0.9;
}

/* Ambient White Glow — slow drifting light blobs */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.11;
  will-change: transform;
}
.ambient-blob--1 {
  width: 720px; height: 520px;
  left: -8%; top: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.95) 0%, rgba(230,234,240,0.45) 28%, transparent 72%);
  animation: drift1 28s ease-in-out infinite alternate;
}
.ambient-blob--2 {
  width: 560px; height: 560px;
  right: -10%; top: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.75) 0%, rgba(210,215,225,0.3) 35%, transparent 70%);
  animation: drift2 34s ease-in-out infinite alternate;
  opacity: 0.07;
}
.ambient-blob--3 {
  width: 840px; height: 420px;
  left: 22%; bottom: -18%;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.55) 0%, rgba(200,205,215,0.18) 40%, transparent 74%);
  animation: drift3 42s ease-in-out infinite alternate;
  opacity: 0.06;
}
@keyframes drift1 { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(60px,40px,0) scale(1.08); } }
@keyframes drift2 { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-50px,30px,0) scale(1.06); } }
@keyframes drift3 { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(30px,-35px,0) scale(1.04); } }

/* Mouse-following ambient glow */
.cursor-glow {
  position: fixed;
  width: 720px; height: 720px;
  left: 0; top: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.045) 22%, transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}

/* ---------- Typography Glow Hierarchy ---------- */
.glow-primary {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255,255,255,0.50), 0 0 30px rgba(255,255,255,0.22), 0 0 60px rgba(255,255,255,0.08);
  letter-spacing: 0.14em;
  font-weight: 700;
}
.glow-strong {
  color: var(--text-primary);
  text-shadow: var(--glow-strong);
}
.glow-soft {
  color: #ffffff;
  text-shadow: var(--glow-soft);
}
.glow-medium {
  color: #ffffff;
  text-shadow: var(--glow-medium);
}
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* Primary titles */
.hero-title {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
  font-weight: 700;
  color: #ffffff;
  text-shadow: var(--glow-strong);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-title span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.68rem, 1.8vw, 0.84rem);
  letter-spacing: 0.42em;
  font-weight: 500;
  opacity: 0.72;
  margin-top: 0.9rem;
  text-shadow: 0 0 8px rgba(255,255,255,0.35);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.8vw, 1.92rem);
  font-weight: 600;
  color: #ffffff;
  text-shadow: var(--glow-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.member-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-shadow: var(--glow-soft);
  transition: text-shadow 0.35s var(--ease-cinematic), color 0.35s ease, transform 0.35s var(--ease-cinematic);
}
.member-name:hover {
  text-shadow: var(--glow-hover);
  color: #ffffff;
}
.label-glow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 0 6px rgba(255,255,255,0.28);
  font-weight: 600;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.glass-strong {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border-strong);
}
.glass-subtle {
  background: var(--glass-bg-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
}
.glass-hover {
  transition: background 0.4s var(--ease-cinematic), border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-cinematic);
}
.glass-hover:hover {
  background: rgba(18, 18, 22, 0.52);
  border-color: rgba(255,255,255,0.18);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.65),
    0 0 22px rgba(255,255,255,0.06),
    0 1px 0 rgba(255,255,255,0.08) inset;
  transform: translateY(-2px);
}

/* White Edge Lighting — inner + outer */
.edge-light {
  position: relative;
  overflow: hidden;
}
.edge-light::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 42%, rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.edge-light::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 120px at var(--mx, 50%) 0%, rgba(255,255,255,0.10), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.edge-light:hover::after { opacity: 1; }

/* ---------- Layout ---------- */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.12));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  display: grid; place-items: center;
  box-shadow: 0 0 18px rgba(255,255,255,0.06);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-soft);
  letter-spacing: 0.08em;
}
.brand-name {
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-soft);
}
.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1px;
}
.nav-links {
  display: flex; align-items: center; gap: 22px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
}
.nav-links a { transition: color 0.3s ease, text-shadow 0.3s ease; }
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  text-shadow: var(--glow-soft);
}
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.btn-glass {
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-shadow: var(--glow-soft);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 0 12px rgba(255,255,255,0.06);
  transition: all 0.35s var(--ease-cinematic);
  backdrop-filter: blur(12px);
}
.btn-glass:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 6px 24px rgba(0,0,0,0.55), 0 0 20px rgba(255,255,255,0.10);
  text-shadow: var(--glow-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.72);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.18); color: #fff; background: rgba(255,255,255,0.04); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 28px;
  text-align: center;
  position: relative;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.28);
  backdrop-filter: blur(10px);
  margin-bottom: 22px;
}
.hero-kicker i { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.9); display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.hero-desc {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 400;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: left;
}
.stat {
  padding: 16px 18px;
  border-radius: var(--radius-md);
}
.stat-value { font-size: 1.45rem; font-weight: 700; color: #fff; text-shadow: var(--glow-soft); }
.stat-label { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 4px; }

/* ---------- Featured Profile (main glass panel) ---------- */
.featured {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.profile-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.profile-top { display: flex; gap: 18px; align-items: flex-start; }
.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar {
  width: 84px; height: 84px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.avatar-glow {
  position: absolute; inset: -6px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  text-shadow: var(--glow-medium);
  letter-spacing: 0.04em;
}
.profile-handle { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 2px; }
.profile-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #d6d6da;
  min-height: 52px;
}
.typing-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 6px rgba(255,255,255,0.9);
  margin-left: 2px;
  vertical-align: -1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 0 6px rgba(255,255,255,0.28);
  transition: all 0.3s ease;
}
.badge.selected {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  text-shadow: var(--glow-soft);
  box-shadow: 0 0 14px rgba(255,255,255,0.10);
}
.badge:hover { border-color: rgba(255,255,255,0.20); transform: translateY(-1px); }
.social-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.82);
  transition: all 0.3s var(--ease-cinematic);
}
.social-btn:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent); }

/* Mini stats inside profile */
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat { text-align: center; padding: 12px 8px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.mini-stat strong { display: block; color: #fff; text-shadow: var(--glow-soft); font-size: 1.02rem; }
.mini-stat span { font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Info / Controls panel ---------- */
.info-panel {
  padding: 22px;
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 18px;
}
.info-panel h3 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-shadow: var(--glow-soft); }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.control-label { font-size: 0.82rem; color: rgba(255,255,255,0.78); }
.range {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 999px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,255,255,0.6);
  cursor: pointer;
  border: 2px solid rgba(0,0,0,0.4);
}
.bg-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.bg-thumb {
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  position: relative;
  opacity: 0.72;
  transition: all 0.3s ease;
}
.bg-thumb.active { opacity: 1; border-color: rgba(255,255,255,0.28); box-shadow: 0 0 16px rgba(255,255,255,0.12); }
.bg-thumb:hover { opacity: 1; transform: translateY(-1px); }
.bg-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hierarchy ---------- */
.hierarchy { margin-top: 44px; }
.hierarchy-header {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.hierarchy-header p { color: var(--text-muted); font-size: 0.86rem; max-width: 420px; line-height: 1.6; }
.tier { margin-bottom: 28px; }
.tier-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.tier-label h3 {
  font-size: 0.78rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: var(--glow-soft);
  white-space: nowrap;
}
.tier-line { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,0.14), transparent); }
.tier-count { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .members { grid-template-columns: repeat(2, 1fr); } .featured { grid-template-columns: 1fr; } .hero-meta { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .members { grid-template-columns: 1fr; } }

.member-card {
  padding: 18px;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
}
.member-top { display: flex; gap: 12px; align-items: center; }
.member-avatar {
  width: 44px; height: 44px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.12);
}
.member-avatar-wrap { position: relative; flex-shrink: 0; }
.presence-dot {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #0a0a0d;
  background: #80848e;
  box-shadow: 0 0 8px rgba(0,0,0,0.45);
  z-index: 2;
}
.presence-dot.online { background: #23a559; box-shadow: 0 0 8px rgba(35,165,89,0.55); }
.presence-dot.idle { background: #f0b132; box-shadow: 0 0 8px rgba(240,177,50,0.55); }
.presence-dot.dnd { background: #f23f42; box-shadow: 0 0 8px rgba(242,63,66,0.55); }
.presence-dot.offline { background: #80848e; }
.member-role {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.member-bio {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #c8c8ce;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.member-foot {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.member-tag {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
}

/* ---------- Loading, Errors (dark consistent) ---------- */
.loading-screen {
  position: fixed; inset: 0;
  background: #050507;
  display: grid; place-items: center;
  z-index: 60;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 14px rgba(255,255,255,0.12);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Heartbeat logo loader — replaces circle */
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 4.5vw, 2.05rem);
  letter-spacing: 0.32em;
  font-weight: 700;
  text-transform: uppercase;
  color: #6d6d74;
  text-shadow: 0 0 0 transparent;
  animation: heartbeat 1.55s ease-in-out infinite;
  will-change: transform, color, text-shadow, opacity;
}
.loader-sub {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-top: 2px;
}
@keyframes heartbeat {
  0%   { color: #5a5a62; text-shadow: 0 0 0 transparent; transform: scale(1); opacity: 0.75; }
  14%  { color: #e8e8e6; text-shadow: 0 0 12px rgba(255,255,255,0.45), 0 0 28px rgba(255,255,255,0.22); transform: scale(1.06); opacity: 1; }
  28%  { color: #8a8a94; text-shadow: 0 0 6px rgba(255,255,255,0.18); transform: scale(0.99); opacity: 0.88; }
  42%  { color: #ffffff; text-shadow: 0 0 14px rgba(255,255,255,0.55), 0 0 32px rgba(255,255,255,0.28); transform: scale(1.08); opacity: 1; }
  70%  { color: #6d6d74; text-shadow: 0 0 0 transparent; transform: scale(1); opacity: 0.8; }
  100% { color: #5a5a62; text-shadow: 0 0 0 transparent; transform: scale(1); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
  .loader-logo { animation: none !important; color: #e8e8e6; text-shadow: 0 0 10px rgba(255,255,255,0.35); }
}

/* Error / toast */
.toast {
  position: fixed;
  top: 18px; left: 50%;
  transform: translateX(-50%) translateY(-12px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(18, 10, 10, 0.72);
  border: 1px solid rgba(255, 90, 90, 0.22);
  color: #ffcfcf;
  font-size: 0.82rem;
  backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease-cinematic);
  z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Scrollbar dark */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #060608; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 999px; border: 1px solid rgba(255,255,255,0.06); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ambient-blob { animation: none !important; }
  .cursor-glow { display: none; }
}

/* Mobile */
@media (max-width: 720px) {
  .hero-full { padding-top: 28px; }
}
