/* ==============================================
   COBALT VAULT — Design System
   Archetype: Dashboard | Theme: Dark Cyan
   Prefix: cv
   ============================================== */

/* --- Custom Properties --- */
:root {
  --primary: #00E5FF;
  --accent: #FF6B35;
  --bg: #0A0F1E;
  --surface: #141B2D;
  --surface-2: #1A2237;
  --text: #E8ECF1;
  --muted: #5A6478;
  --border: #1E2A42;
  --success: #00E676;
  --danger: #FF00FF;
  --radius: 16px;
  --radius-sm: 8px;
  --max-width: 1240px;
  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Familjen Grotesk', sans-serif;
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.3), 0 10px 20px -2px rgba(0,0,0,0.2);
  --shadow-hover: 0 8px 16px -2px rgba(0,0,0,0.4), 0 20px 40px -4px rgba(0,0,0,0.3), 0 0 20px rgba(0,229,255,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: #66F0FF; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
ul, ol { list-style: none; }

/* --- Fixed header clearance --- */
main { padding-top: 70px; }

/* --- Typography Scale (fluid clamp) --- */
.cv-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1, .cv-h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2, .cv-h2, .cv-section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; }
h3, .cv-h3 { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
.cv-text-sm { font-size: 0.875rem; }
.cv-text-xs { font-size: 0.75rem; }
.cv-text-glow { color: var(--primary); text-shadow: 0 0 30px rgba(0,229,255,0.4); }

/* --- Layout --- */
.cv-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.cv-section { padding: 80px 0; }
.cv-section-title { text-align: center; margin-bottom: 48px; }
.cv-section-cta { text-align: center; margin-top: 40px; }

/* --- Buttons --- */
.cv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.cv-btn-coral {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}
.cv-btn-coral:hover {
  background: #FF8555;
  color: #FFFFFF;
  box-shadow: 0 6px 25px rgba(255,107,53,0.5);
  transform: translateY(-2px);
}
.cv-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cv-btn-outline:hover {
  background: rgba(0,229,255,0.1);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(0,229,255,0.2);
}
.cv-btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.cv-btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cv-btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* --- Glassmorphism --- */
.cv-glass {
  background: rgba(20, 27, 45, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.cv-glass:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
}

/* --- Header / Nav (transparent → solid on scroll) --- */
.cv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.cv-header--scrolled {
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.cv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.cv-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.cv-logo:hover { color: var(--text); }
.cv-logo img { height: 40px; width: auto; }
.cv-nav { display: flex; align-items: center; gap: 32px; }
.cv-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition);
  text-decoration: none;
}
.cv-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.cv-nav a:hover, .cv-nav a.active { color: var(--text); }
.cv-nav a:hover::after, .cv-nav a.active::after { width: 100%; }
.cv-auth { display: flex; align-items: center; gap: 10px; }

/* Mobile nav */
.cv-mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.cv-mobile-menu-btn span { display: block; width: 24px; height: 2px; background: currentColor; transition: var(--transition); border-radius: 1px; }
.cv-mobile-nav {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.cv-mobile-nav--open, .cv-mobile-nav.open { display: block; }
.cv-mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.cv-mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.cv-mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.cv-mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.cv-mobile-nav a:last-child { border-bottom: none; }

/* Auth user info bar */
.cv-user-info { display: flex; align-items: center; gap: 12px; }
.cv-user-xp { width: 80px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.cv-user-xp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.cv-user-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.cv-user-level { font-size: 0.75rem; color: var(--accent); font-weight: 600; }

/* --- Hero (centered minimal + gradient mesh + clip-path) --- */
.cv-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  padding: 120px 24px 160px;
}
.cv-hero::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0,229,255,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(255,107,53,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(123,47,247,0.06) 0%, transparent 60%);
  animation: cvMeshRotate 120s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.cv-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.cv-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.cv-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  margin: 16px 0 32px;
  line-height: 1.5;
}
.cv-hero-cta { font-size: 1.1rem; padding: 16px 44px; }
.cv-hero-scroll {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 1.4rem;
  animation: cvBounce 2s ease-in-out infinite;
  z-index: 1;
}

/* Hero animations */
@keyframes cvMeshRotate {
  0%   { transform: rotate(0deg) scale(1.2); }
  50%  { transform: rotate(180deg) scale(1.4); }
  100% { transform: rotate(360deg) scale(1.2); }
}
@keyframes cvBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50%      { transform: translateX(-50%) translateY(12px); opacity: 1; }
}

