@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   كر و فر (Kar wa Far) - Saudi Trivia Game
   LIGHT Theme
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* --- Light Backgrounds (b22 warm cream) --- */
  --bg-base: #FFF8ED;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF3E0;
  --bg-elevated: #FFFFFF;
  --bg-section-alt: #F5F0E8;
  --bg-darkest: #0b1a31;

  /* --- Brand Navy --- */
  --purple: #17345d;
  --purple-dark: #0b1a31;
  --purple-light: #1f4a80;

  /* --- Accent Colors (Navy↔Teal + Orange↔Coral) --- */
  --teal: #0d7b84;
  --teal-dark: #096b73;
  --teal-light: #12a0ab;
  --sky-blue: #0d7b84;
  --green: #0d7b84;
  --green-dark: #096b73;
  --cyan: #0d7b84;
  --blue: #17345d;
  --indigo: #17345d;
  --violet: #1f4a80;
  --white: #FFFFFF;
  --orange: #ffb703;
  --orange-dark: #e5a503;
  --coral: #ff6b57;

  /* --- Text (dark on light) --- */
  --text-primary: #0b1a31;
  --text-secondary: #2d3a4a;
  --text-muted: #5a6577;
  --text-subtle: #8a95a5;

  /* --- Gradients --- */
  --gradient-hero: linear-gradient(135deg, #0b1a31 0%, #17345d 52%, #0d7b84 100%);
  --gradient-main: linear-gradient(135deg, #0b1a31 0%, #0d7b84 100%);
  --gradient-btn: linear-gradient(135deg, #ffb703 0%, #ff6b57 100%);
  --gradient-green: linear-gradient(135deg, #0d7b84 0%, #096b73 100%);
  --gradient-teal: linear-gradient(135deg, #0d7b84 0%, #12a0ab 100%);
  --gradient-indigo: linear-gradient(135deg, #17345d 0%, #0d7b84 100%);

  /* --- [B22] Bold borders instead of soft shadows --- */
  --card-border: 2px solid #0b1a31;
  --card-hover-shadow: 6px 6px 0px #0b1a31;
  --card-hover-timing: 600ms cubic-bezier(0.3, 0.7, 0.4, 1);

  /* --- Border Radius --- */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* --- Typography --- */
  --font-family: 'Alexandria', sans-serif;
  --font-hero: clamp(28px, 4vw, 44px);
  --font-section: clamp(24px, 3.5vw, 38px);

  /* --- [B22] Dot Pattern --- */
  --dot-pattern: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e8dcc8' fill-opacity='0.5' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='2'/%3E%3Ccircle cx='13' cy='13' r='2'/%3E%3C/g%3E%3C/svg%3E");

  /* --- Legacy Variable Mappings --- */
  --background: #FFF8ED;
  --foreground: #0b1a31;
  --card-bg: #FFFFFF;
  --text-dark: #0b1a31;
  --text-primary-var: #17345d;
  --primary: #17345d;
  --primary-light: #17345d;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; direction: rtl; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: var(--font-family);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--orange); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   3. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* ============================================================
   4. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,183,3,0.3); }
  50% { box-shadow: 0 4px 30px rgba(255,107,87,0.5), 0 0 60px rgba(255,183,3,0.15); }
}

/* ============================================================
   5. UTILITY / LAYOUT
   ============================================================ */
.fp-section { display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.fp-section.auto-height { display: block; }
.section-title {
  text-align: center;
  font-size: var(--font-section);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
  margin: 16px auto 0;
}
.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.animate-on-scroll { opacity: 1; }
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   6. [B22] 3D LAYERED BUTTONS
   ============================================================ */
.btn-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: filter 150ms ease;
}
.btn-3d-shadow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  transform: translateY(5px);
  z-index: 0;
}
.btn-3d-edge {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,0,0,0.3);
  transform: translateY(3px);
  z-index: 1;
}
.btn-3d-face {
  position: relative;
  display: block;
  padding: 16px 44px;
  border-radius: var(--radius-full);
  border: 2px solid #0b1a31;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-family);
  z-index: 2;
  transition: transform 150ms ease;
}
.btn-3d:hover .btn-3d-face { transform: translateY(-2px); }
.btn-3d:active .btn-3d-face { transform: translateY(2px); }

/* Primary (orange gradient face) */
.btn-3d--primary .btn-3d-face { background: var(--gradient-btn); color: white; }
.btn-3d--primary .btn-3d-edge { background: #cc5a46; border-color: #cc5a46; }
.btn-3d--primary .btn-3d-shadow { background: rgba(0,0,0,0.25); }

/* Outline (glass on hero gradient) */
.btn-3d--outline .btn-3d-face { background: rgba(255,255,255,0.15); color: white; backdrop-filter: blur(8px); border-color: rgba(255,255,255,0.5); }
.btn-3d--outline .btn-3d-edge { border-color: rgba(255,255,255,0.2); background: rgba(0,0,0,0.15); }
.btn-3d--outline .btn-3d-shadow { background: rgba(0,0,0,0.15); }

/* Teal (body section CTAs) */
.btn-3d--teal .btn-3d-face { background: var(--gradient-btn); color: white; }
.btn-3d--teal .btn-3d-edge { background: #cc5a46; border-color: #cc5a46; }

/* Purple (buy buttons, register) */
.btn-3d--purple .btn-3d-face { background: var(--gradient-btn); color: white; }
.btn-3d--purple .btn-3d-edge { background: #cc5a46; border-color: #cc5a46; }

/* Small variant (nav register button) */
.btn-3d--sm .btn-3d-face { padding: 10px 28px; font-size: 14px; }
.btn-3d--sm .btn-3d-shadow { transform: translateY(3px); }
.btn-3d--sm .btn-3d-edge { transform: translateY(2px); }

/* Full-width 3D button (login page etc.) */
.login-card .btn-3d { width: 100%; }
.login-card .btn-3d .btn-3d-face { width: 100%; text-align: center; box-sizing: border-box; }

/* Legacy flat buttons (for subpages not yet converted) */
.btn-primary {
  display: inline-block;
  background: var(--gradient-btn);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
  border: 2px solid #0b1a31;
}
.btn-primary:hover { background: var(--coral); color: white; transform: translateY(-3px); box-shadow: 4px 4px 0px #0b1a31; }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--purple);
  padding: 14px 36px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid var(--purple);
  transition: all 0.3s;
}
.btn-outline:hover { background: var(--purple); color: white; }
/* Legacy hero buttons (kept for pages not yet wrapped in btn-3d) */
.hero-btn-primary {
  display: inline-block;
  background: white;
  color: var(--purple);
  padding: 16px 44px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid #0b1a31;
}
.hero-btn-primary:hover { transform: translateY(-3px); box-shadow: 4px 4px 0px #0b1a31; color: var(--purple); }
.hero-btn-outline {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 16px 44px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.hero-btn-outline:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.7); color: white; }

/* ============================================================
   7. HEADER [B22] bold border + [SJ] large drop shadow
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,248,237,0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2.5px solid #0b1a31;
  box-shadow: 0px 20px 40px -12px rgba(0,0,0,0.10);
  transition: all 0.35s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: 0px 25px 50px -12px rgba(0,0,0,0.15);
}
.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.logo {
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  color: var(--purple);
  text-decoration: none;
  -webkit-text-fill-color: var(--purple);
  background: none;
  filter: none;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
/* Creative split logo: كر (orange) و (small) فر (teal) */
.logo-kr {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-wa {
  font-size: 0.55em;
  font-weight: 700;
  font-style: normal;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
  opacity: 0.5;
  margin: 0 -1px;
}
.logo-far {
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
}
/* Footer logo — light colors */
.site-footer .logo-kr {
  background: linear-gradient(135deg, #ffb703 0%, #ff6b57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-footer .logo-wa { color: rgba(255,255,255,0.35); -webkit-text-fill-color: rgba(255,255,255,0.35); }
.site-footer .logo-far { color: var(--teal-light); -webkit-text-fill-color: var(--teal-light); }
.main-nav {
  display: flex;
  gap: 4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}
.main-nav a:hover { color: var(--purple); background: rgba(23,52,93,0.06); }
.main-nav a.active { color: var(--orange); background: rgba(255,183,3,0.08); font-weight: 700; }
.btn-register {
  background: var(--gradient-btn);
  color: white;
  padding: 10px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s;
  border: 2px solid #0b1a31;
}
.btn-register:hover { transform: translateY(-3px); box-shadow: 3px 3px 0px #0b1a31; color: white; }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
}

/* ============================================================
   8. MOBILE NAV
   ============================================================ */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 99; }
.mobile-overlay.open { display: block; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 300px; height: 100vh;
  background: var(--white);
  z-index: 100;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  border-left: 2.5px solid #0b1a31;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--purple); }
.mobile-nav a.active { color: var(--orange); }
.mobile-close {
  position: absolute;
  top: 20px; left: 20px;
  background: none; border: none;
  color: var(--text-primary); font-size: 28px;
  cursor: pointer;
}

/* ============================================================
   9. [FF] DECORATIVE BLUR CIRCLES
   ============================================================ */
.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.blur-orb-1 { width: 400px; height: 400px; background: rgba(23,52,93,0.15); top: -100px; right: -100px; }
.blur-orb-2 { width: 300px; height: 300px; background: rgba(13,123,132,0.12); bottom: -50px; left: -80px; }
.blur-orb-3 { width: 200px; height: 200px; background: rgba(255,183,3,0.08); top: 40%; left: 20%; }
.blur-orb-about-1 { width: 350px; height: 350px; background: rgba(13,123,132,0.06); top: -80px; left: -120px; }
.blur-orb-about-2 { width: 250px; height: 250px; background: rgba(23,52,93,0.05); bottom: -60px; right: -80px; }
.blur-orb-cta-1 { width: 300px; height: 300px; background: rgba(255,255,255,0.06); top: -80px; right: 10%; }
.blur-orb-cta-2 { width: 250px; height: 250px; background: rgba(13,123,132,0.08); bottom: -60px; left: 5%; }

/* ============================================================
   10. [FF] CASCADE STAGGER ANIMATIONS
   ============================================================ */
.cascade-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: calc(var(--cascade-delay, 0) * 100ms);
}
.cascade-item.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   11. HERO SECTION (FF gradient + SJ curved bottom + B22 dots + B22/FF split layout)
   ============================================================ */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 88px 0 100px;
  background: var(--gradient-hero);
  text-align: center;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}
/* [B22/FF] Split hero layout */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  text-align: right;
}
.hero-text { position: relative; }
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 180px;
  height: 360px;
  background: rgba(0,0,0,0.25);
  border-radius: 40px;
  border: 3px solid rgba(255,255,255,0.3);
  padding: 12px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  transition: transform var(--card-hover-timing);
}
.phone-frame:hover { transform: translateY(-8px) rotate(-2deg); }
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #17345d 0%, #0d7b84 100%);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  gap: 16px;
}
.phone-screen-content { text-align: center; }
.phone-screen-content .phone-emoji { font-size: 64px; }
.phone-screen-content .phone-title { color: white; font-weight: 900; font-size: 24px; margin-top: 8px; }
.phone-screen-content .phone-subtitle { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 4px; }

.hero-float {
  position: absolute;
  font-size: 48px;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}
.hero-float-1 { top: 12%; right: 8%; animation-delay: 0s; font-size: 56px; }
.hero-float-2 { top: 25%; left: 10%; animation-delay: 1.2s; font-size: 44px; }
.hero-float-3 { bottom: 20%; right: 15%; animation-delay: 2.4s; font-size: 52px; }
.hero-float-4 { bottom: 15%; left: 12%; animation-delay: 0.8s; font-size: 40px; }
.hero-float-5 { top: 40%; right: 25%; animation-delay: 3.2s; font-size: 36px; }
.hero-title {
  font-size: var(--font-hero);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: white;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.9);
}
.hero-buttons { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.app-stores { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.app-store-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}
.app-store-badge:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }
.app-store-badge span { font-size: 11px; opacity: 0.8; }
.app-store-badge strong { font-size: 15px; }

/* Hero stat boxes beside phone */
.hero-stats {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.hero-stat-box {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  text-align: center;
  min-width: 110px;
  position: relative;
  overflow: hidden;
  transition: all var(--card-hover-timing);
}
.hero-stat-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.hero-stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
}
.hero-stat-number {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   12. ABOUT SECTION (b22 dot pattern + [SJ] curved bottom)
   ============================================================ */
.about-section {
  background-color: var(--bg-base);
  background-image: var(--dot-pattern);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 60px 60px; /* [SJ] */
}
.about-section .section-title { margin-bottom: 32px; }
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 36px;
}
/* [B22] Bold outline + [FF] gradient top bar */
.about-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--card-hover-timing);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-main);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.about-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* [B22] bold hover */
.about-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.about-card-icon { margin-bottom: 8px; }
.about-card-icon .emoji, .about-card .emoji { font-size: 48px; margin-bottom: 12px; display: block; }
.about-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.8; }
.about-cta { text-align: center; margin-bottom: 36px; }
.about-cta p { font-size: 20px; font-weight: 800; color: var(--orange); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: var(--card-border);
  transition: all var(--card-hover-timing);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-green);
}
.stat-item:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.stat-number { font-size: 34px; font-weight: 900; margin-bottom: 4px; }
/* [FF] Individual stat gradient colors */
.stat-item:nth-child(1) .stat-number { background: linear-gradient(135deg, #ffb703, #ff6b57); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(2) .stat-number { background: linear-gradient(135deg, #0d7b84, #12a0ab); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(3) .stat-number { background: linear-gradient(135deg, #17345d, #1f4a80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item:nth-child(4) .stat-number { background: linear-gradient(135deg, #0d7b84, #0b1a31); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 600; }

/* ============================================================
   13. HOW-TO-PLAY SECTION (b22 warm gradient + [SJ] curved top)
   ============================================================ */
.howto-section {
  background-color: var(--bg-base);
  background-image: var(--dot-pattern);
  padding: 48px 24px 86px;
  position: relative;
  overflow: hidden;
  border-radius: 60px 60px 0 0; /* [SJ] curved top */
  margin-top: -60px; /* [SJ] overlap must match radius */
  z-index: 2;
}
.howto-section .section-title { color: var(--text-primary); }
.howto-section .section-title::after { background: var(--gradient-main); }
/* Powerups sub-heading inside howto gets teal underline */
.howto-section .section-title + .powerups-grid { margin-top: 0; }
.howto-section .section-title:nth-of-type(2)::after { background: var(--gradient-teal); }
.howto-section .container { position: relative; z-index: 2; }
.steps-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}
/* [B22] bold outline + [FF] gradient bar on timeline cards */
.timeline-step {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--card-hover-timing);
  position: relative;
  overflow: hidden;
}
.timeline-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-indigo);
}
.timeline-step:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.timeline-marker { margin-bottom: 12px; }
.timeline-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--indigo);
  color: white;
  font-size: 24px;
  font-weight: 900;
  border: 2px solid #0b1a31;
  box-shadow: 3px 3px 0px #0b1a31;
}
.timeline-content .emoji { font-size: 28px; margin-bottom: 8px; display: block; }
.timeline-content h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.timeline-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; }

