/* ================================================================
   XSOFT — Liquid Glassmorphism Design System v3
   Theme: Frosted Glass · Holographic · Animated · Mobile-First
   ================================================================ */

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

/* ── Variables ─────────────────────────────────────────────────── */
:root {
  /* ── Liquid Accent — Violet / Iridescent Purple ── */
  --accent:        #7C6FF7;
  --accent-light:  #A78BFA;
  --accent-dark:   #5B4FF0;
  --accent-text:   linear-gradient(135deg, #C4B5FD 0%, #A78BFA 35%, #7C6FF7 65%, #5B4FF0 100%);
  --accent-btn:    linear-gradient(135deg, #C4B5FD 0%, #A78BFA 30%, #7C6FF7 60%, #5B4FF0 100%);
  --accent-glow:   0 0 28px rgba(124,111,247,0.50);
  --shadow-accent: 0 6px 24px rgba(124,111,247,0.38);

  /* Gold aliases → accent */
  --gold:         #7C6FF7;
  --gold-light:   #A78BFA;
  --gold-dark:    #5B4FF0;
  --gold-text:    var(--accent-text);
  --gold-btn:     var(--accent-btn);
  --gold-glow:    var(--accent-glow);
  --shadow-gold:  var(--shadow-accent);

  /* ── Apple Liquid Glass — v4 ── */
  --glass-white:  rgba(255,255,255,0.88);
  --glass-1:      rgba(255,255,255,0.82);
  --glass-2:      rgba(255,255,255,0.68);
  --glass-3:      rgba(255,255,255,0.48);
  --glass-border: rgba(255,255,255,0.95);
  --glass-border-subtle: rgba(255,255,255,0.65);
  --glass-blur:   blur(40px) saturate(200%);
  --glass-blur-sm: blur(20px) saturate(180%);

  /* Iridescent border colors (rainbow edge) */
  --irid-start:   rgba(168,212,255,0.85);
  --irid-mid1:    rgba(196,181,253,0.85);
  --irid-mid2:    rgba(249,168,212,0.80);
  --irid-mid3:    rgba(167,243,208,0.75);
  --irid-end:     rgba(168,212,255,0.85);

  /* Glass shadows — deeper, more depth */
  --glass-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset,
    0 8px 32px rgba(80,60,180,0.10),
    0 2px 8px rgba(0,0,0,0.05);
  --glass-shadow-lg:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(0,0,0,0.03) inset,
    0 24px 64px rgba(80,60,180,0.14),
    0 4px 16px rgba(0,0,0,0.07);
  --glass-shadow-card:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 20px 50px rgba(80,60,180,0.12),
    0 4px 12px rgba(0,0,0,0.06);

  /* Holographic / Iridescent gradients */
  --holo-primary: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 20%, #818cf8 40%, #67e8f9 60%, #86efac 80%, #c4b5fd 100%);
  --holo-cool:    linear-gradient(135deg, #a8edea 0%, #c4b5fd 25%, #f9a8d4 50%, #818cf8 75%, #a8edea 100%);
  --holo-warm:    linear-gradient(135deg, #fda4af 0%, #fb7185 20%, #f472b6 40%, #a78bfa 70%, #fda4af 100%);
  --holo-aurora:  linear-gradient(135deg, #6ee7b7 0%, #67e8f9 25%, #818cf8 50%, #c4b5fd 75%, #6ee7b7 100%);
  --holo-liquid:  linear-gradient(135deg, #e0e7ff 0%, #c4b5fd 20%, #818cf8 40%, #67e8f9 60%, #86efac 80%, #c4b5fd 100%);
  --holo-gold:    var(--holo-primary);

  /* Page background — near white, very clean */
  --bg-page:    #F2F2F9;
  --bg-surface: #F6F6FC;
  --border:     rgba(255,255,255,0.75);
  --border-gray: rgba(0,0,0,0.06);

  /* Text */
  --text-dark:  #18182A;
  --text-mid:   #44445A;
  --text-light: #8888A8;
  --text-white: #FFFFFF;

  /* Semantic */
  --white:      #FFFFFF;
  --bg:         #F2F2F9;

  /* Shadows */
  --shadow-sm:  0 2px 10px rgba(80,60,200,0.08);
  --shadow-md:  0 4px 20px rgba(80,60,200,0.10);
  --shadow-lg:  0 8px 40px rgba(80,60,200,0.13);

  /* Shape */
  --radius:     20px;
  --radius-sm:  12px;
  --radius-lg:  28px;
  --radius-pill: 100px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', 'Kanit', sans-serif;
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg-page);
  position: relative;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── Animated Background ───────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -3;
  background: linear-gradient(160deg, #F0F2FF 0%, #F5F0FF 30%, #EFF5FF 60%, #F2F2FA 100%);
}

/* Animated blobs — very soft, near-white */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 10% 20%, rgba(167,139,250,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 60% at 90% 80%, rgba(147,197,253,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 45% at 75% 10%, rgba(167,243,208,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 25% 85%, rgba(249,168,212,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(224,231,255,0.20) 0%, transparent 70%);
  background-size: 200% 200%;
  animation: blobShift 24s ease-in-out infinite alternate;
  pointer-events: none;
}

/* Dot grid overlay */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(100,80,180,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

@keyframes blobShift {
  0%   { background-position: 0% 0%;    }
  25%  { background-position: 50% 30%;  }
  50%  { background-position: 80% 70%;  }
  75%  { background-position: 30% 90%;  }
  100% { background-position: 100% 50%; }
}

/* Iridescent border shimmer */
@keyframes iridShift {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}

/* ── Global Animations ─────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(0.94); } to { opacity:1; transform:scale(1); } }
@keyframes slideIn  { from { transform:translateX(40px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes modalIn  { from { opacity:0; transform:scale(0.94) translateY(12px); } to { opacity:1; transform:scale(1) translateY(0); } }
@keyframes dropIn   { from { opacity:0; transform:translateY(-8px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes holoMove {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}
@keyframes shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes pulse    { 0%,100% { transform:scale(1); } 50% { transform:scale(1.04); } }
@keyframes ticker   { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes glow     { 0%,100% { box-shadow: 0 0 0 0 rgba(124,111,247,0.3); } 50% { box-shadow: 0 0 0 12px rgba(124,111,247,0); } }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120,100,220,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,111,247,0.5); }

/* ================================================================
   GLASS CARD — Apple Liquid Glass v4
   ================================================================ */
.glass {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  position: relative;
  /* Iridescent border via background-clip */
  background-image:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.82)),
    linear-gradient(135deg,
      rgba(168,212,255,0.90) 0%,
      rgba(196,181,253,0.90) 25%,
      rgba(249,168,212,0.80) 50%,
      rgba(167,243,208,0.75) 75%,
      rgba(168,212,255,0.90) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--glass-shadow-card);
}
.glass-sm {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius-sm);
  background-image:
    linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.78)),
    linear-gradient(135deg,
      rgba(168,212,255,0.85) 0%,
      rgba(196,181,253,0.85) 33%,
      rgba(249,168,212,0.75) 66%,
      rgba(168,212,255,0.85) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  box-shadow: var(--glass-shadow);
}

/* Iridescent animated border variant */
.glass-irid {
  position: relative;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background-image:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.82)),
    linear-gradient(120deg,
      #a8d4ff 0%,
      #c4b5fd 20%,
      #f9a8d4 40%,
      #a7f3d0 60%,
      #bae6fd 80%,
      #a8d4ff 100%
    );
  background-size: 100%, 300% 300%;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  animation: iridShift 6s ease infinite;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,0.03) inset,
    0 20px 50px rgba(80,60,180,0.12),
    0 4px 12px rgba(0,0,0,0.06);
}

/* ================================================================
   HOLOGRAPHIC CARD
   ================================================================ */
.holo-card {
  background: var(--holo-gold);
  background-size: 300% 300%;
  animation: holoMove 8s ease infinite;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.holo-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}
.holo-card-cool  { background: var(--holo-cool);  background-size: 300% 300%; animation: holoMove 10s ease infinite; }
.holo-card-warm  { background: var(--holo-warm);  background-size: 300% 300%; animation: holoMove 9s ease infinite; }
.holo-card-aurora{ background: var(--holo-aurora); background-size: 300% 300%; animation: holoMove 11s ease infinite; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  padding: 0 28px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background-image:
    linear-gradient(rgba(255,255,255,0.86), rgba(248,248,255,0.80)),
    linear-gradient(90deg,
      rgba(168,212,255,0.50) 0%,
      rgba(196,181,253,0.50) 33%,
      rgba(249,168,212,0.40) 66%,
      rgba(168,212,255,0.50) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border-bottom: 1px solid transparent;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.95) inset,
    0 8px 32px rgba(80,60,200,0.08),
    0 1px 0 rgba(0,0,0,0.03);
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block !important;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(124,111,247,0.25));
  transition: var(--transition);
}
.navbar-logo-img:hover {
  filter: drop-shadow(0 4px 16px rgba(124,111,247,0.40));
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .navbar-logo-img {
    height: 36px !important;
    display: block !important;
  }
  .navbar-brand {
    display: flex !important;
    visibility: visible !important;
  }
}
.navbar-logo {
  width: 38px; height: 38px;
  background: var(--gold-btn);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: white;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0; letter-spacing: -1px;
}
.navbar-brand-name {
  font-size: 20px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 2px;
}
.navbar-nav { display: flex; align-items: center; gap: 2px; }
.navbar-nav a {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.navbar-nav a:hover { background: rgba(255,255,255,0.6); color: var(--text-dark); }
.navbar-nav a.active {
  background: var(--glass-1);
  color: var(--gold);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.navbar-actions { display: flex; align-items: center; gap: 8px; }
.navbar-balance {
  font-size: 13px; font-weight: 600;
  color: var(--text-dark);
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 6px;
}
.navbar-balance .amt { color: var(--gold); font-weight: 700; }

/* User avatar */
.nav-user-menu { position: relative; }
.user-avatar-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--gold-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: white;
  cursor: pointer; border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.user-avatar-btn:hover { transform: scale(1.06); box-shadow: var(--gold-glow); }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-lg);
  min-width: 190px; z-index: 200;
  display: none; padding: 8px;
}
.user-dropdown.open { display: block; animation: dropIn 0.18s ease; }
.dropdown-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-mid); cursor: pointer;
  transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.6); color: var(--gold); }
