/* =============================================
   BetPro - Main Stylesheet
   ============================================= */

/* ----- Custom Properties ----- */
:root {
  --bg-primary: #f2f4f8;
  --bg-secondary: #ffffff;
  --bg-surface: #e8ecf1;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --accent: #F5CC2C;
  --accent-hover: #DAB420;
  --accent-light: rgba(245, 204, 44, 0.12);
  --accent-glow: rgba(245, 204, 44, 0.2);
  --accent-blue: #515cff;
  --accent-blue-hover: #3042DA;
  --accent-blue-light: rgba(81, 92, 255, 0.08);
  --text-primary: #1c1c1e;
  --text-secondary: #646566;
  --text-muted: #969799;
  --success: #18B660;
  --success-light: rgba(24, 182, 96, 0.1);
  --danger: #FB5B5B;
  --danger-light: rgba(251, 91, 91, 0.1);
  --warning: #eca712;
  --info: #515cff;
  --border: #e0e3e8;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(245, 204, 44, 0.15);
  --sidebar-width: 240px;
  --header-height: 64px;
  --bottom-nav-height: 60px;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ----- Global Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(245, 204, 44, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(245, 204, 44, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(81, 92, 255, 0.02) 0%, transparent 50%);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: none;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ----- App Layout ----- */
#app {
  display: grid;
  grid-template-areas: "header" "main";
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--header-height) 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* ----- Header ----- */
#mainHeader {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  gap: 8px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-btn {
  display: flex;
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius);
}

.menu-btn:hover {
  color: var(--text-primary);
  background: var(--accent-light);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-gold {
  color: var(--accent);
}

.header-center {
  flex: 1;
  max-width: 480px;
  margin: 0 24px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 8px 16px 8px 40px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: border-color var(--transition);
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(245, 204, 44, 0.1), rgba(245, 204, 44, 0.05));
  border: 1px solid rgba(245, 204, 44, 0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  transition: all var(--transition);
}

.wallet-display:hover {
  border-color: rgba(245, 204, 44, 0.4);
  box-shadow: var(--shadow-glow);
}

.wallet-display i {
  color: var(--accent);
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-card);
  border-radius: 50px;
  border: 1px solid var(--border);
}

.user-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-avatar span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* ----- Sidebar ----- */
#sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  z-index: 200;
}

#sidebar.open { display: block; }

.sidebar-nav {
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--accent-light);
}

.nav-item.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.nav-divider {
  margin: 8px 16px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.open { display: block; }

/* ----- Main Content ----- */
#mainContent {
  grid-area: main;
  padding: 16px;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  overflow-y: auto;
  min-height: calc(100vh - var(--header-height));
}

/* ----- Bottom Navigation ----- */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 100;
  justify-content: space-around;
  align-items: center;
  padding: 0 8px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.625rem;
  transition: color var(--transition);
  min-width: 56px;
}

.bottom-nav-item i {
  font-size: 1.25rem;
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item:hover {
  color: var(--text-secondary);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  border: 1px solid var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 204, 44, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  border-color: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(245, 204, 44, 0.35);
}

.btn-blue {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-hover));
  color: #fff;
  border: 1px solid var(--accent-blue);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(81, 92, 255, 0.2);
}

.btn-blue:hover {
  background: linear-gradient(135deg, var(--accent-blue-hover), var(--accent-blue));
  border-color: var(--accent-blue-hover);
  box-shadow: 0 4px 20px rgba(81, 92, 255, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  box-shadow: 0 0 16px rgba(245, 204, 44, 0.15);
}

.btn-outline-blue {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-outline-blue:hover {
  background: var(--accent-blue-light);
  box-shadow: 0 0 16px rgba(81, 92, 255, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
  border: 1px solid var(--danger);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: #fff;
  border: 1px solid var(--success);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
  opacity: 0.95;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--accent-light);
  color: var(--text-primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ----- Cards ----- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ----- Game Grid ----- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 4;
  pointer-events: none;
}

.game-card:hover::after {
  opacity: 1;
}

.game-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.game-card:hover .game-card-bg {
  transform: scale(1.08);
}

.game-card-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
  z-index: 1;
  transition: opacity 0.4s ease;
}

.game-card:hover .game-card-pattern {
  opacity: 0.7;
}

.game-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.game-card-svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-svg {
  transform: scale(1.12) rotate(-3deg);
}

/* Shimmer overlay on hover */
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 45%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.08) 55%, transparent 60%);
  background-size: 300% 100%;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.game-card:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.game-card-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.game-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.game-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.game-card p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.game-card .game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(245, 204, 44, 0.3);
}

.badge-hot, .badge-live, .badge-new {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
}

.badge-hot {
  background: linear-gradient(135deg, var(--danger), #ff2b2b);
  color: #fff;
  box-shadow: 0 2px 8px rgba(251, 91, 91, 0.3);
}

.badge-live {
  background: linear-gradient(135deg, var(--success), #0d9e4e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(24, 182, 96, 0.3);
}

.badge-new {
  background: linear-gradient(135deg, var(--accent-blue), #3042DA);
  color: #fff;
  box-shadow: 0 2px 8px rgba(81, 92, 255, 0.3);
}

/* ----- Hero Carousel — Premium ----- */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 0 60px rgba(245, 204, 44, 0.06);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  padding: 48px 56px;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Background image with noise overlay */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

/* Geometric pattern overlay */
.hero-slide-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 70%);
}

/* Animated floating orbs */
.hero-slide-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: heroOrbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(245, 204, 44, 0.15);
  top: -80px;
  right: -60px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(81, 92, 255, 0.12);
  bottom: -40px;
  right: 20%;
  animation-delay: -3s;
  animation-duration: 10s;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: rgba(245, 204, 44, 0.08);
  top: 40%;
  left: -40px;
  animation-delay: -5.5s;
  animation-duration: 7s;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(30px, 10px) scale(1.02); }
}

