/* ============================================
   HookedGamer.tv — Victorian Empire × Ancient Rome
   Ornate filigree · Classical columns · Gold leaf
   #010100 bg · #ffcd1b gold · #fdfed7 cream
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  --bg: #010100;
  --bg-elevated: #0d0d0b;
  --bg-card: #111110;
  --bg-card-hover: #1a1a17;
  --gold: #ffcd1b;
  --gold-dim: #c9a215;
  --gold-bright: #ffe066;
  --gold-muted: rgba(255,205,27,0.35);
  --gold-subtle: rgba(255,205,27,0.08);
  --text: #fdfed7;
  --text-muted: #a8a88a;
  --text-dim: #6b6b55;
  --border: #2a2a22;
  --border-gold: rgba(255,205,27,0.2);
  --danger: #e74c3c;
  --success: #2ecc71;
  --info: #3498db;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 2px;
  --radius-lg: 4px;
  --transition: 0.25s ease;
  --max-width: 1280px;
  --glow: 0 0 30px rgba(255,205,27,0.12);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 0.9375rem;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ──────────────────────────────────────
   VICTORIAN / ROMAN ORNAMENTAL SYSTEM
   ────────────────────────────────────── */

/* Parallax floating motif.png background across all pages */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-pattern img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  opacity: 0.06;
  filter: saturate(0.4);
  will-change: transform;
  margin: -5%;
}

/* Classical divider with diamond center */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3.5rem auto;
  max-width: 500px;
  height: 30px;
}
.ornament-divider::before,
.ornament-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}
.ornament-divider .ornament-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}
.ornament-divider .ornament-icon::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.4;
}
.ornament-divider .ornament-icon::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
}

/* Ornate section header with classical typography */
.section-header { margin-bottom: 2.5rem; position: relative; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.35;
}
.section-title::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: var(--gold);
  opacity: 0.4;
  z-index: 1;
}
.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Victorian card frame with corner accents */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: visible;
  position: relative;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold-muted);
  border-style: solid;
  z-index: 1;
  pointer-events: none;
  transition: border-color var(--transition);
}
.card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.card:hover::before, .card:hover::after { border-color: var(--gold); }
.card-header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.card-header h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-body { padding: 1.2rem; overflow: hidden; }


/* ──────────────────────────────────────
   BUTTONS
   ────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-bright); color: var(--bg); transform: translateY(-1px); box-shadow: var(--glow); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--border-gold); }
.btn-outline:hover { background: var(--gold-subtle); border-color: var(--gold); color: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.72rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 0.85rem; }


/* ──────────────────────────────────────
   NAVIGATION — Gold accent crown line
   ────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(1,1,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.site-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), var(--gold), var(--gold-dim), transparent);
  opacity: 0.5;
}
.site-nav.scrolled { background: rgba(1,1,0,0.97); box-shadow: 0 2px 20px rgba(0,0,0,0.5); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo { display: flex; align-items: center; gap: 0.6rem; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-subscribe {
  margin-left: 0.5rem;
  font-weight: 800;
  color: #000 !important;
  letter-spacing: 0.08em;
}
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }


/* ──────────────────────────────────────
   HERO — Blended large logo, Roman frame
   ────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 60px;
}

/* motif.png as deep atmospheric background */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.5);
}
/* Dark vignette behind the motif */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1,1,0,0.6) 0%, rgba(1,1,0,0.15) 25%, rgba(1,1,0,0.15) 55%, rgba(1,1,0,0.7) 85%, var(--bg) 100%);
}