.dropdown-divider { height: 1px; background: var(--glass-border); margin: 4px 0; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; border: none;
  transition: var(--transition); cursor: pointer;
  white-space: nowrap; position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 150%; }

.btn-gold {
  /* Apple Liquid Glass "Generate" button style */
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  position: relative;
  overflow: visible;
  /* Iridescent border via background-clip */
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,248,255,0.88) 100%),
    linear-gradient(120deg,
      #a8d4ff 0%,
      #c4b5fd 20%,
      #f9a8d4 45%,
      #a7f3d0 70%,
      #bae6fd 85%,
      #a8d4ff 100%
    );
  background-size: 100%, 300% 300%;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  animation: iridShift 5s ease infinite;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset,
    0 8px 32px rgba(80,60,200,0.14),
    0 2px 8px rgba(0,0,0,0.06);
}
.btn-gold:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,0.04) inset,
    0 16px 48px rgba(80,60,200,0.20),
    0 4px 12px rgba(0,0,0,0.08);
  color: var(--accent-dark);
}
.btn-gold:active { transform: translateY(0) scale(1); }

.btn-outline-gold {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--accent);
  font-weight: 600;
  background-image:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.65)),
    linear-gradient(120deg,
      rgba(168,212,255,0.7) 0%,
      rgba(196,181,253,0.7) 33%,
      rgba(249,168,212,0.6) 66%,
      rgba(168,212,255,0.7) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 16px rgba(80,60,200,0.10);
}
.btn-outline-gold:hover {
  background-image:
    linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.80)),
    linear-gradient(120deg,
      rgba(168,212,255,0.9) 0%,
      rgba(196,181,253,0.9) 33%,
      rgba(249,168,212,0.8) 66%,
      rgba(168,212,255,0.9) 100%
    );
  color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 8px 28px rgba(80,60,200,0.16);
}