/* ============================================================
   14. CATEGORIES SECTION [SJ] color-coded + gradient split bg
   ============================================================ */
.categories-section {
  background: linear-gradient(135deg, #0b1a31 0%, #17345d 52%, #0d7b84 100%);
  padding: 48px 24px 78px;
  position: relative;
  border-radius: 60px 60px 0 0; /* [SJ] curved top */
  margin-top: -60px; /* [SJ] overlap must match radius */
  z-index: 3;
}
.categories-section .section-title { margin-bottom: 16px; color: white; }
.categories-section .section-title::after { background: white; }
.categories-section .section-subtitle { color: rgba(255,255,255,0.85); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1050px;
  margin: 0 auto 40px;
}
/* [B22] bold outline + [SJ] color-coded top border */
.category-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  transition: all var(--card-hover-timing);
  cursor: pointer;
  border-top: none;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.category-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.category-card .placeholder-img {
  width: 90px; height: 90px;
  border-radius: var(--radius-md);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
}
.category-card .card-top {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  background: var(--bg-card);
}
.category-card .card-bottom {
  padding: 14px 10px;
  border-radius: 0 0 26px 26px;
  background: #0d7b84;
}
.category-card h3 { font-size: 14px; font-weight: 800; color: white; margin: 0; }
.category-card[data-color="green"] { border-top-color: var(--green); }
.category-card[data-color="blue"] { border-top-color: var(--blue); }
.category-card[data-color="indigo"] { border-top-color: var(--indigo); }
.category-card[data-color="purple"] { border-top-color: var(--purple); }
.category-card[data-color="violet"] { border-top-color: var(--violet); }
.category-card[data-color="cyan"] { border-top-color: var(--cyan); }
/* All cards same size — no wide spans */
.category-card--wide { grid-column: span 1; }

/* ============================================================
   15. POWERUPS CARDS [FF] individual color identities
   (now inside howto section, no longer a standalone section)
   ============================================================ */
.powerups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
/* [B22] bold outline + [FF] individual gradient bars */
.powerup-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--card-hover-timing);
  position: relative;
  overflow: hidden;
}
.powerup-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.powerup-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}
.powerup-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.powerup-icon { font-size: 40px; margin-bottom: 12px; display: block; }
.powerup-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.powerup-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* [FF] Each powerup has its own color (navy↔teal↔orange spectrum) */
.powerup-card[data-powerup="double"]::before,
.powerup-card[data-powerup="double"]::after { background: linear-gradient(135deg, #ffb703, #ff6b57); }
.powerup-card[data-powerup="double"] h3 { color: #e5a503; }

.powerup-card[data-powerup="call"]::before,
.powerup-card[data-powerup="call"]::after { background: linear-gradient(135deg, #ff6b57, #e04848); }
.powerup-card[data-powerup="call"] h3 { color: #e04848; }

.powerup-card[data-powerup="roulette"]::before,
.powerup-card[data-powerup="roulette"]::after { background: linear-gradient(135deg, #0b1a31, #17345d); }
.powerup-card[data-powerup="roulette"] h3 { color: #17345d; }

.powerup-card[data-powerup="twoans"]::before,
.powerup-card[data-powerup="twoans"]::after { background: linear-gradient(135deg, #0d7b84, #096b73); }
.powerup-card[data-powerup="twoans"] h3 { color: #0d7b84; }

.powerup-card[data-powerup="block"]::before,
.powerup-card[data-powerup="block"]::after { background: linear-gradient(135deg, #17345d, #0d7b84); }
.powerup-card[data-powerup="block"] h3 { color: #17345d; }

.powerup-card[data-powerup="trap"]::before,
.powerup-card[data-powerup="trap"]::after { background: linear-gradient(135deg, #0d7b84, #12a0ab); }
.powerup-card[data-powerup="trap"] h3 { color: #0d7b84; }

.powerup-card[data-powerup="search"]::before,
.powerup-card[data-powerup="search"]::after { background: linear-gradient(135deg, #1f4a80, #0d7b84); }
.powerup-card[data-powerup="search"] h3 { color: #1f4a80; }

/* ============================================================
   16. PRICING SECTION [B22] outlines + [FF] gradient bars
   ============================================================ */
.pricing-section {
  background-color: var(--bg-base);
  background-image: var(--dot-pattern);
  padding: 48px 24px 78px;
  border-radius: 60px 60px 0 0; /* [SJ] curved top */
  margin-top: -60px; /* [SJ] overlap must match radius */
  z-index: 4;
}
.pricing-section .section-title { color: var(--text-primary); }
.pricing-section .section-title::after { background: var(--gradient-main); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: all var(--card-hover-timing);
  overflow: hidden;
}
.price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-main);
}
.price-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.price-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.price-card.popular {
  border-color: var(--purple);
}
.price-card.popular:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.price-card .badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--purple);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 12px; font-weight: 800;
  white-space: nowrap;
  border: 2px solid #0b1a31;
}
.plan-name { font-size: 16px; font-weight: 700; color: var(--text-muted); margin-bottom: 20px; }
.plan-icon { font-size: 20px; margin-left: 4px; }
.price-card .price { font-size: 56px; font-weight: 900; color: var(--purple); line-height: 1; }
.price-card .currency { font-size: 16px; font-weight: 700; color: var(--text-muted); margin-top: 4px; }
.price-card .description { font-size: 13px; color: var(--text-subtle); margin: 20px 0 28px; }
.btn-buy {
  display: block;
  background: var(--gradient-btn);
  color: white;
  padding: 14px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700; font-size: 15px;
  transition: all 0.3s;
  border: 2px solid #0b1a31;
}
.btn-buy:hover { transform: translateY(-3px); box-shadow: 3px 3px 0px #0b1a31; color: white; }

/* ============================================================
   17. CTA SECTION [SJ] curved top
   ============================================================ */
.cta-section {
  background: var(--gradient-hero);
  color: white;
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 60px 60px 0 0; /* [SJ] */
  margin-top: -60px; /* [SJ] overlap must match radius */
  z-index: 5;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-section::after {
  content: '🎮';
  position: absolute;
  font-size: 120px;
  opacity: 0.05;
  bottom: -20px;
  left: 5%;
  transform: rotate(-15deg);
  z-index: 0;
  pointer-events: none;
}
.cta-section h2 { font-size: var(--font-section); font-weight: 900; color: white; margin-bottom: 24px; position: relative; z-index: 2; }
.cta-section p { font-size: 20px; color: rgba(255,255,255,0.9); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; z-index: 2; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }

/* ============================================================
   18. FOOTER [B22] bold border top
   ============================================================ */
.site-footer {
  background: var(--bg-darkest);
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gradient-main);
}
.site-footer .logo { color: white; -webkit-text-fill-color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-section h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; color: var(--orange); }
.footer-section a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; padding: 5px 0; font-size: 14px; transition: color 0.3s; }
.footer-section a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 18px; transition: all 0.3s; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.15);
}
.social-link:hover { background: var(--orange); color: white; transform: translateY(-3px); border-color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4);
}

/* ============================================================
   19. SUBPAGE - PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--gradient-hero);
  color: white;
  text-align: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 40px 40px; /* [SJ] */
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; margin-bottom: 16px; position: relative; text-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.page-hero p { font-size: 17px; opacity: 0.9; max-width: 600px; margin: 0 auto; position: relative; line-height: 1.7; }

/* ============================================================
   20. SUBPAGE - CONTENT CARD [B22] bold outline + [FF] gradient bar
   ============================================================ */
.content-container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.content-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  transition: all var(--card-hover-timing);
  position: relative;
  overflow: hidden;
}
.content-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.content-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.content-card h2 { font-size: 28px; font-weight: 800; color: var(--purple); margin-bottom: 16px; }
.content-card h3 { font-size: 20px; font-weight: 800; color: var(--orange); margin-bottom: 8px; }
.content-card p, .content-card li { color: var(--text-secondary); font-size: 16px; line-height: 1.8; }
.content-card ul { list-style: disc; padding-right: 24px; margin-top: 8px; }

/* Unified subpage content wrapper */
.subpage-content {
  background-color: var(--bg-base);
  background-image: var(--dot-pattern);
  padding: 48px 0;
}

/* ============================================================
   21. FORM STYLES
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 14px; color: var(--purple); margin-bottom: 8px; text-align: right; }
.required { color: var(--purple); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 18px;
  border: 2px solid #D1D5DB;
  border-radius: var(--radius-sm);
  font-family: var(--font-family); font-size: 14px;
  background: var(--white); color: var(--text-primary);
  direction: rtl; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,123,132,0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-subtle); }
.form-group textarea { min-height: 120px; resize: vertical; }
.phone-input { display: flex; gap: 8px; }
.phone-input .country-code { width: 100px; flex-shrink: 0; }

/* ============================================================
   22. LOGIN PAGE
   ============================================================ */
.login-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-base);
  background-image: var(--dot-pattern);
  padding: 40px 24px;
}
.login-logo {
  font-size: 52px; font-weight: 900; font-style: italic;
  color: var(--purple); -webkit-text-fill-color: var(--purple);
  background: none; margin-bottom: 36px; text-decoration: none; filter: none;
}
.login-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%; max-width: 480px;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient-main);
}
.login-card h1 { text-align: center; font-size: 28px; font-weight: 900; color: var(--text-primary); margin-bottom: 8px; }
.login-card .subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.tab-switch {
  display: flex; background: #F3F4F6; border-radius: var(--radius-sm); padding: 4px;
  margin-bottom: 28px; max-width: 280px; margin-left: auto; margin-right: auto;
}
.tab-switch button {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  font-family: var(--font-family); font-weight: 700; font-size: 13px;
  cursor: pointer; transition: all 0.3s; background: transparent; color: var(--text-muted);
}
.tab-switch button.active { background: var(--gradient-btn); color: white; }
.forgot-password { display: block; text-align: right; color: var(--purple); font-size: 13px; text-decoration: none; margin-bottom: 20px; }
.forgot-password:hover { color: var(--teal); }
.login-btn {
  width: 100%; padding: 16px; background: var(--gradient-btn); color: white;
  border: 2px solid #0b1a31; border-radius: var(--radius-full);
  font-family: var(--font-family); font-size: 16px; font-weight: 800;
  cursor: pointer; transition: all 0.3s; margin-bottom: 16px;
}
.login-btn:hover { background: var(--coral); transform: translateY(-2px); box-shadow: 3px 3px 0px #0b1a31; }
.divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--text-subtle); font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; border-top: 1px solid #E5E7EB; }
.alt-login-btn {
  display: block; width: 100%; padding: 14px;
  background: #F9FAFB; color: var(--text-secondary);
  border: 2px solid #D1D5DB; border-radius: var(--radius-full);
  font-family: var(--font-family); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.3s; text-align: center; text-decoration: none; margin-bottom: 12px;
}
.alt-login-btn:hover { border-color: var(--purple); color: var(--purple); }

/* ============================================================
   23. FAQ SECTION
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 2px solid #E5E7EB; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; background: none; border: none;
  font-family: var(--font-family); font-size: 17px; font-weight: 700;
  color: var(--text-primary); cursor: pointer; text-align: right; direction: rtl;
}
.faq-question:hover { color: var(--purple); }
.faq-question .arrow { transition: transform 0.3s; font-size: 20px; flex-shrink: 0; margin-left: 16px; color: var(--orange); }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding-bottom: 20px; color: var(--text-secondary); font-size: 15px; line-height: 1.8; }

/* ============================================================
   24. REWARDS / EARN PAGE
   ============================================================ */
.rewards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto 40px; }
.reward-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px; text-align: center;
  transition: all var(--card-hover-timing);
  position: relative; overflow: hidden;
}
.reward-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.reward-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.reward-card.featured { background: var(--gradient-hero); border-color: var(--purple); }
.reward-card .reward-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: white; padding: 4px 14px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 800;
  border: 2px solid #0b1a31;
}
.reward-card .likes { font-size: 36px; font-weight: 900; color: var(--purple); margin-bottom: 4px; }
.reward-card.featured .likes { color: white; }
.reward-card .likes-label { font-size: 14px; color: var(--text-muted); border-bottom: 2px solid #E5E7EB; padding-bottom: 14px; margin-bottom: 14px; }
.reward-card.featured .likes-label { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
.reward-card .reward-text { font-size: 17px; font-weight: 800; color: var(--orange); }
.reward-card.featured .reward-text { color: white; }
.earn-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto 40px; }
.earn-step {
  text-align: center; padding: 28px 16px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-md);
  transition: all var(--card-hover-timing);
  position: relative; overflow: hidden;
}
.earn-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.earn-step:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.earn-step .icon { font-size: 44px; margin-bottom: 14px; }
.earn-step h3 { font-size: 17px; font-weight: 800; color: var(--orange); margin-bottom: 10px; }
.earn-step p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================================
   25. CATEGORIES PAGE
   ============================================================ */
.categories-page-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; max-width: 1050px; margin: 0 auto; }
.category-page-card {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all var(--card-hover-timing);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}
.category-page-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--card-hover-shadow); }
.category-page-card .card-top { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 12px; }
.category-page-card .card-top .placeholder-img { width: 90px; height: 90px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.category-page-card .card-bottom { padding: 14px 10px; border-radius: 0 0 26px 26px; background: #0d7b84; text-align: center; }
.category-page-card .card-bottom h3 { font-size: 14px; font-weight: 800; color: white; margin: 0; }
.show-all-categories { display: flex; justify-content: center; margin-top: 32px; }
.show-all-categories .btn-show-all {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-btn);
  color: white; font-family: var(--font-family);
  font-size: 16px; font-weight: 800;
  border: var(--card-border); border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--card-hover-timing);
  box-shadow: 0 4px 16px rgba(255,183,3,0.25);
}
.show-all-categories .btn-show-all:hover { transform: translateY(-4px); box-shadow: var(--card-hover-shadow); }
.category-page-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.category-page-card .tag {
  background: rgba(23,52,93,0.08); color: var(--purple);
  font-size: 11px; padding: 4px 10px;
  border-radius: var(--radius-full); font-weight: 600;
  border: 1px solid rgba(23,52,93,0.15);
}
.category-page-card[data-color="green"] { border-top: 5px solid var(--green); }
.category-page-card[data-color="cyan"] { border-top: 5px solid var(--cyan); }
.category-page-card[data-color="indigo"] { border-top: 5px solid var(--indigo); }
.category-page-card[data-color="violet"] { border-top: 5px solid var(--violet); }
.category-page-card[data-color="blue"] { border-top: 5px solid var(--blue); }
.category-page-card[data-color="purple"] { border-top: 5px solid var(--purple); }
.category-page-card[data-color="teal"] { border-top: 5px solid var(--teal); }
.category-page-card[data-color="sky"] { border-top: 5px solid var(--sky-blue); }

/* ---- CATEGORIES SEARCH BAR ---- */
.categories-search-wrapper {
  max-width: 1050px;
  margin: 0 auto 32px;
}
.categories-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  transition: box-shadow 0.3s ease;
}
.categories-search-bar:focus-within {
  box-shadow: var(--card-hover-shadow);
}
.search-icon { font-size: 20px; flex-shrink: 0; }
.categories-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  direction: rtl;
}
.categories-search-input::placeholder {
  color: var(--text-subtle);
  font-weight: 500;
}
.search-clear-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  display: none;
  transition: color 0.2s;
}
.search-clear-btn.visible { display: block; }
.search-clear-btn:hover { color: var(--coral); }
.search-no-results {
  text-align: center;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 40px 0;
}

