/* ==========================================================================
   HOMEPAGE UI & UX: Mobile-First Red & White Design
   Zomato Red: #cb202d | Dark Crimson: #b71c1c | Surface: #ffffff | Canvas: #f8fafc
   ========================================================================== */

.premium-home {
    background: #ffffff;
    color: #2d2d2d;
    font-family: Okra, Inter, system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.premium-home .container {
    max-width: 1200px;
    padding-inline: 16px;
    margin: 0 auto;
}

/* Header Enhancements */
.premium-home .app-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid #f0f0ee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.premium-home .brand-title {
    font-weight: 800;
    color: #2d2d2d;
    letter-spacing: -0.02em;
}

.premium-home .brand-title span {
    color: #cb202d;
}

.premium-home .brand-tagline {
    font-size: 9px;
    letter-spacing: 1px;
    color: #828282;
    font-weight: 600;
}

.premium-home .header-icon-btn {
    border: 1px solid #e8e8e6;
    background: #ffffff;
    border-radius: 8px;
    color: #2d2d2d;
    transition: all 0.12s ease;
}

.premium-home .header-icon-btn:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #cb202d;
}

/* ==========================================================================
   1. SPOTLIGHT HERO (Fast, Clean, Iconic 9 & 7 Card Design)
   ========================================================================== */
.spotlight-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 220px;
    margin: 12px 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #a8131e 0%, #cb202d 55%, #e03546 100%);
    color: #ffffff;
    box-shadow: 0 10px 28px -6px rgba(203, 32, 45, 0.26);
}

.spotlight-copy {
    position: relative;
    z-index: 2;
    padding: 22px 0 20px 24px;
}

.spotlight-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffe4e6;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 9999px;
}

.spotlight-eyebrow > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.spotlight-copy h1 {
    margin: 10px 0 6px;
    color: #ffffff;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.spotlight-copy h1 em {
    font-style: normal;
    color: #fecdd3;
    font-weight: 700;
}

.spotlight-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.5;
}

.spotlight-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.spotlight-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 7px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.spotlight-primary {
    border: none;
    color: #cb202d;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.spotlight-primary:hover {
    background: #fff1f2;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.spotlight-primary:active {
    transform: scale(0.97);
}

.spotlight-secondary {
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.spotlight-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.spotlight-secondary:active {
    transform: scale(0.97);
}

.spotlight-actions button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.spotlight-actions button span {
    font-size: 15px;
    font-weight: 400;
}

/* Spotlight Hero Art (9 & 7 Card Design) */
.spotlight-art {
    position: relative;
    min-width: 0;
}

.number-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    aspect-ratio: 1;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
}

.orbit-outer {
    width: 250px;
}

.orbit-inner {
    width: 180px;
    border-style: dashed;
}

.number-tile {
    position: absolute;
    width: 110px;
    height: 145px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    top: 50%;
    left: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.number-tile > span {
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.tile-back {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.35);
    transform: translate(-80%, -55%) rotate(-14deg);
}

.tile-front {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #cb202d;
    transform: translate(-22%, -38%) rotate(10deg);
}

.tile-front small {
    position: absolute;
    bottom: 10px;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #828282;
}

/* ==========================================================================
   2. USER ACCOUNT DASHBOARD (Clean, Restrained Red & White)
   ========================================================================== */
.account-card {
    background: #ffffff;
    border: 1px solid #e8e8e6;
    border-radius: 14px;
    padding: 16px;
    margin: 8px 0 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.account-user-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-avatar-pill {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff1f2;
    color: #cb202d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.account-welcome {
    font-size: 11px;
    color: #828282;
    display: block;
    line-height: 1.2;
}

.account-name {
    font-size: 16px;
    font-weight: 700;
    color: #2d2d2d;
    margin: 1px 0 0;
    line-height: 1.2;
}

.account-phone {
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

.btn-profile-gear {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e8e8e6;
    background: #f8fafc;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.12s ease;
}

.btn-profile-gear:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #cb202d;
}

/* Balance Row */
.account-balance-row {
    background: #fff8f8;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.balance-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-meta .bal-label {
    font-size: 11px;
    color: #828282;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.balance-meta .bal-amount {
    font-size: 24px;
    font-weight: 800;
    color: #cb202d;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

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

.btn-bal-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s ease;
}

.btn-bal-action.deposit {
    background: #cb202d;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(203, 32, 45, 0.25);
}

.btn-bal-action.deposit:hover {
    background: #b71c1c;
}

.btn-bal-action.deposit:active {
    transform: scale(0.97);
}

.btn-bal-action.withdraw {
    background: #ffffff;
    color: #2d2d2d;
    border: 1px solid #d4d4d0;
}

.btn-bal-action.withdraw:hover {
    background: #f4f4f2;
    border-color: #cb202d;
    color: #cb202d;
}

.btn-bal-action.withdraw:active {
    transform: scale(0.97);
}

/* Shortcuts Grid */
.account-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.dash-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.12s ease;
}

.dash-shortcut i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f4f4f2;
    border: 1px solid #e8e8e6;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.12s ease;
}

.dash-shortcut span {
    font-size: 11.5px;
    font-weight: 600;
    color: #4a4a4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
}

.dash-shortcut:hover i {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #cb202d;
}

.dash-shortcut:hover span {
    color: #cb202d;
}

.dash-shortcut:active {
    transform: scale(0.96);
}

/* ==========================================================================
   3. MARKET EXPLORER (Search, Filters, Market Cards)
   ========================================================================== */
.premium-home .market-explorer-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 14px;
    scroll-margin-top: 80px;
}

.premium-home .market-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.premium-home .search-ico {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 14px;
    pointer-events: none;
}