.btn-glass {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  color: var(--text-mid);
  background-image:
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.75)),
    linear-gradient(120deg,
      rgba(168,212,255,0.65) 0%,
      rgba(196,181,253,0.65) 33%,
      rgba(249,168,212,0.55) 66%,
      rgba(168,212,255,0.65) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 2px 10px rgba(80,60,200,0.08);
}
.btn-glass:hover {
  background-image:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.86)),
    linear-gradient(120deg,
      rgba(168,212,255,0.8) 0%,
      rgba(196,181,253,0.8) 33%,
      rgba(249,168,212,0.7) 66%,
      rgba(168,212,255,0.8) 100%
    );
  color: var(--text-dark);
}
.btn-white { background: rgba(255,255,255,0.95); border: 1px solid rgba(255,255,255,0.9); color: var(--text-mid); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.btn-white:hover { background: white; color: var(--accent); }

.btn-sm  { padding: 7px 16px; font-size: 12px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-block { width: 100%; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 72px 24px 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--glass-1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.6s ease both;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 58px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 .highlight {
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 16px; color: var(--text-mid);
  margin-bottom: 34px;
  max-width: 500px; margin-left: auto; margin-right: auto;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-stats {
  margin-top: 60px;
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.5);
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stat {
  text-align: center;
  flex: 1; min-width: 100px;
  padding: 0 24px;
  position: relative;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,0.5);
}
.hero-stat-num {
  font-size: 28px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.hero-stat-label { font-size: 11px; color: var(--text-light); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

/* ================================================================
   SECTION
   ================================================================ */
.section { padding: 48px 24px; max-width: 1300px; margin: 0 auto; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.section-title {
  font-size: 20px; font-weight: 800; color: var(--text-dark);
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.3px;
}
.section-title::before {
  content: '';
  display: inline-block; width: 4px; height: 22px;
  background: var(--gold-btn);
  border-radius: 2px; flex-shrink: 0;
}

/* ================================================================
   GAME CARDS
   ================================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  animation: fadeUp 0.5s ease both;
}
.game-card:nth-child(2)  { animation-delay:.04s; }
.game-card:nth-child(3)  { animation-delay:.08s; }
.game-card:nth-child(4)  { animation-delay:.12s; }
.game-card:nth-child(5)  { animation-delay:.16s; }
.game-card:nth-child(6)  { animation-delay:.20s; }
.game-card:nth-child(7)  { animation-delay:.24s; }
.game-card:nth-child(8)  { animation-delay:.28s; }
.game-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: var(--glass-shadow-lg);
  border-color: rgba(255,255,255,0.9);
}
.game-card-img {
  width: 100%; aspect-ratio: 1;
  background: linear-gradient(135deg, #e8e4f8, #d8e8f8);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
/* Holographic shimmer on hover */
.game-card:hover .game-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 0.8s ease;
}
.game-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold-btn);
  color: white; font-size: 9px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(124,111,247,0.4);
  z-index: 3;
}
.game-card-body { padding: 11px 13px 13px; }
.game-card-title { font-size: 12px; font-weight: 700; color: var(--text-dark); margin-bottom: 2px; }
.game-card-sub   { font-size: 10px; color: var(--text-light); }
.game-card-play {
  display: none;
  position: absolute; inset: 0;
  background: rgba(240,240,250,0.75);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  z-index: 4;
}
.game-card:hover .game-card-play { display: flex; }

/* ================================================================
   CATEGORY TABS
   ================================================================ */
.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--glass-1);
  backdrop-filter: blur(12px);
  color: var(--text-mid);
  transition: var(--transition); cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover { background: rgba(255,255,255,0.85); color: var(--text-dark); transform: translateY(-1px); }
.tab-btn.active {
  background: var(--gold-btn);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ================================================================
   PROMO CARDS
   ================================================================ */
.promos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.promo-card {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--glass-shadow-lg); border-color: rgba(255,255,255,0.9); }
.promo-card-header {
  height: 120px;
  background: var(--holo-cool);
  background-size: 300% 300%;
  animation: holoMove 10s ease infinite;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 0;
  position: relative;
  overflow: hidden;
}
.promo-card-header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
}
.promo-card-tag {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9);
  color: var(--gold); font-size: 9px; font-weight: 800;
  padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.5px; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.promo-card-body { padding: 18px; }
.promo-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark); }
.promo-card-desc  { font-size: 13px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.6; }
.promo-amount {
  font-size: 24px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 14px; line-height: 1;
}
.promo-hd-icon { font-size: 40px; opacity: 0.9; position: relative; z-index: 1; }