/* ---- CATEGORY GROUP ---- */
.category-group {
  max-width: 1050px;
  margin: 0 auto 24px;
}
.category-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all var(--card-hover-timing);
}
.category-group-header:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}
.group-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.group-emoji { font-size: 28px; line-height: 1; }
.group-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--purple-dark);
  margin: 0;
}
.group-count {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--teal);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid #0b1a31;
}
.group-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid #0b1a31;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease;
  box-shadow: 2px 2px 0px #0b1a31;
}
.group-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}
.category-group:not(.open) .group-toggle-btn svg {
  transform: rotate(90deg);
}
.category-group-header:hover .group-toggle-btn {
  background: var(--coral);
}

/* ---- GROUP BODY (collapse/expand) ---- */
.category-group-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.category-group.open .category-group-body {
  opacity: 1;
}
.category-group-body .categories-page-grid {
  padding: 18px 10px 14px;
}

/* ---- SEARCH HIDDEN STATES ---- */
.category-page-card.search-hidden { display: none; }
.category-group.search-hidden { display: none; }

/* ============================================================
   26. HOW TO PLAY PAGE
   ============================================================ */
.howto-page-steps { counter-reset: step; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.howto-step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg-section-alt); border-radius: var(--radius-md); border: 1px solid #E5E7EB; }
.howto-step:last-child { border-bottom: none; }
.howto-step-number {
  width: 42px; height: 42px; background: var(--orange); color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; flex-shrink: 0;
  border: 2px solid #0b1a31;
  box-shadow: 2px 2px 0px #0b1a31;
}
.howto-step-content h3 { font-size: 19px; font-weight: 800; color: var(--purple); margin-bottom: 8px; }
.howto-step-content p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; }