/* Victorian frame corners and side lines */
.hero-frame { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-frame .corner { position: absolute; width: 80px; height: 80px; opacity: 0.2; }
.hero-frame .corner svg { width: 100%; height: 100%; }
.hero-frame .corner-tl { top: 70px; left: 20px; }
.hero-frame .corner-tr { top: 70px; right: 20px; transform: scaleX(-1); }
.hero-frame .corner-bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.hero-frame .corner-br { bottom: 20px; right: 20px; transform: scale(-1); }
.hero-frame::before, .hero-frame::after {
  content: '';
  position: absolute;
  width: 1px;
  top: 120px; bottom: 80px;
  background: linear-gradient(180deg, transparent, var(--gold-muted), transparent);
  opacity: 0.3;
}
.hero-frame::before { left: 40px; }
.hero-frame::after { right: 40px; }

/* Full-width content area */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0;
}

/* HERO MOTIF: Positioned full-width visual layer within the hero */
.hero-motif {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroLogoIn 1.2s ease-out;
}
.hero-motif img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  /* Stronger bottom fade — blend into page background */
  mask-image: linear-gradient(to bottom,
    transparent 0%,
    white 6%,
    white 55%,
    rgba(255,255,255,0.85) 70%,
    rgba(255,255,255,0.4) 85%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%,
    white 6%,
    white 55%,
    rgba(255,255,255,0.85) 70%,
    rgba(255,255,255,0.4) 85%,
    transparent 100%);
}

/* HERO BLEND: Solid gradient overlay at bottom that merges into page bg */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(1,1,0,0.4) 40%,
    rgba(1,1,0,0.85) 75%,
    var(--bg) 100%);
}

/* HERO OVERLAY: Split layout — buttons left, text right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 4% 6%;
  pointer-events: none;
}

/* Shared panel styling */
.hero-panel {
  pointer-events: auto;
  animation: heroFadeUp 0.8s ease-out 0.5s both;
  background: linear-gradient(135deg, rgba(1,1,0,0.65) 0%, rgba(1,1,0,0.35) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,205,27,0.1);
  position: relative;
}
/* Corner accents */
.hero-panel::before,
.hero-panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold-muted);
  border-style: solid;
  pointer-events: none;
}
.hero-panel::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hero-panel::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* Left panel: buttons stacked */
.hero-panel-left {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation-delay: 0.6s;
}
.hero-panel-left .btn {
  width: 100%;
  justify-content: center;
  min-width: 200px;
}

/* Right panel: slogan + description */
.hero-panel-right {
  max-width: 320px;
  text-align: right;
  animation-delay: 0.7s;
}
.hero-panel-right .hero-slogan {
  margin: 0 0 0.3rem;
}
.hero-panel-right .hero-slogan-line {
  margin: 0 0 0.7rem auto;
  width: 70px;
}
.hero-panel-right .hero-tagline {
  margin: 0;
  max-width: none;
  text-align: right;
  font-size: 0.82rem;
  line-height: 1.65;
}

/* Keep .hero-logo for login/register/mediakit pages (smaller logo usage) */
.hero-logo {
  width: 280px;
  height: 280px;
  margin: 0 auto 0.5rem;
  position: relative;
  animation: heroLogoIn 1.2s ease-out;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: radial-gradient(circle at center, white 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at center, white 40%, transparent 70%);
  filter: drop-shadow(0 0 50px rgba(255,205,27,0.12));
}
/* No pulsing ring on full-width motif — it IS the background now */

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.85); filter: blur(4px); }
  50% { filter: blur(0); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 0; transform: scale(0.97); }
  50% { opacity: 0.15; transform: scale(1.01); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.1rem;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
  text-shadow: 0 2px 30px rgba(255,205,27,0.15);
}
.hero-slogan {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0;
  animation: heroFadeUp 0.8s ease-out 0.45s both;
  font-weight: 400;
}
.hero-slogan-line {
  display: block;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
  margin: 0.8rem auto 1.2rem;
  animation: heroFadeUp 0.8s ease-out 0.5s both;
}
.hero-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: heroFadeUp 0.8s ease-out 0.55s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s ease-out 0.7s both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-ornament {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2.5s ease-in-out infinite;
}
.hero-ornament svg { width: 20px; height: 20px; color: var(--gold-dim); opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}


