/* ==========================================================================
   THE GIFT JOURNAL — Sleek Modern Arcade Design System
   High-performance, accessible, responsive CSS bundle.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables (Dark Obsidian default + Light Mode overrides)
   -------------------------------------------------------------------------- */
:root {
  --color-scheme: dark;
  --bg: #090d16;
  --bg-gradient: radial-gradient(120% 120% at 50% -10%, #151a30 0%, #090d16 100%);
  --surface: #0f172a;
  --surface-elevated: #162038;
  --surface-card: rgba(18, 25, 48, 0.72);
  --surface-glass: rgba(15, 23, 42, 0.65);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-glass-hover: rgba(26, 38, 72, 0.85);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-2: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-glow-lg: 0 0 32px rgba(99, 102, 241, 0.28);
  --accent: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.28);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.28);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.12);
  --info-border: rgba(56, 189, 248, 0.28);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 36px -6px rgba(99, 102, 241, 0.32);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="dark"], body[data-theme="dark"], [data-theme="dark"] {
  --color-scheme: dark;
  --bg: #090d16;
  --bg-gradient: radial-gradient(120% 120% at 50% -10%, #17203b 0%, #090d16 100%);
  --surface: #0f172a;
  --surface-elevated: #162038;
  --surface-card: rgba(18, 25, 48, 0.72);
  --surface-glass: rgba(15, 23, 42, 0.75);
  --surface-glass-border: rgba(255, 255, 255, 0.08);
  --surface-glass-hover: rgba(26, 38, 72, 0.85);

  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-2: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --primary-glow-lg: 0 0 32px rgba(99, 102, 241, 0.28);
}

html[data-theme="light"], body[data-theme="light"], [data-theme="light"] {
  --color-scheme: light;
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(120% 120% at 50% -10%, #eef2ff 0%, #f8fafc 100%);
  --surface: #ffffff;
  --surface-elevated: #f1f5f9;
  --surface-card: rgba(255, 255, 255, 0.94);
  --surface-glass: rgba(255, 255, 255, 0.88);
  --surface-glass-border: rgba(0, 0, 0, 0.08);
  --surface-glass-hover: #ffffff;

  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #64748b;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.15);

  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-2: #6366f1;
  --primary-glow: rgba(79, 70, 229, 0.20);
  --primary-glow-lg: 0 0 32px rgba(79, 70, 229, 0.16);

  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --info-bg: #f0f9ff;
  --info-border: #bae6fd;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 12px 32px -4px rgba(79, 70, 229, 0.22);
}

html[data-theme="dark"] body {
  background-color: #090d16 !important;
  color: #f8fafc !important;
}

html[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: var(--color-scheme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
}

.page-wrap {
  padding: 56px 0 88px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 { font-size: clamp(34px, 5.5vw, 58px); }
h2 { font-size: clamp(26px, 4vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

p {
  color: var(--text-secondary);
  line-height: 1.68;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-2);
  margin-bottom: 8px;
}

.headline-pop {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .headline-pop {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 70%, #9333ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* --------------------------------------------------------------------------
   Navigation & Top Bar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-glass-border);
  transition: background var(--transition-base), border-color var(--transition-base);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 18px var(--primary-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  position: relative;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--surface-glass-hover);
  border-color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-base);
  user-select: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #7047eb 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px -2px var(--primary-glow);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  box-shadow: 0 10px 28px 0px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-soft {
  background: rgba(99, 102, 241, 0.14);
  color: var(--primary-2);
  border-color: rgba(99, 102, 241, 0.24);
}

.btn-soft:hover {
  background: rgba(99, 102, 241, 0.22);
}

.btn-light {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: #f1f5f9;
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

.btn-big {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 14px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.text-link {
  color: var(--primary-2);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.text-link:hover {
  color: var(--text);
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Badges, Pills & Status Indicators
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.16);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.32);
}

[data-theme="light"] .badge {
  background: #eef2ff;
  color: #4338ca;
  border-color: #c7d2fe;
}

.badge-muted {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
  border-color: var(--line);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

/* --------------------------------------------------------------------------
   Cards & Surfaces
   -------------------------------------------------------------------------- */
.card, .settings-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   Sections & Heads
   -------------------------------------------------------------------------- */
.section {
  padding: 88px 0;
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 6px;
  margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Hero Section & Sleek Arcade Stage
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.hero-shape-a {
  width: 520px;
  height: 520px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.40) 0%, transparent 70%);
}

.hero-shape-b {
  width: 520px;
  height: 520px;
  top: 15%;
  right: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.30) 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 52px;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.30);
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 20px;
}

[data-theme="light"] .eyebrow {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.22);
  color: var(--primary);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.headline-pop, .headline-gradient {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--accent-cyan) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

[data-theme="light"] .headline-pop, [data-theme="light"] .headline-gradient {
  background: linear-gradient(135deg, #4338ca 0%, #0284c7 60%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-glow {
  box-shadow: 0 0 24px var(--primary-glow), var(--shadow-md);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Console Deck Stage & Sleek HUD Pills */
.hero-stage {
  position: relative;
}

.hero-deck {
  background: var(--surface-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
  position: relative;
  transition: transform var(--transition-smooth);
}

[data-theme="light"] .hero-deck {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.09), 0 0 20px rgba(99, 102, 241, 0.08);
}

.hero-deck:hover {
  transform: translateY(-4px);
}

.deck-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.deck-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

[data-theme="light"] .deck-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary-2);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.deck-header strong {
  font-size: 16px;
  color: var(--text);
}

.deck-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.deck-grid {
  display: grid;
  gap: 12px;
}

.deck-game-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

[data-theme="light"] .deck-game-row {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.07);
}

.deck-game-row:hover {
  background: var(--surface-glass-hover);
  border-color: var(--primary);
  transform: translateX(4px);
}

.deck-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.deck-meta strong {
  font-size: 15px;
  font-weight: 750;
  color: var(--text);
  display: block;
}

.deck-meta span {
  font-size: 12.5px;
  color: var(--muted);
}

.deck-action {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 10px var(--primary-glow);
  white-space: nowrap;
}

/* Floating Sleek HUD Badges */
.hud-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

[data-theme="light"] .hud-pill {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.hud-pill-top {
  top: -16px;
  left: -14px;
}

.hud-pill-bottom {
  bottom: -16px;
  right: -10px;
}

.hud-pill-side {
  top: 45%;
  right: -20px;
}

.hud-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   Fun Marquee / Ticker
   -------------------------------------------------------------------------- */
.fun-marquee {
  overflow: hidden;
  user-select: none;
  background: rgba(99, 102, 241, 0.08);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

[data-theme="light"] .fun-marquee {
  background: rgba(79, 70, 229, 0.04);
}

.fun-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-slide 32s linear infinite;
}

.fun-marquee-set {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.fun-marquee-set b {
  color: var(--accent-cyan);
}

[data-theme="light"] .fun-marquee-set b {
  color: var(--primary);
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Interactive Matchmaker Widget (Theme-Harmonized & Full Contrast)
   -------------------------------------------------------------------------- */
.matchmaker-section {
  padding: 40px 0 60px;
}

.matchmaker-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  color: var(--text);
  transition: all var(--transition-base);
}

[data-theme="light"] .matchmaker-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-card {
  background: linear-gradient(145deg, #131c31 0%, #0d1527 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15) !important;
  color: #f8fafc !important;
}

.matchmaker-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--accent-pink));
}

.matchmaker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.matchmaker-header h2 {
  font-size: 28px;
  margin-top: 6px;
  color: var(--text) !important;
}

[data-theme="light"] .matchmaker-header h2 {
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-header h2 {
  color: #f8fafc !important;
}

.matchmaker-header p {
  color: var(--text-secondary) !important;
  font-size: 15px;
  margin-top: 6px;
}

[data-theme="light"] .matchmaker-header p {
  color: #475467 !important;
}

[data-theme="dark"] .matchmaker-header p {
  color: #cbd5e1 !important;
}

.matchmaker-step-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary) !important;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

[data-theme="dark"] .matchmaker-step-label {
  color: var(--primary-2) !important;
}

.matchmaker-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.matchmaker-btn {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-base);
  color: var(--text);
}

[data-theme="light"] .matchmaker-btn {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-btn {
  background: #162038 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

.matchmaker-btn:hover {
  background: var(--surface-glass-hover) !important;
  border-color: var(--primary) !important;
  transform: translateY(-2px);
}

.matchmaker-btn.selected {
  background: rgba(99, 102, 241, 0.16) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px var(--primary-glow);
}

[data-theme="dark"] .matchmaker-btn.selected {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: var(--primary-2) !important;
}

.matchmaker-btn .opt-icon {
  font-size: 28px;
}

.matchmaker-btn strong {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--text) !important;
}

[data-theme="light"] .matchmaker-btn strong {
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-btn strong {
  color: #f8fafc !important;
}

.matchmaker-btn span {
  font-size: 13px;
  color: var(--muted) !important;
  line-height: 1.4;
}

[data-theme="light"] .matchmaker-btn span {
  color: #64748b !important;
}

[data-theme="dark"] .matchmaker-btn span {
  color: #94a3b8 !important;
}

.matchmaker-result {
  display: none;
  background: var(--surface-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: fadeIn 0.3s ease;
  color: var(--text);
}

[data-theme="light"] .matchmaker-result {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-result {
  background: #162038 !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #f8fafc !important;
}

.matchmaker-result.active {
  display: flex;
}

.matchmaker-result h3 {
  color: var(--text) !important;
  font-size: 20px;
  margin-bottom: 6px;
}

[data-theme="light"] .matchmaker-result h3 {
  color: #0f172a !important;
}

[data-theme="dark"] .matchmaker-result h3 {
  color: #f8fafc !important;
}

.matchmaker-result p {
  color: var(--text-secondary) !important;
  font-size: 14.5px;
  margin: 0;
}

[data-theme="light"] .matchmaker-result p {
  color: #334155 !important;
}

[data-theme="dark"] .matchmaker-result p {
  color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   Live Stats & Platform Trust Strip (NEW FEATURE)
   -------------------------------------------------------------------------- */


.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary-2), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .stat-item h3 {
  background: linear-gradient(135deg, #4338ca, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Steps & How It Works
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.creative-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
}

.step-no {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 26px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

[data-theme="light"] .step-no {
  color: rgba(0, 0, 0, 0.10);
}

.step-icon {
  font-size: 34px;
  margin-bottom: 20px;
}

.creative-step h3 {
  margin-bottom: 10px;
}

.creative-step p {
  color: var(--muted);
  font-size: 15px;
}

.step-featured {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), var(--surface-card));
  box-shadow: 0 10px 30px -5px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   Moments Section
   -------------------------------------------------------------------------- */
.moments-panel {
  background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.moments-copy h2 {
  color: #ffffff !important;
  margin-bottom: 16px;
}

.moments-copy p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-bottom: 24px;
}

.moment-cards {
  display: grid;
  gap: 14px;
}

.moment-card {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.moment-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(6px);
}

.moment-card span {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-cyan);
}

.moment-card strong {
  display: block;
  font-size: 16px;
  color: #ffffff;
}

.moment-card small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

[data-theme="light"] .moments-panel {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%) !important;
  border-color: rgba(99, 102, 241, 0.20) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .moments-copy h2 {
  color: #0f172a !important;
}

[data-theme="light"] .moments-copy p {
  color: #475467 !important;
}

[data-theme="light"] .moment-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="light"] .moment-card strong {
  color: #0f172a !important;
}

[data-theme="light"] .moment-card small {
  color: #64748b !important;
}

[data-theme="light"] .moment-card span {
  color: #4f46e5 !important;
}

/* --------------------------------------------------------------------------
   Collections & Catalog Pages
   -------------------------------------------------------------------------- */
.catalog-hero {
  padding: 80px 0 52px;
  position: relative;
  text-align: center;
}

.catalog-hero-copy {
  max-width: 740px;
  margin: 0 auto;
}

.catalog-hero h1 {
  margin: 12px 0 16px;
}

.catalog-hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

.catalog-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.catalog-chips span,
.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.catalog-chips span:hover,
.filter-pill:hover,
.filter-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.filter-search-box {
  position: relative;
  width: min(340px, 100%);
}

.filter-search-box input {
  padding-left: 40px;
}

.filter-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.collection-public-grid,
.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.collection-public-card,
.catalog-product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.collection-public-card:hover,
.catalog-product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
}

.collection-public-cover,
.catalog-product-cover {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  overflow: hidden;
  position: relative;
}

.collection-public-cover img,
.catalog-product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.collection-public-card:hover img,
.catalog-product-card:hover img {
  transform: scale(1.05);
}

.collection-public-card > div:last-child,
.catalog-product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.collection-public-card span {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary-2);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.collection-public-card h2,
.catalog-product-body h2 {
  font-size: 21px;
  margin-bottom: 8px;
}

.collection-public-card p,
.catalog-product-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.review-stars {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.review-stars span {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
}

/* --------------------------------------------------------------------------
   Collection Detail Page
   -------------------------------------------------------------------------- */
.collection-hero {
  padding: 64px 0 40px;
}

.collection-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.collection-count {
  margin-top: 14px;
  display: inline-flex;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-2);
}

.collection-hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-glass-border);
}

.collection-hero-art img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.collection-placeholder-art {
  height: 280px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
  font-size: 64px;
}

.art-sticker {
  position: absolute;
  bottom: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   Single Game Detail Page (Apple Arcade Style)
   -------------------------------------------------------------------------- */
.game-spotlight {
  padding: 64px 0 72px;
}

.game-detail-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 56px;
  align-items: start;
}

.game-detail-cover {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: grid;
  place-items: center;
  font-size: 80px;
}

.game-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-sticker {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.game-detail-copy {
  display: flex;
  flex-direction: column;
}

.game-mini-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.game-detail-copy h1 {
  font-size: clamp(32px, 4.5vw, 50px);
  margin-bottom: 12px;
}

.game-detail-copy > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 18px 0 24px;
}

.game-collection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.game-collection-links a {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-card);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-2);
}