/* ============================================================
   27. WARNING BOX / BACK LINK / HELP CENTER
   ============================================================ */
.warning-box {
  background: #E8F4F5;
  border: 2px solid #0b1a31;
  border-radius: var(--radius-md);
  padding: 28px; text-align: center; margin: 32px 0;
  position: relative; overflow: hidden;
}
.warning-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-main);
}
.warning-box h3 { color: var(--purple); font-size: 18px; margin-bottom: 10px; }
.warning-box p { color: var(--text-secondary); font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); text-decoration: none; font-weight: 700; font-size: 14px; margin-top: 24px; }
.back-link:hover { color: var(--orange); }
.help-center-box {
  background: var(--bg-card);
  border: var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 16px;
}
.help-center-box p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; }

/* ============================================================
   28. RESPONSIVE - 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav { display: block; }
  .header-container { position: relative; }
  .about-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card--wide { grid-column: span 1; }
  .earn-steps { grid-template-columns: repeat(2, 1fr); }
  .rewards-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { text-align: center; }
  .hero-buttons { justify-content: center; }
  .app-stores { justify-content: center; }
  .hero-mockup { display: none; }
}

/* ============================================================
   29. RESPONSIVE - 768px
   ============================================================ */
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .earn-steps { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .categories-page-grid { grid-template-columns: repeat(3, 1fr); }
  .category-group-header { padding: 14px 18px; }
  .group-title { font-size: 18px; }
  .group-emoji { font-size: 24px; }
  .help-center-box { flex-direction: column; text-align: center; }
  .howto-page-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-section { padding: 80px 0 70px; }
  .hero-title { font-size: clamp(28px, 5vw, 42px); }
  .hero-subtitle { font-size: 18px; }
  .about-section { border-radius: 0 0 30px 30px; }
  .howto-section { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .categories-section { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .pricing-section { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .cta-section { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .page-hero { border-radius: 0 0 24px 24px; }
  .steps-timeline { grid-template-columns: 1fr; max-width: 100%; }
  .btn-3d-face { padding: 14px 32px; font-size: 16px; }
}

/* ============================================================
   30a. RESPONSIVE - 600px
   ============================================================ */
@media (max-width: 600px) {
  .categories-page-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   30. RESPONSIVE - 480px
   ============================================================ */
@media (max-width: 480px) {
  .categories-page-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section .hero-float { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-group-header { padding: 12px 14px; }
  .group-emoji { font-size: 22px; }
  .group-title { font-size: 16px; }
  .group-count { font-size: 11px; padding: 3px 8px; }
  .categories-search-bar { padding: 10px 16px; }
}

/* ============================================================
   31. PRINT & REDUCED MOTION
   ============================================================ */
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .mobile-nav, .mobile-overlay, .hero-float, .blur-orb { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-float { animation: none; }
  .cascade-item { opacity: 1; transform: none; }
}