/* ================================================================
   WALLET CARD
   ================================================================ */
.wallet-card {
  background: var(--holo-gold);
  background-size: 300% 300%;
  animation: holoMove 10s ease infinite;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow-lg);
  color: var(--text-dark);
}
.wallet-card::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.25);
  border-radius: var(--radius-lg);
}
.wallet-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  pointer-events: none;
}
.wallet-balance-label {
  font-size: 11px; font-weight: 700;
  margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(0,0,0,0.5);
  position: relative; z-index: 1;
}
.wallet-balance-amount {
  font-size: 40px; font-weight: 800; line-height: 1.1;
  color: var(--text-dark); position: relative; z-index: 1;
}
.wallet-balance-amount .currency { font-size: 22px; margin-right: 3px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ================================================================
   TABLE
   ================================================================ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead tr {
  background: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.data-table td {
  padding: 13px 16px; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  color: var(--text-dark);
  transition: background 0.15s;
}
.data-table tr:hover td { background: rgba(255,255,255,0.35); }

.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.badge-success { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.badge-warning { background: rgba(245,158,11,0.12); color: #D97706; border: 1px solid rgba(245,158,11,0.2); }
.badge-danger  { background: rgba(239,68,68,0.12);  color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.badge-accent  { background: rgba(124,111,247,0.12); color: var(--accent); border: 1px solid rgba(124,111,247,0.25); }
.badge-gold    { background: rgba(124,111,247,0.12); color: var(--accent); border: 1px solid rgba(124,111,247,0.25); }

/* ================================================================
   FORM
   ================================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-mid); margin-bottom: 7px;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--text-dark);
  background: var(--glass-1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition); outline: none;
}
.form-control:focus {
  border-color: rgba(124,111,247,0.6);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 4px rgba(124,111,247,0.10);
}
.form-control::placeholder { color: rgba(100,100,140,0.45); }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 5px; }
.input-group { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 15px;
}
.input-group .form-control { padding-left: 42px; }
.input-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); cursor: pointer; font-size: 15px;
  transition: var(--transition);
}
.input-eye:hover { color: var(--gold); }

/* ================================================================
   AUTH PAGE
   ================================================================ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative;
}
.auth-card {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-lg);
  border: 1px solid var(--glass-border);
  padding: 42px;
  width: 100%; max-width: 440px;
  animation: scaleIn 0.45s ease both;
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold-btn);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon {
  width: 60px; height: 60px;
  background: var(--gold-btn);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; color: white;
  margin: 0 auto 12px;
  box-shadow: var(--shadow-gold);
}
.auth-logo-name {
  font-size: 24px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 2px;
}
.auth-title { font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 4px; color: var(--text-dark); }
.auth-sub   { font-size: 13px; color: var(--text-light); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.auth-divider hr { flex: 1; border: none; border-top: 1px solid rgba(255,255,255,0.55); }
.auth-divider span { font-size: 12px; color: var(--text-light); white-space: nowrap; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-mid); }
.auth-footer a { color: var(--gold); font-weight: 700; }

/* ================================================================
   ADMIN SIDEBAR
   ================================================================ */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; min-height: 100vh;
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
  box-shadow: 4px 0 24px rgba(100,80,200,0.07);
}
.sidebar-brand {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-logo {
  width: 34px; height: 34px;
  background: var(--gold-btn);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: white;
  box-shadow: var(--shadow-gold);
}
.sidebar-brand-name {
  font-size: 16px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 1px;
}
/* For compatibility with sidebar.js using .sidebar-name */
.sidebar-name {
  font-size: 16px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 1px;
}
.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidebar-section {
  padding: 14px 16px 4px;
  font-size: 9px; font-weight: 700; color: rgba(120,100,180,0.5);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500; color: var(--text-mid);
  transition: var(--transition);
  border-left: 2px solid transparent;
  margin: 1px 8px; border-radius: var(--radius-sm);
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.55);
  color: var(--text-dark);
}
.sidebar-link.active {
  background: rgba(255,255,255,0.7);
  color: var(--gold);
  border-left-color: var(--gold);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.sidebar-link .icon { font-size: 14px; width: 18px; text-align: center; opacity: 0.75; }
.sidebar-link.active .icon { opacity: 1; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,0.45); }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.sidebar-avatar {
  width: 30px; height: 30px;
  background: var(--gold-btn);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
}
.sidebar-user-name { font-size: 12px; font-weight: 700; color: var(--text-dark); }
.sidebar-user-role { font-size: 10px; color: var(--text-light); }

.admin-content { margin-left: 240px; flex: 1; min-height: 100vh; }
.admin-topbar {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(100,80,200,0.06);
}
.admin-topbar-title { font-size: 16px; font-weight: 700; }
.admin-body { padding: 24px; }

/* ================================================================
   STAT CARDS (admin)
   ================================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative; overflow: hidden;
  animation: fadeUp 0.4s ease both;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--glass-shadow); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-btn);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.gold-bg { background: rgba(124,111,247,0.12); }
.stat-value { font-size: 24px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-light); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 12px; margin-top: 6px; font-weight: 600; }
.stat-change.up   { color: #059669; }
.stat-change.down { color: #DC2626; }

/* ================================================================
   CARD (generic)
   ================================================================ */
.card {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.25);
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.card-body  { padding: 20px; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  padding: 44px 24px 26px;
  margin-top: 48px;
}
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand-name {
  font-size: 20px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 2px; margin-bottom: 12px;
}
.footer-desc { font-size: 13px; color: var(--text-mid); line-height: 1.8; }
.footer-title { font-size: 10px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-mid); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); transform: translateX(3px); display: inline-block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.4);
  padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--text-light); }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badge {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-border);
  padding: 4px 11px; border-radius: var(--radius-pill);
  font-size: 10px; font-weight: 700; color: var(--text-light);
}