.game-collection-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.game-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-secondary);
}

.game-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.game-review-section {
  padding: 60px 0 88px;
  border-top: 1px solid var(--line);
}

.public-review-list {
  display: grid;
  gap: 18px;
}

.public-review-list article {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.public-review-list h3 {
  font-size: 18px;
  margin: 8px 0 6px;
}

.public-review-list p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}

.public-review-list small {
  color: var(--muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Customer Portal & Library (Vault)
   -------------------------------------------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 72px);
}

.sidebar {
  background: var(--surface-glass);
  border-right: 1px solid var(--surface-glass-border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

.side-user {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 22px;
}

.side-user strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.side-user small {
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-all;
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.side-link:hover,
.side-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-2);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.app-main {
  padding: 40px;
  max-width: 1300px;
}

.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.app-head h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.customer-news-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.14) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 30px;
}

.customer-news-strip strong {
  color: var(--text);
}

.customer-news-strip p {
  color: var(--muted);
  font-size: 14px;
  margin: 3px 0 0;
}

.customer-section {
  margin-top: 36px;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.recent-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.recent-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.recent-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.recent-card strong {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-card small {
  color: var(--muted);
  font-size: 11.5px;
}

.library-search {
  width: min(320px, 100%);
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--text);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-glow);
}

.game-cover {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  overflow: hidden;
  position: relative;
}