/* ──────────────────────────────────────
   SECTIONS & CONTENT
   ────────────────────────────────────── */

.section { padding: 5rem 0; position: relative; }

/* Featured Video with Roman corner accents */
.featured-video {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  max-width: 960px;
  margin: 0 auto;
  cursor: pointer;
}
.featured-video::before, .featured-video::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  border-color: var(--gold-muted);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
  transition: border-color 0.4s ease;
}
.featured-video::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.featured-video::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.featured-video:hover::before, .featured-video:hover::after { border-color: var(--gold); }

.featured-video iframe { width: 100%; height: 100%; border: none; }
.featured-video-overlay {
  position: absolute; inset: 0;
  background: rgba(1,1,0,0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity var(--transition);
  pointer-events: none;
}
.featured-video:hover .featured-video-overlay { opacity: 0; }
.featured-video-overlay .play-icon {
  width: 60px; height: 60px;
  border: 1px solid var(--gold-muted);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}
.featured-video-overlay .play-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold-muted);
  opacity: 0.4;
}
.featured-video-overlay .play-icon svg { width: 22px; height: 22px; color: var(--gold); margin-left: 3px; }
.featured-video-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Video Shelf */
.video-shelf { margin-bottom: 2.5rem; }
.shelf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.shelf-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.shelf-nav { display: flex; gap: 0.5rem; }
.shelf-nav button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}
.shelf-nav button:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-subtle); }

.shelf-track {
  display: flex; gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}
.shelf-track::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.video-card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--glow); }
.video-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .video-card-thumb img { transform: scale(1.05); }
.video-card-duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.85); color: #fff; font-size: 0.68rem; padding: 2px 5px; border-radius: 2px; font-weight: 500; }
.video-card-info { padding: 0.8rem; }
.video-card-title { font-size: 0.8rem; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; margin-bottom: 0.3rem; }
.video-card-meta { font-size: 0.68rem; color: var(--text-dim); }

/* Affiliates */
.affiliates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.affiliate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex; align-items: flex-start; gap: 1.2rem;
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}
.affiliate-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--gold-muted);
  border-left: 1px solid var(--gold-muted);
  transition: border-color var(--transition);
}
.affiliate-card:hover::before { border-color: var(--gold); }
.affiliate-card:hover { border-color: var(--border-gold); background: var(--bg-card-hover); transform: translateY(-2px); }
.affiliate-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  overflow: hidden;
}
.affiliate-card:hover .affiliate-logo {
  border-color: var(--gold-muted);
  box-shadow: 0 0 20px rgba(255,205,27,0.08);
}
/* Match social icon size and color treatment */
.affiliate-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  /* Desaturate to match muted social icons */
  filter: grayscale(1) brightness(0.8) contrast(1.2);
  transition: filter var(--transition);
}
.affiliate-card:hover .affiliate-logo img {
  /* Gold tint on hover */
  filter: grayscale(0) brightness(1) sepia(0.6) saturate(3) hue-rotate(10deg);
}
.affiliate-info h4 { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.25rem; }
.affiliate-info p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.6rem; }

/* Social Grid — Roman medallion style */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1rem;
  text-align: center;
  transition: all var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  text-decoration: none;
  position: relative;
}
.social-card::before {
  content: '';
  position: absolute; top: 14px;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.social-card:hover::before { border-color: var(--gold-muted); box-shadow: 0 0 20px rgba(255,205,27,0.08); }
.social-card:hover { border-color: var(--border-gold); transform: translateY(-3px); box-shadow: var(--glow); }
/* SVG social icons — clean, crisp, perfectly colored */
.social-icon {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.social-card:hover .social-icon {
  color: var(--gold);
}
.social-card span { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); letter-spacing: 0.04em; text-transform: uppercase; }
.social-card:hover span { color: var(--gold); }

/* Contact Bar — Double border */
.contact-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
  position: relative;
}
.contact-bar::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--border); border-radius: var(--radius); pointer-events: none; opacity: 0.5; }
.contact-bar-text h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.25rem; }
.contact-bar-text p { font-size: 0.82rem; color: var(--text-muted); }
.contact-bar-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Footer — Roman frieze */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted), transparent);
}
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.72rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.72rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--gold); }