/* ================================================================
   MOBILE MENU BUTTON
   ================================================================ */
.mobile-menu-btn {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; padding: 4px 6px;
  color: var(--text-dark); line-height: 1; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) { .mobile-menu-btn { display: block; } }

/* ================================================================
   LANG BUTTON
   ================================================================ */
.lang-btn {
  background: var(--glass-1);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 12px; font-weight: 600; color: var(--text-mid);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover { color: var(--gold); background: rgba(255,255,255,0.85); }

/* ================================================================
   TICKER
   ================================================================ */
.ticker {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 9px 0; overflow: hidden;
}
.ticker-track {
  display: flex; gap: 52px; white-space: nowrap;
  animation: ticker 32s linear infinite;
}
.ticker-item { font-size: 12px; color: var(--text-mid); display: flex; align-items: center; gap: 8px; }
.ticker-item b { color: var(--text-dark); font-weight: 700; }
.ticker-item .dot { width: 6px; height: 6px; background: var(--gold-btn); border-radius: 50%; flex-shrink: 0; animation: pulse 2s ease infinite; }

/* ================================================================
   QUICK ACTIONS — Icon shortcut grid
   ================================================================ */
.quick-actions {
  padding: 20px 20px 8px;
  max-width: 900px;
  margin: 0 auto;
}
.quick-actions-title {
  font-size: 12px; font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 4px;
}
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (min-width: 769px) {
  .quick-actions { max-width: 1200px; padding: 24px 32px 12px; }
  .quick-actions-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 12px;
  }
}
.qa-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.qa-item:hover { transform: translateY(-3px); }
.qa-icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  /* Liquid glass icon background */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background-image:
    linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.78)),
    linear-gradient(135deg,
      rgba(168,212,255,0.80) 0%,
      rgba(196,181,253,0.80) 33%,
      rgba(249,168,212,0.70) 66%,
      rgba(168,212,255,0.80) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 6px 20px rgba(80,60,180,0.12),
    0 2px 6px rgba(0,0,0,0.06);
  color: var(--accent);
  transition: var(--transition);
}
.qa-item:hover .qa-icon {
  background-image:
    linear-gradient(rgba(255,255,255,0.95), rgba(248,248,255,0.88)),
    linear-gradient(135deg,
      rgba(168,212,255,0.95) 0%,
      rgba(196,181,253,0.95) 33%,
      rgba(249,168,212,0.85) 66%,
      rgba(168,212,255,0.95) 100%
    );
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 10px 28px rgba(80,60,180,0.18),
    0 3px 8px rgba(0,0,0,0.08);
  transform: scale(1.05);
}
/* Special: Deposit icon — accent fill */
.qa-item.qa-deposit .qa-icon {
  background-image:
    linear-gradient(rgba(124,111,247,0.90), rgba(91,79,240,0.85)),
    linear-gradient(135deg,
      rgba(196,181,253,1) 0%,
      rgba(168,212,255,0.9) 100%
    );
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 8px 24px rgba(124,111,247,0.30),
    0 2px 8px rgba(0,0,0,0.08);
}
.qa-label {
  font-size: 11px; font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 380px) {
  .qa-icon { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; }
  .qa-label { font-size: 10px; }
}