.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.game-card:hover .game-cover img {
  transform: scale(1.05);
}

.game-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.favorite-btn {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.favorite-btn:hover {
  transform: scale(1.2);
}

.favorite-btn.active {
  color: #fbbf24;
}

.game-body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.game-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.game-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.game-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Party Host Guide Tab / Modal (NEW FEATURE - Theme Adaptive)
   -------------------------------------------------------------------------- */
.host-guide-card {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

html[data-theme="light"] .host-guide-card,
body[data-theme="light"] .host-guide-card,
html:not([data-theme="dark"]) .host-guide-card {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .host-guide-card h3,
body[data-theme="light"] .host-guide-card h3,
html:not([data-theme="dark"]) .host-guide-card h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .host-guide-card p,
body[data-theme="light"] .host-guide-card p,
html:not([data-theme="dark"]) .host-guide-card p {
  color: #475467 !important;
}

html[data-theme="dark"] .host-guide-card,
body[data-theme="dark"] .host-guide-card {
  background: linear-gradient(135deg, rgba(22, 32, 56, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .host-guide-card h3,
body[data-theme="dark"] .host-guide-card h3 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .host-guide-card p,
body[data-theme="dark"] .host-guide-card p {
  color: #cbd5e1 !important;
}

.host-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.host-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .host-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .host-guide-grid {
    grid-template-columns: 1fr;
  }
}

.host-guide-item {
  border-radius: 14px;
  padding: 18px 16px;
  text-align: left;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

html[data-theme="light"] .host-guide-item,
body[data-theme="light"] .host-guide-item,
html:not([data-theme="dark"]) .host-guide-item {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-theme="light"] .host-guide-item strong,
body[data-theme="light"] .host-guide-item strong,
html:not([data-theme="dark"]) .host-guide-item strong {
  color: #0f172a !important;
}

html[data-theme="light"] .host-guide-item p,
body[data-theme="light"] .host-guide-item p,
html:not([data-theme="dark"]) .host-guide-item p {
  color: #475467 !important;
}

html[data-theme="light"] .host-guide-item em,
body[data-theme="light"] .host-guide-item em,
html:not([data-theme="dark"]) .host-guide-item em {
  color: #4f46e5 !important;
  font-style: normal;
  font-weight: 600;
}

html[data-theme="light"] .host-guide-item kbd,
body[data-theme="light"] .host-guide-item kbd,
html:not([data-theme="dark"]) .host-guide-item kbd {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

html[data-theme="dark"] .host-guide-item,
body[data-theme="dark"] .host-guide-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

html[data-theme="dark"] .host-guide-item strong,
body[data-theme="dark"] .host-guide-item strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .host-guide-item p,
body[data-theme="dark"] .host-guide-item p {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .host-guide-item em,
body[data-theme="dark"] .host-guide-item em {
  color: #818cf8 !important;
  font-style: normal;
  font-weight: 600;
}

html[data-theme="dark"] .host-guide-item kbd,
body[data-theme="dark"] .host-guide-item kbd {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.host-guide-item .h-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.host-guide-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.host-guide-item p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Gift Unboxing Code Redemption (NEW DELIGHTFUL EXPERIENCE)
   -------------------------------------------------------------------------- */
.redeem-shell {
  max-width: 680px;
  margin: 0 auto;
}

.redeem-panel {
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.redeem-box-visual {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  font-size: 48px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px;
  box-shadow: 0 12px 30px var(--primary-glow);
  animation: float-box 3.5s ease-in-out infinite;
}

@keyframes float-box {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.redeem-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 16px 20px !important;
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  outline: none;
  font-size: 14.5px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #ffffff;
  border-color: #cbd5e1;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  cursor: pointer;
}

.checkbox-row input {
  width: auto;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Notices & Alerts
   -------------------------------------------------------------------------- */
.notice {
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notice.success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.notice.error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.notice.info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid var(--info-border);
}

/* --------------------------------------------------------------------------
   Auth Screens (Login, Register, 2FA, Reset)
   -------------------------------------------------------------------------- */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 56px 20px;
}

.creative-auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  gap: 40px;
  align-items: center;
}

.auth-visual {
  padding: 30px;
  position: relative;
}

.auth-visual-inner {
  position: relative;
  z-index: 1;
}

.auth-visual h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 12px 0 16px;
}

.auth-visual p {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin-bottom: 26px;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.auth-home-link {
  display: inline-block;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 24px;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 38px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.auth-card h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.google-auth-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 750;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.google-auth-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.google-g {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Blog / Magazine & Reader System
   -------------------------------------------------------------------------- */
.blog-masthead {
  padding: 76px 0 54px;
  text-align: center;
  position: relative;
}

.blog-masthead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 240px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.blog-masthead-copy {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-kicker {
  color: var(--primary-2);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.24);
  padding: 5px 14px;
  border-radius: 999px;
}

.blog-masthead h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  color: var(--text);
}

.blog-masthead p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.blog-feed-section {
  padding: 30px 0 96px;
}

/* Featured Article Card */
.blog-feature-card {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 56px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.blog-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 30px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.blog-feature-media {
  min-height: 380px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  overflow: hidden;
  position: relative;
  display: block;
}

.blog-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-feature-card:hover .blog-feature-media img {
  transform: scale(1.04);
}

.blog-feature-placeholder,
.journal-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(124, 58, 237, 0.12) 100%), #141b2d;
  color: var(--primary-2);
  font-weight: 850;
  font-size: 18px;
  letter-spacing: -0.01em;
  gap: 10px;
}

.blog-feature-placeholder::before,
.journal-card-placeholder::before {
  content: "✦";
  font-size: 28px;
  color: var(--primary);
}

.blog-feature-content {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-feature-label {
  font-size: 11px;
  font-weight: 850;
  color: var(--primary-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-meta span {
  opacity: 0.6;
}

.blog-feature-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.blog-feature-content h2 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-feature-content h2 a:hover {
  color: var(--primary-2);
}

.blog-feature-content p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-2);
  font-weight: 750;
  font-size: 14.5px;
  text-decoration: none;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-read-link:hover {
  gap: 12px;
  color: var(--primary);
}

/* Section Header above Grid */
.blog-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 56px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface-glass-border);
}

.blog-section-heading h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 4px 0 0;
}

/* Blog Cards Grid */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.journal-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 24px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
}

.journal-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  overflow: hidden;
  position: relative;
  display: block;
}

.journal-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.journal-card:hover .journal-card-media img {
  transform: scale(1.05);
}

.journal-featured-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.journal-card-content {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.journal-card-content h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 10px 0 12px;
}

.journal-card-content h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.journal-card-content h3 a:hover {
  color: var(--primary-2);
}

.journal-card-content p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 60px;
}

.blog-page-count {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--muted);
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 24px;
  margin: 32px 0;
}

.blog-empty-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 16px;
}

.blog-empty-state h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.blog-empty-state p {
  color: var(--muted);
  font-size: 16px;
}

/* ==========================================================================
   Single Article View (.journal-article) — Complete Premium Redesign
   ========================================================================== */
.journal-article {
  padding: 48px 0 100px;
  position: relative;
}

.journal-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 350px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.article-container,
.article-reading-width {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Article Top Bar */
.article-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.article-back:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateX(-3px);
  box-shadow: var(--shadow-md);
}

.article-badge-tag {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
}

/* The Main Article Reader Card */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 28px;
  padding: 56px 64px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.05);
  backdrop-filter: blur(20px);
}

html[data-theme="light"] .article-card,
html:not([data-theme="dark"]) .article-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06) !important;
}

