/* HT RCAK - Mobile First Design System */
:root {
    --bg-dark: #0B0F17;
    --bg-card: #151C2C;
    --bg-card-hover: #1E273A;
    --bg-input: #0F1623;
    --gold-primary: #F59E0B;
    --gold-gradient: linear-gradient(135deg, #F59E0B 0%, #D4AF37 50%, #B38F24 100%);
    --gold-glow: 0 4px 20px rgba(245, 158, 11, 0.35);
    --green-emerald: #10B981;
    --green-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --red-ruby: #EF4444;
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.3);
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #05080E;
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

/* Standalone Chart Page View Styles */
.today-results-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.trc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.trc-header h4 {
    font-size: 14px;
    font-weight: 700;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: var(--red-ruby);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--red-ruby);
    animation: pulse 1.2s infinite;
}

.today-results-grid {
    display: block;
    width: 100%;
}

.today-res-item {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tr-game-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: 0.5px;
}

.tr-win-num {
    font-size: 26px;
    font-weight: 800;
    color: var(--gold-primary);
    background: rgba(15, 23, 42, 0.8);
    padding: 4px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.chart-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    color: var(--gold-primary);
    margin-bottom: 14px;
}

.badge-month-info {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-emerald);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.chart-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0;
    margin-bottom: 30px;
}

/* 3-Button Sub Navigation Bar Below Game Header */
.game-mode-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mode-tab-btn {
    flex: 1;
    padding: 10px 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-tab-btn:hover {
    color: var(--text-white);
}

.mode-tab-btn.active {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

/* Password Input Wrapper with Eye Icon */
.pwd-input-wrap {
    position: relative;
    width: 100%;
}

.pwd-input-wrap input {
    width: 100%;
    padding-right: 44px !important;
}

.pwd-toggle-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
}

.pwd-toggle-icon:hover {
    color: var(--gold-primary);
}

/* DESKTOP BANNER */
.desktop-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1E293B 0%, #090D16 100%);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.desktop-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--gold-glow);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--border-gold);
}

.desktop-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.desktop-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.btn-download {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--gold-glow);
    transition: var(--transition);
}

.btn-download:hover {
    transform: translateY(-2px);
}

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-preview img {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-sm);
    padding: 6px;
    background: #fff;
}

.qr-preview span {
    font-size: 12px;
    color: var(--text-muted);
}