/* Content panel — glassmorphism, left-aligned */
.hero-slide-content {
  position: relative;
  z-index: 3;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 36px;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-slide.active .hero-slide-content {
  animation: heroContentIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge chip */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(245, 204, 44, 0.12);
  border: 1px solid rgba(245, 204, 44, 0.2);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}

/* Gold accent line */
.hero-accent-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(245, 204, 44, 0.2));
  border-radius: 2px;
  margin-bottom: 16px;
}

.hero-slide h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-slide p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  line-height: 1.5;
  max-width: 380px;
}

/* Premium CTA button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #e6b800);
  color: #0a0a1a;
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(245, 204, 44, 0.3);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 204, 44, 0.45);
  background: linear-gradient(135deg, #f5d630, var(--accent));
}

.btn-hero:active {
  transform: translateY(0) scale(0.98);
}

.btn-hero i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.btn-hero:hover i {
  transform: translateX(4px);
}

/* Dots navigation */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 56px;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  padding: 0;
  position: relative;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  width: 32px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(245, 204, 44, 0.4);
}

/* ----- Sections ----- */
.section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

/* ----- Stats Row ----- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  letter-spacing: -0.5px;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ----- Quick Actions ----- */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 100px;
}

.quick-action i {
  font-size: 1.5rem;
  transition: transform var(--transition);
}

.quick-action:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.quick-action:hover i {
  transform: scale(1.15);
}

.quick-action:active {
  transform: translateY(-1px);
}

/* ----- Forms ----- */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

.form-input:hover {
  border-color: rgba(245, 166, 35, 0.3);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a0a0b0' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select:focus {
  border-color: var(--accent);
}

.form-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color var(--transition);
}

.form-textarea:focus {
  border-color: var(--accent);
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ----- Tables ----- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.table th {
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background var(--transition);
}

.table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* ----- Modal ----- */
#modalContainer { display: none; }
#modalContainer.open { display: block; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.modal-close {
  font-size: 1.5rem;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ----- Toast ----- */
#toastContainer {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease forwards;
}

.toast.toast-out {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast i {
  font-size: 1.1rem;
}

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-warning i { color: var(--warning); }
.toast-info i { color: var(--info); }

.toast-message {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.toast-close {
  color: var(--text-muted);
  padding: 2px;
  font-size: 1rem;
  line-height: 1;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ----- Bet Slip ----- */
.bet-slip {
  position: fixed;
  top: var(--header-height);
  right: -380px;
  width: 360px;
  height: calc(100vh - var(--header-height));
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transition: right var(--transition);
  box-shadow: var(--shadow-lg);
}

.bet-slip.open {
  right: 0;
}

.bet-slip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.bet-slip-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.bet-slip-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.bet-slip-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.bet-slip-empty i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--border);
}

.bet-slip-empty p {
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.bet-slip-empty span {
  font-size: 0.8rem;
}

.bet-slip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all var(--transition);
}

.bet-slip-item:hover {
  border-color: rgba(245, 166, 35, 0.2);
}

.bet-slip-item-info {
  flex: 1;
  min-width: 0;
}

.bet-slip-item-info .event-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bet-slip-item-info .selection-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.bet-slip-item-odds {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

.bet-slip-item-remove {
  color: var(--text-muted);
  padding: 4px;
}

.bet-slip-item-remove:hover {
  color: var(--danger);
}

.bet-slip-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.bet-slip-summary {
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-row .form-input {
  width: 100px;
  height: 36px;
  text-align: right;
  font-size: 0.875rem;
}

.total-row {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.total-row span:last-child {
  color: var(--accent);
}

/* ----- Tabs ----- */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab:hover {
  color: var(--text-secondary);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition);
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn.active {
  background: var(--accent);
  color: #1c1c1e;
  border-color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ----- Number Grid (Lottery) ----- */
.number-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.number-cell {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.number-cell:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: scale(1.1);
}

.number-cell.selected {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(245, 166, 35, 0.3);
  transform: scale(1.05);
}

/* ----- Match Cards (Sports) ----- */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.match-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}

.team-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}

.match-vs {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.match-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.odds-btn {
  padding: 12px 10px;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.odds-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.odds-btn:active {
  transform: translateY(0);
}

.odds-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 1px var(--accent);
}

.odds-btn .odds-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.odds-btn .odds-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
}

/* ----- Slot Machine ----- */
.slot-machine {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.slot-reel {
  width: 80px;
  height: 100px;
  background: var(--bg-primary);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.slot-reel.spinning {
  animation: slotSpin 0.1s linear infinite;
}

@keyframes slotSpin {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.slot-spin-btn {
  font-size: 1.2rem;
  padding: 16px 48px;
}

/* ----- Casino Cards ----- */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.casino-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 0;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  overflow: hidden;
}

.casino-card-img {
  height: 100px;
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.casino-card-svg {
  width: 60px; height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.casino-card:hover .casino-card-img {
  opacity: 0.6;
}

.casino-card-body {
  padding: 0 16px 20px;
  position: relative;
}

.casino-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: var(--shadow-lg);
}

.casino-card .game-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.casino-card .game-provider {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.casino-card .game-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  background: var(--success);
  color: #fff;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

/* ----- Virtual Sports Cards ----- */
.virtual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.virtual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.virtual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.3);
  box-shadow: var(--shadow-lg);
}

.virtual-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.virtual-card-body {
  padding: 16px;
}

.virtual-card-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.virtual-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ----- Page Headers ----- */
.page-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.page-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----- Section Dividers ----- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 24px 0;
  border: none;
}

/* ----- 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);
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ----- 404 Page ----- */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(245, 204, 44, 0.2);
}

.page-404 h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.page-404 p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ----- Loading Spinner ----- */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ----- Skeleton Shimmer ----- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-card) 25%,
    var(--bg-surface) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-card {
  height: 180px;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ----- Utility Classes ----- */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }

.w-full {
  width: 100%;
}

/* ----- Page Transitions ----- */
#pageContent {
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ----- Status Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* ----- Featured Content ----- */
.featured-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.featured-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.3));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.featured-overlay h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.featured-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 400px;
}