.journal-article-header {
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 18px;
}

.article-meta span {
  opacity: 0.6;
}

.journal-article-title,
.journal-article-header h1 {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 22px;
}

html[data-theme="light"] .journal-article-title,
html[data-theme="light"] .journal-article-header h1,
html:not([data-theme="dark"]) .journal-article-title,
html:not([data-theme="dark"]) .journal-article-header h1 {
  color: #0f172a !important;
}

.journal-article-lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--surface-glass-border);
}

html[data-theme="light"] .journal-article-lead,
html:not([data-theme="dark"]) .journal-article-lead {
  color: #475467 !important;
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Author Byline */
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 16px;
  margin-bottom: 36px;
}

html[data-theme="light"] .article-byline,
html:not([data-theme="dark"]) .article-byline {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}

html[data-theme="light"] .author-name,
html:not([data-theme="dark"]) .author-name {
  color: #0f172a !important;
}

.author-role {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Cover Image */
.article-cover-container {
  margin: 0 0 40px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
}

.journal-article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Prose Content */
.journal-article-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--text-secondary);
  word-break: break-word;
}

html[data-theme="light"] .journal-article-content,
html:not([data-theme="dark"]) .journal-article-content {
  color: #334155 !important;
}

.journal-article-content > *:first-child {
  margin-top: 0;
}