.sim-toggle-box {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.btn-sim {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-sim:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 769px) {
    body:not(.simulator-mode) .desktop-banner {
        display: flex;
    }

    body:not(.simulator-mode) .app-container {
        display: none;
    }

    body.simulator-mode .app-container {
        margin: 20px auto;
        border-radius: 36px;
        box-shadow: 0 0 0 12px #1E293B, 0 25px 60px rgba(0, 0, 0, 0.9);
        border: 2px solid var(--border-gold);
    }
}

.app-container {
    width: 100%;
    max-width: 460px;
    background-color: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.app-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(11, 15, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 4px;
}

.avatar-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 1.5px;
    background: var(--gold-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.avatar-ring i {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0F172A;
    color: var(--gold-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    font-size: 22px;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #FFF 0%, var(--gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wallet-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    padding: 7px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.wallet-badge:hover {
    background: rgba(245, 158, 11, 0.22);
}

.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 160px;
}

.view-section {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

.view-section.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.view-header h2 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
}

.back-btn, .refresh-btn, .history-icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 28px;
    height: 28px;
    font-size: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover, .refresh-btn:hover {
    background: var(--bg-card-hover);
    color: var(--gold-primary);
}

.ticker-banner {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.icon-pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   AUTO IMAGE SLIDER CAROUSEL (4 BANNERS)
-------------------------------------------------------------------------- */
.banner-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.banner-slider-wrapper {
    display: flex;
    width: 400%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.banner-slide {
    width: 25%;
    position: relative;
    height: 150px;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(9, 12, 21, 0.95) 0%, rgba(9, 12, 21, 0) 100%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slide-caption h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-caption p {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    width: 20px;
    border-radius: 10px;
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
}

.home-balance-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bal-label {
    font-size: 13px;
    color: var(--text-muted);
}

.bal-amount {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-top: 4px;
}

.bal-actions {
    display: flex;
    gap: 10px;
}

.btn-quick-add, .btn-quick-withdraw {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-quick-add {
    background: var(--gold-gradient);
    color: #000;
}

.btn-quick-withdraw {
    background: rgba(255, 255, 255, 0.08);
    color: #FFF;
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-tag {
    font-size: 11px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-primary);
    padding: 3px 8px;
    border-radius: 12px;
}

.game-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: auto;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.card-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 8px;
    font-weight: 700;
    background: var(--green-emerald);
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
}

.closed-tag {
    background: var(--red-rose) !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(255, 42, 85, 0.4);
}

.nextday-tag {
    background: linear-gradient(135deg, #00e5ff 0%, #0088ff 100%) !important;
    color: #fff !important;
}

.active-tag {
    display: none !important;
}

.btn-closed {
    background: rgba(255, 42, 85, 0.15) !important;
    color: var(--red-rose) !important;
    border: 1px solid rgba(255, 42, 85, 0.3) !important;
    cursor: not-allowed !important;
}

.card-draw-date {
    font-size: 10px;
    color: var(--text-bright);
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.closed-warning-banner {
    background: rgba(255, 42, 85, 0.15);
    border: 1px solid rgba(255, 42, 85, 0.4);
    color: #ff5252;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gold-tag {
    background: var(--gold-gradient) !important;
    color: #000 !important;
}

.card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}

.s2-card .card-icon-wrap { background: rgba(16, 185, 129, 0.1); color: var(--green-emerald); }
.s3-card .card-icon-wrap { background: rgba(168, 85, 247, 0.1); color: #A855F7; }
.s4-card .card-icon-wrap { background: rgba(239, 68, 68, 0.1); color: var(--red-ruby); }
.s5-card .card-icon-wrap { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.s6-card .card-icon-wrap { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }

.card-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.card-details h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 1px;
    color: var(--text-white);
    text-transform: capitalize;
}

.card-details p {
    font-size: 10px;
    color: var(--text-muted);
}

.card-result-time {
    font-size: 9px;
    font-weight: 600;
    color: var(--gold-primary);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 2px 6px;
    border-radius: 6px;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.win-rate {
    font-size: 10px;
    font-weight: 700;
    color: var(--green-emerald);
    display: block;
}

.game-card-time {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-play {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-play:hover {
    background: var(--gold-primary);
    color: #000;
}

.recent-winners {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border-color);
}

.recent-winners h4 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--gold-primary);
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.winner-item strong {
    color: var(--green-emerald);
}

.game-info-badge {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
}

/* GAME MODE SUB-NAV (Segment Control Tabs - COMPACT 40% SMALLER) */
.game-mode-nav {
    display: flex;
    background: rgba(11, 17, 30, 0.85);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 3px;
    margin-bottom: 15px;
    gap: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mode-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 8px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-tab-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}

.mode-tab-btn:hover {
    color: var(--gold-primary);
}

.mode-tab-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    color: #000;
    font-weight: 800;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.45);
    transform: scale(1.02);
}

.mode-tab-btn.active i {
    transform: scale(1.1);
}

.game-instruction-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 600;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    box-shadow: inset 0 0 8px rgba(245, 158, 11, 0.05);
}

.game-instruction-box i {
    font-size: 10px;
    color: var(--gold-primary);
}

.mode-section {
    padding-bottom: 0px;
    margin-bottom: 20px;
}

.numbers-grid-wrapper {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* QUICK AMOUNT SHORTCUTS TOOLBAR */
.quick-amount-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.quick-amount-bar::-webkit-scrollbar {
    height: 3px;
}

.quick-amount-bar::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 3px;
}

.qab-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-primary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.qab-chip {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qab-chip:hover {
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    color: #000;
    border-color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.qab-chip:active {
    transform: translateY(0) scale(0.96);
}

.qab-chip.qab-danger {
    background: rgba(255, 42, 85, 0.12);
    border-color: rgba(255, 42, 85, 0.35);
    color: #FF2A55;
}

.qab-chip.qab-danger:hover {
    background: #FF2A55;
    color: #FFF;
    border-color: #FFF;
    box-shadow: 0 6px 16px rgba(255, 42, 85, 0.4);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

/* Number box styling with INLINE input field directly inside */
.num-box {
    background: linear-gradient(145deg, #131b2e 0%, #0d1322 100%);
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    min-height: 58px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.num-box:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.25);
}

.num-box.selected {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
    z-index: 2;
}

.box-num-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: #E2E8F0;
    line-height: 1;
    margin-bottom: 4px;
}

.num-box.selected .box-num-label {
    color: #000000;
    font-weight: 900;
    text-shadow: none;
}

/* Direct inline input field inside the box */
.grid-box-input {
    width: 90%;
    height: 23px;
    background: #060911;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    border-radius: 6px;
    padding: 2px 0;
    outline: none;
    transition: all 0.2s ease;
}

.grid-box-input::-webkit-inner-spin-button,
.grid-box-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.grid-box-input:focus {
    border-color: #FFD700;
    background: #0d1322;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.num-box.selected .grid-box-input {
    background: #FFFFFF;
    color: #000000;
    border-color: #000000;
    font-weight: 900;
}

/* HARUF & CROSSING CARD STYLING */
.haruf-cols-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.haruf-card, .crossing-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 29, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.crossing-card {
    padding: 10px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 10px !important;
}

.crossing-card .haruf-title {
    font-size: 12px;
    margin-bottom: 8px;
}

.crossing-card .form-group {
    margin-bottom: 8px;
}

.crossing-card label {
    font-size: 10.5px;
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
    color: var(--text-muted);
}

.crossing-card input {
    width: 100%;
    height: 30px;
    font-size: 13px !important;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: #060911;
    color: var(--gold-primary);
    outline: none;
}

.crossing-card input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.crossing-card .btn-primary-action {
    width: 100%;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 800;
    border-radius: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 100%);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.crossing-card .btn-primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(255, 215, 0, 0.5);
}

.haruf-col-card {
    margin-bottom: 0 !important;
}

.haruf-col-card .haruf-title {
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 10px;
    justify-content: center;
    white-space: nowrap;
}

.text-gold { color: var(--gold-primary); }
.text-green { color: var(--green-emerald); }

.haruf-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.haruf-box {
    background: linear-gradient(145deg, #131b2e 0%, #0d1322 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.haruf-box:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.haruf-box strong {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-primary);
}

.haruf-box input {
    width: 58px;
    height: 23px;
    background: #060911;
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    border-radius: 6px;
    padding: 2px 0;
    outline: none;
    transition: all 0.2s ease;
}

.haruf-box input::-webkit-inner-spin-button,
.haruf-box input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.haruf-box input:focus {
    border-color: #FFD700;
    background: #0d1322;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Selected Breakdown Card Below Grid */
.selected-breakdown-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 100px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.sbc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    padding-bottom: 8px;
}

.btn-clear-all {
    background: rgba(239, 68, 68, 0.15);
    color: #FF4242;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-all:hover {
    background: #FF4242;
    color: #FFF;
}

.selected-chips-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: 130px;
    overflow-y: auto;
    padding-right: 4px;
}

.selected-chip {
    background: linear-gradient(135deg, #1A2338 0%, #0F172A 100%);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.selected-chip strong {
    color: var(--green-emerald);
    font-weight: 800;
}

.selected-chip .chip-del-icon {
    color: #FF4242;
    cursor: pointer;
    padding-left: 2px;
    font-size: 12px;
    transition: transform 0.2s;
}

.selected-chip .chip-del-icon:hover {
    transform: scale(1.25);
}

/* STICKY BOOKING ACTION BAR */
.booking-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    background: rgba(11, 16, 28, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-gold);
    padding: 10px 16px;
    z-index: 95;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6);
}

.selected-count-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.highlight-gold {
    color: var(--gold-primary);
    font-size: 13px;
    font-weight: 800;
}

.btn-submit-booking {
    background: linear-gradient(135deg, #FFD700 0%, #F59E0B 50%, #D4AF37 100%);
    color: #000000;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.45);
    transition: all 0.25s ease;
}

.btn-submit-booking:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(255, 215, 0, 0.6);
}

.btn-submit-booking:active {
    transform: translateY(1px);
}

.wallet-main-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.w-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.status-active {
    color: var(--green-emerald);
    font-size: 11px;
    background: rgba(16, 185, 129, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
}

.winning-amount {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.bal-note {
    font-size: 11px;
    color: var(--text-muted);
}

.balances-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.sub-bal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sub-icon {
    font-size: 16px;
    color: var(--gold-primary);
}

.sub-title {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.sub-info h4 {
    font-size: 14px;
    font-weight: 700;
}

.wallet-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-wallet-action {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-money {
    background: var(--green-gradient);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-withdraw-money {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

.wallet-shortcuts {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.shortcut-item:last-child {
    border-bottom: none;
}

.sc-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-left i {
    color: var(--gold-primary);
}

.add-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.add-step-card h3 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--gold-primary);
}

.amount-input-box {
    position: relative;
    margin-bottom: 14px;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
}

.amount-input-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 40px;
    color: #FFF;
    font-size: 22px;
    font-weight: 700;
    outline: none;
}

.quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.btn-quick-amt {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick-amt:hover {
    border-color: var(--border-gold);
    color: var(--gold-primary);
}

.btn-primary-action {
    width: 100%;
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--gold-glow);
}

.qr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.timer-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red-ruby);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.timer-box.timer-expired {
    background: rgba(239, 68, 68, 0.35);
    border-color: #EF4444;
    color: #FFFFFF;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.qr-container {
    background: #FFFFFF;
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 240px;
    min-height: 250px;
    margin: 0 auto 16px auto;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.qrcode-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.qrcode-wrapper img, .qrcode-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
}

.qr-invalid-blur {
    filter: blur(10px) grayscale(100%);
    opacity: 0.15 !important;
    pointer-events: none !important;
    user-select: none !important;
}

.qr-expired-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 28, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--red-ruby);
    padding: 16px;
    text-align: center;
    z-index: 20;
    border: 2px solid #EF4444;
}

.upi-id-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--gold-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.payment-amount-badge {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.payment-amount-badge span {
    color: var(--gold-primary);
    font-size: 18px;
    font-weight: 700;
}

.upload-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.upload-section h4 {
    font-size: 14px;
    margin-bottom: 4px;
}

.upload-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-dropzone {
    border: 2px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background: rgba(245, 158, 11, 0.05);
    cursor: pointer;
    margin-bottom: 14px;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    font-size: 13px;
}

.upload-placeholder i {
    font-size: 28px;
}

.screenshot-preview {
    max-height: 180px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.btn-upload:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.withdraw-bal-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    text-align: center;
}

.wb-item span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.wb-item h3 {
    font-size: 18px;
    font-weight: 700;
}

.wb-item.highlight h3 {
    color: var(--gold-primary);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.form-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--gold-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--gold-primary);
}

.form-actions-split {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit-withdraw {
    background: var(--gold-gradient);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.btn-view-history {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.history-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-info h4 {
    font-size: 16px;
    color: var(--gold-primary);
    margin-bottom: 2px;
}

.h-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-primary);
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-emerald);
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 460px;
    height: 64px;
    background: rgba(11, 15, 23, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0 4px;
}

.footer-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex: 1;
}

.footer-tab i {
    font-size: 18px;
    transition: var(--transition);
}

.footer-tab:hover, .footer-tab.active {
    color: var(--gold-primary);
}

.footer-tab.active i {
    transform: translateY(-2px);
    color: var(--gold-primary);
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4));
}

.history-24h-badge {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chart-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    padding: 0 !important;
}

.chart-table-wrap {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.chart-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 11px;
}

.chart-table th, .chart-table td {
    padding: 6px 2px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-table th {
    background: #111827;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 10.5px;
    border-bottom: 1px solid var(--border-gold);
    line-height: 1.2;
    padding: 6px 1px;
}

.chart-table th span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.5px;
}

.chart-table th small {
    display: block;
    font-size: 8px;
    font-weight: 400;
    color: rgba(245, 158, 11, 0.85);
    margin-top: 1px;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-table th:first-child, .chart-table td:first-child,
.th-date, .chart-date-cell {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 36px !important;
    background: #0F172A !important;
    border-right: 2px solid var(--border-gold) !important;
    font-weight: 700;
    font-size: 11px;
    color: var(--gold-primary) !important;
    padding: 6px 1px !important;
    text-align: center !important;
    box-shadow: none !important;
}

.chart-table th:first-child {
    background: #1E293B !important;
    color: var(--gold-primary) !important;
}

.num-cell-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 11.5px;
    padding: 2px 2px;
    border-radius: 4px;
    display: inline-block;
    min-width: 22px;
    line-height: 1.3;
}

.num-cell-muted {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 11.5px;
    display: inline-block;
    min-width: 22px;
    line-height: 1.3;
}

.support-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: #FFF;
}

.btn-support.whatsapp { background: #25D366; }
.btn-support.telegram { background: #0088cc; }
.btn-support.phone { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); }

.gift-banner {
    text-align: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.gift-banner i {
    font-size: 32px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.gift-banner h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.gift-banner p {
    font-size: 11px;
    color: var(--text-muted);
}

.referral-code-box {
    background: var(--bg-input);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 16px;
}

.referral-code-box strong {
    color: var(--gold-primary);
    font-size: 16px;
    letter-spacing: 1px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(0, 0, 0);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 16px;
    color: var(--gold-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

.profile-avatar-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.profile-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 3px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
}

.vip-badge {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 700;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
}

.profile-info-list {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.info-row .lbl {
    color: var(--text-muted);
}

.booking-receipt-body {
    background: rgba(245, 158, 11, 0.04);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.booking-receipt-body .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 13px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.booking-receipt-body .info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.booking-receipt-body .info-row .lbl {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}

.booking-receipt-body .info-row strong {
    font-size: 13.5px;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
    flex: 1;
}

.btn-modal-close-action {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#bookingSuccessModal .btn-modal-close-action {
    background: var(--gold-gradient);
    color: #000000;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: var(--gold-glow);
}

#bookingSuccessModal .btn-modal-close-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.thank-you-card {
    text-align: center;
    padding: 30px 20px;
}

.success-icon-wrap {
    font-size: 54px;
    color: var(--green-emerald);
    margin-bottom: 14px;
}

.bounce-icon {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.thank-you-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.thank-you-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.redirect-notice {
    font-size: 12px;
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toast {
    position: fixed;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10B981;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: var(--red-ruby);
}

.withdraw-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.w-method-tab {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.w-method-tab:hover {
    color: var(--text-white);
}

.w-method-tab.active {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--gold-glow);
}

.hidden { display: none !important; }
.text-green { color: var(--green-emerald); }

/* User Matches Booking Number Chips Scrollbar */
.user-chips-scroll::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
.user-chips-scroll::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 4px;
}
.user-chips-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}
