/* ==========================================================================
   KOLKATA FF PLAY - COMPACT MODERN LIGHT THEME (BLUE ACCENT)
   Typography: Inter | Light Aesthetic | High-Density Gaming/Betting UI
   Zoomed-out, low-scroll, high-information-density design
   ========================================================================== */

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

:root {
  /* Colors */
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-deep: #0f172a;
  --blue-light: #eff6ff;
  --blue-border: #bfdbfe;
  --blue-glow: rgba(37, 99, 235, 0.15);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-light: #fffbeb;

  --rose-500: #ef4444;
  --rose-600: #dc2626;
  --rose-light: #fef2f2;

  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-numeric: 'Inter', tabular-nums, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-md: 0 2px 4px -1px rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 6px 10px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 12px 16px -4px rgba(15, 23, 42, 0.07);

  --transition-fast: 0.12s ease;
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset (Zoomed-out, Compact Root)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 13px; /* Compact base scale */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-main);
  background-color: var(--bg-body);
  background-image: radial-gradient(at 100% 0%, rgba(219, 234, 254, 0.35) 0px, transparent 50%),
                    radial-gradient(at 0% 100%, rgba(224, 231, 255, 0.25) 0px, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-hover);
}

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

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Compact Bootstrap Overrides */
.container, .container-fluid {
  max-width: 1220px;
}

.card-header {
  padding: 8px 14px !important;
}

.card-body {
  padding: 14px !important;
}

.form-control, .form-select {
  font-size: 12px;
  padding: 5px 8px;
  min-height: 32px;
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
}

.form-control:focus, .form-select:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px var(--blue-glow);
}

.form-control-lg {
  font-size: 15px !important;
  min-height: 38px;
}

.form-label {
  font-size: 11.5px;
  margin-bottom: 3px;
}

.btn {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.btn-sm {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.alert {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Header & Navbar (Compact 48px Height)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.site-header .container-fluid {
  max-width: 1220px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-brand-logo {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-link:hover .site-brand-logo {
  transform: scale(1.02);
}

.auth-card-logo-img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px auto;
  transition: transform var(--transition-fast);
}

/* Desktop Navigation */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.nav-link-item.active {
  color: var(--blue-primary);
  background: var(--blue-light);
  font-weight: 700;
}

.nav-link-item .badge-hot {
  font-size: 8.5px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: #fee2e2;
  color: #ef4444;
  text-transform: uppercase;
}

/* Header Actions / Wallet / Auth */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid var(--emerald-border);
  color: var(--emerald-600);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.wallet-chip:hover {
  background: #d1fae5;
  color: #047857;
}

.wallet-chip i {
  color: #10b981;
  font-size: 11px;
}

.wallet-chip .chip-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  margin-right: 2px;
}

.btn-deposit-quick {
  background: var(--blue-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.btn-deposit-quick:hover {
  background: var(--blue-hover);
}

/* User Dropdown */
.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px 2px 2px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 11px;
  color: var(--slate-700);
  transition: all var(--transition-fast);
}

.user-menu-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
  border-color: var(--blue-border);
}

.user-menu-btn .avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.dropdown-menu-modern {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  background: #ffffff;
  min-width: 190px;
}

.dropdown-menu-modern .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.dropdown-menu-modern .dropdown-item:hover {
  background: var(--slate-100);
  color: var(--blue-primary);
}

.dropdown-menu-modern .dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.btn-login-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-login-outline:hover {
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  background: var(--blue-light);
}

.btn-register-solid {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--blue-primary);
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-register-solid:hover {
  background: var(--blue-hover);
}

/* ==========================================================================
   Hero & Live Ticker Strip (Tight 6px Padding)
   ========================================================================== */
.hero-ticker-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.live-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #ecfdf5;
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 10.5px;
  color: var(--emerald-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-market-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0;
}

.live-market-title strong {
  color: var(--slate-900);
  font-weight: 800;
}

.quick-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

/* ==========================================================================
   Live 8 Baji Results Matrix (Compact Low-Scroll Grid)
   ========================================================================== */
.live-results-section {
  padding: 12px 0 6px 0;
}

.section-head-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.section-heading {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-subheading {
  font-size: 11px;
  color: var(--slate-500);
  margin: 0;
}

/* 8 Baji Grid - Ultra Compact */
.baji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.baji-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.baji-card.active-live {
  border-color: var(--blue-primary);
  background: #fbfdff;
  box-shadow: 0 0 0 1.5px var(--blue-border);
}

.baji-card .baji-num {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.baji-card .baji-time {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 1px 4px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
}

.baji-card .patti-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-600);
  letter-spacing: 0.8px;
  font-family: var(--font-numeric);
  background: var(--slate-100);
  padding: 2px 4px;
  border-radius: 4px;
  margin-bottom: 2px;
  display: block;
}

.baji-card .single-badge {
  font-size: 19px;
  font-weight: 900;
  color: var(--blue-primary);
  line-height: 1;
  font-family: var(--font-numeric);
}

.baji-card.has-result .single-badge {
  color: var(--slate-900);
}

.baji-card.has-result .patti-badge {
  color: var(--blue-primary);
  background: var(--blue-light);
}

.baji-card .status-chip {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.status-chip.declared {
  background: #ecfdf5;
  color: #059669;
}

.status-chip.waiting {
  background: #fffbeb;
  color: #d97706;
}

/* ==========================================================================
   Quick Play Games (Bento Grid - Compact)
   ========================================================================== */
.games-hub-section {
  padding: 6px 0 14px 0;
}

.games-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.game-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

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

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 6px;
}

.game-icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--blue-border);
}

.odds-badge {
  background: #ecfdf5;
  border: 1px solid var(--emerald-border);
  color: var(--emerald-600);
  font-weight: 800;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.game-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 2px;
  letter-spacing: -0.2px;
}

.game-desc {
  font-size: 11px;
  color: var(--slate-500);
  line-height: 1.35;
  margin-bottom: 6px;
}

.game-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid var(--slate-100);
}