/* ──────────────────────────────────────
   TOAST, MODAL, FORMS, STATS, TAGS, ETC
   ────────────────────────────────────── */

/* Toast */
.toast-container { position: fixed; top: 80px; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.6rem; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 0.8rem 1.2rem; min-width: 280px; max-width: 400px;
  display: flex; align-items: center; gap: 0.8rem; animation: toastIn 0.3s ease-out; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error { border-left-color: var(--danger); }
.toast.toast-info { border-left-color: var(--info); }
.toast-icon { font-size: 1rem; flex-shrink: 0; }
.toast-message { font-size: 0.78rem; color: var(--text); flex: 1; }
.toast-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; }
.toast-close:hover { color: var(--text); }
.toast.exiting { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* Modal — Victorian window */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 8000; display: flex; align-items: center; justify-content: center; padding: 2rem; animation: fadeIn 0.2s ease; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 640px; width: 100%; max-height: 85vh; overflow-y: auto; animation: modalIn 0.3s ease-out; position: relative;
}
.modal::before, .modal::after { content: ''; position: absolute; width: 24px; height: 24px; border-color: var(--gold-muted); border-style: solid; z-index: 1; pointer-events: none; }
.modal::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.modal::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.modal-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 1.3rem; cursor: pointer; padding: 0; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.6rem 0.8rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: 0.85rem; transition: border-color var(--transition); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold-dim); box-shadow: 0 0 0 2px rgba(255,205,27,0.08); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder { color: var(--text-dim); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.2rem; text-align: center; transition: all var(--transition); position: relative;
}
.stat-card::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--border); border-radius: var(--radius); opacity: 0.4; transition: opacity var(--transition); }
.stat-card:hover { border-color: var(--border-gold); }
.stat-card:hover::before { opacity: 0.7; border-color: var(--border-gold); }
.stat-value { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); letter-spacing: 0.04em; line-height: 1; margin-bottom: 0.3rem; }
.stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Search Bar */
.search-bar { position: relative; max-width: 400px; }
.search-bar input { width: 100%; padding: 0.6rem 0.8rem 0.6rem 2.4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.85rem; font-family: var(--font-body); }
.search-bar input:focus { outline: none; border-color: var(--gold-dim); }
.search-bar .search-icon { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); pointer-events: none; }