/* Hero entrance stagger */
.cv-hero-inner > * {
  opacity: 0;
  transform: translateY(24px);
  animation: cvHeroIn 0.7s ease forwards;
}
.cv-hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.cv-hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.cv-hero-inner > *:nth-child(3) { animation-delay: 0.5s; }
.cv-hero-inner > *:nth-child(4) { animation-delay: 0.7s; }
@keyframes cvHeroIn { to { opacity: 1; transform: translateY(0); } }

/* --- XP Bar Demo --- */
.cv-xp-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cv-xp-level {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}
.cv-xp-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.cv-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.cv-xp-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: cvShimmer 3s ease-in-out infinite;
}
.cv-xp-label { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
@keyframes cvShimmer { 0% { left: -100%; } 100% { left: 100%; } }

/* --- How It Works --- */
.cv-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cv-step { padding: 40px 28px; text-align: center; position: relative; overflow: hidden; }
.cv-step-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0,229,255,0.06);
  line-height: 1;
}
.cv-step-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.cv-step h3 { margin-bottom: 8px; }
.cv-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* --- Game Cards (Spotlight variant) --- */
.cv-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cv-game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.cv-game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,229,255,0.3);
}
.cv-game-card--spotlight {
  grid-column: span 2;
  grid-row: span 2;
}
.cv-game-card--spotlight .cv-game-img { min-height: 340px; }
.cv-game-card--spotlight .cv-game-name { font-size: 1.3rem; }
.cv-game-img {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.cv-game-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.cv-game-card:hover .cv-game-img img { transform: scale(1.05); }
.cv-game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}
.cv-game-body { padding: 16px 20px 20px; }
.cv-game-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.cv-game-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.cv-game-play {
  width: 100%;
  color: #FFFFFF;
  padding: 10px 20px;
}

/* Full game grid (library page) */
.cv-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* --- Stats Cards --- */
.cv-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cv-stat-card { padding: 32px 20px; text-align: center; }
.cv-stat-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.cv-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.cv-stat-label { color: var(--muted); font-size: 0.85rem; }

/* --- Daily Bonus CTA --- */
.cv-bonus-cta {
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(255,107,53,0.12));
  border-top: 1px solid rgba(0,229,255,0.15);
  border-bottom: 1px solid rgba(255,107,53,0.15);
  padding: 64px 0;
  text-align: center;
}
.cv-bonus-cta-inner h2 { margin-bottom: 12px; }
.cv-bonus-cta-inner p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Provider Showcase --- */
.cv-providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cv-provider-card { padding: 36px 24px; text-align: center; }
.cv-provider-card h3 { margin-bottom: 12px; color: var(--primary); font-size: 1.15rem; }
.cv-provider-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.cv-provider-count {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- FAQ (Two-Column Grid) --- */
.cv-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cv-faq-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.cv-faq-card:hover { border-color: rgba(0,229,255,0.2); }
.cv-faq-question {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.cv-faq-answer {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* FAQ accordion (for pages that use it) */
.cv-faq-item { border-bottom: 1px solid var(--border); }
.cv-faq-item .cv-faq-answer { display: none; padding: 0 0 16px; border-top: none; }
.cv-faq-item--open .cv-faq-answer { display: block; }

/* --- Filter Chips --- */
.cv-filters, .cv-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.cv-filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.cv-filter-btn:hover { border-color: var(--primary); color: var(--text); }
.cv-filter-btn--active,
.cv-filter-btn--active:hover {
  background: var(--primary);
  color: #0A0F1E;
  border-color: var(--primary);
}

/* --- Compliance Disclaimer Block --- */
.cv-disclaimer-block {
  border: 2px solid #FF00FF;
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: left;
}
.cv-disclaimer-block h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.3rem;
  color: #FF00FF;
  margin-bottom: 16px;
}
.cv-disclaimer-block p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Footer (Minimal) --- */
.cv-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.cv-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.cv-footer-brand { flex: 0 0 auto; }
.cv-footer-brand .cv-logo { margin-bottom: 8px; }
.cv-footer-tagline { color: var(--muted); font-size: 0.82rem; max-width: 240px; }
.cv-footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cv-footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 3px 0;
  text-decoration: none;
}
.cv-footer-col a:hover { color: var(--primary); }
.cv-footer-helpline { color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.cv-footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}
.cv-footer-disclaimer {
  max-width: 700px;
  margin: 0 auto 10px;
  line-height: 1.5;
}

/* --- Modals --- */
.cv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cv-modal-overlay.cv-modal--open { display: flex; }
.cv-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 92%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}
.cv-modal-overlay.cv-modal--open .cv-modal { transform: scale(1); }
.cv-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}
.cv-modal-close:hover { color: var(--text); }
.cv-modal h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 20px; }
.cv-modal label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 5px; font-weight: 500; }
.cv-modal input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.cv-modal input:focus { outline: none; border-color: var(--primary); }
.cv-modal .cv-btn { width: 100%; margin-top: 6px; }
.cv-modal-switch { text-align: center; margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.cv-modal-switch a { color: var(--primary); cursor: pointer; }

/* Game modal */
.cv-game-modal { max-width: 960px; padding: 0; overflow: hidden; }
.cv-game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.cv-game-modal-header h3 { font-family: var(--font-display); font-size: 1.05rem; }
.cv-game-modal iframe { width: 100%; height: 600px; border: none; display: block; background: #000; }

/* Age modal */
.cv-age-modal { text-align: center; }
.cv-age-modal h2 { font-size: 1.5rem; }
.cv-age-modal p { color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.cv-age-buttons { display: flex; gap: 12px; }
.cv-age-buttons .cv-btn { flex: 1; }

/* Cookie banner */
.cv-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  z-index: 1500;
  display: none;
}
.cv-cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cv-cookie p { color: var(--muted); font-size: 0.82rem; flex: 1; }
.cv-cookie-btns { display: flex; gap: 8px; }

/* Bonus popup */
.cv-bonus-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  z-index: 2500;
  display: none;
  box-shadow: 0 0 60px rgba(255,107,53,0.25);
}
.cv-bonus-popup h2 { color: var(--accent); margin-bottom: 10px; }
.cv-bonus-popup p { color: var(--muted); margin-bottom: 20px; }

/* Orientation tip */
.cv-orientation-tip {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text);
  font-size: 1.2rem;
}

