/* RADHE BHAI — Light Theme CSS · Mobile-first · PWA-ready */

:root {
    --gold:        #d4af37;
    --gold-light:  #f3e5ab;
    --gold-dark:   #aa8c2c;
    --gold-glow:   rgba(212,175,55,0.4);
    --bg-app:      #f5f0e8;
    --bg-card:     #ffffff;
    --bg-card2:    #faf8f3;
    --text-main:   #1a1a2e;
    --text-muted:  #6b7280;
    --red:         #ef4444;
    --green:       #16a34a;
    --blue:        #2563eb;
    --radius-lg:   18px;
    --radius-md:   12px;
    --radius-sm:   8px;
    --shadow-gold: 0 4px 24px rgba(212,175,55,0.3);
    --shadow-card: 0 2px 20px rgba(0,0,0,0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
    background: var(--bg-app);
    color: var(--text-main);
    font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overscroll-behavior-y: contain;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f0ebe0; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

/* Typography */
.text-gold { color: var(--gold-dark) !important; }
.text-gold-light { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-main); }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.15rem; }

.gradient-text {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), #c8960c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-dark));
    background-size: 200% auto;
    color: #fff !important;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    transition: background-position 0.4s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 3px 14px var(--gold-glow);
    font-size: 15px;
    padding: 10px 22px;
}
.btn-gold:hover, .btn-gold:focus {
    background-position: right center;
    transform: translateY(-1px);
    box-shadow: 0 5px 22px var(--gold-glow);
    color: #fff !important;
}
.btn-gold:active { transform: scale(0.97); }
.btn-primary { border-radius: 999px !important; }
.btn-outline-primary { border-radius: 999px !important; }