/* Tags */
.tag { display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; background: var(--gold-subtle); border: 1px solid var(--border-gold); border-radius: 1px; font-size: 0.65rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.tag-addon { background: rgba(255,205,27,0.1); }
.tag-building { background: rgba(52,152,219,0.1); border-color: rgba(52,152,219,0.25); color: #5dade2; }
.tag-gameplay { background: rgba(46,204,113,0.1); border-color: rgba(46,204,113,0.25); color: #58d68d; }
.tag-ornament { background: rgba(230,126,34,0.1); border-color: rgba(230,126,34,0.25); color: #f0b27a; }
.tag-skin { background: rgba(155,89,182,0.1); border-color: rgba(155,89,182,0.25); color: #c39bd3; }
.tag-cosmetic { background: rgba(241,196,15,0.1); border-color: rgba(241,196,15,0.25); color: #f4d03f; }
.tag-items { background: rgba(231,76,60,0.1); border-color: rgba(231,76,60,0.25); color: #ec7063; }
.tag-map { background: rgba(26,188,156,0.1); border-color: rgba(26,188,156,0.25); color: #48c9b0; }
.tag-ship { background: rgba(93,173,226,0.1); border-color: rgba(93,173,226,0.25); color: #85c1e9; }

/* Filter tags */
.filter-tag { padding: 0.28rem 0.65rem; border-radius: 1px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; transition: all var(--transition); font-family: var(--font-body); }
.filter-tag:hover, .filter-tag.active { border-color: var(--gold); color: var(--gold); background: var(--gold-subtle); }

/* Mods */
.mod-item { display: flex; align-items: center; justify-content: space-between; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.mod-item:hover { background: rgba(255,205,27,0.02); }
.mod-item:last-child { border-bottom: none; }
.mod-name { font-size: 0.82rem; color: var(--text); font-weight: 400; }
.mod-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

.game-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: visible; margin-bottom: 2rem; position: relative; }
.game-card::before, .game-card::after { content: ''; position: absolute; width: 24px; height: 24px; border-color: var(--gold-muted); border-style: solid; z-index: 1; pointer-events: none; }
.game-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.game-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.game-card-header { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; overflow: hidden; }
.game-card-header h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.game-card-actions { display: flex; gap: 0.6rem; align-items: center; }
.game-card-body { max-height: 500px; overflow-y: auto; }

/* Media Kit */
.mk-hero { position: relative; padding: 8rem 0 4rem; text-align: center; overflow: hidden; }
.mk-hero-bg { position: absolute; inset: 0; z-index: 0; }
.mk-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.12; filter: saturate(0.5); }
.mk-hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(1,1,0,0.5) 0%, var(--bg) 70%), linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%); }
.mk-hero-content { position: relative; z-index: 2; }
.mk-channel-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; align-items: center; gap: 1.2rem; max-width: 550px; margin: 2rem auto 0; text-align: left; position: relative; }
.mk-channel-card::before { content: ''; position: absolute; inset: 3px; border: 1px solid var(--border); border-radius: var(--radius); opacity: 0.4; }
.mk-channel-card img { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold-dim); }
.mk-channel-info h3 { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.1rem; }
.mk-channel-info p { font-size: 0.78rem; color: var(--text-muted); }

.demo-bar { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.55rem; }
.demo-label { font-size: 0.78rem; color: var(--text-muted); min-width: 100px; }
.demo-bar-track { flex: 1; height: 5px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.demo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dim), var(--gold)); border-radius: 2px; transition: width 1s ease; }
.demo-value { font-size: 0.72rem; color: var(--text); min-width: 40px; text-align: right; }

.interest-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 1px solid var(--border); }
.interest-row:last-child { border-bottom: none; }
.interest-name { font-size: 0.78rem; color: var(--text); flex: 1; }
.interest-level { font-size: 0.68rem; color: var(--gold); font-weight: 500; min-width: 55px; text-align: right; }
.interest-bar { width: 90px; height: 3px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.interest-fill { height: 100%; background: var(--gold); border-radius: 2px; }

/* Admin Layout */
/* Admin uses block layout — sidebar is position:fixed, main gets margin-left */
.admin-layout { min-height: 100vh; padding-top: 60px; }
.admin-sidebar {
  background: var(--bg-elevated); border-right: 1px solid var(--border); padding: 1.5rem 0;
  position: fixed; top: 60px; left: 0; bottom: 0; width: 220px; overflow-y: auto; z-index: 10;
}
.admin-sidebar::before { content: ''; position: absolute; top: 0; right: -1px; bottom: 0; width: 3px; background: linear-gradient(180deg, transparent, var(--gold-muted) 20%, var(--gold-muted) 80%, transparent); opacity: 0.3; }
.admin-sidebar-nav { list-style: none; }
.admin-sidebar-nav li a { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.5rem; font-size: 0.8rem; color: var(--text-muted); transition: all var(--transition); border-left: 2px solid transparent; text-decoration: none; }
.admin-sidebar-nav li a:hover, .admin-sidebar-nav li a.active { color: var(--gold); background: var(--gold-subtle); border-left-color: var(--gold); }
.admin-main {
  margin-left: 220px;
  padding: 2rem 2.5rem;
  min-height: calc(100vh - 60px);
  position: relative;
  z-index: 1;
}
/* Admin-specific grids */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.admin-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.admin-header > div:first-child { min-width: 0; flex: 1; }

/* Login Page */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; position: relative; }
.login-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 400px; width: 100%; text-align: center; position: relative; }
.login-card::before, .login-card::after { content: ''; position: absolute; width: 30px; height: 30px; border-color: var(--gold-muted); border-style: solid; z-index: 1; }
.login-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.login-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.login-card .hero-logo { width: 90px; height: 90px; margin-bottom: 1rem; }
.login-card h2 { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.2rem; }
.login-card .login-subtitle { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 2rem; }