.premium-home .market-search-input {
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #2d2d2d;
    height: 44px;
    padding-left: 38px;
    padding-right: 38px;
    font-size: 13.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
    width: 100%;
}

.premium-home .market-search-input:focus {
    border-color: #cb202d;
    box-shadow: 0 0 0 3px rgba(203, 32, 45, 0.1);
    outline: none;
}

.premium-home .search-clear-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
}

/* Market Cards Grid */
.premium-home .markets-grid {
    gap: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.premium-home .market-card {
    border: 1px solid #e8e8e6;
    border-radius: 12px;
    padding: 14px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgb(163 163 163 / 20%);
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.premium-home .market-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.market-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.premium-home .market-name {
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.premium-home .badge-status {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 5px;
    padding: 3px 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.premium-home .badge-status.running { background: #dcfce7; color: #15803d; }
.premium-home .badge-status.closed { background: #fee2e2; color: #b91c1c; }
.premium-home .badge-status.only-close { background: #fef3c7; color: #b45309; }

.market-card-mid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.premium-home .market-result {
    color: #cb202d;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.premium-home .market-timings-badge {
    color: #64748B;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.market-card-bottom .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.premium-home .market-card .btn-chart {
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    color: #334155;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    min-height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.12s ease;
}

.premium-home .market-card .btn-chart:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.premium-home .market-card .btn-play {
    background: #cb202d;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    min-height: 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(203, 32, 45, 0.2);
    transition: all 0.12s ease;
}

.premium-home .market-card .btn-play:hover {
    background: #b71c1c;
}

.premium-home .market-card .btn-play.disabled,
.premium-home .market-card .btn-play[disabled] {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   4. GAME WIN RATES (Clean, Compact, Responsive Grid)
   ========================================================================== */
.win-rates {
    margin: 24px 0 32px;
}

.win-rates-header {
    margin-bottom: 12px;
}

.win-rates-intro h2 {
    margin: 0;
    color: #2d2d2d;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.win-rate {
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e8e8e6;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.12s ease;
    height: 100%;
    min-height: 128px;
    box-sizing: border-box;
}

.win-rate:hover {
    border-color: #cbd5e1;
}

.win-rate-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.win-rate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: #cb202d;
    background: #fff1f2;
    font-size: 12px;
    flex-shrink: 0;
}

.win-rate-heading h3 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #2d2d2d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.win-rate-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 2px;
}

.win-rate-label {
    font-size: 12px;
    color: #828282;
    font-weight: 500;
}

.win-rate-amount strong {
    font-size: 19px;
    font-weight: 800;
    color: #2d2d2d;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.win-rate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f4f4f2;
    margin-top: auto;
}

.win-rate-multiplier {
    font-size: 11px;
    font-weight: 800;
    color: #cb202d;
    background: #fff1f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.win-rate-multiplier span {
    font-size: 9.5px;
    font-weight: 600;
    color: #828282;
    text-transform: uppercase;
}

.win-rate-footer button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #fecdd3;
    background: #ffffff;
    color: #cb202d;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.12s ease;
}

.win-rate-footer button:hover {
    background: #fff1f2;
}

.win-rate-footer button:active {
    transform: scale(0.96);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile-First Polish)
   ========================================================================== */
@media (min-width: 900px) {
    .premium-home .market-explorer-toolbar {
        display: grid;
        grid-template-columns: minmax(260px, 1fr) auto;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 899px) {
    .win-rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .premium-home .container {
        padding-inline: 12px;
    }

    .spotlight-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 14px;
        margin: 10px 0 14px;
        box-shadow: 0 8px 24px -6px rgba(203, 32, 45, 0.22);
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
        padding: 0;
    }

    .spotlight-copy {
        padding: 18px 16px 16px;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .spotlight-copy h1 {
        font-size: clamp(22px, 6.5vw, 28px);
        letter-spacing: -0.5px;
        margin: 8px 0 6px;
        overflow-wrap: break-word;
    }

    .spotlight-copy p {
        font-size: 12.5px;
        line-height: 1.45;
        overflow-wrap: break-word;
    }

    .spotlight-eyebrow {
        font-size: 8.5px;
        letter-spacing: 1.2px;
        padding: 2px 8px;
    }

    .spotlight-actions {
        gap: 8px;
        margin-top: 12px;
        max-width: 100%;
    }

    .spotlight-actions button {
        font-size: 11.5px;
        padding-inline: 14px;
        gap: 8px;
        min-height: 42px;
        max-width: 100%;
    }

    .spotlight-art {
        position: absolute;
        width: 130px;
        height: 160px;
        right: 0;
        top: 12px;
        opacity: 0.15;
        z-index: 1;
        pointer-events: none;
        overflow: hidden;
        display: block;
    }

    .number-tile {
        width: 75px;
        height: 105px;
        border-radius: 10px;
    }

    .number-tile > span {
        font-size: 70px;
    }

    .tile-front small {
        display: none;
    }

    .orbit-outer {
        width: 170px;
    }

    .orbit-inner {
        width: 130px;
    }

    .account-balance-row {
        flex-direction: column;
        align-items: stretch;
    }

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

    .btn-bal-action {
        justify-content: center;
        min-height: 40px;
    }

    .account-shortcuts-grid {
        gap: 4px;
    }

    .dash-shortcut i {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .dash-shortcut span {
        font-size: 10.5px;
    }

    .win-rates {
        margin: 18px 0 24px;
    }

    .win-rates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .win-rate {
        padding: 10px 10px;
        min-height: 120px;
    }

    .win-rate-heading h3 {
        font-size: 13px;
    }

    .win-rate-amount strong {
        font-size: 17px;
    }

    .win-rate-footer button {
        padding: 0 8px;
        font-size: 11px;
    }
}

@media (max-width: 340px) {
    .win-rates-grid {
        grid-template-columns: 1fr;
    }
}


