/* ==========================================================================
   Golden Old Sagar Satta Matka - Luxury Casino Design System
   Since 2000 • NewGoldenSattaMatka.com
   ========================================================================== */

:root {
  --bg-primary: #070d1e;
  --bg-secondary: #0c1733;
  --bg-card: rgba(15, 27, 60, 0.85);
  --bg-card-hover: rgba(22, 38, 82, 0.95);
  --border-color: rgba(212, 175, 55, 0.25);
  --border-highlight: rgba(212, 175, 55, 0.6);
  
  --gold-primary: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #b45309 100%);
  --gold-text: #fef3c7;
  
  --blue-primary: #1e40af;
  --blue-light: #3b82f6;
  --blue-dark: #0f1f4b;
  --cyan-accent: #06b6d4;
  
  --green-neon: #10b981;
  --red-neon: #ef4444;
  --amber-neon: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-neon: 0 0 15px rgba(16, 185, 129, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 45%),
    linear-gradient(180deg, #070d1e 0%, #050914 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 70px; /* Space for mobile nav */
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070d1e;
}
::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Container */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.logo-brand:hover .brand-logo-img {
  transform: scale(1.05) rotate(4deg);
}

.brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.68rem;
  color: #93c5fd;
  display: block;
  font-weight: 500;
}

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

/* Wallet Pill */
.wallet-pill {
  display: flex;
  align-items: center;
  background: rgba(15, 27, 60, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 12px;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wallet-pill:hover {
  background: rgba(30, 58, 138, 0.8);
  box-shadow: var(--shadow-gold);
}

.wallet-amount {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fef08a;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-add-cash-mini {
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s ease;
}

.btn-add-cash-mini:hover {
  transform: scale(1.05);
}

/* Buttons */
.btn-primary {
  background: var(--gold-gradient);
  color: #0b132b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-outline:hover {
  background: rgba(30, 58, 138, 0.4);
  border-color: #93c5fd;
  color: #fff;
}

.btn-apk-header {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Announcement & Marquee Ticker
   ========================================================================== */
.ticker-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #0f172a 50%, #1e3a8a 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  overflow: hidden;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
}

.ticker-tag {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ticker-marquee {
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  color: #f1f5f9;
  font-weight: 500;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==========================================================================
   Hero & Trust Banner
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 16px 0;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fef08a;
  margin-bottom: 4px;
}

.hero-left p {
  font-size: 0.82rem;
  color: var(--text-sub);
  max-width: 580px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.badge-tag {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: #fef08a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Quick Action Strip */
.quick-action-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quick-action-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.quick-action-btn:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: var(--bg-card-hover);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.2);
}

.quick-action-btn .icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(30, 58, 138, 0.4);
}

/* ==========================================================================
   Live Results Section & 12 Games Grid
   ========================================================================== */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.section-title .pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--green-neon);
  box-shadow: 0 0 10px var(--green-neon);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.live-clock-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(30, 58, 138, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(147, 197, 253, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

/* Game Card */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), var(--shadow-gold);
}

.game-card.status-green {
  border-left: 4px solid var(--green-neon);
}
.game-card.status-amber {
  border-left: 4px solid var(--amber-neon);
}
.game-card.status-rose {
  border-left: 4px solid var(--red-neon);
}

.game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-title-group h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.game-title-group .hindi-name {
  font-size: 0.78rem;
  color: #fde047;
  font-weight: 600;
}

.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-badge.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.status-badge.rose {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Result Box */
.result-display-box {
  background: linear-gradient(180deg, #050a17 0%, #0c142b 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
}

.result-numbers {
  font-family: 'Outfit', monospace;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.result-numbers .panna {
  color: #93c5fd;
}
.result-numbers .jodi {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.2);
  padding: 0 6px;
  border-radius: 4px;
  border: 1px dashed rgba(245, 158, 11, 0.4);
}
.result-numbers .hyphen {
  color: #64748b;
}

/* Timings Row */
.timings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  background: rgba(0,0,0,0.25);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.time-item {
  display: flex;
  flex-direction: column;
}
.time-item .label {
  color: #64748b;
  font-size: 0.65rem;
  text-transform: uppercase;
}
.time-item .value {
  color: #e2e8f0;
  font-weight: 700;
}

/* Game Card Actions */
.game-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-play-game {
  background: var(--gold-gradient);
  color: #070d1e;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-play-game:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.btn-play-game:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-chart-icon {
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(147, 197, 253, 0.25);
  color: #93c5fd;
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-chart-icon:hover {
  background: rgba(30, 58, 138, 0.6);
  color: #fff;
  border-color: #93c5fd;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: #0d1733;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-sheet {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 13, 30, 0.6);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.modal-body {
  padding: 20px;
}

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(5, 10, 24, 0.7);
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

/* Number selector matrix */
.digit-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.btn-digit {
  background: rgba(15, 27, 60, 0.8);
  border: 1px solid rgba(147, 197, 253, 0.25);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-digit:hover, .btn-digit.selected {
  background: var(--gold-gradient);
  color: #000;
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

/* Casino Chips */
.chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px 0;
}

.chip-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 1.5px dashed var(--gold-primary);
  color: #fef08a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.chip-btn:hover, .chip-btn.active {
  background: var(--gold-gradient);
  color: #000;
  border-style: solid;
  transform: scale(1.08);
}

/* QR Code Display */
.upi-qr-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  max-width: 240px;
  margin: 0 auto 16px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.upi-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  margin: 0 auto;
}

.upi-id-badge {
  background: #0f172a;
  color: #38bdf8;
  font-size: 0.8rem;
  font-family: monospace;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Table styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 10px 0;
}

.data-table th, .data-table td {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
  background: rgba(30, 58, 138, 0.5);
  color: #93c5fd;
  font-weight: 700;
}

.data-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr:hover {
  background: rgba(30, 58, 138, 0.2);
}

/* Mobile Bottom Navigation Bar */
.mobile-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(7, 13, 30, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.nav-item.active, .nav-item:hover {
  color: var(--gold-primary);
}

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

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 75px;
  right: 20px;
  background: #0f172a;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  box-shadow: var(--shadow-gold);
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-notice.show {
  transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .quick-action-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .brand-text h1 {
    font-size: 0.95rem;
  }
}