/* ================================================================
   JACKPOT BANNER
   ================================================================ */
.jackpot-banner {
  background: var(--glass-1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.jackpot-label { font-size: 13px; color: var(--text-mid); }
.jackpot-amount {
  font-size: 26px; font-weight: 800;
  background: var(--gold-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2.5s ease-in-out infinite;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow-lg);
  border: 1px solid var(--glass-border);
  border-left-width: 3px; border-left-color: var(--gold);
  padding: 13px 17px; min-width: 260px; max-width: 340px;
  display: flex; align-items: flex-start; gap: 11px;
  animation: slideIn 0.25s ease;
}
.toast-icon  { font-size: 18px; flex-shrink: 0; }
.toast-title { font-size: 13px; font-weight: 700; }
.toast-msg   { font-size: 12px; color: var(--text-mid); margin-top: 2px; }

/* ================================================================
   MOBILE NAV DRAWER
   ================================================================ */
.nav-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(30,20,60,0.40);
  z-index: 990;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-overlay.open { display: block; }

.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 290px; max-width: 88vw;
  background: var(--glass-1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 995;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: 8px 0 40px rgba(100,80,200,0.15);
  overflow-y: auto;
  border-right: 1px solid var(--glass-border);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-drawer-brand { display: flex; align-items: center; gap: 10px; }
.mobile-drawer-close {
  background: rgba(255,255,255,0.5); border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill); width: 32px; height: 32px;
  font-size: 16px; color: var(--text-mid);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-drawer-user {
  margin: 14px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
}
.mobile-drawer-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: white; flex-shrink: 0;
  box-shadow: var(--shadow-gold);
}
.mobile-drawer-user-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.mobile-drawer-balance { font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 2px; }
.mobile-drawer-nav { flex: 1; padding: 8px; }
.mobile-drawer-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  font-size: 14px; font-weight: 500; color: var(--text-mid);
  transition: var(--transition);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}
.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  background: rgba(255,255,255,0.6);
  color: var(--gold);
}
.mobile-drawer-nav .nav-icon { font-size: 16px; width: 22px; text-align: center; }
.mobile-drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.45);
  display: flex; flex-direction: column; gap: 9px;
}