.journal-article-content p {
  margin-bottom: 1.6em;
}

.journal-article-content h1,
.journal-article-content h2,
.journal-article-content h3,
.journal-article-content h4 {
  color: var(--text);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 2.2em 0 0.8em;
}

html[data-theme="light"] .journal-article-content h1,
html[data-theme="light"] .journal-article-content h2,
html[data-theme="light"] .journal-article-content h3,
html[data-theme="light"] .journal-article-content h4,
html:not([data-theme="dark"]) .journal-article-content h1,
html:not([data-theme="dark"]) .journal-article-content h2,
html:not([data-theme="dark"]) .journal-article-content h3,
html:not([data-theme="dark"]) .journal-article-content h4 {
  color: #0f172a !important;
}

.journal-article-content h2 {
  font-size: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--surface-glass-border);
}

.journal-article-content h3 {
  font-size: 22px;
}

.journal-article-content h4 {
  font-size: 18px;
}

.journal-article-content blockquote {
  margin: 36px 0;
  padding: 24px 30px;
  border-left: 4px solid var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0 18px 18px 0;
  font-size: 19.5px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

html[data-theme="light"] .journal-article-content blockquote,
html:not([data-theme="dark"]) .journal-article-content blockquote {
  background: #f5f3ff !important;
  color: #3730a3 !important;
}

.journal-article-content ul,
.journal-article-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.6em;
}

