/* =====================================================
   ACEWINCHIP — PREMIUM CASINO CSS
   ===================================================== */

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg-base:       #080B14;
  --bg-card:       #0D1225;
  --bg-card2:      #111829;
  --bg-nav:        rgba(8,11,20,0.95);
  --border:        rgba(255,255,255,0.06);
  --border-bright: rgba(255,255,255,0.12);
  --text-primary:  #F0F2FF;
  --text-secondary:#8B93B8;
  --text-muted:    #4A5270;
  --accent:        #E94560;
  --accent-light:  #FF6B8A;
  --accent-gold:   #F5A623;
  --accent-green:  #00C853;
  --accent-blue:   #4A90E2;
  --gradient-main: linear-gradient(135deg, #E94560 0%, #9B27AF 100%);
  --gradient-gold: linear-gradient(135deg, #F5A623 0%, #F0C040 100%);
  --gradient-blue: linear-gradient(135deg, #3A7BD5 0%, #00D2FF 100%);
  --glow-accent:   0 0 30px rgba(233,69,96,0.3);
  --glow-gold:     0 0 30px rgba(245,166,35,0.3);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── TYPOGRAPHY ─── */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { line-height: 1.65; }

.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 20px rgba(233,69,96,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(233,69,96,0.5); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-bright);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(233,69,96,0.08); }
.btn-glass {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.13); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 14px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ─── SECTION HEADERS ─── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title { margin-bottom: 12px; }
.section-subtitle { color: var(--text-secondary); font-size: 1rem; }

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 0 24px;
}
.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
}
.logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 50px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.wallet-pill.guest { background: rgba(255,255,255,0.05); border-color: var(--border); color: var(--text-secondary); }
.wallet-flash { animation: walletPulse 0.6s ease; }
@keyframes walletPulse {
  0%   { background: rgba(0,200,83,0.2); }
  100% { background: rgba(245,166,35,0.12); }
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-auth { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 24px 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #E94560, transparent);
  top: -200px; left: -200px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #9B27AF, transparent);
  bottom: -150px; right: -100px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #4A90E2, transparent);
  top: 40%; right: 30%;
  animation: orbFloat 6s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(20px, -30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
@media (min-width: 1024px) {
  .hero { padding: 120px 60px 80px; }
  .hero-content { margin: 0; text-align: left; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(233,69,96,0.12);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title { margin-bottom: 20px; letter-spacing: -1px; }
.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
@media (min-width: 1024px) { .hero-cta { justify-content: flex-start; } }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}
@media (min-width: 1024px) { .hero-stats { justify-content: flex-start; } }
.stat-item { text-align: center; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); }
.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-bright); }

/* Floating Visual Cards */
.hero-visual {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
@media (min-width: 1200px) { .hero-visual { display: block; } }
.floating-cards { position: relative; width: 280px; height: 320px; }
.fc {
  position: absolute;
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  animation: floatCard 4s ease-in-out infinite;
  white-space: nowrap;
}
.fc i { font-size: 1.2rem; color: var(--accent); }
.fc-1 { top: 0; left: 20px; animation-delay: 0s; }
.fc-2 { top: 80px; right: 0; animation-delay: 1s; }
.fc-3 { top: 170px; left: 0; animation-delay: 2s; }
.fc-4 { bottom: 0; right: 20px; animation-delay: 0.5s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* =====================================================
   CATEGORIES
   ===================================================== */
.categories-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 70px;
  z-index: 100;
  backdrop-filter: blur(20px);
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
  max-width: 1280px;
  margin: 0 auto;
}
.category-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.cat-tab:hover { border-color: var(--border-bright); color: var(--text-primary); }
.cat-tab.active {
  background: var(--gradient-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(233,69,96,0.4);
}

/* =====================================================
   GAMES GRID
   ===================================================== */
.games-section { padding: 80px 0; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
@media (min-width: 640px)  { .games-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.game-card-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.game-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.5;
  transition: var(--transition);
}

.game-card:hover .game-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, color-mix(in srgb, var(--game-color, var(--accent)) 30%, rgba(0,0,0,0.8)) 50%, rgba(0,0,0,0.2) 100%);
}

.game-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.game-hover-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px 16px;
  width: 100%;
  transform: translateY(20px);
  transition: var(--transition);
}

.game-card:hover .game-hover-info {
  transform: translateY(0);
}

.game-name {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.game-card:hover .game-name {
  opacity: 1;
  transform: translateY(0);
}

.game-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: var(--game-color, var(--accent));
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 15px color-mix(in srgb, var(--game-color, var(--accent)) 40%, transparent);
  transition: var(--transition);
  opacity: 0;
}

.game-card:hover .game-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--game-color, var(--accent));
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px color-mix(in srgb, var(--game-color, var(--accent)) 25%, transparent);
}

.game-glow {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 3px;
  background: var(--game-color, var(--accent));
  border-radius: 4px 4px 0 0;
  opacity: 0;
  transition: var(--transition);
  box-shadow: 0 -2px 10px var(--game-color, var(--accent));
  z-index: 3;
}
.game-card:hover .game-glow { opacity: 1; }