/* ================================================================
   BOTTOM NAVIGATION — iOS Floating Glass Pill
   ================================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 980;
}
.bottom-nav-inner {
  display: flex;
  align-items: center;
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 100px;
  padding: 6px 6px;
  gap: 2px;
  white-space: nowrap;
  max-width: calc(100vw - 28px);
  /* Apple Liquid Glass — iridescent border via background-clip */
  background-image:
    linear-gradient(rgba(255,255,255,0.90), rgba(248,248,255,0.84)),
    linear-gradient(120deg,
      rgba(168,212,255,0.95) 0%,
      rgba(196,181,253,0.95) 22%,
      rgba(249,168,212,0.85) 44%,
      rgba(167,243,208,0.80) 66%,
      rgba(186,230,253,0.90) 84%,
      rgba(168,212,255,0.95) 100%
    );
  background-size: 100%, 300% 300%;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1.5px solid transparent;
  animation: iridShift 5s ease infinite;
  box-shadow:
    /* top white highlight */
    0 1px 0 rgba(255,255,255,1) inset,
    /* bottom inner shadow for depth */
    0 -1px 0 rgba(0,0,0,0.04) inset,
    /* outer glow */
    0 16px 48px rgba(80,60,200,0.18),
    0 6px 16px rgba(0,0,0,0.10),
    0 2px 4px rgba(0,0,0,0.06);
}

.bottom-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  color: #3a3a3a;
  text-decoration: none; cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  border: none; background: none;
  -webkit-tap-highlight-color: transparent;
  min-width: 58px;
  position: relative;
}
.bottom-nav-item:hover { color: var(--accent); }

/* Active = Apple Liquid Glass inner pill */
.bottom-nav-item.active {
  color: var(--accent);
  background-image:
    linear-gradient(rgba(255,255,255,0.95), rgba(252,252,255,0.88)),
    linear-gradient(120deg,
      rgba(168,212,255,0.75) 0%,
      rgba(196,181,253,0.75) 33%,
      rgba(249,168,212,0.65) 66%,
      rgba(168,212,255,0.75) 100%
    );
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 -1px 0 rgba(0,0,0,0.03) inset,
    0 4px 14px rgba(80,60,200,0.13),
    0 1px 4px rgba(0,0,0,0.06);
}

.bottom-nav-icon {
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  height: 26px;
}
.bottom-nav-label {
  font-size: 10px; font-weight: 600;
  line-height: 1;
}

/* Play/Deposit CTA — same as others but accent color */
.bottom-nav-item.bn-play,
.bottom-nav-item.cta {
  color: var(--accent);
}
.bottom-nav-item.bn-play .bn-play-circle { display: none; }
.bottom-nav-item.cta .bottom-nav-icon-wrap { display: none; }

/* ================================================================
   RESPONSIVE — MOBILE FIRST
   ================================================================ */