.journal-article-content li {
  margin-bottom: 0.6em;
  line-height: 1.75;
}

.journal-article-content pre {
  margin: 32px 0;
  padding: 22px 26px;
  border-radius: 16px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 14.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.journal-article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 36px auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-glass-border);
}

.journal-article-content a {
  color: var(--primary-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.journal-article-content a:hover {
  color: var(--primary);
}

/* The End Card — Clearly Separated Call To Action */
.article-end-card {
  margin-top: 56px;
  padding: 36px 42px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(49, 46, 129, 0.45) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .article-end-card,
html:not([data-theme="dark"]) .article-end-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%) !important;
  border: 1px solid rgba(99, 102, 241, 0.22) !important;
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.08) !important;
}

.article-end-content h3,
.article-end-card h3 {
  margin: 6px 0 6px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: var(--text);
}

html[data-theme="light"] .article-end-content h3,
html[data-theme="light"] .article-end-card h3,
html:not([data-theme="dark"]) .article-end-content h3,
html:not([data-theme="dark"]) .article-end-card h3 {
  color: #1e1b4b !important;
}

.article-end-content p,
.article-end-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

html[data-theme="light"] .article-end-content p,
html[data-theme="light"] .article-end-card p,
html:not([data-theme="dark"]) .article-end-content p,
html:not([data-theme="dark"]) .article-end-card p {
  color: #4b5563 !important;
}

