/* ===== 9XLive / 7wickets Homepage Theme (Responsive) ===== */
:root {
    --header-bg: #000000;
    --nav-red: #e10915;
    --nav-red-dark: #c0070f;
    --page-bg: #f1efe2;
    --gold: #ffcc00;
    --play-blue: #2b6df0;
    --text-light: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Tahoma, Arial, sans-serif;
}

body {
    background-color: var(--page-bg);
    color: #222;
    padding-bottom: 0;
}

/* ===== TOP HEADER ===== */
.top-header {
    background: #000;
    border-bottom: 1px solid #000;
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-style: italic;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-mark {
    color: #fff;
    background: linear-gradient(90deg, #00c2ff, #0066ff);
    padding: 2px 6px;
    border-radius: 4px;
    transform: skewX(-8deg);
    box-shadow: 0 0 8px rgba(0,150,255,0.6);
}

.logo-live {
    color: #2b8dff;
    margin-left: 4px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 0 10px;
    width: 280px;
    height: 34px;
}

.search-box .search-icon { color: #888; font-size: 14px; margin-right: 6px; }
.search-box input { border: none; outline: none; width: 100%; font-size: 13px; background: transparent; }

/* Logged-out form */
.login-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.login-field {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    padding: 0 8px;
    height: 32px;
    width: 150px;
}

.login-field .field-icon { color: #999; font-size: 13px; }
.login-field input { border: none; outline: none; width: 100%; font-size: 13px; padding: 0 6px; }
.login-field .eye { cursor: pointer; }

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #ff2d2d 0%, #e10915 45%, #b8000b 100%);
    color: #fff;
    border: 1px solid #8f0000;
    padding: 0 14px;
    height: 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 2px 4px rgba(0,0,0,0.18);
}

.signup-btn {
    background: linear-gradient(180deg, #ffd54a, #ffb300);
    color: #5a3d00;
    border: none;
    padding: 0 18px;
    height: 36px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.signup-btn:hover { filter: brightness(1.05); }

/* Logged-in account bar (Balance + D/W) */
.account-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.balance-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid #515151;
    border-radius: 3px;
    background: #090909;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.balance-main {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    min-width: 140px;
}

.bal-label { font-size: 10px; color: #e5e5e5; font-weight: 700; }
.bal-amount { font-size: 12px; font-weight: 700; color: #fff; margin-top: 2px; }

.balance-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    white-space: nowrap;
}

.bal-exposure { color: #f0f0f0; }

.bal-plus {
    height: 18px;
    min-width: 28px;
    padding: 0 6px;
    border: 1px solid #666;
    border-radius: 3px;
    background: #202020;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.refresh-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #5b5b5b;
    border-radius: 4px;
    background: #101010;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.my-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #5b5b5b;
    border-radius: 4px;
    background: #101010;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.my-account-btn span:first-child { font-size: 14px; }

/* Mobile Logout Nav */
.mobile-logout-nav {
    display: none;
    background: #000;
    border-bottom: 1px solid #222;
}

.mobile-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 10px;
}

.mobile-auth-buttons {
    display: flex;
    gap: 8px;
}

.mob-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(180deg, #ff2d2d 0%, #e10915 45%, #b8000b 100%);
    color: #fff;
    border: 1px solid #8f0000;
    padding: 0 14px;
    height: 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 2px 4px rgba(0,0,0,0.18);
}

.mob-signup-btn {
    background: linear-gradient(180deg, #ffd54a, #ffb300);
    color: #5a3d00;
    border: none;
    padding: 0 18px;
    height: 36px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.mob-signup-btn:hover { filter: brightness(1.05); }

.mobile-login-bar {
    display: none;
    background: #0d0d0d;
    color: #fff;
    border-bottom: 1px solid #262626;
}

.mobile-login-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    min-height: 30px;
}

.mobile-login-row + .mobile-login-row {
    border-top: 1px solid #1f1f1f;
}

.mobile-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid #454545;
    border-radius: 2px;
    background: linear-gradient(180deg, #2f2f2f 0%, #141414 100%);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.mobile-tab.active {
    box-shadow: inset 0 -2px 0 var(--gold);
}

.bets-tab {
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
    border: 1px solid #555;
}

.mobile-top-summary {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.mobile-mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: #fff;
    font-size: 10px;
}

.mobile-mini-label { color: #d9d9d9; }
.mobile-mini-exposure { color: #f1f1f1; }

.mobile-mini-plus {
    height: 16px;
    min-width: 24px;
    padding: 0 5px;
    border: 1px solid #737373;
    border-radius: 2px;
    background: #252525;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-mini-icon {
    width: 22px;
    height: 22px;
    border: 1px solid #545454;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.mobile-bottom-row {
    background: #101010;
}

.mobile-bottom-spacer {
    width: 22px;
}

.mobile-date {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: #d8d8d8;
    letter-spacing: 0.2px;
}

/* ===== RED NAV BAR ===== */
.main-nav {
    background: var(--nav-red);
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-left: 8px;
    overflow-x: auto;
}

.nav-left, .nav-right { display: flex; align-items: center; }

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 12px 12px;
    position: relative;
    white-space: nowrap;
}
.nav-item:hover, .nav-item.active { background: var(--nav-red-dark); }

.nav-item .badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #444;
    color: #ffcc00;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 3px;
}

.nav-right { gap: 4px; }
.timezone { color: #fff; font-size: 12px; padding: 0 12px; white-space: nowrap; }
.one-click {
    background: #000; color: #ffcc00; font-size: 12px; font-weight: bold;
    display: flex; align-items: center; gap: 5px; padding: 0 14px; cursor: pointer; white-space: nowrap;
}
.setting {
    background: var(--nav-red-dark); color: #fff; text-decoration: none;
    font-size: 13px; font-weight: bold; display: flex; align-items: center; padding: 0 16px; white-space: nowrap;
}

/* ===== CONTENT ===== */
.content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

.hero-track {
    display: flex;
    transition: transform 0.45s ease;
}

.hero-slide {
    min-width: 100%;
    height: 230px;
    background:
        radial-gradient(circle at 30% 50%, rgba(120,40,200,0.55), transparent 60%),
        linear-gradient(120deg, #2a0a4a 0%, #4a0d6e 40%, #14122e 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    color: #fff;
}

.hero-slide.hero-banner {
    background-size: cover;
    background-position: center;
    padding: 0;
    align-items: flex-end;
    justify-content: flex-start;
}
.hero-track a { min-width: 100%; text-decoration: none; }
.hero-caption {
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 16px;
    margin: 14px;
    border-radius: 4px;
}

.hero-premium { font-size: 26px; letter-spacing: 8px; color: #d9c7ff; }
.hero-cricket {
    font-size: 72px; font-weight: 900; color: #ff3df0;
    text-shadow: 0 0 18px rgba(255,61,240,0.9), 0 0 40px rgba(120,0,255,0.6);
    line-height: 1;
}
.hero-toll { margin-top: 10px; font-size: 16px; letter-spacing: 1px; }
.hero-toll b { font-size: 22px; }
.hero-figure { font-size: 120px; opacity: 0.85; }

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 28px;
    width: 40px;
    height: 60px;
    cursor: pointer;
    z-index: 3;
}
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.dot { width: 24px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 2px; }
.dot.active { background: #fff; }

/* Promo banner */
.promo-banner {
    height: 110px;
    border-radius: 6px;
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 10% 50%, rgba(255,170,0,0.25), transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(255,170,0,0.25), transparent 40%),
        linear-gradient(90deg, #1a1a1a 0%, #2b2b2b 50%, #1a1a1a 100%);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.promo-text { display: flex; flex-direction: column; gap: 4px; }
.promo-orange { color: var(--gold); font-size: 26px; font-weight: 900; font-style: italic; }
.promo-white { font-size: 24px; font-weight: 900; }
.promo-white b { color: var(--gold); }
.promo-sub { font-size: 13px; color: #ffcc00; }

/* Game sections */
.game-section { margin-bottom: 8px; }
.section-title { display: none; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.card-grid .game-card { grid-column: span 2; }
.card-grid .game-card.sports { grid-column: span 2; }
.card-grid .game-card[data-span="1"] { grid-column: span 1; }
.card-grid .game-card[data-span="2"] { grid-column: span 2; }
.card-grid .game-card[data-span="3"] { grid-column: span 3; }
.card-grid .game-card[data-span="4"] { grid-column: span 4; }

.game-card {
    position: relative;
    height: 140px;
    border-radius: 4px;
    overflow: hidden;
    color: #fff;
    border-bottom: 6px solid var(--nav-red);
    box-shadow: 0 2px 5px rgba(0,0,0,0.24);
    cursor: pointer;
}

.game-card.skeleton {
    border-bottom-color: #d9d7c8;
    cursor: default;
    background: linear-gradient(90deg, #dddccd 25%, #eceadd 37%, #dddccd 63%);
    background-size: 400% 100%;
    animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.card-art {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 900;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    text-align: center;
    padding: 0 20px;
}
.art-accent { color: #ffe14d; font-size: 44px; }
.art-sub { font-size: 13px; font-weight: normal; margin-top: 8px; }

.card-footer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 43px;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 14px;
}
.card-title {
    min-width: 0;
    padding-right: 10px;
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    text-shadow: 0 1px 1px #000;
}
.play-now {
    background: var(--nav-red);
    color: #ffd54a;
    text-decoration: none;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 0 14px;
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
    border-radius: 0;
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);
    white-space: nowrap;
}
.play-now:hover { filter: brightness(1.1); color: #fff; }

.sports {
    background:
        linear-gradient(120deg, rgba(10,61,98,0.82) 0%, rgba(30,96,145,0.45) 50%, rgba(12,36,97,0.85) 100%),
        url('https://images.unsplash.com/photo-1540747913346-19e32dc3e97e?w=900&q=80') center/cover no-repeat,
        #0a3d62;
}
.sports .live-list {
    position: absolute; top: 10px; right: 10px; width: 150px;
    background: rgba(0,0,0,0.5); border-radius: 6px; padding: 5px; z-index: 2;
}
.live-head {
    display: flex; align-items: center; gap: 4px;
    background: var(--nav-red); color: #fff; font-size: 11px; font-weight: bold;
    padding: 2px 6px; border-radius: 3px; margin-bottom: 4px; justify-content: center;
}
.live-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2px 6px; margin-bottom: 2px; font-size: 12px;
}
.live-row:last-child { margin-bottom: 0; }
.live-row b { background: #fff; color: #111; padding: 0 6px; border-radius: 3px; font-size: 11px; min-width: 26px; text-align: center; }

.game-card.game-dyn {
    background: #1a1a1a center/cover no-repeat;
}
.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gold);
    color: #111;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.sportbook { background: linear-gradient(120deg, #3a0000 0%, #7a1010 50%, #1a0000 100%); }
.kingmaker { background: linear-gradient(120deg, #3d2f00 0%, #6b5300 50%, #1a1400 100%); }
.jili { background: linear-gradient(120deg, #b8860b 0%, #ffc107 50%, #8a6d00 100%); }
.jili .card-art { color:#5a3d00; }
.playtech { background: linear-gradient(120deg, #0d2b6b 0%, #1d52c9 50%, #081a44 100%); }
.sexy { background: linear-gradient(120deg, #2b2b2b 0%, #555 50%, #111 100%); }
.aviator { background: linear-gradient(120deg, #3a0000 0%, #8b0000 60%, #000 100%); }

/* ===== OPEN BETS MODAL ===== */
.bets-overlay {
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    z-index: 8000;
}
.bets-overlay.active {
    display: flex;
}
.bets-modal {
    width: 100%;
    max-width: 420px;
    background: #f5f5f5;
    min-height: 100vh;
    overflow: hidden;
}
.bets-header {
    background: linear-gradient(180deg, #ffc21b 0%, #ffb300 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0a800;
}
.bets-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.bets-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #1a1a1a;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bets-content {
    background: #fff;
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.no-bets-message {
    color: #888;
    font-size: 14px;
    text-align: center;
}

/* ===== MODALS ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(7, 11, 16, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 16px;
}
.modal-overlay.active { display: flex; animation: modalFade .2s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: linear-gradient(180deg, #1f2b38 0%, #141d26 100%);
    color: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 22px 22px 24px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,204,0,0.06);
    animation: modalPop .25s cubic-bezier(.34,1.4,.5,1);
}
@keyframes modalPop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: none; border-radius: 50%;
    color: #cdd9e5; font-size: 22px; cursor: pointer; transition: all .2s ease;
}
.modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.modal-tabs {
    display: flex; gap: 4px; margin-bottom: 18px;
    background: rgba(0,0,0,0.25); padding: 4px; border-radius: 10px;
}
.modal-tab {
    flex: 1; background: none; border: none; color: #9fb3c8;
    padding: 10px; font-size: 14px; font-weight: 700; cursor: pointer;
    border-radius: 8px; transition: all .2s ease; letter-spacing: .3px;
}
.modal-tab.active {
    color: #1a1206;
    background: linear-gradient(180deg, #ffd84d, #ffcc00);
    box-shadow: 0 4px 12px rgba(255,204,0,0.28);
}

.m-input {
    width: 100%;
    background: #0e161d;
    border: 1.5px solid #2a3a49;
    color: #fff;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.m-input::placeholder { color: #6b8096; }
.m-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255,204,0,0.15);
}
.m-submit {
    width: 100%;
    background: linear-gradient(180deg, #ffd84d 0%, #ffcc00 100%);
    color: #1a1206;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .4px;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 8px 20px rgba(255,204,0,0.25);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.m-submit:hover { filter: brightness(1.04); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255,204,0,0.32); }
.m-submit:active { transform: translateY(0); }
.m-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.dw-balance {
    background: linear-gradient(135deg, rgba(255,204,0,0.12), rgba(255,204,0,0.04));
    border: 1px solid rgba(255,204,0,0.22);
    border-radius: 12px; padding: 14px;
    text-align: center; font-size: 13px; color: #b8c6d4;
    margin-bottom: 16px; letter-spacing: .3px;
}
.dw-balance b { color: var(--gold); font-size: 20px; display: block; margin-top: 4px; }

.pay-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.pay-method {
    background: #243341; border: 1.5px solid #2f4150; color: #cdd9e5;
    padding: 12px 4px; border-radius: 10px; font-size: 11.5px; font-weight: 700;
    cursor: pointer; transition: all .18s ease; line-height: 1.25;
}
.pay-method:hover { border-color: #4a6076; transform: translateY(-1px); }
.pay-method.active {
    border-color: var(--gold); color: var(--gold);
    background: linear-gradient(180deg, rgba(255,204,0,0.16), rgba(255,204,0,0.06));
    box-shadow: 0 4px 12px rgba(255,204,0,0.18);
}
.pay-loading { grid-column: 1 / -1; text-align: center; color: #9fb3c8; font-size: 12px; padding: 10px; }

.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.quick-amounts button {
    background: #243341; border: 1.5px solid #2f4150; color: #cdd9e5;
    padding: 9px; border-radius: 9px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .18s ease;
}
.quick-amounts button:hover {
    border-color: var(--gold); color: var(--gold);
    background: rgba(255,204,0,0.08); transform: translateY(-1px);
}

/* ===== Toast notifications ===== */
.toast-wrap {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 6000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 32px);
    max-width: 420px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #1f2b38, #161f29);
    color: #eef3f8;
    border: 1px solid rgba(255,255,255,0.08);
    border-left: 4px solid #5a6b7b;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    animation: toastIn .28s cubic-bezier(.34,1.4,.5,1);
}
.toast.hide { animation: toastOut .25s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-12px); }
}
.toast-ico {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 13px; font-weight: 900;
    color: #fff;
}
.toast-msg { flex: 1; }
.toast-x {
    flex-shrink: 0;
    background: none; border: none; color: #8ea2b5;
    font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.toast-x:hover { color: #fff; }

.toast-success { border-left-color: #21c17a; }
.toast-success .toast-ico { background: #21c17a; }
.toast-error { border-left-color: #ef4444; }
.toast-error .toast-ico { background: #ef4444; }
.toast-warning { border-left-color: #f5a623; }
.toast-warning .toast-ico { background: #f5a623; color: #1a1206; }
.toast-info { border-left-color: var(--gold); }
.toast-info .toast-ico { background: var(--gold); color: #1a1206; }

/* ===== FOOTER ===== */
.site-footer {
    background: #f1efe2;
    border-top: 1px solid #dedacb;
    padding: 20px 16px 28px;
    text-align: center;
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.footer-socials a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5a3d00;
    background: rgba(0,0,0,0.08);
    transition: color 0.2s, background 0.2s, transform 0.15s;
}
.footer-socials a:hover { color: #fff; background: var(--nav-red); transform: translateY(-2px); }
.footer-socials svg { width: 26px; height: 26px; fill: currentColor; }
.footer-socials img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }

.footer-links {
    font-size: 12px;
    color: #5a3d00;
    line-height: 2;
    max-width: 420px;
    margin: 0 auto;
}
.footer-links a { color: #5a3d00; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; color: #7a0000; }
.footer-links span { margin: 0 6px; color: rgba(90,61,0,0.5); }

.footer-powered {
    margin-top: 14px;
    font-size: 12px;
    color: #6b4a00;
}
.footer-powered b { color: #3a2800; }

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #000;
    justify-content: space-around;
    align-items: flex-end;
    padding: 8px 0 6px;
    z-index: 4000;
    border-top: 1px solid #222;
}
.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #cfcfcf;
    text-decoration: none;
    font-size: 11px;
    flex: 1;
}
.bn-item .bn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bn-item .bn-icon svg { width: 24px; height: 24px; display: block; }
.bn-item.active { color: var(--gold); }

.bn-item.games .bn-icon {
    background: radial-gradient(circle, #6b4a1f, #2a1c08);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 50px; height: 50px;
    margin-top: -22px;
    color: var(--gold);
}
.bn-item.games .bn-icon svg { width: 26px; height: 26px; }

.bn-item.deposit-nav { color: var(--gold); }
.bn-item.deposit-nav .bn-icon {
    background: #1aa64b;
    border-radius: 10px;
    width: 38px; height: 38px;
    color: #fff;
    margin-top: -4px;
}

/* ===== SETTINGS SHEET ===== */
.settings-overlay {
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    z-index: 7000;
}
.settings-overlay.active {
    display: flex;
}
.settings-sheet {
    width: 100%;
    max-width: 420px;
    min-height: 100vh;
    background: #f4f6f8;
    color: #1f2a37;
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(0,0,0,0.35);
}
.settings-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffc21b 0%, #ffb300 100%);
    color: #1d1d1d;
    font-weight: 700;
}
.settings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}
.settings-title .gear { font-size: 15px; }
.settings-close {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.settings-section {
    padding: 7px 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.settings-section.red { background: #d10000; }
.settings-body,
.settings-list {
    background: #fff;
    border-bottom: 1px solid #d9dee6;
}
.settings-body { padding: 8px 10px 10px; }
.settings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.settings-label {
    min-width: 100px;
    font-weight: 700;
    color: #203040;
}
.settings-input {
    width: 100px;
    height: 34px;
    border: 1px solid #c0c9d6;
    border-radius: 4px;
    background: #edf3fa;
    padding: 0 8px;
    outline: none;
}
.settings-subhead,
.settings-subsection {
    font-weight: 700;
    color: #203040;
    margin: 8px 0 6px;
}
.stake-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}
.stake-grid button,
.edit-stakes {
    height: 34px;
    border: 1px solid #c7ced8;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff 0%, #e9edf2 100%);
    color: #2b2f36;
    font-weight: 700;
    cursor: pointer;
}
.edit-stakes {
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(180deg, #eef2f7 0%, #dde3eb 100%);
}
.settings-list { padding: 0 0 6px; }
.settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-top: 1px solid #e3e8ef;
    background: #fff;
}
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex: 0 0 auto;
}
.toggle input { display: none; }
.toggle span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d6dbe3;
    transition: background .2s ease;
}
.toggle span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
    transition: transform .2s ease;
}
.toggle input:checked + span {
    background: #63c132;
}
.toggle input:checked + span::after {
    transform: translateX(20px);
}

/* ===== ACCOUNT SUMMARY SHEET ===== */
.account-sheet {
    width: 100%;
    max-width: 420px;
    background: #eef2ef;
    color: #233140;
    overflow: hidden;
    box-shadow: -12px 0 30px rgba(0,0,0,0.35);
}
.account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(180deg, #f0f3f6 0%, #dfe5ea 100%);
    border-bottom: 1px solid #c8d0d8;
}
.account-title { font-size: 15px; font-weight: 700; color: #2e3d4d; }
.account-card {
    margin: 10px 10px 0;
    background: #fff;
    border: 1px solid #d7dde5;
    border-radius: 4px;
    overflow: hidden;
}
.account-card.main-card {
    margin-top: 12px;
}
.account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e8ecf1;
}
.account-row.bottom { border-bottom: none; }
.account-row.top { font-size: 18px; font-weight: 800; }
.account-pill {
    display: inline-block;
    background: #8fa6bb;
    color: #fff;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
}
.account-value { font-weight: 800; color: #1f2b35; }
.account-amount { font-weight: 700; color: #1f2b35; }
.account-item-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: #3b4c5e; }
.points { font-weight: 700; }
.recall-btn, .recall-all-btn, .account-close-btn {
    border: 1px solid #b8c4d1;
    border-radius: 4px;
    background: linear-gradient(180deg, #f8fbff 0%, #dfe8f2 100%);
    color: #2b4055;
    font-weight: 700;
    cursor: pointer;
}
.recall-btn { padding: 8px 10px; min-width: 72px; }
.balance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}
.account-footer, .account-close-wrap {
    padding: 10px;
}
.recall-all-btn {
    width: 100%;
    padding: 10px;
}
.account-close-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(180deg, #fbfbfb 0%, #eceff3 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .top-header { display: none; }
    .mobile-login-bar { display: block; }
    .mobile-logout-nav { display: block; }
    .search-box { display: none; }
    .desktop-only { display: none; }
    .main-nav { display: none; }

    .header-inner { gap: 8px; padding: 8px 10px; }
    .logo { font-size: 24px; }

    .login-form { gap: 6px; }
    .login-btn, .signup-btn { padding: 0 12px; height: 38px; font-size: 13px; }

    .account-bar { gap: 6px; }
    .dw-btn, .logout-btn { width: 34px; height: 34px; }

    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .game-section { margin-bottom: 6px; }
    .card-grid .game-card,
    .card-grid .game-card.sports { grid-column: span 2; }
    .card-grid .game-card[data-span="1"] { grid-column: span 1; }
    .card-grid .game-card[data-span="2"],
    .card-grid .game-card[data-span="3"],
    .card-grid .game-card[data-span="4"] { grid-column: span 2; }
    .game-card { height: 110px; border-radius: 2px; }
    .card-grid .game-card[data-span="1"] { height: 95px; }
    .card-title { font-size: 12px; }
    .card-footer { height: 28px; }
    .play-now { min-width: 72px; font-size: 12px; padding: 0 10px; }
    .content { padding: 8px; }
    .hero-carousel { margin-bottom: 10px; border-radius: 2px; }
    .sports .live-list { top: 6px; padding: 4px; }
    .live-head { margin-bottom: 3px; }
    .live-row { padding: 1px 6px; margin-bottom: 1px; }

    .hero-slide { height: 120px; padding: 0 36px; }
    .hero-premium { font-size: 16px; letter-spacing: 4px; }
    .hero-cricket { font-size: 42px; }
    .hero-toll { font-size: 11px; margin-top: 6px; }
    .hero-toll b { font-size: 14px; }
    .hero-figure { font-size: 64px; }

    .promo-orange { font-size: 20px; }
    .promo-white { font-size: 18px; }
    .promo-sub { font-size: 11px; }

    .bottom-nav { display: flex; }
    body { padding-bottom: 74px; }

    .site-footer {
        padding: 14px 10px 18px;
        border-top: 1px solid #e0dbc9;
        background: #f1efe2;
    }
    .footer-socials {
        gap: 12px;
        margin-bottom: 14px;
    }
    .footer-socials a {
        width: 30px;
        height: 30px;
        background: transparent;
        color: #8f8f8f;
        box-shadow: none;
    }
    .footer-socials a:hover {
        background: transparent;
        color: #6f6f6f;
        transform: none;
    }
    .footer-socials svg { width: 20px; height: 20px; }
    .footer-links {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.8;
        color: #6e675a;
        margin-bottom: 10px;
    }
    .footer-links a {
        color: #6e675a;
        font-weight: 400;
        text-decoration: underline;
        text-underline-offset: 1px;
    }
    .footer-links span { margin: 0 5px; color: rgba(110,103,90,0.75); }
    .footer-powered {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: 2px;
        padding: 8px 12px;
        border: 1px solid #d8d4c7;
        border-radius: 8px;
        background: rgba(255,255,255,0.22);
        color: #8a8577;
        font-size: 10px;
        line-height: 1;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    }
    .footer-powered b {
        color: #9c9586;
        font-size: 14px;
        font-weight: 700;
        text-transform: lowercase;
    }

    .bottom-nav {
        display: flex;
        padding: 6px 0 4px;
    }
    .bn-item {
        font-size: 12px;
        gap: 3px;
    }
    .bn-item .bn-icon svg { width: 26px; height: 26px; }
    .bn-item.games .bn-icon {
        width: 48px; height: 48px; margin-top: -20px;
    }
    .bn-item.deposit-nav .bn-icon {
        width: 40px; height: 40px;
    }
    
    /* Mobile Navigation Bar - Increased Size */
    .mobile-login-row { 
        padding: 8px 12px; 
        min-height: 42px;
        gap: 10px;
    }
    .mobile-tab {
        height: 32px;
        padding: 0 14px;
        font-size: 14px;
        font-weight: 800;
    }
    .mobile-summary-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        height: 32px;
        padding: 0 12px;
        border: 1px solid #474747;
        border-radius: 3px;
        background: linear-gradient(180deg, #2f2f2f 0%, #141414 100%);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
    }
    .mobile-summary-btn b { 
        color: #ffcc33; 
        font-size: 13px;
    }
    .mobile-summary-main, .mobile-summary-exp {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
    .mobile-summary-exp { color: #d9d9d9; }
    .mobile-mini-plus {
        height: 24px;
        min-width: 36px;
        padding: 0 8px;
        font-size: 12px;
        font-weight: 800;
    }
    .mobile-mini-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (min-width: 681px) {
    .settings-sheet {
        min-height: auto;
        max-height: 92vh;
        border-radius: 12px;
        margin-top: 24px;
    }
}

@media (max-width: 420px) {
    .logo { font-size: 20px; }
    .login-btn, .signup-btn { padding: 0 10px; font-size: 12px; }
    .bal-amount { font-size: 13px; }
    .game-card { border-radius: 1px; }
}