/* ════════════════════════════════════════════════════════════
   VaultX Theme — Diamond Exchange
   Primary: #1a8eea  |  Bg: #ebeef0  |  Text: #1a1a1a
   Fonts: Inter (body) + Lora (brand/headings)
   ════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: #ebeef0;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0; padding: 0;
}

/* ── App Wrapper (mobile-first 480px) ──────────────────────── */
.app {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    background: #1a8eea;
    color: #fff;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 58px;
}
.tb-left  { display: flex; align-items: center; gap: 10px; }
.tb-right { text-align: right; line-height: 1.4; position: relative; }

.hamburger {
    display: flex; flex-direction: column; gap: 5px;
    cursor: pointer; padding: 4px 2px;
    background: none; border: none; flex-shrink: 0;
}
.hamburger span { width: 20px; height: 2px; background: #fff; border-radius: 1px; display: block; }

.brand {
    display: flex; align-items: center; gap: 8px;
    color: #fff; line-height: 1;
    text-decoration: none;
}
.brand-icon { font-size: 30px; flex-shrink: 0; }
.brand-text {
    display: flex; flex-direction: column;
    font-family: 'Inter', sans-serif; font-weight: 800;
    line-height: 1.15;
}
.brand-line1 { font-size: 17px; letter-spacing: .3px; }
.brand-line2 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }

/* Right-side balance + user rows */
.tb-demo-badge {
    display: inline-block;
    background: #ffc107; color: #1a1a1a;
    font-size: 9px; font-weight: 800; letter-spacing: 1px;
    padding: 2px 6px; border-radius: 4px;
    margin-bottom: 3px;
}
.tb-bal {
    font-size: 13px; font-weight: 400;
    color: #fff; font-family: 'Inter', sans-serif;
}
.tb-row2 {
    display: flex; align-items: center;
    justify-content: flex-end; gap: 6px;
    margin-top: 2px;
}
.tb-exp {
    font-size: 13px; font-weight: 400;
    color: #fff; font-family: 'Inter', sans-serif;
}
.tb-user-btn {
    background: none; border: none; cursor: pointer;
    color: #fff; font-size: 13px; font-weight: 600;
    font-family: 'Inter', sans-serif;
    padding: 0; display: flex; align-items: center; gap: 4px;
    transition: opacity .15s;
}
.tb-user-btn:hover { opacity: .85; }
.tb-caret { font-size: 9px; opacity: 1; }