.article-end-btn,
.article-end-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
}

/* --------------------------------------------------------------------------
   Support, Tickets, Notifications, Reviews & Help
   -------------------------------------------------------------------------- */
.ticket-list, .notification-list, .review-list {
  display: grid;
  gap: 16px;
}

.ticket-row, .notification-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.ticket-row:hover, .notification-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.notification-card.unread {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), var(--surface-card));
}

.support-thread {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.support-message {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-card);
  border: 1px solid var(--line);
}

.support-message.admin {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.12));
  border-color: rgba(99, 102, 241, 0.35);
}

/* FAQ Details Accordion */
.faq {
  display: grid;
  gap: 14px;
  max-width: 840px;
}

.faq details {
  background: var(--surface-card);
  border: 1px solid var(--surface-glass-border);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color var(--transition-fast);
}

.faq details[open] {
  border-color: rgba(99, 102, 241, 0.4);
}

.faq summary {
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-2);
  transition: transform var(--transition-fast);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin-top: 12px;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   Call To Action (CTA) & Footer
   -------------------------------------------------------------------------- */
.cta {
  margin: 30px 0 88px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-doodle {
  position: absolute;
  right: 20px;
  bottom: -20px;
  font-size: 160px;
  opacity: 0.08;
  pointer-events: none;
}

.cta h2 {
  color: #ffffff;
  margin-bottom: 8px;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.footer {
  background: var(--surface-glass);
  border-top: 1px solid var(--surface-glass-border);
  padding: 56px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Animations & Responsive Breakpoints
   -------------------------------------------------------------------------- */
.ui-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .collection-hero-grid,
  .game-detail-grid,
  .blog-feature-card,
  .creative-auth-shell,
  .moments-panel {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .steps,
  .collection-public-grid,
  .catalog-product-grid,
  .blog-card-grid,
  .library-grid,
  .matchmaker-options,
  .host-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .app-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    display: block !important;
    position: sticky;
    top: 72px;
    z-index: 40;
    padding: 10px 16px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    background: var(--surface) !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .side-user {
    display: none !important;
  }

  .side-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    white-space: nowrap !important;
  }

  .side-link {
    padding: 8px 14px !important;
    font-size: 13.5px !important;
    border-radius: 999px !important;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .public-menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .nav-inner {
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .brand {
    font-size: 16px !important;
  }

  .nav-actions {
    gap: 6px !important;
  }

  .nav-actions .btn {
    padding: 7px 11px !important;
    font-size: 12.5px !important;
  }

  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom on focus */
  }

  .steps,
  .collection-public-grid,
  .catalog-product-grid,
  .blog-card-grid,
  .library-grid,
  .recent-grid,
  .matchmaker-options,
  .host-guide-grid,
  .footer-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: 34px !important;
  }

  .hud-pill {
    display: none !important;
  }

  .app-main {
    padding: 20px 14px !important;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .article-card {
    padding: 32px 20px !important;
    border-radius: 20px !important;
  }

  .article-end-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 28px 20px !important;
    gap: 20px !important;
  }

  .article-end-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}



.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  margin-top: 56px;
  background: var(--surface-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  z-index: 2;
}

[data-theme="light"] .stats-strip, html:not([data-theme="dark"]) .stats-strip {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 860px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 24px;
    gap: 18px;
    margin-top: 36px;
  }
}

@media (max-width: 480px) {
  .stats-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   Storefront Final Call-to-Action (Creative CTA - Full Contrast Guaranteed)
   -------------------------------------------------------------------------- */
.creative-cta {
  position: relative;
  overflow: hidden;
  padding: 40px 0 80px;
}

.creative-cta-inner {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%) !important;
  border-radius: 28px !important;
  padding: 56px 48px !important;
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 36px !important;
  position: relative !important;
  overflow: hidden !important;
}

.creative-cta-inner::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.creative-cta-inner > div {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.creative-cta .page-kicker,
.creative-cta-inner .page-kicker,
.creative-cta .cta-kicker {
  color: #c7d2fe !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin-bottom: 8px !important;
  display: inline-block !important;
}

.creative-cta h2,
.creative-cta-inner h2 {
  color: #ffffff !important;
  font-size: clamp(26px, 3.5vw, 42px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.creative-cta p,
.creative-cta-inner p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.creative-cta .btn,
.creative-cta-inner .btn,
.creative-cta .btn.btn-primary,
.creative-cta-inner .btn.btn-primary,
.creative-cta .btn.btn-primary.btn-big,
.creative-cta-inner .btn.btn-primary.btn-big,
.creative-cta .btn.btn-primary.btn-big.btn-glow,
.creative-cta-inner .btn.btn-primary.btn-big.btn-glow,
section.creative-cta .btn,
section.creative-cta .btn.btn-primary {
  background: #ffffff !important;
  color: #4338ca !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  position: relative;
  z-index: 2;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s !important;
}

.creative-cta .btn:hover,
.creative-cta-inner .btn:hover,
.creative-cta .btn.btn-primary:hover,
.creative-cta-inner .btn.btn-primary:hover,
section.creative-cta .btn:hover,
section.creative-cta .btn.btn-primary:hover {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3) !important;
  color: #3730a3 !important;
  background: #ffffff !important;
}

@media (max-width: 768px) {
  .creative-cta-inner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 36px 24px !important;
    gap: 24px !important;
  }
  .creative-cta-inner > div {
    max-width: 100% !important;
  }
  .creative-cta .btn,
  .creative-cta-inner .btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   55-INCH TV LIVING ROOM MODE & LARGE SCREEN (10-Foot UI + D-Pad Focus)
   -------------------------------------------------------------------------- */
.tv-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-elevated);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tv-mode-toggle-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

html[data-tv-mode="true"] .tv-mode-toggle-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0f172a !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45) !important;
}