/* Brand Bar */
.brand-bar {
    background: #ffffff;
    border-bottom: 2.5px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 10px 16px;
    box-shadow: 0 2px 16px rgba(212,175,55,0.18);
}
.brand-bar-name { font-size: 18px; font-weight: 800; color: var(--gold-dark); letter-spacing: 0.5px; line-height: 1.1; }
.brand-bar-tagline { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.brand-bar-balance {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    padding: 5px 13px;
    text-align: right;
}
.brand-bar-balance-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.brand-bar-balance-amount { font-size: 16px; font-weight: 800; color: var(--gold-dark); line-height: 1.2; }
.brand-logo-circle { width: 38px; height: 38px; display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0; }

/* Bottom Navigation */
.nav-bottom {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1030;
    background: #ffffff;
    border-top: 2.5px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 20px rgba(212,175,55,0.18);
}
.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    min-width: 56px;
    position: relative;
}
.bottom-nav-link i { font-size: 23px; line-height: 1; transition: transform 0.2s; }
.bottom-nav-link.active { color: var(--gold-dark) !important; background: rgba(212,175,55,0.1); }
.bottom-nav-link.active i { transform: translateY(-3px); filter: drop-shadow(0 0 6px rgba(212,175,55,0.5)); }
.bottom-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 3px;
    background: var(--gold);
    border-radius: 999px;
}
.bottom-nav-link:hover { color: var(--gold-dark); }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Wallet Hero */
.wallet-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 22px 20px 20px;
    border: 1.5px solid var(--gold);
    box-shadow: var(--shadow-gold);
}
.wallet-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 40%, #fef3c7 100%);
    z-index: 0;
}
.wallet-hero-glow {
    position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.wallet-hero-content { position: relative; z-index: 1; }
.wallet-hero-label { font-size: 14px; color: var(--gold-dark); font-weight: 700; }
.wallet-hero-sublabel { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.wallet-hero-amount { font-size: 34px; font-weight: 800; color: var(--gold-dark); line-height: 1.1; }

/* Quick Action Buttons */
.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 13px 8px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.35);
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 12px; font-weight: 700;
    transition: background 0.2s, transform 0.15s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(212,175,55,0.1);
}
.quick-action-btn i { font-size: 22px; }
.quick-action-btn:hover, .quick-action-btn:active { background: #fffbf0; transform: scale(0.97); color: var(--gold-dark); }
.quick-action-btn--red { background: #fff5f5; border-color: rgba(239,68,68,0.35); color: #dc2626; }
.quick-action-btn--red:hover { background: #fee2e2; color: #dc2626; }
.quick-action-btn--green { background: #f0fdf4; border-color: rgba(22,163,74,0.35); color: #16a34a; }
.quick-action-btn--green:hover { background: #dcfce7; color: #16a34a; }
.quick-action-btn--blue { background: #eff6ff; border-color: rgba(37,99,235,0.35); color: #2563eb; }
.quick-action-btn--blue:hover { background: #dbeafe; color: #2563eb; }

/* Win Banner */
.win-banner {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid rgba(22,163,74,0.4);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: 0 2px 16px rgba(22,163,74,0.15);
    animation: winPulse 2s ease-in-out infinite;
}
@keyframes winPulse {
    0%,100% { box-shadow: 0 2px 16px rgba(22,163,74,0.15); }
    50% { box-shadow: 0 4px 24px rgba(22,163,74,0.3); }
}
.win-banner-icon { font-size: 30px; color: #d97706; flex-shrink: 0; animation: trophySpin 3s ease-in-out infinite; }
@keyframes trophySpin {
    0%,100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}
.win-banner-title { font-size: 15px; font-weight: 700; color: #15803d; }
.win-banner-sub { font-size: 12px; color: #6b7280; }
.win-banner-amount { margin-left: auto; font-size: 20px; font-weight: 800; color: #15803d; flex-shrink: 0; }

/* Notice Ticker */
.notice-ticker {
    display: flex; align-items: center;
    background: #fffbf0;
    border: 1.5px solid rgba(212,175,55,0.35);
    border-radius: var(--radius-sm);
    overflow: hidden; height: 36px;
}
.notice-ticker-label {
    background: var(--gold); color: #fff;
    padding: 0 12px; height: 100%;
    display: flex; align-items: center;
    font-size: 14px; flex-shrink: 0;
}
.notice-ticker-scroll { flex: 1; overflow: hidden; white-space: nowrap; padding: 0 10px; }
.notice-ticker-scroll span {
    display: inline-block;
    animation: tickerScroll 22s linear infinite;
    font-size: 13px; color: var(--gold-dark); font-weight: 600;
}
@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Section Header */
.section-header { display: flex; align-items: center; justify-content: space-between; }
.section-header-title { font-size: 17px; font-weight: 700; color: var(--text-main); }
.section-header-badge {
    background: rgba(212,175,55,0.15); color: var(--gold-dark);
    border: 1.5px solid rgba(212,175,55,0.4);
    border-radius: 999px; padding: 3px 12px;
    font-size: 12px; font-weight: 700;
}

/* Section Title */
.section-title {
    font-size: 15px; font-weight: 700; color: var(--gold-dark);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid rgba(212,175,55,0.25);
    display: flex; align-items: center; gap: 8px;
}

/* Markets Grid */
.markets-grid { display: flex; flex-direction: column; gap: 12px; }
.market-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-md);
    padding: 16px 16px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}
.market-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(212,175,55,0.2); }
.market-card--closing { border-color: rgba(245,158,11,0.6) !important; animation: closingPulse 1.5s ease-in-out infinite; }
@keyframes closingPulse {
    0%,100% { box-shadow: 0 0 0 rgba(245,158,11,0); }
    50% { box-shadow: 0 0 14px rgba(245,158,11,0.3); }
}
.market-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.market-card-name { font-size: 18px; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: 0.5px; }
.market-card-status {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    padding: 4px 12px; border-radius: 999px;
}
.market-card-status--open { background: rgba(22,163,74,0.12); color: #15803d; border: 1.5px solid rgba(22,163,74,0.35); }
.market-card-status--closed { background: rgba(239,68,68,0.1); color: #dc2626; border: 1.5px solid rgba(239,68,68,0.3); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: statusBlink 1.5s ease-in-out infinite; }
.market-card-status--closed .status-dot { animation: none; }
@keyframes statusBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.market-card-times { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.market-card-closing-warn { font-size: 13px; color: #d97706; font-weight: 700; margin-bottom: 10px; animation: warnBlink 1s ease-in-out infinite; }
@keyframes warnBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.market-card-btn {
    display: block; width: 100%; text-align: center;
    padding: 12px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff !important; font-weight: 800; font-size: 15px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px var(--gold-glow);
}
.market-card-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.market-card-btn:active { transform: scale(0.98); }
.market-card-btn--disabled { background: #e5e7eb !important; color: #9ca3af !important; box-shadow: none !important; cursor: not-allowed; }

/* Quick Links */
.quick-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-link-card { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; transition: transform 0.15s; }
.quick-link-card:hover { transform: translateY(-3px); }
.quick-link-card:active { transform: scale(0.95); }
.quick-link-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--gold-dark);
    border: 1.5px solid rgba(212,175,55,0.3);
    box-shadow: var(--shadow-card);
    background: #ffffff;
}
.quick-link-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-align: center; }

/* Rate Card */
.rate-card {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid rgba(212,175,55,0.35);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: var(--shadow-card);
}
.rate-card-title { font-size: 15px; font-weight: 700; color: var(--gold-dark); margin-bottom: 14px; }
.rate-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rate-item {
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: var(--radius-sm);
    padding: 12px 8px; text-align: center;
    box-shadow: 0 1px 6px rgba(212,175,55,0.1);
}
.rate-item-label { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 5px; }
.rate-item-value { font-size: 26px; font-weight: 800; color: var(--gold-dark); line-height: 1; }

/* Empty State */
.empty-state {
    text-align: center; padding: 36px 16px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1.5px dashed rgba(212,175,55,0.3);
    box-shadow: var(--shadow-card);
}
.empty-state i { font-size: 40px; color: rgba(212,175,55,0.5); display: block; margin-bottom: 10px; }

/* Auth Card */
.auth-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-gold);
    overflow: hidden;
}
.auth-card-header {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    padding: 30px 24px 22px; text-align: center;
    border-bottom: 1.5px solid rgba(212,175,55,0.2);
}
.auth-logo {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 900; color: #fff;
    margin: 0 auto 14px;
    box-shadow: 0 4px 20px var(--gold-glow);
}
.auth-card-body { padding: 26px; }

/* Form Controls */
.form-control, .form-select {
    background: #ffffff !important;
    border: 1.5px solid #d1d5db !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2) !important;
    background: #fffbf0 !important;
    outline: none !important;
}
.form-control::placeholder { color: #9ca3af !important; }
.form-label { font-size: 14px; font-weight: 700; color: var(--text-main); letter-spacing: 0.3px; margin-bottom: 7px; }
.input-group-text {
    background: #f9fafb !important;
    border: 1.5px solid #d1d5db !important;
    color: var(--text-muted) !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    font-size: 16px !important;
}

/* Wallet Balance Card */
.wallet-balance-card {
    background: linear-gradient(135deg, #fffbf0, #fff8e1, #fef3c7);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 26px 22px; text-align: center;
    box-shadow: var(--shadow-gold);
    position: relative; overflow: hidden;
}
.wallet-balance-card::before {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 130px; height: 130px;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.wallet-balance-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.wallet-balance-amount { font-size: 44px; font-weight: 800; color: var(--gold-dark); line-height: 1; }

/* Transaction List */
.tx-item {
    display: flex; align-items: center; gap: 13px;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid #f3f4f6;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.tx-item:hover { border-color: rgba(212,175,55,0.3); box-shadow: 0 2px 12px rgba(212,175,55,0.1); }
.tx-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tx-icon--credit { background: rgba(22,163,74,0.12); color: #16a34a; }
.tx-icon--debit  { background: rgba(239,68,68,0.1); color: #dc2626; }
.tx-info { flex: 1; min-width: 0; }
.tx-title { font-size: 15px; font-weight: 600; color: var(--text-main); }
.tx-date  { font-size: 12px; color: var(--text-muted); }
.tx-amount { font-size: 17px; font-weight: 700; flex-shrink: 0; }
.tx-amount--credit { color: #16a34a; }
.tx-amount--debit  { color: #dc2626; }

/* Status Badges */
.badge-pending  { background: rgba(245,158,11,0.15); color: #d97706; border: 1.5px solid rgba(245,158,11,0.4); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-approved { background: rgba(22,163,74,0.12);  color: #16a34a; border: 1.5px solid rgba(22,163,74,0.35); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-rejected { background: rgba(239,68,68,0.1);   color: #dc2626; border: 1.5px solid rgba(239,68,68,0.3);  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-won      { background: rgba(22,163,74,0.12);  color: #16a34a; border: 1.5px solid rgba(22,163,74,0.35); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-lost     { background: rgba(239,68,68,0.1);   color: #dc2626; border: 1.5px solid rgba(239,68,68,0.3);  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-gold     { background: rgba(212,175,55,0.15); color: var(--gold-dark); border: 1.5px solid rgba(212,175,55,0.4); border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; display: inline-block; }

/* Bet History Cards */
.bet-card {
    background: var(--bg-card);
    border: 1px solid #f3f4f6;
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.bet-card--won  { border-left-color: #16a34a; }
.bet-card--lost { border-left-color: #dc2626; }
.bet-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bet-card-market { font-size: 14px; font-weight: 700; color: var(--text-main); }
.bet-card-meta   { font-size: 12px; color: var(--text-muted); }

/* ── Ticker Marquee ── */
.ticker-wrap {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border-bottom: 1.5px solid rgba(212,175,55,0.25);
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    height: 32px;
    display: flex;
    align-items: center;
}
.ticker-text {
    display: inline-block;
    animation: tickerMove 35s linear infinite;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}
@keyframes tickerMove {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* ── Sidebar Items ── */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid #f3f4f6;
    margin-bottom: 7px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.sidebar-item:hover {
    background: #fffbf0;
    border-color: rgba(212,175,55,0.35);
    color: var(--gold-dark);
}
.sidebar-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Divider Gold ── */
.divider-gold {
    border: none;
    border-top: 1.5px solid rgba(212,175,55,0.2);
    margin: 12px 0;
}

/* ── Padding bottom for nav ── */
.pb-nav { padding-bottom: 80px !important; }

/* ── Alerts ── */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid transparent;
    margin-bottom: 14px;
}
.alert-success { background: rgba(22,163,74,0.1)  !important; color: #15803d !important; border-color: rgba(22,163,74,0.3)  !important; }
.alert-danger  { background: rgba(239,68,68,0.08) !important; color: #dc2626 !important; border-color: rgba(239,68,68,0.25) !important; }
.alert-warning { background: rgba(245,158,11,0.1) !important; color: #d97706 !important; border-color: rgba(245,158,11,0.3) !important; }
.alert-info    { background: rgba(37,99,235,0.08) !important; color: #2563eb !important; border-color: rgba(37,99,235,0.2)  !important; }

/* ── Splash / Loading ── */
.app-splash {
    position: fixed; inset: 0;
    background: #fffbf0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s;
}
.app-splash-logo {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 900; color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px var(--gold-glow);
    animation: splashPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes splashPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.app-splash-name { font-size: 22px; font-weight: 800; color: var(--gold-dark); letter-spacing: 1px; }
.app-splash-sub  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Admin Styles ── */
.admin-stat-card {
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}
.admin-stat-card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(212,175,55,0.15); }
.admin-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }
.admin-stat-value { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--text-main); }
.admin-stat-sub   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px; font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-menu-item:hover { background: #fffbf0; border-color: rgba(212,175,55,0.4); color: var(--gold-dark); }
.admin-menu-icon { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-right: 12px; }
.admin-section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.recent-item:last-child { border-bottom: none; }
.recent-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#fffbf0,#fff8e1); border: 1.5px solid rgba(212,175,55,0.3); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gold-dark); flex-shrink: 0; }

/* ── Play Page ── */
.play-header {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid rgba(212,175,55,0.35);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.play-market-name { font-size: 20px; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; }
.play-timer-box {
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.4);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(212,175,55,0.1);
}
.play-timer-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.play-timer-value { font-size: 24px; font-weight: 800; color: var(--gold-dark); font-variant-numeric: tabular-nums; line-height: 1.2; }

/* Play Tabs */
.play-tabs {
    display: flex;
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.25);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
    box-shadow: var(--shadow-card);
}
.play-tab-btn {
    flex: 1;
    padding: 10px 4px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s;
}
.play-tab-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    box-shadow: 0 2px 10px rgba(212,175,55,0.35);
}
.play-tab-btn:hover:not(.active) { background: rgba(212,175,55,0.1); color: var(--gold-dark); }

/* Number Grid */
.num-grid-section { margin-bottom: 18px; }
.num-grid-title {
    font-size: 14px; font-weight: 700; color: var(--gold-dark);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 10px; padding: 8px 12px;
    background: rgba(212,175,55,0.1);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
}
.num-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
@media (min-width: 400px) { .num-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 500px) { .num-grid { grid-template-columns: repeat(8, 1fr); } }

.num-cell-wrap { display: flex; flex-direction: column; gap: 3px; }
.num-cell-label {
    font-size: 13px; font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 6px 6px 0 0;
    text-align: center;
    padding: 5px 2px;
    line-height: 1;
}
.num-cell-input {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    padding: 6px 2px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.num-cell-input::-webkit-outer-spin-button,
.num-cell-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-cell-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212,175,55,0.2);
    background: #fffbf0;
}
.num-cell-input[value]:not([value=""]) {
    border-color: var(--gold);
    background: #fffbf0;
    color: var(--gold-dark);
}

/* Bet Summary */
.bet-summary-bar {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid rgba(212,175,55,0.35);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.bet-summary-total { font-size: 22px; font-weight: 800; color: var(--gold-dark); }
.bet-summary-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 576px) {
    .container { padding-left: 12px !important; padding-right: 12px !important; }
    .wallet-hero-amount { font-size: 28px; }
    .quick-link-icon { width: 54px; height: 54px; font-size: 22px; }
    .quick-link-label { font-size: 11px; }
    .market-card-name { font-size: 16px; }
    .rate-item-value { font-size: 22px; }
    .brand-bar-name { font-size: 16px; }
    .admin-stat-value { font-size: 22px; }
    .play-timer-value { font-size: 20px; }
}
@media (min-width: 768px) {
    .markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── PWA Standalone ── */
@media (display-mode: standalone) {
    .brand-bar { padding-top: env(safe-area-inset-top, 10px); }
    body { padding-top: 0; }
}

/* ── Bootstrap overrides for light theme ── */
.bg-dark  { background-color: #ffffff !important; }
.text-dark { color: var(--text-main) !important; }
.card-body { color: var(--text-main); }
.table { color: var(--text-main); }
.table-dark { background: #ffffff !important; color: var(--text-main) !important; }
.modal-content { background: #ffffff; color: var(--text-main); border: 1.5px solid rgba(212,175,55,0.3); border-radius: var(--radius-lg); }
.modal-header { border-bottom: 1.5px solid rgba(212,175,55,0.2); }
.modal-footer { border-top: 1.5px solid rgba(212,175,55,0.2); }
.btn-close { filter: none; }
.offcanvas { background: #ffffff !important; border-right: 1.5px solid rgba(212,175,55,0.25) !important; }
.bet-card-stat { text-align: center; }
.bet-card-stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.bet-card-stat-value { font-size: 14px; font-weight: 700; color: var(--text-main); }

/* Chart / Results Table */
.chart-table th {
    background: rgba(212,175,55,0.12);
    color: var(--gold-dark);
    font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-color: rgba(212,175,55,0.2) !important;
    padding: 11px 8px;
}
.chart-table td {
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 14px;
    border-color: #f3f4f6 !important;
    padding: 10px 8px;
    vertical-align: middle;
}
.chart-table tr.today td { background: rgba(212,175,55,0.08); color: var(--gold-dark); font-weight: 700; }
.chart-table .result-num { font-size: 18px; font-weight: 800; color: var(--gold-dark); }

/* Play Page */
.play-topbar {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border-bottom: 1.5px solid rgba(212,175,55,0.3);
    padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.game-timer {
    background: #fffbf0;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 14px; font-weight: 700; color: var(--gold-dark);
    font-variant-numeric: tabular-nums;
}
.num-label { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.num-cell {
    aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 700; color: var(--text-main);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    user-select: none;
}
.num-cell:hover { background: #fffbf0; border-color: var(--gold); }
.num-cell.selected {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff; border-color: var(--gold);
    transform: scale(1.05);
    box-shadow: 0 2px 10px var(--gold-glow);
}
.bar-dark { background: #e5e7eb; border-radius: 999px; overflow: hidden; height: 6px; }
.bar-gold { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); height: 100%; border-radius: 999px; transition: width 1s linear; }

/* Help Page */
.help-contact-card {
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid rgba(212,175,55,0.3);
    border-radius: var(--radius-lg);
    padding: 22px; text-align: center; margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.help-contact-icon { font-size: 38px; margin-bottom: 10px; }
.help-contact-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }
.help-contact-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

/* Ticker */
.ticker-wrap {
    background: #fffbf0;
    border-bottom: 1.5px solid rgba(212,175,55,0.2);
    overflow: hidden; white-space: nowrap;
    height: 30px; display: flex; align-items: center;
}
.ticker-text {
    display: inline-block;
    animation: tickerScroll 30s linear infinite;
    font-size: 12px; color: var(--gold-dark); font-weight: 600; white-space: nowrap;
}

/* Sidebar Offcanvas */
.offcanvas {
    background: #ffffff !important;
    border-right: 2px solid var(--gold) !important;
    max-width: 300px !important;
}
.offcanvas-header {
    background: linear-gradient(135deg, #fffbf0, #fff8e1) !important;
    border-bottom: 1.5px solid rgba(212,175,55,0.25) !important;
    padding: 16px 20px !important;
}
.sidebar-item {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px; font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid #f3f4f6;
    margin-bottom: 6px;
    background: #fafafa;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sidebar-item:hover {
    background: #fffbf0;
    color: var(--gold-dark);
    border-color: rgba(212,175,55,0.3);
}
.sidebar-icon { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.icon-orange { color: #f97316; }
.icon-pink   { color: #ec4899; }
.icon-green  { color: #16a34a; }
.icon-teal   { color: #0d9488; }
.icon-blue   { color: #2563eb; }
.icon-purple { color: #9333ea; }

/* Sidebar nav link (legacy) */
.sidebar-offcanvas { background: #ffffff !important; border-right: 2px solid var(--gold) !important; max-width: 300px !important; }
.sidebar-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    color: var(--text-muted);
    text-decoration: none; font-size: 15px; font-weight: 500;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}
.sidebar-nav-link i { font-size: 18px; width: 22px; text-align: center; }
.sidebar-nav-link:hover, .sidebar-nav-link.active { background: #fffbf0; color: var(--gold-dark); }

/* Alerts */
.alert { border-radius: var(--radius-md) !important; font-size: 14px; }
.alert-danger  { background: #fef2f2 !important; color: #dc2626 !important; border-color: rgba(239,68,68,0.3) !important; }
.alert-success { background: #f0fdf4 !important; color: #16a34a !important; border-color: rgba(22,163,74,0.3) !important; }
.alert-info    { background: #eff6ff !important; color: #2563eb !important; border-color: rgba(37,99,235,0.3) !important; }
.alert-warning { background: #fffbeb !important; color: #d97706 !important; border-color: rgba(245,158,11,0.3) !important; }

/* Divider */
.divider-gold { border: none; border-top: 1.5px solid rgba(212,175,55,0.2); margin: 16px 0; }

/* Utilities */
.rounded-gold { border-radius: var(--radius-md) !important; }
.shadow-gold  { box-shadow: var(--shadow-gold) !important; }
.pb-nav       { padding-bottom: 80px !important; }
.small { font-size: 0.84em !important; }
.fs-sm { font-size: 13px; }

/* Splash / Loading */
.app-splash {
    position: fixed; inset: 0;
    background: #fffbf0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999; transition: opacity 0.5s;
}
.app-splash-logo {
    width: 84px; height: 84px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; font-weight: 900; color: #fff;
    margin-bottom: 18px;
    box-shadow: 0 8px 32px var(--gold-glow);
    animation: splashPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes splashPop {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.app-splash-name { font-size: 24px; font-weight: 800; color: var(--gold-dark); letter-spacing: 1px; }
.app-splash-sub  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Admin Styles */
.admin-stat-card {
    background: #ffffff;
    border: 1.5px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-md);
    padding: 18px;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-card);
}
.admin-stat-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(212,175,55,0.15); }
.admin-stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; font-weight: 600; }
.admin-stat-value { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--text-main); }
.admin-stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.admin-menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: #ffffff;
    border: 1.5px solid #f3f4f6;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px; font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-menu-item:hover { background: #fffbf0; border-color: rgba(212,175,55,0.35); color: var(--gold-dark); }
.admin-menu-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; margin-right: 12px; }
.admin-section-title { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 10px; }
.recent-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f3f4f6; }
.recent-item:last-child { border-bottom: none; }
.recent-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, #fffbf0, #fff8e1);
    border: 1.5px solid rgba(212,175,55,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: var(--gold-dark); flex-shrink: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .container { padding-left: 12px !important; padding-right: 12px !important; }
    .wallet-hero-amount { font-size: 28px; }
    .wallet-balance-amount { font-size: 36px; }
    .quick-link-icon { width: 54px; height: 54px; font-size: 22px; }
    .quick-link-label { font-size: 11px; }
    .market-card-name { font-size: 16px; }
    .rate-item-value { font-size: 22px; }
    .brand-bar-name { font-size: 16px; }
    .admin-stat-value { font-size: 24px; }
    .bottom-nav-link { min-width: 48px; padding: 6px 6px; }
    .bottom-nav-link i { font-size: 21px; }
    .bottom-nav-link span { font-size: 10px; }
}

@media (min-width: 768px) {
    .markets-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(4, 1fr); }
}

/* PWA Standalone Mode */
@media (display-mode: standalone) {
    .brand-bar { padding-top: env(safe-area-inset-top, 10px); }
    body { padding-top: 0; }
}

/* Bootstrap dark card override for admin */
.card.bg-dark { background: #ffffff !important; color: var(--text-main) !important; }
.card.bg-dark .card-body { background: #ffffff !important; }
.text-light { color: var(--text-main) !important; }
.text-secondary { color: var(--text-muted) !important; }
.bg-dark { background: #ffffff !important; }
table.table { color: var(--text-main) !important; }
.table-dark { background: #ffffff !important; color: var(--text-main) !important; }
.table > :not(caption) > * > * { background-color: transparent !important; color: var(--text-main) !important; }