.action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-arrow-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  transition: all var(--transition-fast);
}

.game-bento-card:hover .action-arrow-btn {
  background: var(--blue-primary);
  color: #ffffff;
}

/* ==========================================================================
   Betting Screen (Compact, Tactile, Low-Scroll)
   ========================================================================== */
.betting-station-wrap {
  padding: 10px 0 24px 0;
}

.betting-panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  max-width: 820px;
  margin: 0 auto;
}

.betting-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 8px;
}

.betting-game-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-multiplier-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue-primary);
  background: var(--blue-light);
  border: 1px solid var(--blue-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Baji Horizontal Selector Pills */
.baji-selector-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.baji-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.baji-pill-radio {
  display: none;
}

.baji-pill-label {
  display: flex;
  flex-direction: column;
  padding: 5px 4px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  background: var(--slate-50);
  transition: all var(--transition-fast);
  user-select: none;
}

.baji-pill-label:hover {
  background: #ffffff;
  border-color: var(--blue-border);
}

.baji-pill-label .b-title {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--slate-800);
}

.baji-pill-label .b-time {
  font-size: 10px;
  color: var(--slate-500);
  font-weight: 500;
}

.baji-pill-radio:checked + .baji-pill-label {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  box-shadow: 0 0 0 1px var(--blue-primary);
}

.baji-pill-radio:checked + .baji-pill-label .b-title {
  color: var(--blue-primary);
}

.baji-pill-label.disabled,
.baji-pill-radio:disabled + .baji-pill-label {
  opacity: 0.55;
  background: #f1f5f9;
  cursor: not-allowed;
  border-color: var(--slate-200);
}

/* Quick Digits Keypad (For Single Digit 0-9) */
.quick-keypad-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 12px;
}

.quick-keypad-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.digits-keypad-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.btn-digit-key {
  height: 32px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--font-numeric);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.btn-digit-key:hover {
  background: var(--blue-light);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

/* Quick Chips (Preset Amounts) */
.quick-chips-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.quick-chip-btn {
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-700);
  transition: all var(--transition-fast);
}

.quick-chip-btn:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  color: var(--blue-primary);
}

/* Bet Slip Input Rows */
.bet-rows-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.bet-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: #ffffff;
  padding: 6px 10px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.bet-input-row:focus-within {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px var(--blue-glow);
}

.bet-field-group {
  position: relative;
}

.bet-field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 1px;
  display: block;
}

.bet-text-input {
  width: 100%;
  height: 32px;
  padding: 4px 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
  font-family: var(--font-numeric);
  transition: all var(--transition-fast);
}

.bet-text-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue-primary);
}

.btn-remove-row {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  margin-top: 10px;
  font-size: 11px;
}

.btn-remove-row:hover {
  background: #fee2e2;
  color: #ef4444;
}

.btn-add-more-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--blue-light);
  border: 1px dashed var(--blue-border);
  border-radius: var(--radius-sm);
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 11.5px;
  transition: all var(--transition-fast);
}

.btn-add-more-row:hover {
  background: #dbeafe;
  border-color: var(--blue-primary);
}