/* =====================================================
   PROMOTIONS
   ===================================================== */
.promotions-section { padding: 80px 0; background: var(--bg-card); border-top: 1px solid var(--border); }
.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.promo-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.promo-gold::before { background: var(--gradient-gold); }
.promo-blue::before { background: var(--gradient-blue); }
.promo-purple::before { background: var(--gradient-main); }

.promo-card:hover { transform: translateY(-4px); border-color: var(--border-bright); }
.promo-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.promo-gold .promo-icon  { background: rgba(245,166,35,0.12); color: var(--accent-gold); }
.promo-blue .promo-icon  { background: rgba(74,144,226,0.12); color: var(--accent-blue); }
.promo-purple .promo-icon{ background: rgba(233,69,96,0.12);  color: var(--accent); }

.promo-card h3 { margin-bottom: 8px; }
.promo-amount {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.promo-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }

/* =====================================================
   FEATURES
   ===================================================== */
.features-section { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}
.feature-item:hover { border-color: var(--border-bright); transform: translateY(-4px); }
.feature-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(233,69,96,0.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 auto 20px;
}
.feature-item h3 { font-size: 1rem; margin-bottom: 10px; }
.feature-item p  { color: var(--text-secondary); font-size: 0.88rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-links h4 { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links ul a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-bright); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-logo {
  width: 56px; height: 56px;
  background: var(--gradient-main);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin: 0 auto 16px;
}
.modal-header h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-header p { color: var(--text-secondary); font-size: 0.88rem; }
.modal-footer { text-align: center; margin-top: 20px; }
.modal-footer p { color: var(--text-secondary); font-size: 0.88rem; }
.modal-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ─── FORM ELEMENTS ─── */
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.optional { color: var(--text-muted); font-weight: 400; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > i:first-child {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.input-wrap input:focus { border-color: var(--accent); background: rgba(233,69,96,0.05); }
.input-wrap input::placeholder { color: var(--text-muted); }
.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.toggle-pw:hover { color: var(--text-secondary); }

.form-error {
  background: rgba(233,69,96,0.1);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: 8px;
  padding: 10px 14px;
  color: #FF6B8A;
  font-size: 0.84rem;
}

/* OTP */
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 56px; height: 56px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: var(--transition);
}
.otp-input:focus { border-color: var(--accent); background: rgba(233,69,96,0.05); }
.resend-otp {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  margin-top: 8px;
}
.resend-otp:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── BUTTON LOADING STATE ─── */
.btn-spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* =====================================================
   TOAST
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-card2);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--accent-green); }
.toast-success i { color: var(--accent-green); }
.toast-error { border-left: 3px solid var(--accent); }
.toast-error i { color: var(--accent); }

/* =====================================================
   ACCOUNT PAGE STYLES
   ===================================================== */
.account-page { padding-top: 90px; min-height: 100vh; }
.account-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin-bottom: 40px;
}
.account-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.account-avatar {
  width: 72px; height: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}
.account-info h2 { font-size: 1.4rem; margin-bottom: 4px; }
.account-info p  { color: var(--text-secondary); font-size: 0.9rem; }
.account-wallets {
  margin-left: auto;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.wallet-badge {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
}
.wallet-badge .wlbl  { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 4px; letter-spacing: 0.5px; text-transform: uppercase; }
.wallet-badge .wval { font-size: 1.1rem; font-weight: 700; color: var(--accent-gold); }

.account-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.acc-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.acc-tab:hover { color: var(--text-primary); }
.acc-tab.active { background: var(--bg-card); color: var(--text-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── History Table ─── */
.history-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  background: var(--bg-card2);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.history-table td {
  padding: 14px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: rgba(255,255,255,0.02); }
.amount-win  { color: var(--accent-green); font-weight: 600; }
.amount-loss { color: var(--accent);       font-weight: 600; }
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-win  { background: rgba(0,200,83,0.12); color: var(--accent-green); }
.badge-loss { background: rgba(233,69,96,0.12); color: var(--accent); }
.badge-pending { background: rgba(245,166,35,0.12); color: var(--accent-gold); }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; color: var(--border-bright); }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .account-profile { flex-direction: column; align-items: flex-start; }
  .account-wallets { margin-left: 0; }
  .modal { padding: 28px 20px; }
  .history-table th:nth-child(3),
  .history-table td:nth-child(3) { display: none; }
  
  /* Profile tab - stack vertically on mobile */
  .profile-grid { 
    grid-template-columns: 1fr !important; 
    max-width: 100% !important;
  }
}
@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .stat-value { font-size: 1.3rem; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-icon-wrap { width: 60px; height: 60px; }
  .game-emoji { font-size: 1.6rem; }
  .game-badge { top: 8px; right: 8px; padding: 3px 8px; font-size: 0.55rem; }
  .game-hover-info { padding: 12px 10px; }
  .game-name { font-size: 0.95rem; margin-bottom: 8px; }
  .game-play-btn { font-size: 0.75rem; padding: 6px 16px; }
}