/* ----- Live Indicator ----- */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(239, 68, 68, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ----- Wallet / Deposit Styles ----- */
.wallet-balance-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  margin-bottom: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c1c1e 0%, #2a2a2e 50%, #1c1c1e 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.wallet-balance-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,204,44,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.wallet-balance-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), transparent);
}
.wallet-balance-content {
  position: relative;
  z-index: 1;
}
.wallet-balance-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.wallet-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.wallet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(245,204,44,0.3);
}
.wallet-user-details {
  display: flex;
  flex-direction: column;
}
.wallet-greeting {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.wallet-username {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.wallet-balance-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.wallet-balance-footer {
  display: flex;
  gap: 32px;
}
.wallet-balance-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wbs-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wbs-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.wbs-active {
  color: var(--accent);
}

/* Deposit Card */
.deposit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.deposit-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.deposit-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.deposit-card-header h2 i {
  color: var(--accent);
}
.deposit-badge {
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--accent);
  color: #1c1c1e;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline Layout */
.deposit-timeline {
  padding: 8px 24px 24px;
}
.deposit-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.deposit-step-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}
.deposit-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(245,204,44,0.3);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.deposit-step-line {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  margin: 4px 0;
}
.deposit-step:last-child .deposit-step-line {
  display: none;
}
.deposit-step-body {
  flex: 1;
  padding-top: 6px;
}
.deposit-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.deposit-step-content {
  padding-left: 0;
}

/* Amount Input */
.amount-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 240px;
  margin-bottom: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
  background: var(--bg-primary);
}
.amount-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,204,44,0.1);
}
.amount-currency {
  padding: 10px 0 10px 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg-primary);
}
.amount-input {
  flex: 1;
  padding: 10px 16px 10px 8px;
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--text-primary);
  min-width: 0;
}
.amount-input::-webkit-inner-spin-button {
  opacity: 0.5;
}

/* Quick Amounts */
.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-amount {
  padding: 8px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-amount:hover {
  border-color: var(--accent);
  background: rgba(245, 204, 44, 0.08);
  transform: translateY(-1px);
}
.quick-amount.active {
  border-color: var(--accent);
  background: rgba(245, 204, 44, 0.15);
  color: #1c1c1e;
  box-shadow: 0 2px 8px rgba(245,204,44,0.2);
}

/* QR Panel */
.qr-panel {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.qr-panel-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qr-frame {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: relative;
}
.qr-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover), var(--accent));
  opacity: 0.3;
  z-index: -1;
}
.qr-frame-inner {
  border-radius: 8px;
  overflow: hidden;
}
.qr-frame-inner img {
  width: 170px;
  height: 170px;
  display: block;
}
.qr-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upi-display-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  text-align: center;
}
.upi-display-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}
.upi-display-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.upi-copy-btn {
  background: rgba(245,204,44,0.15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
}
.upi-copy-btn:hover {
  background: var(--accent);
  color: #1c1c1e;
}
.upi-trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(24, 182, 96, 0.08);
  border: 1px solid rgba(24, 182, 96, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

/* QR Instructions */
.qr-panel-instructions {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.qr-instr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.qr-instr-item i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* UTR Input */
.utr-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 380px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
  background: var(--bg-primary);
  margin-bottom: 8px;
}
.utr-input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,204,44,0.1);
}
.utr-icon {
  padding: 12px 0 12px 16px;
  color: var(--text-muted);
  font-size: 1rem;
  flex-shrink: 0;
}
.utr-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  min-width: 0;
}
.utr-input::placeholder {
  color: var(--text-muted);
}
.utr-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 2px;
}

/* Confirm Button */
.confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(245,204,44,0.25);
}
.confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,204,44,0.35);
}
.confirm-btn:active {
  transform: translateY(0);
}