@media (max-width: 640px) {
  .tv-mode-toggle-btn {
    display: none !important;
  }
}

/* High-Visibility TV Remote / Keyboard Focus Ring Across Entire Site */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #f59e0b !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.28) !important;
}

/* 55-Inch TV Mode (Manual Toggle OR Automatic on 1920px+ Big Screens) */
html[data-tv-mode="true"] body {
  font-size: 19px !important;
  line-height: 1.65 !important;
}

html[data-tv-mode="true"] .container {
  max-width: min(94vw, 1840px) !important;
}

html[data-tv-mode="true"] .nav {
  min-height: 84px !important;
}

html[data-tv-mode="true"] .brand {
  font-size: 24px !important;
}

html[data-tv-mode="true"] .nav-links a {
  font-size: 18px !important;
  padding: 10px 18px !important;
}

html[data-tv-mode="true"] .btn {
  font-size: 17px !important;
  padding: 14px 28px !important;
}

html[data-tv-mode="true"] .hero h1 {
  font-size: clamp(48px, 4.2vw, 72px) !important;
}

html[data-tv-mode="true"] .hero-lead,
html[data-tv-mode="true"] .section-head p,
html[data-tv-mode="true"] .customer-welcome p {
  font-size: 20px !important;
}

html[data-tv-mode="true"] .section-head h2,
html[data-tv-mode="true"] .customer-welcome h1 {
  font-size: clamp(34px, 3vw, 52px) !important;
}

html[data-tv-mode="true"] .catalog-product-grid,
html[data-tv-mode="true"] .collection-public-grid,
html[data-tv-mode="true"] .library-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

html[data-tv-mode="true"] .game-card h3,
html[data-tv-mode="true"] .catalog-product-card h3,
html[data-tv-mode="true"] .collection-public-card h3,
html[data-tv-mode="true"] .journal-card h3 {
  font-size: 22px !important;
}

html[data-tv-mode="true"] .game-card p,
html[data-tv-mode="true"] .catalog-product-card p,
html[data-tv-mode="true"] .collection-public-card p,
html[data-tv-mode="true"] .journal-card p {
  font-size: 16.5px !important;
}

html[data-tv-mode="true"] .app-shell {
  grid-template-columns: 300px 1fr !important;
}

html[data-tv-mode="true"] .side-link {
  font-size: 17.5px !important;
  padding: 14px 18px !important;
}

html[data-tv-mode="true"] .article-container {
  max-width: 1180px !important;
}

html[data-tv-mode="true"] .article-prose {
  font-size: 21px !important;
  line-height: 1.85 !important;
}

@media (min-width: 1900px) {
  .container {
    max-width: min(92vw, 1780px);
  }
  .catalog-product-grid,
  .collection-public-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