/* Kebab dropdown */
.kebab-dropdown {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: #fff; border-radius: 12px; padding: 6px;
    min-width: 190px;
    box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 4px 8px rgba(0,0,0,.12);
    display: none; z-index: 100;
    border: 1px solid rgba(0,0,0,.08);
    text-align: left;
}
.kebab-dropdown.active { display: block; animation: dropdown-slide .22s ease-out; }
@keyframes dropdown-slide {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.kdrop-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; color: #1a1a1a; text-decoration: none;
    font-size: 14px; font-weight: 600; border-radius: 7px;
    transition: background .15s; font-family: 'Inter', sans-serif;
}
.kdrop-item:hover, .kdrop-item:active { background: #f0f4f8; color: #1a1a1a; }
.kdrop-item.active-link { color: #1a8eea; }
.kdrop-icon { width: 18px; height: 18px; fill: #555; flex-shrink: 0; }
.kdrop-item.active-link .kdrop-icon { fill: #1a8eea; }

/* ── Drawer Overlay ─────────────────────────────────────────── */
.drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999; display: none;
    backdrop-filter: blur(2px);
}
.drawer-overlay.show { display: block; animation: fade-in .2s ease; }

/* ── Drawer (left slide-in) ─────────────────────────────────── */
.drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 84%; max-width: 320px;
    background: #fff; z-index: 1000;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
    overflow-y: auto;
}
.drawer.show { transform: translateX(0); }
.drawer-header {
    background: linear-gradient(135deg, #1a8eea 0%, #1565c0 100%);
    color: #fff; padding: 22px 20px;
}
.drawer-brand {
    display: flex; align-items: center; gap: 8px;
    color: #fff; line-height: 1;
    margin-bottom: 14px;
}
.drawer-brand .brand-icon { font-size: 30px; flex-shrink: 0; }
.drawer-username { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.drawer-balance  { font-size: 13px; opacity: .92; margin-top: 4px; font-weight: 600; }
.drawer-balance b { font-weight: 900; font-size: 14px; }
.drawer-menu { padding: 8px 0; }
.drawer-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; cursor: pointer;
    transition: background .15s; border: none; background: none;
    width: 100%; text-align: left; font-family: 'Inter', sans-serif;
    text-decoration: none; color: #1a1a1a;
}
.drawer-item:hover  { background: #f5f7f8; }
.drawer-item:active { background: #e0e6ea; }
.drawer-item svg { width: 20px; height: 20px; fill: #555; flex-shrink: 0; }
.drawer-item-text { flex: 1; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.drawer-item-badge {
    background: #c41e3a; color: #fff;
    font-size: 10px; font-weight: 800;
    padding: 2px 7px; border-radius: 10px;
}
.drawer-divider { height: 1px; background: #ebeef0; margin: 8px 16px; }
.drawer-item.danger .drawer-item-text { color: #c41e3a; }
.drawer-item.danger svg { fill: #c41e3a; }

/* ── Main Container ─────────────────────────────────────────── */
.main-container {
    max-width: 100%;
    padding: 14px 14px 28px;
    width: 100%;
}

/* ── Toast Notifications (VaultX style) ─────────────────────── */
.toast-container {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 2000; pointer-events: none;
    display: flex; flex-direction: column;
    align-items: center; gap: 8px; max-width: 90%;
}
.vx-toast {
    background: rgba(13,40,24,.96); color: #fff;
    padding: 12px 22px; border-radius: 24px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
    backdrop-filter: blur(10px);
    text-align: center; line-height: 1.4;
    max-width: 340px;
    animation: toast-in .3s cubic-bezier(.32,.72,0,1);
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,.1);
}
.vx-toast-success { background: rgba(46,125,50,.96); border-color: rgba(201,255,90,.3); }
.vx-toast-error   { background: rgba(196,30,58,.96);  border-color: rgba(255,200,200,.3); }
.vx-toast-info    { background: rgba(26,142,234,.96); border-color: rgba(180,210,255,.3); }
@keyframes toast-in  { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(60px); opacity: 0; } }

/* ── VaultX Cards ───────────────────────────────────────────── */
.vx-card {
    background: #fff; border: 1px solid #ebeef0;
    border-radius: 10px; overflow: hidden;
    margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.vx-card-header {
    padding: 14px; border-bottom: 1px solid #ebeef0;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; color: #1a1a1a;
    background: #f5f7f8;
}
.vx-card-header svg { width: 18px; height: 18px; fill: #1a8eea; flex-shrink: 0; }
.vx-card-body { padding: 14px; }

/* ── VaultX Form Elements ───────────────────────────────────── */
.vx-label { display: block; font-size: 12px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.vx-input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #ebeef0; border-radius: 8px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: #1a1a1a; background: #fff; outline: none;
    transition: border-color .2s;
}
.vx-input:focus { border-color: #1a8eea; background: #fafdff; }
.vx-input[readonly] { background: #f5f7f8; cursor: default; }
.vx-btn {
    padding: 14px; border: none; border-radius: 8px;
    font-weight: 800; font-size: 14px; cursor: pointer;
    transition: all .15s; font-family: 'Inter', sans-serif;
    letter-spacing: .3px; width: 100%;
}
.vx-btn:active { transform: scale(.98); }
.vx-btn-primary { background: linear-gradient(135deg, #1a8eea, #1565c0); color: #fff; box-shadow: 0 4px 12px rgba(26,142,234,.4); }
.vx-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(26,142,234,.5); }
.vx-btn-secondary { background: #f0f3f5; color: #444; }
.vx-btn-outline { background: transparent; border: 1.5px solid #ebeef0; color: #555; border-radius: 8px; padding: 12px 16px; font-weight: 600; font-size: 14px; cursor: pointer; width: auto; font-family: 'Inter', sans-serif; }
.vx-btn-outline:hover { background: #f5f7f8; border-color: #ccc; }

/* ── Neon Form Card → VaultX Style (keep class names, restyle) ── */
.neon-form-card {
    background: #fff; border: 1px solid #ebeef0;
    border-radius: 10px; overflow: hidden;
    margin: 8px auto; max-width: 480px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.neon-form-header {
    background: #f5f7f8; border-bottom: 1px solid #ebeef0;
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.neon-form-header-icon { color: #1a8eea; font-size: 1.1rem; }
.neon-form-title { font-weight: 700; font-size: 1rem; color: #1a1a1a; letter-spacing: .3px; }
.neon-form-body { padding: 18px; }
.neon-label { display: block; color: #555; font-size: .78rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 6px; }
.neon-input {
    width: 100%; background: #fff;
    border: 1.5px solid #ebeef0; border-radius: 8px;
    color: #1a1a1a; padding: 10px 14px;
    font-size: .9rem; font-family: 'Inter', sans-serif;
    transition: border-color .2s; outline: none;
}
.neon-input:focus { border-color: #1a8eea; background: #fafdff; }
.neon-input[readonly] { background: #f5f7f8; cursor: default; }
.neon-btn {
    background: linear-gradient(135deg, #1a8eea, #1565c0);
    color: #fff; border: none; border-radius: 10px;
    padding: 12px 20px; font-size: .95rem; font-weight: 700;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: all .2s; letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(26,142,234,.35); width: 100%;
}
.neon-btn:hover { box-shadow: 0 6px 20px rgba(26,142,234,.5); filter: brightness(1.05); transform: translateY(-1px); }
.neon-btn-secondary {
    background: #f0f3f5; color: #555;
    border: 1.5px solid #ebeef0; border-radius: 8px;
    padding: 10px 16px; font-size: .88rem; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: all .2s; white-space: nowrap;
}
.neon-btn-secondary:hover { background: #e0e6ea; border-color: #ccc; }
.neon-btn-outline {
    background: transparent; color: #555;
    border: 1.5px solid #ebeef0; border-radius: 10px;
    padding: 10px 16px; font-size: .88rem; font-weight: 600;
    font-family: 'Inter', sans-serif; cursor: pointer;
    transition: all .2s; flex: 1;
}
.neon-btn-outline:hover { background: #f5f7f8; border-color: #bbb; color: #1a1a1a; }

/* ── Txn / Bets Shared Styles ───────────────────────────────── */
.txn-card {
    background: #fff; border: 1px solid #ebeef0;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.txn-card-header {
    background: #f5f7f8; border-bottom: 1px solid #ebeef0;
    padding: 14px 18px; display: flex; align-items: center; gap: 10px;
}
.txn-card-header i { color: #1a8eea; font-size: 1rem; }
.txn-card-title { font-weight: 700; font-size: 1rem; color: #1a1a1a; }
.txn-count { font-size: .8rem; color: #888; margin-top: 1px; }

.txn-filters {
    background: #fafbfc; border-bottom: 1px solid #ebeef0;
    padding: 14px 16px;
}
.txn-filters .form-label { color: #555; font-size: .78rem; margin-bottom: 4px; font-weight: 500; }
.txn-filters .form-control,
.txn-filters .form-select {
    background: #fff; border: 1.5px solid #ebeef0;
    color: #1a1a1a; border-radius: 8px;
    font-size: .85rem; padding: 7px 12px;
}
.txn-filters .form-control:focus,
.txn-filters .form-select:focus {
    background: #fafdff; border-color: #1a8eea;
    color: #1a1a1a; box-shadow: 0 0 0 2px rgba(26,142,234,.15);
}
.txn-filters .form-select option { background: #fff; color: #1a1a1a; }
.txn-filters .form-control[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.txn-filters .form-control[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.btn-apply {
    background: linear-gradient(135deg, #1a8eea, #1565c0);
    color: #fff; font-weight: 700; border: none;
    border-radius: 8px; padding: 8px 18px; font-size: .85rem;
    transition: .2s; cursor: pointer;
    box-shadow: 0 3px 10px rgba(26,142,234,.3);
}
.btn-apply:hover { filter: brightness(1.05); box-shadow: 0 5px 16px rgba(26,142,234,.45); }
.btn-clear {
    background: #f0f3f5; color: #555;
    border: 1.5px solid #ebeef0; border-radius: 8px;
    padding: 8px 14px; font-size: .85rem; transition: .2s; cursor: pointer;
}
.btn-clear:hover { background: #e0e6ea; color: #1a1a1a; }

.table-wrap { overflow-x: auto; }
.txn-table {
    width: 100%; border-collapse: collapse;
    font-size: .82rem; color: #1a1a1a; white-space: nowrap;
}
.txn-table thead th {
    background: #f5f7f8; color: #555;
    font-weight: 700; font-size: .72rem; letter-spacing: .5px;
    text-transform: uppercase; padding: 10px 12px;
    border-bottom: 1.5px solid #ebeef0; text-align: center;
}
.txn-table tbody tr { border-bottom: 1px solid #ebeef0; transition: background .15s; }
.txn-table tbody tr:nth-child(even) { background: #fafbfc; }
.txn-table tbody tr:hover { background: #f0f4f8; }
.txn-table tbody td { padding: 9px 12px; vertical-align: middle; text-align: center; }

.text-credit  { color: #2e7d32; font-weight: 600; }
.text-debit   { color: #c41e3a; font-weight: 600; }
.text-balance { color: #1a8eea; font-weight: 600; }
.text-amount  { font-weight: 600; }

.badge-pending { background: #fff3cd; color: #856404; border: 1px solid rgba(133,100,4,.3); border-radius: 12px; padding: 2px 10px; font-size: .72rem; font-weight: 700; display: inline-block; }
.badge-won     { background: #d1f5d3; color: #1b5e20; border: 1px solid rgba(27,94,32,.25); border-radius: 12px; padding: 2px 10px; font-size: .72rem; font-weight: 700; display: inline-block; }
.badge-lost    { background: #fde8e8; color: #8b1a1a; border: 1px solid rgba(196,30,58,.25); border-radius: 12px; padding: 2px 10px; font-size: .72rem; font-weight: 700; display: inline-block; }
.badge-back    { background: #a6c9f0; color: #0d3868; border-radius: 4px; padding: 2px 8px; font-size: .72rem; font-weight: 800; display: inline-block; }
.badge-lay     { background: #f4b9c7; color: #7a1928; border-radius: 4px; padding: 2px 8px; font-size: .72rem; font-weight: 800; display: inline-block; }

.empty-state { text-align: center; color: #888; padding: 48px 20px; font-size: .95rem; }
.empty-state i { font-size: 2rem; color: #bbb; display: block; margin-bottom: 10px; }

.txn-pagination { padding: 14px 16px; border-top: 1px solid #ebeef0; }
.pagination .page-link { background: #fff; border-color: #ebeef0; color: #1a8eea; font-size: .82rem; }
.pagination .page-link:hover { background: #e8f4fd; border-color: #1a8eea; color: #1565c0; }
.pagination .page-item.disabled .page-link { color: #aaa; background: #f5f7f8; border-color: #ebeef0; }
.pagination .page-item.active .page-link { background: #1a8eea; border-color: #1a8eea; color: #fff; }

/* ── Exchange Search Bar ─────────────────────────────────────── */
.exch-search-bar {
    background: #1a8eea;
    padding: 6px 14px 10px;
    display: flex; align-items: center; gap: 10px;
}
.exch-search-inner {
    flex: 1;
    background: #1a8eea;
    border: 1.5px solid rgba(255,255,255,.35);
    border-radius: 20px;
    padding: 7px 14px;
    display: flex; align-items: center; gap: 8px;
}
.exch-search-icon { color: #fff; font-size: 14px; flex-shrink: 0; }
.exch-search-input {
    flex: 1; background: none; border: none; outline: none;
    font-size: 13px; color: #fff; font-style: italic;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    min-width: 0;
}
.exch-search-input::placeholder { color: rgba(255,255,255,.75); font-style: italic; }

/* ── Featured Events Row ─────────────────────────────────────── */
.exch-featured-row {
    display: flex; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
    padding: 8px 14px;
    background: #1a2436;
}
.exch-featured-row::-webkit-scrollbar { display: none; }
.exch-featured-pill {
    display: flex; align-items: center; gap: 10px;
    background: #253040;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding: 8px 12px 8px 10px;
    white-space: nowrap; flex-shrink: 0; cursor: pointer;
    min-width: 0;
    transition: background .15s;
}
.exch-featured-pill:hover { background: #2e3d52; }

.exch-featured-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: #1a6edb;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.exch-featured-icon-num {
    font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--dga, #1a6edb) 0%, var(--dga-deep, #0d47a1) 100%);
}
.exch-featured-name {
    font-size: 13px; font-weight: 600; color: #fff;
    max-width: 140px; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.exch-live-dot-featured {
    width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; flex-shrink: 0;
    display: block;
    animation: live-dot-blink 1s ease-in-out infinite;
}
@keyframes live-dot-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Exchange Category Tabs ──────────────────────────────────── */
.exch-tabs-row {
    background: #263238;
    display: flex; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid #37474f;
}
.exch-tabs-row::-webkit-scrollbar { display: none; }
.exch-tab {
    padding: 11px 14px;
    font-size: 11.5px; font-weight: 700;
    color: rgba(255,255,255,.6);
    letter-spacing: 1px; text-decoration: none;
    flex-shrink: 0; position: relative;
    white-space: nowrap; transition: color .15s;
}
.exch-tab + .exch-tab::before {
    content: '';
    position: absolute; left: 0; top: 30%; bottom: 30%;
    width: 1px; background: rgba(255,255,255,.2);
}
.exch-tab:hover { color: rgba(255,255,255,.9); }
.exch-tab-active { color: #fff !important; }
.exch-tab-active::after {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%;
    height: 2.5px; background: #1a8eea; border-radius: 2px;
}
.exch-tab-disabled { opacity: .35; pointer-events: none; }

/* ── Leaderboard (shared partial, bottom of game pages) ──────── */
.lb-section {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    margin: 12px 0;
}
.lb-hdr {
    background: linear-gradient(135deg, #0d2818 0%, #1f5238 100%);
    color: #c9ff5a; font-size: 12px; font-weight: 800;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 9px 12px;
}
.lb-hdr-sub { color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: 1px; font-size: 10px; text-transform: none; margin-left: 6px; }
.lb-empty { padding: 14px 12px; font-size: 12px; color: #888; text-align: center; font-weight: 600; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.lb-table th {
    text-align: left; padding: 7px 12px;
    font-size: 10px; color: #888; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 1px solid #eef1f3;
}
.lb-table td { padding: 8px 12px; border-bottom: 1px solid #f4f6f7; color: #333; font-weight: 600; }
.lb-table tbody tr:last-child td { border-bottom: none; }
.lb-rank { width: 36px; text-align: center !important; }
.lb-user { font-family: 'Inter', sans-serif; letter-spacing: .5px; }
.lb-game { color: #666; }
.lb-amt  { text-align: right !important; font-weight: 800; color: #1f7a45; white-space: nowrap; }

/* ── Section Header Bar (elections / market) ─────────────────── */
.exch-section-hdr {
    background: #37474f;
    padding: 9px 14px;
    font-size: 13px; font-weight: 700;
    color: #fff; letter-spacing: .3px;
}

/* ── Drop/Prize Banner (green gradient) ─────────────────────── */
.drop-banner {
    background: linear-gradient(135deg, #041811 0%, #0d2818 25%, #1f5238 60%, #2e8b57 100%);
    padding: 8px 12px 10px; position: relative;
    overflow: hidden; text-align: center;
}
.drop-jackpot-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.drop-jackpot { font-size: 11px; color: #c9ff5a; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.drop-amount {
    font-family: 'Lora', serif; font-size: 20px; font-weight: 900;
    letter-spacing: -.5px; line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #fff 40%, #fbc02d 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.drop-pts-label { font-size: 10px; color: #fbc02d; font-weight: 800; letter-spacing: 2px; }
.drop-timer-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.drop-timer-label { font-size: 12px; color: rgba(255,255,255,.85); font-weight: 600; }
.drop-timer-pill {
    display: inline-block;
    background: linear-gradient(135deg, #c9ff5a 0%, #9bc73e 100%);
    color: #0d2818; padding: 3px 12px; border-radius: 24px;
    font-size: 14px; font-weight: 900; font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 0 18px rgba(201,255,90,.55);
    animation: timer-pulse 1.5s ease-in-out infinite;
    border: 1.5px solid rgba(255,255,255,.3);
}
@keyframes timer-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(201,255,90,.55); transform: scale(1); }
    50%       { box-shadow: 0 0 30px rgba(201,255,90,.85); transform: scale(1.04); }
}

/* ── Result Cards ───────────────────────────────────────────── */
.results-row {
    display: flex; justify-content: center;
    gap: 8px; margin-bottom: 8px; padding: 8px 0;
}
.result-card {
    flex: 1; background: #fff; border: 1px solid #ebeef0;
    border-radius: 10px; padding: 12px 10px;
    text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.result-card-next { border-color: #1a8eea !important; box-shadow: 0 2px 12px rgba(26,142,234,.2) !important; }
.result-title { font-size: .65rem; font-weight: 700; color: #888; margin-bottom: 4px; letter-spacing: 1.5px; text-transform: uppercase; }
.result-date  { font-size: .72rem; color: #888; margin-bottom: 2px; font-weight: 500; }
.result-time  { font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; font-family: 'Inter', sans-serif; color: #1a1a1a; }
.result-time-past { color: #888; }
.result-time-next { color: #1a8eea; }
.live-dot {
    display: inline-block; width: 7px; height: 7px;
    background: #4caf50; border-radius: 50%;
    animation: live-blink 1s infinite alternate; vertical-align: middle;
}
@keyframes live-blink { 0% { opacity: 1; } 100% { opacity: .2; } }

/* ── Yantra / Product Grid (CSS Grid, responsive columns) ────── */
.product-row { display: flex; gap: 10px; margin-bottom: 10px; } /* legacy fallback */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.product-card {
    position: relative; cursor: pointer;
    border: 2px solid transparent;
    background-image: linear-gradient(#fff, #fff), linear-gradient(135deg, #fbc02d, #c9ff5a, #fbc02d);
    background-origin: border-box; background-clip: padding-box, border-box;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
    transition: transform .15s;
}
.product-card:hover  { transform: translateY(-2px); }
.product-card:active { transform: scale(.97); }
.product-card img    { width: 100%; display: block; }

/* Top row of product card: LIVE badge left, market code badge right */
.card-top-row {
    position: absolute; top: 0; left: 0; right: 0; z-index: 2;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 6px;
}
.yc-name { font-weight: 800; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.95); }
.yc-code-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0d47a1 0%, #1a8eea 100%);
    color: #fff; padding: 3px 10px; border-radius: 0 0 0 8px;
    font-family: 'Inter', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: 1.5px;
    box-shadow: 0 3px 10px rgba(26,142,234,.55);
    border: 1.5px solid rgba(255,255,255,.5);
    border-top: 0; border-right: 0;
    animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(26,142,234,.55); }
    50%       { box-shadow: 0 3px 20px rgba(26,142,234,.9); }
}

/* ── Reward Cards (adapted to light theme) ──────────────────── */
.reward-card { border-radius: 10px; padding: 14px 12px; cursor: pointer; border: 1px solid #ebeef0; background: #f5f7f8; transition: transform .2s; margin-bottom: 8px; }
.reward-card:hover { transform: translateY(-2px); }
.reward-card-red  { background: linear-gradient(135deg, #fff5f7, #fff); border-color: rgba(196,30,58,.2); }
.reward-card-teal { background: linear-gradient(135deg, #f0fdf4, #fff); border-color: rgba(46,125,50,.2); }
.reward-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border: 1.5px solid #ebeef0; flex-shrink: 0; }
.icon-red  { background: rgba(196,30,58,.08); border-color: rgba(196,30,58,.3); }
.icon-teal { background: rgba(46,125,50,.08);  border-color: rgba(46,125,50,.3); }
.reward-badge  { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 20px; letter-spacing: .3px; white-space: nowrap; }
.badge-pink    { background: rgba(196,30,58,.1); color: #c41e3a; border: 1px solid rgba(196,30,58,.3); }
.badge-teal    { background: rgba(46,125,50,.1); color: #2e7d32; border: 1px solid rgba(46,125,50,.3); }
.reward-title  { font-size: .65rem; font-weight: 800; color: #555; letter-spacing: 1px; text-transform: uppercase; margin: 8px 0 4px; }
.reward-ratio-new { display: flex; align-items: baseline; gap: 3px; }
.ratio-prefix  { font-size: 11px; color: #888; }
.ratio-big     { font-size: 1.8rem; font-weight: 900; color: #1a1a1a; }
.ratio-unit    { font-size: 12px; color: #888; }
.reward-card-red  .ratio-big { color: #c41e3a; }
.reward-card-teal .ratio-big { color: #2e7d32; }

/* ── Result Sheet Button ────────────────────────────────────── */
.result-sheet-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; color: #1a8eea; text-decoration: none;
    font-weight: 800; font-size: .8rem; letter-spacing: 1.5px;
    line-height: 1; padding: 7px 16px; border: 1.5px solid #1a8eea;
    border-radius: 8px; background: #fff;
    box-shadow: 0 2px 8px rgba(26,142,234,.15); transition: all .2s;
}
.result-sheet-btn:hover { background: #e8f4fd; box-shadow: 0 4px 16px rgba(26,142,234,.25); color: #1565c0; }
.result-sheet-icon { font-size: .95rem; line-height: 1; }

/* ── Draw Timer (compact, for dashboard) ────────────────────── */
.draw-timer-wrap {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 6px 12px; margin-bottom: 8px;
    background: #f5f7f8; border: 1px solid #ebeef0; border-radius: 10px;
}
.timer-label-top { font-size: .6rem; color: #888; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.draw-clock-compact { display: flex; align-items: center; gap: 4px; }
.clock-digit-sm {
    background: #fff; border: 1px solid #ebeef0; border-radius: 5px;
    color: #1a8eea; font-size: .95rem; font-weight: 800;
    width: 32px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.clock-sep-sm { font-size: 1rem; font-weight: 700; color: #aaa; margin-bottom: 10px; line-height: 1; }

/* ── Prize Pool Card ────────────────────────────────────────── */
.prize-pool-card {
    background: linear-gradient(135deg, #041811, #0d2818, #2e8b57);
    border-radius: 10px; padding: 14px 16px;
    margin-bottom: 8px; overflow: hidden; position: relative;
}
.prize-trophy  { font-size: 2.2rem; line-height: 1; }
.prize-label   { font-size: .58rem; color: rgba(255,255,255,.7); font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.prize-amount  { font-size: 1.2rem; font-weight: 800; color: #c9ff5a; }
.prize-count   { font-size: 1.2rem; font-weight: 800; color: #fbc02d; }

/* ── Footer ─────────────────────────────────────────────────── */
.vx-footer-top {
    background: #1a8eea; color: #fff;
    padding: 22px 18px 26px; text-align: center;
}
.footer-links-row { display: flex; justify-content: space-around; align-items: center; margin-bottom: 22px; gap: 14px; }
.footer-links-row a { color: #fff; text-decoration: underline; font-size: 15px; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-support { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.vx-footer-mid { background: #fff; padding: 24px 18px 20px; }

.ssl-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.ssl-shield-img { width: 120px; flex-shrink: 0; border-radius: 5px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ssl-shield-top { background: linear-gradient(180deg, #5dba5d 0%, #3a8a3a 100%); padding: 10px 6px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ssl-check-circle { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #2e7d2e; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.ssl-text-secure { color: #fff; font-weight: 900; font-size: 14px; letter-spacing: 1.2px; }
.ssl-shield-bot { background: #2a2a2a; color: #fff; font-size: 9px; font-weight: 700; text-align: center; padding: 5px 4px; letter-spacing: 1.5px; }
.ssl-info { flex: 1; min-width: 0; }
.ssl-title { font-size: 20px; font-weight: 800; color: #1a1a1a; letter-spacing: -.4px; margin-bottom: 4px; }
.ssl-sub   { font-size: 13px; color: #444; line-height: 1.4; font-weight: 500; }

.cert-badges { display: flex; justify-content: center; gap: 12px; margin: 0 0 20px; }
.cert-badge  { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; }
.cert-18plus { background: #2a2a2a; border: 2.5px solid #c41e3a; font-size: 14px; font-weight: 900; }
.cert-gamcare { background: #4a4a4a; flex-direction: column; line-height: 1; gap: 1px; padding: 6px 0; }
.cert-gamcare .gc-g    { font-size: 18px; font-weight: 900; font-style: italic; font-family: Georgia, serif; }
.cert-gamcare .gc-care { font-size: 6.5px; font-weight: 800; letter-spacing: .6px; }
.cert-gt { background: #2a2a2a; font-size: 18px; font-weight: 900; }
.footer-copyright { font-size: 12px; color: #555; text-align: center; line-height: 1.5; font-weight: 500; }
.footer-copyright b { color: #1a1a1a; font-weight: 800; }

/* ── LIVE Badge (left side of card top row) ─────────────────── */
.live-badge {
    background: #d32f2f; color: #fff;
    font-size: 8px; font-weight: 800; letter-spacing: .8px;
    padding: 2px 6px; border-radius: 0 0 8px 0;
    display: inline-flex; align-items: center; gap: 2px;
    text-transform: uppercase;
    box-shadow: 0 1px 6px rgba(211,47,47,.55);
    animation: live-badge-pulse 1.4s ease-in-out infinite;
}
@keyframes live-badge-pulse {
    0%, 100% { box-shadow: 0 1px 6px rgba(211,47,47,.55); }
    50%       { box-shadow: 0 1px 12px rgba(211,47,47,.85); }
}

/* ── Yantra Info Row (below product grid) ───────────────────── */
.yantra-info-row {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: center; gap: 3px;
    font-size: 10.5px; color: #666; font-weight: 500;
    padding: 9px 8px; text-align: center;
    background: #f5f7f8; border-radius: 8px;
    margin-bottom: 12px;
}
.yantra-info-sep { color: #bbb; font-weight: 700; margin: 0 2px; }

/* ── Bootstrap Global Overrides ─────────────────────────────── */
.form-control, .form-select {
    border-color: #ebeef0; color: #1a1a1a; background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: #1a8eea;
    box-shadow: 0 0 0 .2rem rgba(26,142,234,.18);
    color: #1a1a1a; background-color: #fafdff;
}
.form-select option { background: #fff; color: #1a1a1a; }
.form-label { color: #555; font-size: .82rem; font-weight: 600; }

/* ── Glows → plain white cards in light theme ───────────────── */
.gold-glow, .red-glow, .blue-glow, .purple-glow, .green-glow {
    border-radius: 10px; background: #fff;
    border: 1px solid #ebeef0;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   Mobile-first base → Tablet 768px → Desktop 1024px → Wide 1400px
   ══════════════════════════════════════════════════════════════ */

/* Base (mobile, < 768px) — already styled above */
body { overflow-x: hidden; }
.app, .mgmt-app { overflow-x: hidden; }

/* ── Small phone (< 400px) ─── */
@media (max-width: 400px) {
    .main-container  { padding: 8px 8px 16px; }
    .brand-icon      { font-size: 26px; }
    .brand-line1     { font-size: 15px; }
    .brand-line2     { font-size: 11px; }
    .product-grid    { gap: 6px; }
    .drop-amount     { font-size: 17px; }
    .drop-timer-pill { font-size: 13px; padding: 3px 10px; }
    .exch-tab        { padding: 10px 10px; font-size: 10px; letter-spacing: .5px; }
    .yantra-info-row { font-size: 9.5px; }
}

/* ── Tablet (≥ 768px): 3-column product grid ─── */
@media (min-width: 768px) {
    .app              { max-width: 900px; }
    .product-grid     { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .topbar           { padding: 11px 20px; }
    .main-container   { padding: 16px 18px 28px; }
    .exch-search-bar  { padding: 0 20px 10px; }
    .exch-featured-row{ padding: 8px 20px; }
    .exch-tab         { padding: 12px 18px; font-size: 12px; }
    .drop-banner      { padding: 10px 24px 12px; }
    .drop-amount      { font-size: 24px; }
    .drop-timer-pill  { font-size: 16px; padding: 4px 14px; }
    .drop-jackpot     { font-size: 12px; }
    .drop-pts-label   { font-size: 11px; }
    .result-time      { font-size: 1.5rem; }
    .yantra-info-row  { font-size: 12px; padding: 10px 14px; }
}

/* ── Desktop (≥ 1024px): full width, 4-column grid ─── */
@media (min-width: 1024px) {
    .app              { max-width: 100%; }
    .product-grid     { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .topbar           { padding: 13px 40px; }
    .brand-icon       { font-size: 32px; }
    .brand-line1      { font-size: 18px; }
    .brand-line2      { font-size: 14px; }
    .tb-bal           { font-size: 14px; }
    .tb-exp           { font-size: 14px; }
    .tb-user-btn      { font-size: 14px; }
    .tb-caret         { font-size: 10px; }
    .main-container   { max-width: 1400px; margin: 0 auto; padding: 20px 32px 40px; }
    .exch-search-bar  { padding: 0 40px 12px; }
    .exch-featured-row{ padding: 10px 40px; gap: 12px; }
    .exch-tabs-row    { padding: 0 40px; }
    .drop-banner      { padding: 12px 40px 14px; }
    .drop-jackpot     { font-size: 13px; letter-spacing: 2.5px; }
    .drop-amount      { font-size: 28px; letter-spacing: -1px; }
    .drop-pts-label   { font-size: 12px; }
    .drop-timer-pill  { font-size: 18px; padding: 5px 18px; }
    .drop-timer-label { font-size: 14px; }
    .result-time      { font-size: 1.7rem; }
    .yantra-info-row  { font-size: 13px; padding: 12px 16px; }
    .result-sheet-btn { font-size: 1.1rem; padding: 16px 24px; }
    /* Elections: wider padding on desktop */
    .exch-section-hdr { padding: 10px 32px; font-size: 14px; }
    .el-event-row     { padding: 12px 32px 10px; }
    .el-section       { max-width: 1400px; margin: 0 auto; }
    .el-row-name, .el-bm-name   { padding: 13px 20px; }
    .el-runner-name              { font-size: .92rem; }
    .el-back-cell, .el-lay-cell,
    .el-bm-no-cell, .el-bm-yes-cell,
    .el-nil-cell, .el-bm-nil-cell { font-size: 1.08rem; }
}

/* ── Wide (≥ 1400px): 5 columns if many yantras ─── */
@media (min-width: 1400px) {
    .topbar           { padding: 13px 56px; }
    .exch-search-bar  { padding: 0 56px 12px; }
    .exch-featured-row{ padding: 10px 56px; }
    .exch-tabs-row    { padding: 0 56px; }
    .drop-banner      { padding: 12px 56px 14px; }
    .drop-amount      { font-size: 30px; }
    .drop-timer-pill  { font-size: 20px; padding: 5px 20px; }
    .main-container   { padding: 24px 56px 48px; }
    .product-grid     { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════
   DIAMOND DROP DASHBOARD (brand-blue section between tabs and footer)
   Section bg matches topbar/footer blue (#1a8eea); panels are deep blue.
   Accent themes cycle 0-3: green / blue / purple / orange
   ══════════════════════════════════════════════════════════════ */

/* Accent variables (also used by .lb-drop-badge in the leaderboard) */
.dg-accent-0 { --dga: #2ee66b; --dga-deep: #0f7a35; --dga-soft: rgba(46,230,107,.18); --dga-glow: rgba(46,230,107,.5); }
.dg-accent-1 { --dga: #4dd0ff; --dga-deep: #0d6ec2; --dga-soft: rgba(77,208,255,.18); --dga-glow: rgba(77,208,255,.5); }
.dg-accent-2 { --dga: #d05cff; --dga-deep: #7a1bb0; --dga-soft: rgba(208,92,255,.18); --dga-glow: rgba(208,92,255,.5); }
.dg-accent-3 { --dga: #ffb340; --dga-deep: #c26a05; --dga-soft: rgba(255,179,64,.18); --dga-glow: rgba(255,179,64,.5); }

.dg-section {
    background: #1a8eea;
    padding: 12px 12px 20px;
}
.dg-inner { max-width: 480px; margin: 0 auto; }

/* ── Promo banner ───
   The 3 groups (98x callout, clock, lucky-winner) sit centered as one
   compact cluster - looks right on both a narrow phone and a wide desktop
   card, unlike a full-width space-between spread which leaves the desktop
   version looking oddly stretched out to the edges.
   dgFitPromoRow() (user_dashboard.ejs) uniformly scales the whole row down
   with a CSS transform, anchored at its own center, if it doesn't fit the
   card's width - the same way a photo shrinks, so nothing gets cut off.
   The whole card is the click target (no separate Play Now button in the
   row) so the 3 remaining pieces get more room and render bigger. */
.dg-promo {
    display: block;
    background:
        radial-gradient(circle at 15% 20%, rgba(124,58,237,.25), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(77,140,255,.18), transparent 50%),
        linear-gradient(135deg, #1b0f3d 0%, #100a2e 45%, #0a0620 100%);
    border: 1px solid rgba(168,85,247,.5);
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 5px;
    box-shadow: 0 0 20px rgba(168,85,247,.25), 0 4px 14px rgba(0,0,0,.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}
.dg-promo-scale-wrap {
    position: relative; z-index: 1;
    overflow: hidden;
}
.dg-promo-row {
    display: inline-flex; align-items: center;
    gap: 40px;
    white-space: nowrap;
    transform-origin: left top;
}
.dg-promo-left { line-height: 1; text-align: center; }
.dg-promo-win {
    font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; font-size: 13px;
    letter-spacing: .5px; color: #fff; margin-bottom: 1px;
    font-style: italic; transform: skewX(-4deg); display: block;
}
.dg-promo-mult {
    font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; font-size: 46px;
    line-height: 1;
    font-style: italic; transform: skewX(-6deg); display: block;
    background: linear-gradient(180deg, #fff2c4 0%, #ffd15c 35%, #ff9d1f 75%, #e8790a 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-stroke: 1.5px #5c2c00;
    filter: drop-shadow(0 2px 0 #7a3d00) drop-shadow(0 0 10px rgba(255,157,31,.45));
}
/* The "x" glyph's two diagonal strokes cross near the top - with the
   parent's dark stroke color that crossing doubles up into a visible dark
   smudge the rounder digit glyphs never hit. Filling + stroking this
   character in one flat color (instead of the parent's gradient-fill +
   dark-stroke combo) keeps the bold outlined look with no seam for the
   overlap to show up as a different, darker color. */
.dg-promo-mult-x {
    background: none;
    -webkit-background-clip: initial; background-clip: initial;
    color: #ffb340;
    -webkit-text-stroke: 1.5px #ffb340;
    filter: drop-shadow(0 0 10px rgba(255,157,31,.45));
}
.dg-promo-rewards {
    font-family: 'Anton', 'Inter', sans-serif; font-weight: 400; font-size: 17px;
    letter-spacing: .3px; color: #fff; margin-top: 1px;
    font-style: italic; transform: skewX(-4deg); display: block;
}
.dg-promo-mid { flex-shrink: 0; }
.dg-promo-clock {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 90px; height: 90px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #4dd0ff, #7c3aed, #d05cff);
    box-shadow: 0 0 14px rgba(124,58,237,.45);
    flex-shrink: 0;
}
.dg-promo-clock::before {
    content: '';
    position: absolute; inset: 3px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #241a4d 0%, #0c0824 75%);
    box-shadow: 0 0 16px rgba(124,58,237,.55) inset;
}
.dg-promo-clock-crown {
    position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    width: 11px; height: 6px; border-radius: 3px;
    background: linear-gradient(135deg, #d05cff, #7c3aed);
}
.dg-promo-clock-knob {
    position: absolute; top: -2px; width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(135deg, #4dd0ff, #7c3aed);
    box-shadow: 0 0 6px rgba(124,58,237,.6);
}
.dg-promo-clock-knob-l { left: 4px; transform: rotate(-35deg); }
.dg-promo-clock-knob-r { right: 4px; transform: rotate(35deg); }
.dg-promo-clock-text {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    font-family: 'Inter', sans-serif; color: #fff; line-height: 1.1;
}
.dg-promo-clock-text span { font-size: 7.5px; font-weight: 800; letter-spacing: .3px; color: rgba(255,255,255,.75); }
.dg-promo-clock-text b { font-size: 22px; font-weight: 900; color: #4dd0ff; text-shadow: 0 0 8px rgba(77,208,255,.6); }

.dg-promo-lucky {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-family: 'Inter', sans-serif; font-weight: 800; font-size: 12px;
    letter-spacing: .3px; color: #ffd54f; line-height: 1.25;
    white-space: nowrap;
}
.dg-promo-lucky-icons { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px; }
.dg-promo-gift { font-size: 16px; color: #d05cff; flex-shrink: 0; }
.dg-promo-trophy { font-size: 19px; color: #ffb340; filter: drop-shadow(0 0 5px rgba(255,179,64,.5)); flex-shrink: 0; }
.dg-promo-mini-play {
    display: flex; align-items: center; gap: 4px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 9px;
    letter-spacing: .3px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 0 8px rgba(168,85,247,.5);
}
.dg-promo-mini-play i { font-size: 7px; }

/* ── Draw row: countdown card + draw info card ─── */
.dg-draw-row {
    display: flex; align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    background: linear-gradient(180deg, #0b1134 0%, #060b22 100%);
    border: 1px solid rgba(168,85,247,.5);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 0 14px rgba(168,85,247,.25), 0 4px 14px rgba(0,0,0,.25);
}
.dg-timer-half { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.dg-timer-ico-wrap {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #4dd0ff, #7c3aed, #d05cff);
    box-shadow: 0 0 10px rgba(124,58,237,.5);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.dg-timer-ico-wrap::before {
    content: '';
    position: absolute; inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #241a4d 0%, #0c0824 75%);
}
.dg-timer-ico-wrap i { position: relative; z-index: 1; color: #fff; font-size: 15px; }
.dg-timer-info { min-width: 0; }
.dg-timer-label {
    font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
    color: #b39bff; margin-bottom: 6px;
}
.dg-clock { display: flex; align-items: flex-start; gap: 4px; }
.dg-clock-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dg-clock-digit {
    font-family: 'Inter', sans-serif;
    font-size: 22px; font-weight: 900; color: #fff;
    line-height: 1.1; min-width: 28px; text-align: center;
}
.dg-clock-lbl { font-size: 7.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.55); text-transform: uppercase; }
.dg-clock-sep { font-size: 20px; font-weight: 800; color: rgba(255,255,255,.6); line-height: 1.2; }

.dg-draw-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.14); flex-shrink: 0; }

.dg-draw-half { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.dg-draw-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.dg-draw-id, .dg-draw-time { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-draw-id   { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #ffd54f; }
.dg-draw-id b { color: #fff; font-weight: 900; }
.dg-draw-time   { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: rgba(255,255,255,.8); }
.dg-draw-time b { color: #fff; font-weight: 900; }
.dg-draw-copy {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 7px; font-size: 12px; line-height: 1;
    box-shadow: 0 0 10px rgba(168,85,247,.5);
}

/* ── Drop market cards ─── */
.dg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; margin-bottom: 14px;
}
.dg-card {
    background:
        radial-gradient(120% 90% at 50% 0%, var(--dga-soft) 0%, rgba(0,0,0,0) 55%),
        linear-gradient(180deg, #0b1134 0%, #060b22 100%);
    border: 1.5px solid var(--dga);
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    box-shadow: 0 0 16px var(--dga-soft), 0 4px 14px rgba(0,0,0,.25);
    transition: transform .15s, box-shadow .15s;
}
.dg-card:hover  { transform: translateY(-2px); box-shadow: 0 0 24px var(--dga-glow), 0 4px 14px rgba(0,0,0,.25); }
.dg-card:active { transform: scale(.97); }

.dg-card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.dg-letter {
    width: 26px; height: 26px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--dga) 0%, var(--dga-deep) 100%);
    color: #fff; font-size: 14px; font-weight: 900;
    border-radius: 6px;
    box-shadow: 0 0 8px var(--dga-glow);
}
.dg-title-wrap { flex: 1; min-width: 0; }
.dg-title {
    font-size: 12px; font-weight: 800; color: #fff;
    letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dg-code { font-size: 8.5px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.6); }
.dg-live {
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff; font-size: 8px; font-weight: 800; letter-spacing: 1px;
    padding: 3px 7px; border-radius: 20px;
}
.dg-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--dga);
    box-shadow: 0 0 6px var(--dga-glow);
    animation: live-blink 1s infinite alternate;
}
.dg-card-img { width: 100%; display: block; border-radius: 8px; }

/* ── Result wheel (dual-ring dial: outer = tens digit, inner = units digit) ── */
.dg-wheel {
    position: relative;
    width: 100%;
    max-width: 190px;
    aspect-ratio: 1 / 1;
    margin: 4px auto 8px;
    --dg-outer-digit-gap: 0px;
}
.dg-wheel-ring {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,.15) inset, 0 2px 10px rgba(0,0,0,.35);
    transition: transform 3s cubic-bezier(.12,.72,.2,1);
}
.dg-wheel-outer { inset: 0; }
.dg-wheel-inner { inset: 22%; }
.dg-wheel-ring.dg-wheel-idle-spin { transition: none; animation: dg-wheel-idle-rotate linear infinite; }
.dg-wheel-outer.dg-wheel-idle-spin { animation-duration: 9s; }
.dg-wheel-inner.dg-wheel-idle-spin { animation-duration: 6s; animation-direction: reverse; }
@keyframes dg-wheel-idle-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.dg-wheel-digit {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 800; color: rgba(255,255,255,.92);
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
    pointer-events: none;
}
.dg-wheel-outer .dg-wheel-digit { font-size: 11px; }
.dg-wheel-inner .dg-wheel-digit { font-size: 10px; }

.dg-wheel-pointer {
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    z-index: 3;
}

.dg-wheel-readout {
    position: absolute;
    inset: 34%;
    border-radius: 50%;
    background: rgba(6,11,32,.88);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 900; font-size: 0.95rem; color: #fff;
    letter-spacing: 0.5px;
    z-index: 2;
    opacity: 0;
    transition: opacity .3s;
}
.dg-wheel-readout.dg-wheel-readout-visible { opacity: 1; }

/* ── Result sheet button ─── */
.dg-result-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-bottom: 14px;
    background: linear-gradient(180deg, #0b1134 0%, #060b22 100%);
    border: 1px solid rgba(77,140,255,.55);
    border-radius: 12px;
    color: #fff; text-decoration: none;
    font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
    padding: 12px 16px;
    box-shadow: 0 0 14px rgba(77,140,255,.2);
    transition: filter .15s, box-shadow .15s;
}
.dg-result-btn:hover { filter: brightness(1.2); color: #fff; box-shadow: 0 0 18px rgba(77,140,255,.4); }
.dg-result-ico  { font-size: 14px; line-height: 1; }
.dg-result-chev { margin-left: auto; font-size: 18px; line-height: 1; color: rgba(255,255,255,.75); }

/* ── Leaderboard: deep-blue skin inside the drop section only ─── */
.dg-section .lb-section { background: linear-gradient(180deg, #0b1134 0%, #060b22 100%); border: 1px solid rgba(77,140,255,.4); box-shadow: 0 0 14px rgba(77,140,255,.15), 0 4px 14px rgba(0,0,0,.25); margin: 0; }
.dg-section .lb-hdr { background: transparent; color: #ffd54f; }
.dg-section .lb-hdr-sub { color: rgba(255,255,255,.55); }
.dg-section .lb-table th { color: rgba(255,255,255,.6); border-bottom-color: rgba(255,255,255,.15); }
.dg-section .lb-table td { color: rgba(255,255,255,.9); border-bottom-color: rgba(255,255,255,.08); }
.dg-section .lb-game { color: rgba(255,255,255,.75); }
.dg-section .lb-amt  { color: #2ee66b; }

/* Drop letter badge in leaderboard rows */
.lb-drop-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 26px; height: 20px; padding: 0 5px; border-radius: 5px;
    background: linear-gradient(135deg, var(--dga) 0%, var(--dga-deep) 100%);
    color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .3px;
    box-shadow: 0 0 6px var(--dga-glow);
}

/* ── Responsive ─── */
@media (max-width: 400px) {
    .dg-clock-digit { font-size: 19px; min-width: 26px; }
    .dg-draw-id, .dg-draw-time { font-size: 10px; }
    .dg-grid { gap: 8px; }
}
@media (min-width: 768px) {
    .dg-section { padding: 16px 20px 26px; }
    .dg-inner   { max-width: 900px; }
    .dg-top-row {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 14px;
    }
    .dg-top-row .dg-promo, .dg-top-row .dg-draw-row { margin-bottom: 0; }
    .dg-grid    { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .dg-draw-row { gap: 24px; padding: 14px 22px; }
    .dg-clock-digit { font-size: 26px; }
    .dg-draw-id, .dg-draw-time { font-size: 13px; }
    .dg-draw-half { gap: 10px; }
    .dg-draw-copy { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
    .dg-timer-ico-wrap { width: 48px; height: 48px; }
    .dg-timer-ico-wrap i { font-size: 20px; }
    .dg-title { font-size: 14px; }
    .dg-code  { font-size: 10px; }
    .dg-wheel { --dg-outer-digit-gap: 6px; }
}
@media (min-width: 1024px) {
    .dg-section { padding: 20px 32px 34px; }
    .dg-inner   { max-width: 1400px; }
    .dg-grid    { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .dg-draw-row { max-width: 720px; }
    .dg-result-btn { font-size: 14px; padding: 15px 20px; }
}