/* ----- Wallet Tabs ----- */
.wallet-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wallet-tab {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wallet-tab:not(:last-child) {
  border-right: 1px solid var(--border);
}

.wallet-tab:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.wallet-tab.active {
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.wallet-tab i {
  font-size: 1rem;
}

/* Withdraw hint */
.wit-step-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.wit-max {
  background: var(--accent-light) !important;
  color: var(--accent) !important;
  font-weight: 700;
}

/* Transaction header actions */
.txn-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Wallet Danger Zone */
.wallet-danger-zone {
  margin-top: 12px;
  padding: 10px 0;
  display: flex;
  justify-content: flex-end;
  border-top: 1px dashed var(--border);
}

/* Transaction Card */
.txn-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.txn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.txn-card-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.txn-card-header h2 i {
  color: var(--accent);
}
.txn-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.txn-card-body {
  padding: 8px 0;
}

/* Transaction List */
.txn-list {
  display: flex;
  flex-direction: column;
}
.txn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  transition: background 0.15s;
}
.txn-item:hover {
  background: var(--bg-card-hover);
}
.txn-item + .txn-item {
  border-top: 1px solid var(--border);
}
.txn-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.txn-icon-credit {
  background: rgba(24, 182, 96, 0.1);
  color: var(--success);
}
.txn-icon-debit {
  background: rgba(251, 91, 91, 0.1);
  color: var(--danger);
}
.txn-item-info {
  flex: 1;
  min-width: 0;
}
.txn-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.txn-item-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.txn-item-right {
  text-align: right;
  flex-shrink: 0;
}
.txn-item-amount {
  font-weight: 700;
  font-size: 0.95rem;
}
.txn-item-status {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 50px;
  display: inline-block;
}
.txn-status-success {
  color: var(--success);
  background: rgba(24, 182, 96, 0.1);
}
.txn-status-pending {
  color: var(--warning);
  background: rgba(236, 167, 18, 0.1);
}
.txn-empty {
  text-align: center;
  padding: 40px 24px;
}
.txn-empty i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  opacity: 0.5;
}
.txn-empty p {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.txn-empty span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =============================================
   Games Lobby
   ============================================= */
.game-search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 12px;
}
.game-search-bar i { color: var(--text-muted); font-size: 0.9rem; }
.game-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 0.9rem;
}
.game-search-input::placeholder { color: var(--text-muted); }
.game-search-clear {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; font-size: 0.85rem;
}
.game-search-clear:hover { color: var(--text-primary); }
.search-highlight {
  background: rgba(245,166,35,0.3); color: var(--accent);
  padding: 1px 3px; border-radius: 3px;
}
.game-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.game-cat-tab {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-cat-tab:hover { border-color: var(--accent); color: var(--text-primary); }
.game-cat-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent; color: #1c1c1e;
  box-shadow: 0 2px 12px rgba(245,204,44,0.3);
}
.games-grid-full { display: flex; flex-direction: column; gap: 10px; }
.game-card-wide {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.game-card-wide::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  opacity: 0; transition: opacity 0.3s ease;
}
.game-card-wide:hover::after { opacity: 1; }
.game-card-wide:hover {
  transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: rgba(245,204,44,0.3);
}
.game-card-wide-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; position: relative; overflow: hidden;
}
.game-wide-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.game-card-wide-icon i { position: relative; z-index: 1; }
.game-card-wide-body { flex: 1; min-width: 0; }
.game-card-wide-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.game-card-wide-top h3 { font-size: 0.95rem; font-weight: 700; }
.game-card-wide-body p { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.game-card-wide-players { font-size: 0.72rem; color: var(--text-muted); }
.game-card-wide-players i { margin-right: 3px; }
.game-card-wide-arrow { color: var(--text-muted); font-size: 0.85rem; }

/* =============================================
   4D Lottery
   ============================================= */
.game-4d-layout { max-width: 480px; margin: 0 auto; }
.game-4d-info { display: flex; gap: 12px; margin-bottom: 16px; }
.game-4d-timer, .game-4d-prize {
  flex: 1; padding: 16px; border-radius: var(--radius-lg); text-align: center;
}
.game-4d-timer { background: linear-gradient(135deg, #1c1c1e, #2a2a2e); color: #fff; }
.game-4d-prize { background: linear-gradient(135deg, var(--accent), var(--accent-hover)); color: #1c1c1e; }
.g4d-timer-label, .g4d-prize-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }
.g4d-timer-value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.g4d-prize-value { font-size: 1.3rem; font-weight: 800; }
.game-4d-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 16px; text-align: center; }
.game-4d-card h3 { font-size: 1rem; margin-bottom: 16px; }
.g4d-display { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.g4d-slot {
  width: 54px; height: 64px; border: 2px dashed var(--border); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  font-weight: 800; color: var(--text-muted); transition: all 0.25s; background: var(--bg-primary);
}
.g4d-slot-filled { border-style: solid; border-color: var(--accent); color: var(--text-primary); background: rgba(245,204,44,0.08); transform: scale(1.05); }
.g4d-complete .g4d-slot-filled { border-color: var(--success); box-shadow: 0 0 12px rgba(24,182,96,0.2); }
.g4d-numpad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 300px; margin: 0 auto 16px; }
.g4d-num-btn {
  padding: 12px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--bg-card); font-size: 1.2rem; font-weight: 700;
  color: var(--text-primary); cursor: pointer; transition: all 0.15s;
}
.g4d-num-btn:hover { border-color: var(--accent); background: rgba(245,204,44,0.08); }
.g4d-num-btn:active { transform: scale(0.95); }
.g4d-actions { display: flex; gap: 12px; justify-content: center; }
.game-4d-bet { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.game-4d-results { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; }
.game-4d-results h3 { font-size: 0.95rem; margin-bottom: 12px; }
.g4d-result-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.g4d-result-item:last-child { border-bottom: none; }
.g4d-result-draw { font-weight: 600; }
.g4d-result-digits { font-weight: 700; letter-spacing: 2px; }
.g4d-result-prize { color: var(--accent); font-weight: 700; }

/* =============================================
   K3 Dice
   ============================================= */
.k3-layout { max-width: 480px; margin: 0 auto; }
.k3-dice-area { text-align: center; margin-bottom: 20px; padding: 28px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.k3-dice-container { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; }
.k3-dice { width: 72px; height: 72px; background: #fff; border: 2px solid var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.k3-dice.k3-rolling { animation: k3Shake 0.15s infinite; }
@keyframes k3Shake { 0% { transform: rotate(0deg); } 25% { transform: rotate(10deg); } 50% { transform: rotate(0deg); } 75% { transform: rotate(-10deg); } 100% { transform: rotate(0deg); } }
.k3-dice-face { font-size: 1.6rem; line-height: 1.2; color: #1c1c1e; letter-spacing: 2px; }
.k3-sum { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.k3-betting { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; margin-bottom: 16px; }
.k3-betting h3 { font-size: 1rem; margin-bottom: 14px; }
.k3-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.k3-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; text-align: center; }
.k3-option:hover { border-color: var(--accent); }
.k3-option.active { border-color: var(--accent); background: rgba(245,204,44,0.1); }
.k3-option input { display: none; }
.k3-opt-label { font-weight: 700; font-size: 0.9rem; }
.k3-opt-desc { font-size: 0.75rem; color: var(--text-secondary); }
.k3-opt-pay { font-size: 0.75rem; color: var(--accent); font-weight: 700; }
.k3-result { margin-bottom: 16px; }
.k3-result-inner { padding: 16px; border-radius: var(--radius-lg); text-align: center; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.k3-result-win { background: rgba(24,182,96,0.1); color: var(--success); border: 1px solid rgba(24,182,96,0.2); }
.k3-result-lose { background: rgba(251,91,91,0.1); color: var(--danger); border: 1px solid rgba(251,91,91,0.2); }

/* =============================================
   Dragon Tiger
   ============================================= */
.dt-layout { max-width: 520px; margin: 0 auto; }
.dt-table { background: radial-gradient(ellipse at center, #1a5c2a 0%, #0d2818 100%); border-radius: var(--radius-xl); padding: 32px 20px; margin-bottom: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.dt-card-area { display: flex; align-items: center; justify-content: center; gap: 16px; }
.dt-side { text-align: center; flex: 1; }
.dt-side-label { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dt-vs { font-size: 1.2rem; font-weight: 800; color: rgba(255,255,255,0.3); writing-mode: vertical-lr; letter-spacing: 4px; }
.dt-card { width: 80px; height: 112px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 4px 16px rgba(0,0,0,0.3); transition: transform 0.3s; }
.dt-card-revealed { transform: translateY(-4px); }
.dt-card-inner { text-align: center; }
.dt-card-value { font-size: 1.6rem; font-weight: 800; display: block; }
.dt-card-suit { font-size: 1.2rem; }
.dt-result { margin-top: 16px; }
.dt-result-inner { padding: 12px 16px; border-radius: var(--radius-lg); text-align: center; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dt-result-win { background: rgba(24,182,96,0.2); color: #18B660; }
.dt-result-lose { background: rgba(251,91,91,0.2); color: #FB5B5B; }
.dt-betting { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; }
.dt-betting h3 { font-size: 1rem; margin-bottom: 14px; }
.dt-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dt-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; text-align: center; }
.dt-option:hover { border-color: var(--accent); }
.dt-option.active { border-color: var(--accent); background: rgba(245,204,44,0.1); }
.dt-option input { display: none; }
.dt-opt-label { font-weight: 700; font-size: 0.9rem; }
.dt-opt-pay { font-size: 0.75rem; color: var(--accent); font-weight: 700; }

/* =============================================
   Andar Bahar
   ============================================= */
.ab-layout { max-width: 520px; margin: 0 auto; }
.ab-table { background: radial-gradient(ellipse at center, #1a3a5c 0%, #0d1a28 100%); border-radius: var(--radius-xl); padding: 28px 20px; margin-bottom: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.ab-center-card { width: 72px; height: 100px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.ab-center-inner { text-align: center; }
.ab-center-value { font-size: 1.5rem; font-weight: 800; display: block; }
.ab-center-suit { font-size: 1rem; }
.ab-sides { display: flex; gap: 16px; }
.ab-side { flex: 1; text-align: center; padding: 16px 12px; background: rgba(255,255,255,0.05); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); min-height: 120px; }
.ab-side-label { font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.ab-pile { font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-bottom: 10px; }
.ab-pile-count { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.ab-card-stack { display: flex; justify-content: center; min-height: 30px; }
.ab-mini-card { width: 24px; height: 34px; background: linear-gradient(135deg, #fff, #e8e8e8); border-radius: 4px; border: 1px solid #ccc; margin-left: -10px; }
.ab-mini-card:first-child { margin-left: 0; }
.ab-result { margin-bottom: 8px; }
.ab-result-inner { padding: 12px 16px; border-radius: var(--radius-lg); text-align: center; font-weight: 700; font-size: 1rem; }
.ab-result-win { background: rgba(24,182,96,0.2); color: #18B660; }
.ab-result-lose { background: rgba(251,91,91,0.2); color: #FB5B5B; }
.ab-betting { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px 24px; }
.ab-betting h3 { font-size: 1rem; margin-bottom: 14px; }
.ab-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.ab-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px; border: 2px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.2s; text-align: center; }
.ab-option:hover { border-color: var(--accent); }
.ab-option.active { border-color: var(--accent); background: rgba(245,204,44,0.1); }
.ab-option input { display: none; }
.ab-opt-label { font-weight: 700; font-size: 0.9rem; }
.ab-opt-pay { font-size: 0.75rem; color: var(--accent); font-weight: 700; }

/* =============================================
   Aviator Crash Game
   ============================================= */
.av-layout { max-width: 520px; margin: 0 auto; }
.av-history {
  display: flex; gap: 6px; padding: 10px 8px; overflow-x: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 12px;
  scrollbar-width: none;
}
.av-history::-webkit-scrollbar { display: none; }
.av-hist-item {
  flex-shrink: 0; padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}
.av-hist-low { background: rgba(251,91,91,0.15); color: #FB5B5B; }
.av-hist-mid { background: rgba(245,166,35,0.15); color: #f5a623; }
.av-hist-big { background: rgba(24,182,96,0.15); color: #18B660; }
.av-graph-wrap {
  position: relative; background: #0f1923; border-radius: var(--radius-xl);
  overflow: hidden; height: 400px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
#avCanvas { display: block; width: 100%; height: 100%; }
.av-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: none;
}
.av-multiplier {
  font-size: 3.5rem; font-weight: 900; color: #fff;
  text-shadow: 0 0 30px rgba(24,182,96,0.5);
  font-variant-numeric: tabular-nums;
}
.av-status {
  font-size: 1rem; color: rgba(255,255,255,0.5); margin-top: 8px;
}
.av-controls {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.av-bet-row { display: flex; gap: 12px; margin-bottom: 14px; }
.av-bet-group { flex: 1; }
.av-bet-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.av-bet-group .form-input { width: 100%; }

/* =============================================
   Mines
   ============================================= */
.mines-layout { max-width: 440px; margin: 0 auto; }
.mines-top {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.mines-stat {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 12px; text-align: center;
}
.mines-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.mines-stat-val { font-size: 1.2rem; font-weight: 800; }
.mines-mult { color: var(--accent); }
.mines-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.mines-tile {
  aspect-ratio: 1; perspective: 600px; cursor: pointer;
}
.mines-tile-inner {
  width: 100%; height: 100%; background: var(--bg-card);
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: all 0.3s;
}
.mines-tile:hover .mines-tile-inner { border-color: var(--accent); transform: translateY(-2px); }
.mines-tile.revealed .mines-tile-inner,
.mines-tile.mines-revealed .mines-tile-inner { background: rgba(24,182,96,0.15); border-color: #18B660; transform: rotateY(180deg); }
.mines-tile.mines-hit .mines-tile-inner { background: rgba(251,91,91,0.2); border-color: #FB5B5B; transform: rotateY(180deg); }
.mines-tile-icon { pointer-events: none; }
.mines-controls {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.mines-bet-row { display: flex; gap: 12px; margin-bottom: 14px; }
.mines-bet-group { flex: 1; }
.mines-bet-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.mines-bet-group .form-input { width: 100%; }

/* =============================================
   Plinko
   ============================================= */
.plinko-layout { max-width: 460px; margin: 0 auto; }
.plinko-board {
  background: #0f1923; border-radius: var(--radius-xl);
  margin-bottom: 12px; overflow: hidden; border: 1px solid var(--border);
}
.plinko-board canvas { display: block; width: 100%; }
.plinko-controls {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px; margin-bottom: 12px;
}
.plinko-row { display: flex; gap: 12px; margin-bottom: 14px; }
.plinko-group { flex: 1; }
.plinko-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.plinko-group .form-input { width: 100%; }
.plinko-slots { display: none; }

/* =============================================
   Roulette
   ============================================= */
.roulette-layout { max-width: 500px; margin: 0 auto; }
.roulette-result-box {
  text-align: center; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-xl); margin-bottom: 12px;
}
.roulette-wheel-cont { display: flex; justify-content: center; margin-bottom: 12px; }
.roulette-wheel {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(#FB5B5B 0deg, #1c1c1e 9.73deg, #FB5B5B 19.46deg, #1c1c1e 29.19deg, #FB5B5B 38.92deg, #1c1c1e 48.65deg, #FB5B5B 58.38deg, #1c1c1e 68.11deg, #FB5B5B 77.84deg, #1c1c1e 87.57deg, #FB5B5B 97.3deg, #1c1c1e 107.03deg, #FB5B5B 116.76deg, #1c1c1e 126.49deg, #FB5B5B 136.22deg, #1c1c1e 145.95deg, #FB5B5B 155.68deg, #1c1c1e 165.41deg, #18B660 175.14deg, #1c1c1e 184.87deg, #FB5B5B 194.6deg, #1c1c1e 204.33deg, #FB5B5B 214.06deg, #1c1c1e 223.79deg, #FB5B5B 233.52deg, #1c1c1e 243.25deg, #FB5B5B 252.98deg, #1c1c1e 262.71deg, #FB5B5B 272.44deg, #1c1c1e 282.17deg, #FB5B5B 291.9deg, #1c1c1e 301.63deg, #FB5B5B 311.36deg, #1c1c1e 321.09deg, #FB5B5B 330.82deg, #1c1c1e 340.55deg, #FB5B5B 350.28deg);
  border: 3px solid var(--accent); position: relative; display: flex;
  align-items: center; justify-content: center; transition: transform 3s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}
.roulette-ball { display: none; }
.roulette-wheel-center {
  width: 40px; height: 40px; border-radius: 50%; background: #1a1a2e;
  border: 2px solid var(--accent); z-index: 2;
}
.roulette-number {
  position: absolute; width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #fff; z-index: 3;
  background: var(--bg-surface); box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.roulette-result-label { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }
.roulette-board {
  display: flex; gap: 2px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; margin-bottom: 12px; overflow-x: auto;
}
.roulette-zero {
  width: 44px; height: 44px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-weight: 800;
  color: #fff; font-size: 0.9rem; flex-shrink: 0;
}
.roulette-numbers { display: flex; gap: 2px; flex-wrap: wrap; }
.roulette-num {
  width: 44px; height: 44px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-weight: 700;
  color: #fff; font-size: 0.78rem;
}
.roulette-controls {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.roulette-bet-row { display: flex; gap: 12px; margin-bottom: 12px; }
.roulette-bet-types { display: flex; gap: 6px; flex-wrap: wrap; }
.roulette-bet-type {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-primary); color: var(--text-primary); cursor: pointer;
  font-size: 0.8rem; font-weight: 600; transition: all 0.2s;
}
.roulette-bet-type:hover { border-color: var(--accent); }
.roulette-bet-type.active { background: var(--accent); color: #1c1c1e; border-color: var(--accent); }

/* =============================================
   Wheel of Fortune
   ============================================= */
.wheel-layout { max-width: 440px; margin: 0 auto; }
.wheel-container {
  position: relative; display: flex; justify-content: center;
  margin-bottom: 16px; padding-top: 10px;
}
.wheel-pointer {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 10; font-size: 2rem; color: var(--accent);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
#wheelCanvas { max-width: 100%; height: auto; }
.wheel-controls {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 20px;
}
.wheel-bet-row { display: flex; gap: 12px; margin-bottom: 14px; }
.wheel-segments { display: flex; gap: 4px; justify-content: center; }
.wheel-seg-item {
  padding: 4px 10px; border-radius: 6px; color: #fff;
  font-size: 0.75rem; font-weight: 700;
}

/* =============================================
   WinGo Color Prediction
   ============================================= */
/* =============================================
   WinGo — Premium SportyBet-style UI
   ============================================= */

/* Header */
.wingo-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; margin-bottom: 16px;
}
.wingo-header-left { display: flex; align-items: center; gap: 12px; }
.wingo-logo-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, #f5cc2c, #d97706);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #1a1a2e; box-shadow: 0 4px 12px rgba(245,204,44,0.3);
}
.wingo-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; margin: 0; }
.wingo-subtitle { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.wingo-period-badge {
  padding: 6px 14px; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
  background: #1a1a2e; color: #f5cc2c; letter-spacing: 0.3px;
  font-family: 'Courier New', monospace;
}

/* Dark game area */
.wingo-game-area {
  max-width: 480px; margin: 0 auto;
}

/* Round panel - timer + result */
.wingo-round-panel {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px; padding: 28px 24px; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 28px;
  position: relative; overflow: hidden;
}
.wingo-round-panel::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(245,204,44,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* SVG Ring Timer */
.wingo-timer-wrap {
  position: relative; width: 100px; height: 100px; flex-shrink: 0;
}
.wingo-timer-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.wingo-timer-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.wingo-timer-progress { fill: none; stroke: #22c55e; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.3s linear, stroke 0.3s ease; }
.wingo-timer-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.wingo-timer-label { font-size: 0.5rem; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.wingo-timer-value { font-size: 1.2rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; line-height: 1; }

/* Result area */
.wingo-result-area { flex: 1; text-align: center; }
.wingo-result-card {
  position: relative; display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1);
  transition: all 0.4s ease; margin-bottom: 6px;
}
.wingo-result-number {
  font-size: 2.2rem; font-weight: 900; color: rgba(255,255,255,0.3);
  line-height: 1; transition: all 0.4s ease;
}
.wingo-result-multiplier {
  font-size: 0.65rem; font-weight: 700; line-height: 1;
  position: absolute; bottom: -18px;
}
.wingo-result-status {
  font-size: 0.78rem; font-weight: 500; min-height: 20px;
}
.wingo-result-won { color: #22c55e; }
.wingo-result-lost { color: rgba(255,255,255,0.5); }
.wingo-result-won i { margin-right: 4px; }

/* Pulse animation for result */
.wingo-pulse { animation: wingoPulse 0.6s ease; }
@keyframes wingoPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Spark particles */
.wingo-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  pointer-events: none; animation: wingoSpark 0.7s ease-out forwards; z-index: 10;
}
@keyframes wingoSpark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* Reference Panel */
.wingo-ref-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 16px;
}
.wingo-ref-title {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.wingo-ref-title i { margin-right: 6px; }
.wingo-ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wingo-ref-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; background: var(--bg-primary); }
.wingo-ref-num { font-size: 1rem; font-weight: 800; }
.wingo-ref-name { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); }

/* Bet panel */
.wingo-bet-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; margin-bottom: 16px;
}
.wingo-bet-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.wingo-bet-title { font-size: 0.9rem; font-weight: 700; }
.wingo-bet-title i { margin-right: 6px; color: var(--accent); }
.wingo-bet-tabs { display: flex; gap: 6px; }
.wingo-tab {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 50px;
  background: var(--bg-primary); font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: all 0.25s ease;
}
.wingo-tab:hover { border-color: var(--accent); }
.wingo-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-color: transparent; color: #1c1c1e; box-shadow: 0 2px 10px rgba(245,204,44,0.3);
}

/* Color options */
.wingo-options-wrap { margin-bottom: 16px; }
.wingo-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wingo-color-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 8px; border-radius: 16px;
  background: var(--bg-primary); border: 2px solid var(--border);
  cursor: pointer; transition: all 0.3s ease; text-align: center;
}
.wingo-color-card:hover { transform: translateY(-2px); border-color: rgba(245,204,44,0.3); }
.wingo-color-card.active { border-color: var(--accent); background: rgba(245,204,44,0.06); box-shadow: 0 0 16px rgba(245,204,44,0.1); transform: translateY(-2px); }
.wingo-color-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.wingo-color-card.active .wingo-color-circle { transform: scale(1.15); }
.wingo-color-name { font-weight: 700; font-size: 0.85rem; }
.wingo-color-nums { font-size: 0.68rem; color: var(--text-muted); }
.wingo-color-pay { font-size: 0.75rem; font-weight: 800; color: var(--accent); background: rgba(245,204,44,0.1); padding: 2px 12px; border-radius: 50px; }

/* Number options */
.wingo-num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.wingo-num-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px; border: 2px solid var(--border); border-radius: 14px;
  cursor: pointer; transition: all 0.25s ease; text-align: center;
}
.wingo-num-card:hover { border-color: rgba(245,204,44,0.3); transform: translateY(-2px); }
.wingo-num-card.active { border-color: var(--accent); background: rgba(245,204,44,0.06); box-shadow: 0 0 12px rgba(245,204,44,0.1); }
.wingo-num-circle {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; transition: transform 0.25s ease;
}
.wingo-num-card.active .wingo-num-circle { transform: scale(1.1); }
.wingo-num-pay { font-size: 0.68rem; font-weight: 700; color: var(--accent); }

/* Stake section */
.wingo-stake-section { }
.wingo-stake-label { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.wingo-stake-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.wingo-stake-input-wrap {
  position: relative; flex: 0 0 120px;
}
.wingo-stake-currency {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--text-muted); font-size: 0.9rem; pointer-events: none;
}
.wingo-stake-input {
  width: 100%; height: 44px; padding: 8px 12px 8px 28px;
  background: var(--bg-primary); border: 2px solid var(--border);
  border-radius: 12px; color: var(--text-primary); font-size: 1rem;
  font-weight: 700; text-align: center; transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.wingo-stake-input:focus { border-color: var(--accent); }
.wingo-stake-input::-webkit-inner-spin-button, .wingo-stake-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.wingo-quick-chips { display: flex; gap: 6px; flex: 1; }
.wingo-chip {
  flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-primary); color: var(--text-secondary); font-size: 0.8rem;
  font-weight: 700; cursor: pointer; transition: all 0.2s ease; text-align: center;
}
.wingo-chip:hover { border-color: var(--accent); color: var(--accent); }
.wingo-chip.active { background: var(--accent); border-color: var(--accent); color: #1c1c1e; }

.wingo-place-btn {
  width: 100%; height: 50px; border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #1c1c1e; font-size: 1rem; font-weight: 800; cursor: pointer;
  transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(245,204,44,0.3);
}
.wingo-place-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,204,44,0.4); }
.wingo-place-btn:active { transform: translateY(0); }

/* History panel */
.wingo-history-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px; margin-bottom: 16px;
}
.wingo-history-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
}
.wingo-history-header i { margin-right: 4px; }
.wingo-history-count {
  background: var(--bg-primary); padding: 2px 10px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; color: var(--text-muted);
}
.wingo-history-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.wingo-hist-item {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.7rem; font-weight: 700; color: #fff; opacity: 0.85;
  transition: transform 0.2s;
}
.wingo-hist-item:hover { transform: scale(1.15); opacity: 1; }

/* =============================================
   Desktop Layout (min 992px)
   ============================================= */
@media (min-width: 992px) {
  #app {
    grid-template-areas: "sidebar header" "sidebar main";
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--header-height) 1fr;
  }
  #sidebar {
    display: block;
    position: sticky;
    left: auto;
    width: auto;
    transition: none;
    grid-area: sidebar;
  }
  #sidebar.open { display: block; left: auto; }
  .sidebar-overlay, .sidebar-overlay.open { display: none !important; }
  .menu-btn { display: none !important; }
  .bottom-nav { display: none !important; }
  #mainContent {
    padding: 24px;
    padding-bottom: 24px;
  }
  .header-center { display: flex; }
}
@media (min-width: 1200px) {
  .game-grid { grid-template-columns: repeat(5, 1fr); }
  .casino-grid { grid-template-columns: repeat(5, 1fr); }
  .virtual-grid { grid-template-columns: repeat(3, 1fr); }
}