/* --- Template-generated classes --- */
.cv-logo-icon { font-size: 1.3rem; line-height: 1; }
.cv-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.cv-nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: var(--transition); border-radius: 1px; }
.cv-nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.cv-nav-toggle.open span:nth-child(2) { opacity: 0; }
.cv-nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.cv-nav-mobile {
  display: none;
  position: fixed;
  top: 62px;
  left: 0;
  right: 0;
  background: rgba(10, 15, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}
.cv-nav-mobile.open { display: block; }
.cv-nav-mobile a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.cv-nav-mobile a:last-child { border-bottom: none; }

.cv-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.cv-footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cv-footer-links a {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 3px 0;
  text-decoration: none;
}
.cv-footer-links a:hover { color: var(--primary); }
.cv-footer-age {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.cv-btn-lg { padding: 14px 32px; font-size: 1rem; }
.cv-form-group { margin-bottom: 14px; }
.cv-form-input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.cv-form-input:focus { outline: none; border-color: var(--primary); }

.cv-login-overlay, .cv-register-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.cv-login-content, .cv-register-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 92%;
  margin: auto;
  position: relative;
}
.cv-login-content h2, .cv-register-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.cv-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 960px;
  width: 95%;
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.cv-modal-title { font-family: var(--font-display); font-size: 1.05rem; }

.cv-xp-container { display: flex; align-items: center; gap: 8px; }
.cv-xp-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.cv-xp-bar .cv-xp-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
.cv-xp-text { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }

.cv-bonus-xp { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 8px 0; }
.cv-bonus-streak { font-size: 0.85rem; color: var(--muted); }

/* --- Page Hero (subpages) --- */
.cv-page-hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.cv-page-hero h1 { margin-bottom: 12px; }
.cv-page-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* --- Blog Cards --- */
.cv-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.cv-blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.cv-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,229,255,0.25);
}
.cv-blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--surface-2), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.cv-blog-card-body { padding: 20px; }
.cv-blog-card-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.cv-blog-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.cv-blog-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
.cv-blog-card-link { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 500; font-size: 0.85rem; }