/* Activity */
.log-entry { font-size: 0.78rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); display: flex; gap: 0.6rem; align-items: flex-start; }
.log-entry:last-child { border-bottom: none; }
.log-type { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.1rem 0.4rem; border-radius: 2px; white-space: nowrap; }
.log-type.auth { background: rgba(52,152,219,0.15); color: #5dade2; }
.log-type.mod { background: rgba(46,204,113,0.15); color: #58d68d; }
.log-type.user { background: rgba(255,205,27,0.15); color: var(--gold); }
.log-type.system { background: rgba(155,89,182,0.15); color: #c39bd3; }
.log-text { flex: 1; color: var(--text-muted); }
.log-time { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; }

/* Misc */
.spinner { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; padding: 0.12rem 0.45rem; border-radius: 1px; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-owner { background: rgba(255,205,27,0.12); color: var(--gold); }
.badge-admin { background: rgba(52,152,219,0.12); color: #5dade2; }
.badge-online { background: rgba(46,204,113,0.12); color: #58d68d; }
.badge-offline { background: rgba(108,108,88,0.12); color: var(--text-dim); }

.toggle { position: relative; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 10px; cursor: pointer; transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; bottom: 2px; background: var(--text); border-radius: 50%; transition: transform var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--bg); }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn { padding: 0.7rem 1.2rem; font-size: 0.78rem; font-weight: 500; color: var(--text-muted); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-body); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: 0.7rem 1rem; font-size: 0.68rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 0.7rem 1rem; font-size: 0.78rem; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover { background: rgba(255,205,27,0.02); }

.page-enter { animation: pageEnter 0.5s ease-out; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* ──────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: rgba(1,1,0,0.97); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 1rem; }
  h1 { font-size: 1.8rem; }
  .hero-title { font-size: 2rem; }
  .hero-slogan { font-size: 0.85rem; }
  .hero-logo { width: 200px; height: 200px; }
  .hero-motif { width: 100%; }
  .hero-overlay {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 1rem 2rem;
    gap: 0.8rem;
  }
  .hero-panel-left {
    flex-direction: row;
    order: 2;
  }
  .hero-panel-left .btn { min-width: auto; }
  .hero-panel-right {
    max-width: 100%;
    text-align: center;
    order: 1;
  }
  .hero-panel-right .hero-slogan-line { margin-left: auto; margin-right: auto; }
  .hero-panel-right .hero-tagline { text-align: center; }
  .container { padding: 0 1.2rem; }
  .section { padding: 3rem 0; }
  .contact-bar { flex-direction: column; text-align: center; }
  .footer-content { flex-direction: column; }
  .video-card { flex: 0 0 240px; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-frame::before, .hero-frame::after { display: none; }
  .hero-frame .corner { width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .affiliates-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-logo { width: 160px; height: 160px; }
  .hero-motif { max-width: 100%; }
  .hero-panel-left { flex-direction: column; }
  .hero-panel-left .btn { width: 100%; }
  .hero-title { font-size: 1.6rem; }
}

@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 1.5rem; max-width: 100vw; }
  .admin-grid, .admin-grid-3 { grid-template-columns: 1fr; }
}