/* Slip Footer & Sticky Place Bet */
.slip-summary-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.slip-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item .stat-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
}

.stat-item .stat-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-900);
  font-family: var(--font-numeric);
}

.stat-item.highlight .stat-val {
  color: var(--blue-primary);
}

.btn-place-bet-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  padding: 7px 22px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-place-bet-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #fff;
}

/* ==========================================================================
   Clean Modern Tables (Results Archive & Chart) - Compact
   ========================================================================== */
.table-modern-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11.5px;
}

.table-modern thead th {
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.table-modern thead th:first-child {
  text-align: left;
}

.table-modern tbody td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800);
  text-align: center;
  font-family: var(--font-numeric);
}

.table-modern tbody td:first-child {
  text-align: left;
  font-weight: 600;
}

.table-modern tbody tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr:hover td {
  background: #f8fafc;
}

.result-cell-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 1px 5px;
  background: var(--slate-100);
  border-radius: var(--radius-sm);
}

.result-cell-pill .patti-val {
  font-size: 9.5px;
  color: var(--slate-500);
  font-weight: 600;
}

.result-cell-pill .single-val {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--blue-primary);
}

/* ==========================================================================
   Dashboard & Account Tabs - Compact
   ========================================================================== */
.account-overview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

.balance-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.balance-stat-box {
  background: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: all var(--transition-fast);
}

.balance-stat-box:hover {
  border-color: var(--blue-border);
  background: #ffffff;
}

.balance-stat-box .box-lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.balance-stat-box .box-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  font-family: var(--font-numeric);
}

.balance-stat-box.highlight {
  background: var(--blue-light);
  border-color: var(--blue-border);
}

.balance-stat-box.highlight .box-val {
  color: var(--blue-primary);
}

/* Account Navigation Tabs */
.account-nav-pills {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.acc-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.acc-nav-link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.acc-nav-link.active {
  background: var(--blue-primary);
  color: #ffffff;
}

/* ==========================================================================
   Clean Modern Auth Cards (Login & Register) - Compact
   ========================================================================== */
.auth-page-wrap {
  padding: 20px 0;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card-modern {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 14px;
}

.auth-card-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.auth-card-header p {
  font-size: 11.5px;
  color: var(--slate-500);
  margin: 0;
}

.auth-form-group {
  margin-bottom: 10px;
}

.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 3px;
}

.auth-input {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  background: var(--slate-50);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--slate-900);
  transition: all var(--transition-fast);
}

.auth-input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px var(--blue-glow);
}

.btn-auth-submit {
  width: 100%;
  height: 35px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

/* ==========================================================================
   Footer (Clean Light Minimalist & Compact)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 20px 0 12px 0;
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 11.5px;
  color: var(--slate-500);
  line-height: 1.45;
  margin-top: 6px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.footer-links-list li {
  margin-bottom: 4px;
}

.footer-links-list a {
  color: var(--slate-600);
  font-size: 11.5px;
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--blue-primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--slate-100);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--slate-400);
}

/* ==========================================================================
   Mobile Bottom Navigation Dock (App-Like & Compact)
   ========================================================================== */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);
  height: 48px;
  padding: 0 8px;
}

.dock-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 100%;
  align-items: center;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--slate-500);
  text-decoration: none;
  font-size: 9px;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.dock-item i {
  font-size: 14px;
}

.dock-item:hover,
.dock-item.active {
  color: var(--blue-primary);
}

/* Center Elevated Play Button */
.dock-item.dock-play {
  position: relative;
  top: -10px;
}

.dock-play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  border: 2px solid #ffffff;
  transition: transform var(--transition-fast);
}

.dock-item.dock-play:hover .dock-play-circle {
  transform: scale(1.04);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
  .nav-menu-desktop {
    display: none;
  }

  .mobile-bottom-dock {
    display: block;
  }

  body {
    padding-bottom: 54px;
  }

  .baji-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .games-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balance-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .baji-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 across on mobile for less vertical scrolling */
    gap: 4px;
  }

  .baji-card {
    padding: 4px 2px;
  }

  .baji-card .single-badge {
    font-size: 16px;
  }

  .baji-card .patti-badge {
    font-size: 10px;
  }

  .games-bento-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 across instead of 1 */
    gap: 6px;
  }

  .baji-pills-row {
    grid-template-columns: repeat(4, 1fr); /* 4 across on mobile */
    gap: 4px;
  }

  .digits-keypad-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .bet-input-row {
    grid-template-columns: 1fr 1fr auto;
    gap: 6px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .slip-summary-card {
    flex-direction: row;
    align-items: center;
  }
}