@media (max-width: 768px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
  .bottom-nav { display: flex; }
  .navbar-nav { display: none; }
  .navbar { padding: 0 14px; height: 56px; }
  .navbar-brand-name { font-size: 18px; }
  .navbar-logo { width: 34px; height: 34px; font-size: 15px; }
  .search-box { display: none !important; }
  .navbar-balance { display: none; }

  .hero { padding: 42px 16px 38px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 36px); }
  .hero p { font-size: 13px; margin-bottom: 26px; }
  .hero-btns { gap: 9px; }
  .hero-btns .btn { flex: 1; min-width: 130px; }
  .hero-stats { gap: 0; margin-top: 34px; padding-top: 24px; }
  .hero-stat-num { font-size: 22px; }
  .hero-stat { padding: 0 14px; }

  .jackpot-banner { padding: 10px 14px; gap: 8px; }
  .jackpot-amount { font-size: 20px; }
  .ticker { padding: 6px 0; }

  .section { padding: 24px 14px; }
  .section-title { font-size: 17px; }

  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .game-card-title { font-size: 11px; }
  .game-card-body { padding: 9px 11px 11px; }

  .category-tabs {
    flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; padding: 7px 14px; font-size: 11px; }

  .promos-grid { grid-template-columns: 1fr; }
  .wallet-card { padding: 22px 18px; border-radius: var(--radius); }
  .wallet-balance-amount { font-size: 30px; }
  .wallet-actions { gap: 8px; }
  .wallet-actions .btn { flex: 1; padding: 9px 8px; font-size: 13px; }

  .card-body { padding: 15px; }
  .card-header { padding: 13px 15px; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 500px; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 12px; }

  .form-control { padding: 13px 15px; font-size: 15px; }
  .input-group .form-control { padding-left: 42px; }
  .btn-lg { padding: 14px 26px; font-size: 15px; }
  .auth-card { padding: 30px 20px; border-radius: var(--radius); }
  .auth-logo-icon { width: 52px; height: 52px; font-size: 22px; }
  .auth-logo-name { font-size: 20px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer { padding: 30px 14px 18px; }

  .toast-container { top: auto; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); right: 12px; left: 12px; }
  .toast { min-width: unset; max-width: 100%; }

  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
}

@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .auth-card { padding: 24px 16px; }
  .wallet-balance-amount { font-size: 26px; }
  .hero-btns .btn { font-size: 13px; padding: 11px 14px; }
  .hero-stat { padding: 0 10px; }
  .hero-stat-num { font-size: 20px; }
}

@media (min-width: 769px) {
  /* Desktop: show floating pill too */
  .bottom-nav { display: flex !important; }
  .bottom-nav-item { min-width: 80px; font-size: 11px; padding: 10px 18px; }
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .nav-overlay, .mobile-drawer { display: none !important; }
  .navbar-nav { display: flex; }
}

/* ================================================================
   ADMIN RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
  .sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(30,20,60,0.4); z-index: 90;
    backdrop-filter: blur(4px);
  }
  .admin-overlay.open { display: block; }
}
@media (max-width: 768px) {
  .admin-body { padding: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .stat-value { font-size: 20px; }
}

/* ================================================================
   UTILITY
   ================================================================ */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-light); }
.text-center  { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.divider { height: 1px; background: rgba(255,255,255,0.5); margin: 18px 0; }

/* ================================================================
   FONT AWESOME ICON STYLES
   ================================================================ */
i.fa-solid, i.fa-regular, i.fa-brands {
  line-height: 1; display: inline-flex;
  align-items: center; justify-content: center;
}
.lang-btn i { font-size: 14px; }
.mobile-menu-btn i { font-size: 20px; }
.search-box i { font-size: 13px; color: var(--text-light); }
.navbar-balance i { font-size: 13px; color: var(--gold); }
.dropdown-item i { font-size: 14px; width: 16px; color: var(--text-light); }
.dropdown-item:hover i { color: var(--gold); }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.nav-icon i { font-size: 15px; }
.bottom-nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; height: 22px;
}
.bottom-nav-icon i { font-size: 18px; }
.bottom-nav-icon-wrap i { font-size: 20px; color: #fff; }
.tab-icon { font-size: 12px; margin-right: 3px; }
.emoji-game {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.emoji-game i { font-size: 48px; color: rgba(120,100,200,0.35); }
@media (max-width: 768px) { .emoji-game i { font-size: 34px; } }
.hero-badge i { font-size: 12px; }
.hero-btns .btn i { font-size: 14px; }
.jackpot-label i { font-size: 16px; color: var(--gold-light); }
.promo-big-img i { font-size: 60px; color: rgba(255,255,255,0.7); }
.btn i { font-size: 13px; }
.input-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; }
.input-icon i { font-size: 14px; color: var(--text-light); }
.input-eye { display: inline-flex; align-items: center; justify-content: center; }
.input-eye i { font-size: 14px; cursor: pointer; }
.toast-icon i { font-size: 18px; }
.footer-links i { font-size: 14px; margin-right: 4px; }
.wallet-actions .btn i { font-size: 14px; margin-right: 2px; }
.badge i { font-size: 10px; }

/* ================================================================
   TAP HIGHLIGHT — remove on interactive elements
   ================================================================ */
.btn, .tab-btn, .bottom-nav-item, .game-card, .sidebar-link {
  -webkit-tap-highlight-color: transparent;
}