/* --- Article --- */
.cv-article { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.cv-article h1 { margin-bottom: 12px; }
.cv-article-meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 36px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cv-article h2 { margin-top: 40px; margin-bottom: 14px; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.cv-article h3 { margin-top: 28px; margin-bottom: 10px; }
.cv-article p { margin-bottom: 16px; line-height: 1.8; }
.cv-article ul, .cv-article ol { margin-bottom: 16px; padding-left: 24px; }
.cv-article li { margin-bottom: 8px; line-height: 1.7; list-style: disc; }
.cv-article ol li { list-style: decimal; }
.cv-article blockquote {
  border-left: 3px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-style: italic;
}

/* --- Contact --- */
.cv-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cv-contact-info { padding-top: 8px; }
.cv-contact-info h2 { margin-bottom: 16px; }
.cv-contact-info p { color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.cv-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.cv-contact-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.cv-contact-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 0; }
.cv-form label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 5px; font-weight: 500; }
.cv-form input, .cv-form textarea, .cv-form select {
  width: 100%;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.cv-form input:focus, .cv-form textarea:focus, .cv-form select:focus {
  outline: none;
  border-color: var(--primary);
}
.cv-form textarea { min-height: 140px; resize: vertical; }

/* --- Legal Pages --- */
.cv-legal { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.cv-legal h1 { margin-bottom: 8px; }
.cv-legal-updated { color: var(--muted); font-size: 0.82rem; margin-bottom: 36px; }
.cv-legal h2 { margin-top: 36px; margin-bottom: 12px; font-size: 1.2rem; }
.cv-legal p { margin-bottom: 14px; line-height: 1.7; }
.cv-legal ul { margin-bottom: 14px; padding-left: 24px; }
.cv-legal li { margin-bottom: 6px; line-height: 1.6; list-style: disc; }

/* --- Responsible Gaming --- */
.cv-safe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cv-safe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}
.cv-safe-card:hover { border-color: rgba(0,229,255,0.2); }
.cv-safe-card-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.cv-safe-card h3 { font-size: 1rem; margin-bottom: 8px; }
.cv-safe-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.cv-helplines {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cv-helplines h2 { margin-bottom: 20px; font-size: 1.3rem; }
.cv-helpline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cv-helpline-item:last-child { border-bottom: none; }
.cv-helpline-name { font-weight: 600; }
.cv-helpline-desc { color: var(--muted); font-size: 0.82rem; }
.cv-helpline-phone {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  white-space: nowrap;
}

/* --- About / Story --- */
.cv-story { max-width: 800px; margin: 0 auto; padding: 60px 24px; }
.cv-story h2 { margin-top: 40px; margin-bottom: 16px; }
.cv-story p { margin-bottom: 16px; line-height: 1.8; }
.cv-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cv-value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color var(--transition);
}
.cv-value-card:hover { border-color: rgba(0,229,255,0.2); }
.cv-value-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.cv-value-card h3 { margin-bottom: 6px; font-size: 1rem; }
.cv-value-card p { color: var(--muted); font-size: 0.85rem; }

/* --- Scroll Reveal --- */
.cv-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  animation: fallbackReveal 0s 1.5s forwards;
}
.cv-revealed {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes fallbackReveal { to { opacity: 1; transform: translateY(0); } }

/* Staggered children in reveal sections */
.cv-reveal.cv-revealed .cv-step,
.cv-reveal.cv-revealed .cv-stat-card,
.cv-reveal.cv-revealed .cv-provider-card { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cv-spotlight-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-game-card--spotlight { grid-column: span 2; grid-row: span 1; }
  .cv-game-card--spotlight .cv-game-img { min-height: 240px; }
  .cv-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-providers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cv-nav { display: none; }
  .cv-mobile-menu-btn, .cv-nav-toggle { display: flex; }

  .cv-hero {
    min-height: 80vh;
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    padding: 100px 24px 120px;
  }

  .cv-steps { grid-template-columns: 1fr; gap: 16px; }
  .cv-spotlight-grid { grid-template-columns: 1fr; }
  .cv-game-card--spotlight { grid-column: span 1; }
  .cv-game-card--spotlight .cv-game-img { min-height: 200px; }
  .cv-faq-grid { grid-template-columns: 1fr; }
  .cv-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .cv-footer-inner, .cv-footer-grid { flex-direction: column; gap: 24px; }
  .cv-blog-grid { grid-template-columns: 1fr; }
  .cv-section { padding: 56px 0; }
  .cv-section-title { margin-bottom: 32px; }

  .cv-helpline-item { flex-direction: column; gap: 6px; text-align: center; }

  .cv-game-modal iframe { height: 400px; }
}

@media (max-width: 480px) {
  .cv-stats-grid { grid-template-columns: 1fr; }
  .cv-xp-demo { flex-direction: column; text-align: center; }
  .cv-age-buttons { flex-direction: column; }
  .cv-cookie-inner { flex-direction: column; text-align: center; }
  .cv-hero-title { letter-spacing: -0.01em; }
  .cv-values-grid { grid-template-columns: 1fr; }
}
