/* ==========================================================================
   DESIGN TOKENS & VARIABLES (247GOLD REPLICA)
   ========================================================================== */
:root {
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    /* Premium Palette */
    --bg-header: rgba(10, 27, 56, 0.85);
    --bg-subheader: rgba(16, 48, 107, 0.9);
    --bg-ticker: #050d1a;
    --bg-sidebar-header-blue: linear-gradient(135deg, #1054a8, #0b3d7a);
    --bg-sidebar-header-navy: linear-gradient(135deg, #002f6c, #001c40);
    --bg-sidebar-body: #071224;
    
    --color-deposit-green: #09a01a;
    --color-withdraw-red: #d11a2a;
    --color-gold: #f0b90b;
    --color-light-blue: #01a7e1;
    
    /* Main Content Premium Dark Palette */
    --bg-app: radial-gradient(circle at top, #0f223d 0%, #060d18 100%);
    --bg-white: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.06);
    --text-dark: #e2e8f0;
    --text-muted: #8a99ad;
    
    /* Back & Lay Buttons */
    --bg-back-blue: #72bbef;
    --bg-back-blue-hover: #97d2f9;
    --bg-lay-pink: #faa9c3;
    --bg-lay-pink-hover: #fcbcd0;
    --bg-empty-cell: rgba(255, 255, 255, 0.02);
    
    /* Layout Dimensions */
    --sidebar-width: 230px;
    --right-panel-width: 320px;
    --header-height: 56px;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.7);
}

body {
    font-family: var(--font-family), 'Inter', sans-serif;
    background: var(--bg-app);
    color: var(--text-dark);
    transition: var(--transition);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   RESET & GLOBAL LAYOUT
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-app);
    color: var(--text-dark);
    font-size: 13px;
    line-height: 1.4;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   HEADER SECTION (247GOLD SPECIFIC)
   ========================================================================== */
.main-header {
    height: var(--header-height);
    background-color: rgba(10, 27, 56, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Logo Layout */
.logo-container {
    display: flex;
    align-items: center;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
    cursor: pointer;
    user-select: none;
}

.logo-247 {
    color: var(--color-gold);
    text-shadow: 0 0 4px rgba(240, 185, 11, 0.4);
}

.logo-gold {
    color: var(--color-light-blue);
    text-shadow: 0 0 4px rgba(1, 167, 225, 0.4);
    margin-left: 2px;
}

/* Marquee / Text under logo */
.marquee-container {
    background-color: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    max-width: 250px;
}

.marquee-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-gold);
    white-space: nowrap;
    display: inline-block;
    animation: marquee-scroll 15s linear infinite;
}

@keyframes marquee-scroll {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Header Action Buttons */
.btn-deposit-top {
    background-color: var(--color-deposit-green);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-deposit-top:hover {
    background-color: #0c8a1b;
}

.btn-withdraw-top {
    background-color: var(--color-withdraw-red);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-withdraw-top:hover {
    background-color: #b11322;
}

.rules-link {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.rules-link:hover {
    color: var(--color-gold);
}

/* User statistics block */
.user-stats {
    display: flex;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.exp-value {
    color: var(--color-gold);
}

/* Username dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.username {
    font-weight: 700;
    font-size: 12px;
}

/* ==========================================================================
   SUB-HEADER NAVIGATION BAR
   ========================================================================== */
.subheader-nav {
    background-color: var(--bg-subheader);
    overflow-x: auto;
    border-bottom: 2px solid var(--color-gold);
}

.subheader-menu {
    list-style: none;
    display: flex;
    white-space: nowrap;
    padding: 0 8px;
}

.menu-tab-item a {
    display: block;
    padding: 10px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: var(--transition);
}

.menu-tab-item:hover a, .menu-tab-item.active a {
    background-color: rgba(255,255,255,0.1);
    color: var(--color-gold);
}

.menu-tab-item.active {
    background-color: rgba(0,0,0,0.15);
    border-bottom: 3px solid var(--color-gold);
}

/* ==========================================================================
   UPCOMING TICKER BAR
   ========================================================================== */
.upcoming-ticker-bar {
    background-color: var(--bg-ticker);
    padding: 8px 16px;
    overflow-x: auto;
    border-bottom: 1px solid #112543;
}

.ticker-wrapper {
    display: flex;
    gap: 8px;
    width: max-content;
}

.ticker-badge {
    background-color: #0f2a52;
    border: 1px solid #1c3c6f;
    border-radius: 4px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.ticker-badge:hover {
    background-color: #163868;
    border-color: var(--color-light-blue);
}

.badge-title {
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.badge-date {
    color: var(--color-gold);
    font-size: 10px;
    font-weight: 500;
}

/* ==========================================================================
   WORKSPACE LAYOUT
   ========================================================================== */
.workspace-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 120px); /* Adjust based on header + subnav heights */
    overflow: hidden;
    position: relative;
}

/* Left Sidebar */
.sidebar-nav {
    width: var(--sidebar-width);
    background-color: rgba(7, 18, 36, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px;
}

.btn-deposit-side {
    background-color: var(--color-deposit-green);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.btn-withdraw-side {
    background-color: var(--color-withdraw-red);
    color: #fff;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.sidebar-header-blue {
    background-color: var(--bg-sidebar-header-blue);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sidebar-header-navy {
    background-color: var(--bg-sidebar-header-navy);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sports-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.sport-item {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e5ea;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: var(--transition);
}

.sport-item:hover {
    background-color: #e6e8ec;
    color: #000;
}

.sport-item i {
    font-size: 10px;
    color: #888;
}

.sport-item.active {
    background-color: #dbe0e8;
    color: var(--bg-sidebar-header-navy);
    font-weight: 700;
}

/* ==========================================================================
   CENTER MAIN CONTENT AREA
   ========================================================================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    background-color: var(--bg-white);
    display: flex;
    flex-direction: column;
}

/* Inplay Filter Tabs */
.content-filters-bar {
    border-bottom: 1px solid var(--border-light);
}

.inplay-tabs {
    display: flex;
    overflow-x: auto;
    background-color: #e4e7ec;
    padding: 4px 4px 0 4px;
}

.inplay-btn {
    background: none;
    border: none;
    padding: 10px 18px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 11px;
    color: #4f5f6f;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px 4px 0 0;
    white-space: nowrap;
}

.inplay-btn:hover {
    color: #000;
}

.inplay-btn.active {
    background-color: var(--bg-sidebar-header-navy);
    color: #fff;
}

/* Sub-filters (Live, Virtual, Premium) */
.sub-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
}

.pill-buttons {
    display: flex;
    gap: 8px;
}

.pill-btn {
    background-color: #ffffff;
    border: 1px solid #ccd1d9;
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
}

.pill-btn.active {
    background-color: var(--bg-sidebar-header-navy);
    color: #fff;
    border-color: var(--bg-sidebar-header-navy);
}

.sort-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
}

.select-dropdown {
    background-color: #2196f3;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 10px;
}

/* ==========================================================================
   BETFAIR-STYLE ODDS GRID LAYOUT
   ========================================================================== */
.table-headers-row {
    display: flex;
    background-color: #f1f3f6;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
    font-size: 11px;
    color: #333;
}

.header-game {
    flex: 1;
    padding: 8px 16px;
}

.headers-odds-group {
    display: flex;
    width: 390px;
}

.header-column-odds {
    width: 130px;
    text-align: center;
    padding: 8px 0;
    border-left: 1px solid var(--border-light);
}

.header-back-lay {
    position: relative;
}

/* Match Row */
.exchange-event-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    background-color: #ffffff;
    transition: var(--transition);
}

.exchange-event-row:hover {
    background-color: #f8f9fc;
}

.payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

/* ==========================================
   BANK DETAILS REDESIGN
   ========================================== */
.bank-details-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-top: 10px;
    box-sizing: border-box;
}

.form-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    text-align: left;
}

.input-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.input-field-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.input-field-group label i {
    color: #4fa3ff;
    font-size: 12px;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.input-with-icon input:focus {
    border-color: #4fa3ff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(79, 163, 255, 0.15);
}

.input-with-icon input::placeholder {
    color: #555;
}

/* ==========================================
   QR PAYMENT REDESIGN
   ========================================== */
.qr-payment-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-top: 10px;
    position: relative;
    box-sizing: border-box;
}

.qr-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #09a01a;
    background: rgba(9, 160, 26, 0.1);
    border: 1px solid rgba(9, 160, 26, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #09a01a;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 1.5s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.5; }
}

.qr-container-box {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #09a01a, transparent);
    box-shadow: 0 0 8px #09a01a;
    animation: scanAnimation 3s infinite linear;
    z-index: 10;
}

@keyframes scanAnimation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.qr-svg-element {
    display: block;
}

.upi-id-copy-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    width: 100%;
    max-width: 240px;
    justify-content: space-between;
    box-sizing: border-box;
}

.upi-id-label {
    font-size: 11px;
    color: #888;
}

.upi-id-text {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.copy-upi-btn {
    background: rgba(79, 163, 255, 0.1);
    border: 1px solid rgba(79, 163, 255, 0.2);
    color: #4fa3ff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.copy-upi-btn:hover {
    background: rgba(79, 163, 255, 0.25);
    border-color: #4fa3ff;
}

.qr-instructions {
    margin-top: 12px;
    font-size: 11px;
    color: #888;
    text-align: center;
    line-height: 1.4;
    max-width: 250px;
}

/* ==========================================
   UPI METHOD & APP SELECTION REDESIGN
   ========================================== */
.upi-method-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upi-app-instructions {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.upi-selected-app-box {
    font-size: 11px;
    font-weight: 700;
    color: #4fa3ff;
    background: rgba(79, 163, 255, 0.1);
    border: 1px solid rgba(79, 163, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.upi-helper-text {
    font-size: 11px;
    color: #888;
    text-align: left;
    line-height: 1.5;
    margin: 10px 0 0;
    width: 100%;
}

.upi-app-btn.selected {
    background: rgba(79, 163, 255, 0.15) !important;
    border: 1px solid #4fa3ff !important;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(79, 163, 255, 0.2);
    transform: scale(1.1);
}

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


.event-details-col {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-name-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-name-text {
    font-weight: 700;
    color: #2b3a4a;
    font-size: 13px;
    cursor: pointer;
}

.event-name-text:hover {
    color: var(--bg-sidebar-header-blue);
    text-decoration: underline;
}

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

.event-icons {
    display: flex;
    gap: 6px;
    color: #03a9f4;
    font-size: 11px;
}

.live-indicator {
    color: #4caf50;
    font-size: 10px;
}

/* Odds Grid Cells Group */
.odds-buttons-group {
    display: flex;
    width: 390px;
    height: 48px;
}

.market-pair {
    display: flex;
    width: 130px;
    border-left: 1px solid var(--border-light);
    padding: 3px;
    gap: 4px;
}

.odds-cell {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    user-select: none;
    min-height: 38px;
}

.odds-cell.back {
    background: linear-gradient(135deg, rgba(114, 187, 239, 0.22), rgba(114, 187, 239, 0.08));
    border: 1px solid rgba(114, 187, 239, 0.35);
    color: #89ccf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.odds-cell.back:hover {
    background: linear-gradient(135deg, rgba(114, 187, 239, 0.45), rgba(114, 187, 239, 0.2));
    border-color: #89ccf8;
    color: #fff;
    box-shadow: 0 0 12px rgba(114, 187, 239, 0.45);
}

.odds-cell.lay {
    background: linear-gradient(135deg, rgba(250, 169, 195, 0.22), rgba(250, 169, 195, 0.08));
    border: 1px solid rgba(250, 169, 195, 0.35);
    color: #fcbad0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.odds-cell.lay:hover {
    background: linear-gradient(135deg, rgba(250, 169, 195, 0.45), rgba(250, 169, 195, 0.2));
    border-color: #fcbad0;
    color: #fff;
    box-shadow: 0 0 12px rgba(250, 169, 195, 0.45);
}

.odds-cell.empty {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.2);
    cursor: default;
    pointer-events: none;
}

.cell-val {
    font-size: 12px;
    font-weight: 800;
}

.cell-size {
    font-size: 8px;
    opacity: 0.65;
    font-weight: 500;
}

/* Active Highlight */
.odds-cell.active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15) inset, 0 0 15px rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Match Suspended overlay */
.exchange-event-row.suspended {
    position: relative;
}

.exchange-event-row.suspended .odds-buttons-group {
    pointer-events: none;
    opacity: 0.25;
}

.suspended-label {
    position: absolute;
    right: 130px;
    background-color: #000;
    color: #f44336;
    border: 1.5px solid #f44336;
    font-weight: 700;
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* ==========================================================================
   RIGHT SIDE PANEL (BET SLIP)
   ========================================================================== */
.right-panel {
    width: var(--right-panel-width);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-tabs {
    display: flex;
    background-color: #e4e7ec;
    border-bottom: 1px solid var(--border-light);
}

.panel-tab {
    flex: 1;
    background: none;
    border: none;
    color: #666;
    padding: 12px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.panel-tab.active {
    color: var(--bg-sidebar-header-navy);
    background-color: #fff;
    border-bottom: 2px solid var(--bg-sidebar-header-navy);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.panel-content.hidden {
    display: none !important;
}

.betslip-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
    text-align: center;
    gap: 8px;
}

.betslip-empty i {
    font-size: 36px;
}

.betslip-empty p {
    font-weight: 700;
    color: #333;
}

/* Active Betslip Form */
.betslip-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.betslip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.bet-type-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    color: #000;
}

.bet-type-badge.back {
    background-color: var(--bg-back-blue);
}

.bet-type-badge.lay {
    background-color: var(--bg-lay-pink);
}

.bet-details-title {
    flex: 1;
}

.bet-details-title h4 {
    font-size: 13px;
    font-weight: 700;
}

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

.close-betslip {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
}

.close-betslip:hover {
    color: #000;
}

/* Stepper inputs */
.betslip-inputs {
    display: flex;
    gap: 8px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    border: 1px solid #ccd1d9;
    padding: 6px;
    border-radius: 4px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 13px;
}

.number-stepper {
    display: flex;
    border: 1px solid #ccd1d9;
    border-radius: 4px;
    overflow: hidden;
}

.number-stepper input {
    border: none;
    text-align: center;
    padding: 6px 0;
}

.step-btn {
    background-color: #f1f3f6;
    border: none;
    padding: 0 10px;
    font-weight: 700;
    cursor: pointer;
}

.step-btn:hover {
    background-color: #e4e7ec;
}

/* Quick Stakes Grid */
.quick-stakes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.stake-btn {
    background-color: #f1f3f6;
    border: 1px solid #ccd1d9;
    padding: 6px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-family);
}

.stake-btn:hover {
    background-color: #e4e7ec;
}

/* Calculations details */
.bet-summary {
    background-color: #f8f9fb;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.summary-val {
    font-weight: 700;
}

.profit-val {
    color: #27ae60;
}

.risk-val {
    color: #c0392b;
}

.place-bet-btn {
    background-color: var(--bg-sidebar-header-navy);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
}

.place-bet-btn:hover {
    background-color: var(--bg-sidebar-header-blue);
}

.place-bet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Open bets card */
.placed-bet-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

.placed-bet-card.back { border-left: 3px solid var(--bg-back-blue); }
.placed-bet-card.lay { border-left: 3px solid var(--bg-lay-pink); }

.p-bet-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 4px;
}

.p-bet-type {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
}

.p-bet-type.back { background-color: var(--bg-back-blue); }
.p-bet-type.lay { background-color: var(--bg-lay-pink); }

.p-bet-match {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.p-bet-footer {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.p-bet-profit { color: #27ae60; font-weight: 700; }
.p-bet-risk { color: #c0392b; font-weight: 700; }

/* ==========================================================================
   WHATSAPP CUSTOMER SUPPORT WIDGET (FLOATING)
   ========================================================================== */
.whatsapp-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #ffffff;
    border: 1px solid #1ebea5;
    border-radius: 50px;
    padding: 8px 16px 8px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-floating-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30,190,165,0.25);
}

.whatsapp-icon-wrapper {
    width: 36px;
    height: 36px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.whatsapp-label {
    display: flex;
    flex-direction: column;
}

.support-title {
    font-size: 11px;
    font-weight: 900;
    color: #333;
    line-height: 1.1;
}

.support-subtitle {
    font-size: 8px;
    font-weight: 700;
    color: #25d366;
    line-height: 1.1;
}

/* ==========================================================================
   MOBILE FOOTER NAVIGATION
   ========================================================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background-color: var(--bg-header);
    border-top: 1px solid rgba(255,255,255,0.1);
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    padding-bottom: env(safe-area-inset-bottom);
}

.mob-nav-item {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    position: relative;
    height: 100%;
}

.mob-nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
}

.mob-nav-item.active {
    color: var(--color-gold);
}

.mob-action-casino {
    transform: translateY(-8px);
}

.casino-icon-glow {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-gold) 0%, #d8990a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(240, 185, 11, 0.4);
}

.mob-badge-count {
    position: absolute;
    top: 4px;
    right: 25%;
    background-color: var(--color-gold);
    color: #000;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
}

/* Mobile overlay drawer */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 101;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background-color: #fff;
    border-left: 4px solid var(--bg-sidebar-header-blue);
    padding: 10px 16px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
    font-weight: 700;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: var(--color-deposit-green); }
.toast.error { border-left-color: var(--color-withdraw-red); }

/* Helper classes */
.hidden { display: none !important; }

/* ==========================================================================
/* ==========================================================================
   CASINO GAMES SECTION (247GOLD REPLICA)
   ========================================================================== */
.casino-games-section {
    padding: 8px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Top Horizontal scroll row */
.featured-casino-row {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.featured-casino-card {
    flex: 0 0 170px;
    height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background-color: #0b1a30;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.featured-casino-card::after, .game-launch-card::after, .featured-casino-card-half::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
    z-index: 2;
}

.featured-casino-card:hover::after, .game-launch-card:hover::after, .featured-casino-card-half:hover::after {
    left: 150%;
}

.featured-casino-card:hover {
    transform: perspective(800px) rotateX(6deg) rotateY(-4deg) translateY(-5px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow: 0 12px 24px rgba(240, 185, 11, 0.2), 0 4px 10px rgba(0,0,0,0.5);
}

.featured-casino-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-casino-split-column {
    flex: 0 0 170px;
    height: 96px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-casino-card-half {
    flex: 1;
    height: calc(50% - 2px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background-color: #0b1a30;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.featured-casino-card-half:hover {
    transform: perspective(800px) rotateX(6deg) rotateY(-4deg) translateY(-3px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow: 0 10px 20px rgba(240, 185, 11, 0.2), 0 4px 8px rgba(0,0,0,0.5);
}

.featured-casino-card-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card fallbacks styling */
.card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 0.5px;
    gap: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
    padding: 6px;
}

.card-fallback i {
    font-size: 24px;
}

.font-two-rows {
    font-size: 10px;
    gap: 2px;
}

.subtext-yellow {
    color: var(--color-gold);
    font-size: 11px;
}

/* Gradients for Featured Banners */
.style-lightning { background: linear-gradient(135deg, #1d0047 0%, #4b0082 100%); border-color: #7b1fa2; }
.style-lightning i { color: #fbc02d; text-shadow: 0 0 8px #fbc02d; }
.style-marble { background: linear-gradient(135deg, #0d3b66 0%, #051b30 100%); border-color: #1e88e5; }
.style-marble i { color: #ffb300; }
.style-sexy { background: linear-gradient(135deg, #7a0010 0%, #300005 100%); border-color: #e91e63; }
.style-sexy i { color: #ff4081; }
.style-mines { background: linear-gradient(135deg, #1b5e20 0%, #003300 100%); border-color: #4caf50; }
.style-mines i { color: #d32f2f; }
.style-bikini { background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%); border-color: #ffb300; }
.style-color { background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%); border-color: #1e88e5; }

/* Section Header Bar */
.new-launch-header {
    background-color: var(--bg-header);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--color-gold);
}

/* Grid layout (4 Columns) */
.new-launch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.game-launch-card {
    background-color: #0b1a30;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
    transform: perspective(800px) rotateX(0deg) rotateY(0deg) translateZ(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.game-launch-card:hover {
    transform: perspective(800px) rotateX(6deg) rotateY(-4deg) translateY(-6px) scale(1.02);
    border-color: var(--color-light-blue);
    box-shadow: 0 15px 30px rgba(1, 167, 225, 0.2), 0 5px 12px rgba(0,0,0,0.5);
}

.game-img-wrapper {
    height: 140px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.game-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-label-bar {
    background-color: #0c367c;
    color: #ffffff;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Grid card fallbacks */
.fallback-grid-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.fallback-grid-card i {
    font-size: 32px;
}

/* Grid Fallback colors matching screenshot */
.style-hand-cricket { background: linear-gradient(135deg, #b8860b 0%, #556b2f 100%); }
.style-hand-cricket i { color: #fbc02d; }
.style-wicket-blast { background: linear-gradient(135deg, #8b0000 0%, #ff4500 100%); }
.style-wicket-blast i { color: #ffea00; }
.style-volt-run { background: linear-gradient(135deg, #008080 0%, #20b2aa 100%); }
.style-volt-run i { color: #00ffff; }
.style-packs { background: linear-gradient(135deg, #4b0082 0%, #8a2be2 100%); }
.style-packs i { color: #ffeb3b; }
.style-naughty-button { background: linear-gradient(135deg, #c71585 0%, #e91e63 100%); }
.style-naughty-button i { color: #fff; }
.style-instant-rummy { background: linear-gradient(135deg, #006400 0%, #228b22 100%); }
.style-instant-rummy i { color: #ff5722; }
.style-jhandi-munda { background: linear-gradient(135deg, #2f4f4f 0%, #708090 100%); }
.style-jhandi-munda i { color: #e91e63; }
.style-twist-x { background: linear-gradient(135deg, #1a0033 0%, #3d0066 100%); }
.style-twist-x i { color: #00e5ff; }
.style-deal-no-deal { background: linear-gradient(135deg, #5c4033 0%, #8b4513 100%); }
.style-deal-no-deal i { color: #ffd700; }
.style-jili { background: linear-gradient(135deg, #4a148c 0%, #7b1fa2 100%); }
.style-jili i { color: #ffd700; }

/* Responsive adjustments for Casino Grid */
@media (max-width: 900px) {
    .new-launch-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .new-launch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-img-wrapper {
        height: 100px;
    }
}

/* MY FAVOURITES HEADER & GRID */
.my-favourites-header {
    background-color: var(--bg-header);
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-left: 3px solid var(--color-gold);
    margin-top: 12px;
}

.my-favourites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

/* GAME PLAY MODAL BASE */
.game-play-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.game-play-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.modal-window {
    position: relative;
    width: 980px;
    max-width: 98vw;
    max-height: 96vh;
    background-color: #1a0a0a;
    border: 1px solid #3a1a1a;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9);
    animation: gameModalZoom 0.25s ease-out;
}

@keyframes gameModalZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background-color: #0c1c38;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #112a56;
}

.modal-header h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-gold);
}

.btn-close-modal {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 0;
    background-color: #1a0a0a;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   MINI GAME: AVIATOR (FULL REDESIGN)
   ========================================================================== */

/* Top History Ticker */
.av2-top-ticker {
    background-color: #0d0d0d;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #2a0a0a;
    scrollbar-width: none;
    flex-shrink: 0;
}
.av2-top-ticker::-webkit-scrollbar { display: none; }

.av2-ticker-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}
.av2-ticker-pill.red { background-color: #4a0010; color: #ff4060; border: 1px solid #8b0025; }
.av2-ticker-pill.blue { background-color: #051e4a; color: #4fa3ff; border: 1px solid #0a3888; }
.av2-ticker-pill.purple { background-color: #250045; color: #c060ff; border: 1px solid #5a00a0; }
.av2-ticker-pill.gold { background-color: #3a2800; color: #ffd700; border: 1px solid #7a5500; }
.av2-ticker-pill:hover { opacity: 0.8; }

/* Main game body: left bets + center canvas */
.av2-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Left Bets Panel */
.av2-bets-panel {
    width: 200px;
    flex-shrink: 0;
    background-color: #0d0505;
    border-right: 1px solid #2a0a0a;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.av2-bets-tabs {
    display: flex;
    border-bottom: 1px solid #2a0a0a;
    flex-shrink: 0;
}

.av2-bets-tab {
    flex: 1;
    padding: 8px 4px;
    background: none;
    border: none;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.av2-bets-tab.active {
    color: #fff;
    border-bottom-color: #ff3344;
}

.av2-bets-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 8px;
    font-size: 10px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    border-bottom: 1px solid #1a0505;
}

.av2-bets-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #3a1a1a #0d0505;
}

.av2-bets-list::-webkit-scrollbar { width: 3px; }
.av2-bets-list::-webkit-scrollbar-track { background: #0d0505; }
.av2-bets-list::-webkit-scrollbar-thumb { background: #3a1a1a; border-radius: 2px; }

.av2-bet-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    font-size: 10px;
}

.av2-bet-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

.av2-bet-name {
    flex: 1;
    color: #ccc;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.av2-bet-amount {
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    min-width: 32px;
    text-align: right;
}

.av2-bet-cashout {
    color: #00c853;
    font-weight: 700;
    font-size: 10px;
    min-width: 32px;
    text-align: right;
}

.av2-bet-cashout.empty {
    color: #444;
}

/* Center Canvas */
.av2-canvas-area {
    flex: 1;
    position: relative;
    background: radial-gradient(ellipse at center, #1a0505 0%, #0d0000 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sunburst rays */
.av2-sunburst {
    position: absolute;
    inset: 0;
    background-image: repeating-conic-gradient(
        from 0deg,
        rgba(100,0,0,0.07) 0deg 10deg,
        transparent 10deg 20deg
    );
    animation: av2SunburstSpin 60s linear infinite;
}

@keyframes av2SunburstSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Grid lines */
.av2-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,0,0,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* SVG path line */
.av2-flight-path {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* Plane */
.av2-plane {
    position: absolute;
    z-index: 5;
    bottom: 15%;
    left: 12%;
    transition: bottom 0.08s linear, left 0.08s linear;
    filter: drop-shadow(0 0 8px rgba(255,50,50,0.8));
}

.av2-plane svg {
    width: 80px;
    height: auto;
    transform: rotate(-20deg);
}

/* Multiplier display in center */
.av2-multiplier-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 6;
    pointer-events: none;
}

.av2-multiplier-val {
    font-size: 56px;
    font-weight: 900;
    color: #ff3344;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255,50,70,0.6), 0 0 40px rgba(255,50,70,0.3);
    letter-spacing: -1px;
    font-family: 'Roboto', sans-serif;
}

.av2-multiplier-val.waiting {
    font-size: 22px;
    color: #ffffff;
    text-shadow: none;
    opacity: 0.9;
}

.av2-waiting-bar {
    width: 120px;
    height: 3px;
    background-color: #2a0a0a;
    border-radius: 2px;
    margin: 8px auto 0;
    overflow: hidden;
}

.av2-waiting-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff3344, #ff6060);
    border-radius: 2px;
    animation: av2WaitingFill 3s linear forwards;
    width: 0%;
}

@keyframes av2WaitingFill {
    from { width: 0%; }
    to { width: 100%; }
}

.av2-flew-away {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    z-index: 7;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}

.av2-flew-text {
    font-size: 28px;
    font-weight: 900;
    color: #ff3344;
    text-shadow: 0 0 20px rgba(255,50,70,0.8);
}

.av2-flew-multi {
    font-size: 48px;
    font-weight: 900;
    color: #ff3344;
    text-shadow: 0 0 30px rgba(255,50,70,0.9);
}

/* Round ID badge */
.av2-round-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #555;
    z-index: 6;
    white-space: nowrap;
}

/* Bottom bet controls */
.av2-controls-bar {
    background-color: #0d0505;
    border-top: 1px solid #2a0a0a;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.av2-bet-panel {
    flex: 1;
    background-color: #1a0808;
    border-radius: 8px;
    border: 1px solid #3a1010;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.av2-bet-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #2a0a0a;
    padding-bottom: 6px;
}

.av2-bet-tab {
    background: none;
    border: none;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
}

.av2-bet-tab.active {
    background-color: #2a1010;
    color: #fff;
}

.av2-bet-amount-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.av2-bet-minus, .av2-bet-plus {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #2a1010;
    border: 1px solid #4a2020;
    color: #ccc;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    line-height: 1;
}

.av2-bet-minus:hover, .av2-bet-plus:hover {
    background-color: #4a1010;
    color: #fff;
}

.av2-bet-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.av2-bet-input {
    width: 100%;
    background-color: #0d0505;
    border: 1px solid #3a1010;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    padding: 6px 8px;
    outline: none;
}

.av2-bet-input:focus {
    border-color: #ff3344;
}

.av2-quick-stakes {
    display: flex;
    gap: 4px;
}

.av2-quick-btn {
    flex: 1;
    background-color: #2a1010;
    border: 1px solid #3a1515;
    border-radius: 4px;
    color: #ccc;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 2px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.av2-quick-btn:hover {
    background-color: #4a1515;
    color: #fff;
}

.av2-main-bet-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #1db954, #16a34a);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,200,80,0.3);
    text-transform: uppercase;
}

.av2-main-bet-btn:hover {
    background: linear-gradient(135deg, #23e565, #1cb85a);
    box-shadow: 0 6px 16px rgba(0,200,80,0.5);
    transform: translateY(-1px);
}

.av2-main-bet-btn:disabled {
    background: #2a1010;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.av2-main-bet-btn.cashout-mode {
    background: linear-gradient(135deg, #ff3344, #cc0020);
    box-shadow: 0 4px 12px rgba(255,50,70,0.4);
    animation: av2PulseCashout 0.8s ease-in-out infinite alternate;
}

@keyframes av2PulseCashout {
    from { box-shadow: 0 4px 12px rgba(255,50,70,0.4); }
    to { box-shadow: 0 6px 20px rgba(255,50,70,0.8); }
}

.av2-main-bet-btn.waiting-mode {
    background: linear-gradient(135deg, #ff6600, #cc4400);
    animation: none;
}

/* Separator between two panels */
.av2-divider {
    width: 1px;
    background-color: #2a0a0a;
    flex-shrink: 0;
    align-self: stretch;
}

/* Responsive */
@media (max-width: 700px) {
    .av2-bets-panel { display: none; }
    .av2-bet-panel:last-child { display: none; }
}

/* ==========================================================================
   MINI GAME: BLACKJACK
   ========================================================================== */
.bj-game-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bj-table {
    background-color: #0d381c;
    border: 3.5px solid #194d28;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: inset 0 0 24px rgba(0,0,0,0.6);
}

.bj-hand-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bj-hand-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
}

.bj-cards {
    display: flex;
    gap: 8px;
    min-height: 80px;
}

.bj-card {
    width: 55px;
    height: 80px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ccc;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 6px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
    animation: dealCard 0.2s ease-out;
}

@keyframes dealCard {
    from { transform: translateY(-30px) rotate(-10deg); opacity: 0; }
    to { transform: translateY(0) rotate(0deg); opacity: 1; }
}

.bj-card.red {
    color: #d32f2f;
}

.bj-card.hidden-card {
    background: linear-gradient(135deg, #b71c1c 0%, #7f0000 100%);
    border-color: #fff;
    color: transparent;
}

.bj-controls {
    display: flex;
    gap: 8px;
}

.btn-bj {
    flex: 1;
    border: none;
    padding: 10px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    background-color: #1e3c72;
    color: #fff;
}

.btn-bj:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-bj-deal { background-color: #ff9800; color: #000; }
.btn-bj-hit { background-color: #2196f3; }
.btn-bj-stand { background-color: #e91e63; }

.bj-status-msg {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-gold);
    min-height: 20px;
}

/* ==========================================================================
   MINI GAME: ROULETTE
   ========================================================================== */
.roulette-game-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.roulette-wheel-container {
    position: relative;
    width: 180px;
    height: 180px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #0e1e38 30%, #2f1b0c 40%, #000 50%);
    border: 8px solid #f9a825;
    position: relative;
    transition: transform 3.5s cubic-bezier(0.1, 0.8, 0.1, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.roulette-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 2;
}

/* Spinner indicator peg */
.roulette-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #ff3344;
    z-index: 3;
}

.roulette-betting-board {
    display: flex;
    gap: 10px;
    width: 100%;
}

.bet-option-btn {
    flex: 1;
    border: 2px solid transparent;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-family);
    text-align: center;
}

.bet-option-btn.red { background-color: #d32f2f; border-color: #ff5252; }
.bet-option-btn.black { background-color: #212121; border-color: #424242; }
.bet-option-btn.green { background-color: #2e7d32; border-color: #4caf50; }

.bet-option-btn.selected {
    box-shadow: 0 0 0 3px #fff;
    transform: scale(0.96);
}

/* ==========================================================================
   MINI GAME: CRICKET / HAND CRICKET
   ========================================================================== */
.cricket-game-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cricket-scoreboard {
    background-color: #0c1a30;
    border: 1px solid #1c3c6f;
    border-radius: 6px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 10px;
}

.score-lbl {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.score-val {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-gold);
}

.cricket-choices-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: 100%;
}

.btn-cricket-run {
    background-color: #1e3c72;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 4px;
    font-weight: 900;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cricket-run:hover {
    background-color: #2a5298;
}

.cricket-log-box {
    background-color: rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 10px;
    height: 100px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 11px;
    color: #8bb2f9;
}

/* Responsive adjustments for Casino Grid */
@media (max-width: 900px) {
    .my-favourites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .my-favourites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   RESPONSIVENESS / MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar-nav {
        position: absolute;
        left: -230px;
        top: 0;
        bottom: 0;
        z-index: 102;
        transition: transform 0.25s ease-in-out;
        height: 100%;
    }
    
    .sidebar-nav.active {
        transform: translateX(230px);
        box-shadow: var(--shadow-md);
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .marquee-container, .rules-link, .user-stats, .user-dropdown {
        display: none !important;
    }
    
    .workspace-layout {
        height: calc(100vh - 112px); /* adjust heights */
    }
    
    .right-panel {
        position: absolute;
        right: -320px;
        top: 0;
        bottom: 0;
        z-index: 102;
        transition: transform 0.25s ease-in-out;
        height: 100%;
        width: 320px;
    }
    
    .right-panel.active {
        transform: translateX(-320px);
        box-shadow: var(--shadow-md);
    }
    
    .mobile-nav {
        display: flex;
    }
    
    .whatsapp-floating-widget {
        bottom: 72px; /* Float above mobile footer nav */
        right: 16px;
    }
    
    /* Responsive odds cells for phone size */
    .headers-odds-group, .odds-buttons-group {
        width: 240px; /* Compress from 390px */
    }
    
    .header-column-odds, .market-pair {
        width: 80px;
    }
    
    .odds-cell {
        font-size: 11px;
    }
    
    .cell-size {
        display: none; /* Hide size under odds on mobile */
    }
}

@media (max-width: 480px) {
    .headers-odds-group, .odds-buttons-group {
        width: 198px; /* Compress more */
    }
    
    .header-column-odds, .market-pair {
        width: 66px;
    }
    
    .event-name-text {
        font-size: 12px;
    }
}

/* ==========================================================================
   ACTION MODALS (DEPOSIT, WITHDRAW, RULES, PROFILE)
   ========================================================================== */
.action-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.action-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.action-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) perspective(1000px) rotateX(15deg) scale(0.92);
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(13, 27, 46, 0.95), rgba(7, 15, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 25px 65px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
    z-index: 10001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(20px);
}

.action-modal.active {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) perspective(1000px) rotateX(0deg) scale(1);
    pointer-events: all;
}

.action-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.action-modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.action-modal-header p {
    font-size: 11px;
    color: #888;
    margin: 2px 0 0;
}

.action-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.deposit-icon { background: linear-gradient(135deg, #09a01a, #05700f); color: #fff; }
.withdraw-icon { background: linear-gradient(135deg, #d11a2a, #8b0000); color: #fff; }
.rules-icon { background: linear-gradient(135deg, #1054a8, #002f6c); color: #fff; }
.profile-icon { background: linear-gradient(135deg, #f0b90b, #b8860b); color: #fff; }

.action-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #999;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.action-modal-close:hover { background: rgba(255,50,50,0.2); color: #ff4444; }

.action-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #1a3a5c #0a1525;
}

/* Balance Display */
.balance-display {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-display span { font-size: 12px; color: #888; }
.balance-display strong { font-size: 20px; font-weight: 800; color: #f0b90b; }

/* Preset Amount Buttons */
.amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.preset-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #ccc;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

.preset-btn:hover, .preset-btn.active {
    background: rgba(9,160,26,0.2);
    border-color: #09a01a;
    color: #4cff6a;
}

/* Amount Input */
.amount-input-group label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.amount-input-wrap:focus-within { border-color: #09a01a; }

.currency-prefix {
    padding: 0 12px;
    color: #f0b90b;
    font-weight: 800;
    font-size: 18px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.amount-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 14px;
    outline: none;
}

/* Payment Methods */
.payment-methods p { font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.payment-grid { display: flex; gap: 6px; margin-top: 6px; }

.pay-method {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #aaa;
    padding: 8px 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.pay-method i { font-size: 16px; }
.pay-method:hover, .pay-method.active {
    background: rgba(16,84,168,0.25);
    border-color: #1054a8;
    color: #4fa3ff;
} 

/* UPI App Buttons */
.upi-apps {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
}
.upi-app-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}
.upi-app-btn:hover {
    transform: scale(1.1);
}
.upi-app-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Submit Button */
.action-modal-submit {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.deposit-submit {
    background: linear-gradient(135deg, #09a01a, #067010);
    color: #fff;
    box-shadow: 0 4px 20px rgba(9,160,26,0.4);
}

.deposit-submit:hover {
    background: linear-gradient(135deg, #0cbb1f, #09a01a);
    box-shadow: 0 6px 25px rgba(9,160,26,0.6);
    transform: translateY(-1px);
}

.withdraw-submit {
    background: linear-gradient(135deg, #d11a2a, #8b0000);
    color: #fff;
    box-shadow: 0 4px 20px rgba(209,26,42,0.4);
}

.withdraw-submit:hover {
    background: linear-gradient(135deg, #e01e2e, #aa0010);
    transform: translateY(-1px);
}

.action-modal-note {
    font-size: 11px;
    color: #555;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
}

/* Bank Details */
.bank-details-section p { font-size: 11px; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.bank-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 6px;
    font-size: 13px;
    color: #ccc;
}

.bank-detail-row i { color: #4fa3ff; }

.verified-badge {
    margin-left: auto;
    color: #09a01a;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Rules Modal */
.rules-modal { width: 500px; }
.rules-body { max-height: 65vh; }

.rules-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 14px 16px;
}

.rules-section h4 {
    font-size: 13px;
    font-weight: 700;
    color: #f0b90b;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rules-section h4 i { color: #f0b90b; }

.rules-section ul {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rules-section li { font-size: 12px; color: #bbb; line-height: 1.5; }

/* Profile Modal */
.profile-modal { width: 380px; }

.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.profile-info-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-info-item span { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-info-item strong { font-size: 14px; color: #fff; font-weight: 700; }

.profile-menu-list { display: flex; flex-direction: column; gap: 4px; }

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
}

.profile-menu-item i { width: 16px; color: #4fa3ff; text-align: center; }
.profile-menu-item:hover { background: rgba(255,255,255,0.07); color: #fff; border-color: rgba(255,255,255,0.12); }
.profile-menu-item.danger i { color: #ff4444; }
.profile-menu-item.danger:hover { background: rgba(255,50,50,0.1); border-color: rgba(255,50,50,0.3); color: #ff6666; }

/* Select Dropdown Styling */
.select-dropdown.open { border-color: #f0b90b; }

/* ==========================================================================
   MOBILE RESPONSIVE — ACTION MODALS
   ========================================================================== */
@media (max-width: 600px) {
    .action-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%) !important;
        border-radius: 20px 20px 0 0;
    }

    .action-modal.active {
        transform: translateY(0) !important;
    }

    .rules-modal, .profile-modal {
        width: 100% !important;
    }

    .amount-presets {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-grid {
        flex-direction: row;
    }

    .profile-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Header mobile fixes */
    .btn-deposit-top, .btn-withdraw-top {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }

    .rules-link {
        display: none;
    }

    .user-dropdown .username {
        display: none;
    }
}

/* Make pill buttons properly styled when active */
.pill-btn.active {
    background-color: #f0b90b !important;
    color: #0a1b38 !important;
    border-color: #f0b90b !important;
    font-weight: 800 !important;
}

/* Sort dropdown hover */
.select-dropdown:hover {
    background-color: rgba(255,255,255,0.08);
    border-color: #f0b90b;
}

/* User dropdown hover */
.user-dropdown:hover {
    opacity: 0.8;
}

/* Sidebar Other header hover */
.sidebar-header-blue:hover {
    opacity: 0.85;
}

/* Toast — info type */
.toast.info {
    border-left-color: #4fa3ff;
}

.toast.info i {
    color: #4fa3ff;
}

/* ==========================================================================
   FAIRDEAL REPLICA OVERRIDES
   ========================================================================== */

/* Dark Navy Header Background */
.main-header {
    background-color: #061124 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    height: 60px !important;
}

/* Logo Design: fairdeal Let's Play */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.0;
    cursor: pointer;
    user-select: none;
    text-shadow: none !important;
}

.logo-fair {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.logo-deal {
    font-family: 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 900;
    color: #ffd700;
    font-size: 24px;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.logo-subtitle {
    font-size: 8px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1px;
    opacity: 0.95;
}

/* Header Login Inputs */
.header-login-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-input {
    background-color: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    width: 120px;
    outline: none;
    font-weight: 600;
    font-family: var(--font-family);
    box-sizing: border-box;
}

.header-input::placeholder {
    color: #888888;
}

.btn-login-submit {
    background: linear-gradient(180deg, #e32b3c 0%, #b51726 100%);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    font-family: var(--font-family);
}

.btn-login-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-demo-login {
    background: linear-gradient(180deg, #01a7e1 0%, #008cc0 100%);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    font-family: var(--font-family);
}

.btn-demo-login:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Sky-Blue Sub-Header Navigation */
.subheader-nav {
    background-color: #01a7e1 !important;
    border-bottom: none !important;
}

.subheader-menu .menu-tab-item a {
    padding: 12px 18px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border-bottom: none !important;
    transition: background-color 0.2s ease !important;
}

.subheader-menu .menu-tab-item:hover a, 
.subheader-menu .menu-tab-item.active a {
    background-color: #d11a2a !important;
    color: #ffffff !important;
    border-bottom: none !important;
}

.subheader-menu .menu-tab-item.active {
    background-color: #d11a2a !important;
    border-bottom: none !important;
}

/* Megaphone News Ticker Bar */
.news-bar {
    display: flex;
    align-items: center;
    background-color: #061124;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 38px;
    box-sizing: border-box;
}

.news-label {
    background-color: #d11a2a;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-ticker-container {
    flex: 1;
    margin-left: 12px;
    overflow: hidden;
}

.news-marquee {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    display: block;
}

/* Home Banners Section */
.home-banners-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background-color: #0b1a30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-popular-events {
    background: linear-gradient(135deg, #0e2954 0%, #1f51ff 100%);
    border-radius: 8px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-popular-events::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    transform: translate(50px, -50px);
    pointer-events: none;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banner-tag {
    background-color: #d11a2a;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: 800;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.banner-popular-events h2 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0;
}

.banner-popular-events p {
    font-size: 13px;
    color: #bcd4ff;
    margin: 0;
}

.banner-decor {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.15);
}

/* Sports count panel & Sports Book grid */
.banners-row-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .banners-row-grid {
        grid-template-columns: 1fr;
    }
}

.sports-live-panel {
    background-color: #061124;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-header-red {
    background-color: #d11a2a;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.sports-count-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sports-count-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sports-count-list li:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.sports-count-list li:last-child {
    border-bottom: none;
}

.sport-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.sport-name i {
    color: #01a7e1;
}

.sport-count {
    background-color: #01a7e1;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}

.banner-sportsbook {
    background: linear-gradient(135deg, #5c000e 0%, #d11a2a 100%);
    border-radius: 8px;
    padding: 16px 24px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.banner-sportsbook:hover {
    transform: translateY(-2px);
}

.sportsbook-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.sportsbook-content h3 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0;
}

.sportsbook-content p {
    font-size: 12px;
    color: #ffa3ab;
    margin: 0;
}

.btn-play-now-sports {
    background-color: #ffffff;
    color: #d11a2a;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    align-self: flex-start;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.sportsbook-decor {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.12);
    z-index: 1;
}

/* Hide Sidebar Navigation on Desktop */
@media (min-width: 901px) {
    .sidebar-nav {
        display: none !important;
    }
}

/* Casino Layout and Card Overhauls */
.casino-games-section {
    background-color: #0b1a30 !important;
    padding: 12px !important;
}

.casino-section-container {
    margin-bottom: 20px;
}

.casino-section-header-red {
    background-color: #d11a2a !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px 6px 0 0 !important;
    border-left: none !important;
}

.featured-games-grid-2x4 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

@media (max-width: 900px) {
    .featured-games-grid-2x4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.casino-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

@media (max-width: 900px) {
    .casino-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .casino-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card Styling: Black labels & red highlights */
.game-launch-card {
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background-color: #061124 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.game-launch-card:hover {
    transform: translateY(-4px) !important;
    border-color: #01a7e1 !important;
    box-shadow: 0 8px 24px rgba(1, 167, 225, 0.3) !important;
}

.game-img-wrapper {
    height: 120px !important;
}

.game-label-bar-black {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-play-now-red {
    color: #d11a2a !important;
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: filter 0.2s ease;
}

.game-launch-card:hover .btn-play-now-red {
    filter: brightness(1.3);
}

.btn-demo-login {
    background: linear-gradient(180deg, #e32b3c 0%, #b51726 100%) !important;
}

/* Yellow tag NEW for nav links */
.badge-new {
    background-color: #ffd700 !important;
    color: #000000 !important;
    font-size: 7px !important;
    font-weight: 900 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    margin-left: 4px !important;
    vertical-align: top !important;
    display: inline-block !important;
    line-height: 1 !important;
}

/* Highlighted menu categories in nav bar */
.subheader-menu .menu-tab-item.highlight-red a {
    background-color: #d11a2a !important;
    color: #ffffff !important;
}
.subheader-menu .menu-tab-item.highlight-red:hover a {
    background-color: #b51726 !important;
}

/* Scroll count panel list scrollbar */
.sports-scroll-panel {
    max-height: 146px;
    overflow-y: auto;
}
.sports-scroll-panel::-webkit-scrollbar {
    width: 4px;
}
.sports-scroll-panel::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
}
.sports-scroll-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Hide right panel on Home and Casino tabs */
.workspace-layout.home-layout .right-panel {
    display: none !important;
}

/* ==========================================================================
   NEWS TICKER BAR
   ========================================================================== */
.news-ticker-bar {
    display: flex;
    align-items: center;
    background: #0a0a0a;
    height: 28px;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #1a1a1a;
    color: #ccc;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-family);
    white-space: nowrap;
    height: 100%;
    border-right: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.news-ticker-label i {
    color: #f0b90b;
    font-size: 12px;
}

.news-ticker-scroll-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.news-ticker-scroll {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 35s linear infinite;
}

.news-ticker-scroll span {
    padding: 0 40px;
    color: #b0b8c4;
    font-size: 11px;
    font-family: var(--font-family);
    border-right: 1px solid rgba(255,255,255,0.1);
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   POPULAR EVENTS BANNER
   ========================================================================== */
.popular-events-banner {
    width: 100%;
    height: 140px;
    overflow: hidden;
    display: block;
    cursor: pointer;
    position: relative;
    background: #07101f;
    flex-shrink: 0;
}

.popular-events-img {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: block;
}

@media (max-width: 768px) {
    .popular-events-banner {
        height: 90px;
    }
}

/* ==========================================================================
   CRICKET HERO CARD — Full Width Large Card
   ========================================================================== */
.cricket-hero-card {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #040e1c;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: filter 0.2s ease;
}

.cricket-hero-card:hover {
    filter: brightness(1.08);
}

/* Full-cover background image */
.cricket-hero-img-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cricket-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    animation: bannerBreath 5s ease-in-out infinite;
}

/* Dark gradient — left side darker for text, right reveals the image */
.cricket-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(4, 14, 28, 0.92) 0%,
        rgba(4, 14, 28, 0.70) 40%,
        rgba(4, 14, 28, 0.20) 70%,
        rgba(4, 14, 28, 0.05) 100%
    );
}

/* Animated cricket ball — positioned mid-right */
.cricket-hero-card .card-anim-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #c0392b 45%, #922b21 100%);
    box-shadow: 0 0 10px rgba(220,50,50,0.9);
    top: 55%;
    right: 38%;
    z-index: 4;
    animation: cardBallFly 2.2s ease-in-out infinite;
}

.cricket-hero-card .card-anim-ball .ball-seam {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border-top: 2px solid rgba(255,255,255,0.5);
    animation: ballSpin 0.35s linear infinite;
}

.cricket-hero-card .card-sparks {
    position: absolute;
    top: 54%;
    right: 57%;
    z-index: 5;
    width: 0;
    height: 0;
}

.cricket-hero-card .card-sparks span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f39c12;
    box-shadow: 0 0 6px #f39c12;
}
.cricket-hero-card .card-sparks span:nth-child(1) { animation: cSpark1 2.2s ease-out infinite; }
.cricket-hero-card .card-sparks span:nth-child(2) { animation: cSpark2 2.2s ease-out infinite; }
.cricket-hero-card .card-sparks span:nth-child(3) { animation: cSpark3 2.2s ease-out infinite; }
.cricket-hero-card .card-sparks span:nth-child(4) { animation: cSpark4 2.2s ease-out infinite; }

/* Text content — left side */
.cricket-hero-text {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LIVE NOW pill */
.cricket-hero-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-family);
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    box-shadow: 0 0 12px rgba(192,57,43,0.7);
}

/* Big CRICKET title */
.cricket-hero-title {
    font-size: 64px;
    font-weight: 900;
    font-family: 'Arial Black', Impact, sans-serif;
    font-style: italic;
    color: #ffffff;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow:
        0 0 20px rgba(255,200,0,0.9),
        0 0 40px rgba(255,150,0,0.5),
        2px 3px 0 rgba(0,0,0,0.9);
    animation: headingGlow 2.5s ease-in-out infinite;
}

.cricket-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    font-family: var(--font-family);
    font-weight: 400;
}

/* Right-side match count box */
.cricket-hero-count {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(231,76,60,0.5);
    border-radius: 12px;
    padding: 12px 18px;
    backdrop-filter: blur(6px);
}

.cricket-count-num {
    font-size: 42px;
    font-weight: 900;
    font-family: var(--font-family);
    color: #e74c3c;
    line-height: 1;
    text-shadow: 0 0 16px rgba(231,76,60,0.8);
}

.cricket-count-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-family: var(--font-family);
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
    .cricket-hero-card {
        height: 160px;
    }
    .cricket-hero-title {
        font-size: 32px;
    }
    .cricket-hero-sub {
        font-size: 11px;
    }
    .cricket-hero-text {
        left: 14px;
        gap: 5px;
    }
    .cricket-count-num {
        font-size: 28px;
    }
    .cricket-hero-count {
        right: 14px;
        padding: 8px 12px;
    }
    .cricket-hero-live {
        font-size: 10px;
        padding: 3px 8px;
    }
}



/* ── Each sport card ── */
.sport-card {
    flex: 1;
    min-width: 160px;
    max-width: 280px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #0d1b35;
    border: 2px solid rgba(255,255,255,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sport-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #00e5ff;
    box-shadow: 0 8px 32px rgba(0,229,255,0.25), 0 0 0 1px rgba(0,229,255,0.3);
}

/* Cricket card has red glow (it's the main sport) */
.sport-card:first-child {
    border-color: rgba(231,76,60,0.4);
    box-shadow: 0 4px 20px rgba(231,76,60,0.2);
}

.sport-card:first-child:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 32px rgba(231,76,60,0.4), 0 0 0 1px rgba(231,76,60,0.5);
}

/* ── Image wrapper ── */
.sport-card-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #0a1628;
}

.sport-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.4s ease;
}

.sport-card-img-center {
    object-position: center center;
}

.sport-card:hover .sport-card-img {
    transform: scale(1.06);
}

/* ── LIVE badge (top-left) ── */
.sport-card-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c0392b;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    font-family: var(--font-family);
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 0 8px rgba(192,57,43,0.7);
}

.card-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s step-start infinite;
    display: inline-block;
}

/* ── Animated cricket ball on cricket card ── */
.card-anim-ball {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #c0392b 45%, #922b21 100%);
    box-shadow: 0 0 8px rgba(220,50,50,0.9);
    top: 60%;
    right: 45%;
    z-index: 4;
    animation: cardBallFly 2s ease-in-out infinite;
}

.card-anim-ball .ball-seam {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 1.5px solid rgba(255,255,255,0.5);
    animation: ballSpin 0.35s linear infinite;
}

@keyframes cardBallFly {
    0%   { right: 20%; top: 65%; opacity: 0; transform: scale(0.5) rotate(0deg); }
    15%  { opacity: 1; }
    65%  { right: 65%; top: 58%; transform: scale(1) rotate(360deg); }
    85%  { right: 68%; top: 56%; transform: scale(1.1) rotate(480deg); opacity: 1; }
    100% { right: 75%; top: 50%; transform: scale(0.3) rotate(600deg); opacity: 0; }
}

/* ── Sparks on cricket card ── */
.card-sparks {
    position: absolute;
    top: 57%;
    right: 63%;
    z-index: 5;
    width: 0;
    height: 0;
}

.card-sparks span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f39c12;
    box-shadow: 0 0 5px #f39c12;
}
.card-sparks span:nth-child(1) { animation: cSpark1 2s ease-out infinite; }
.card-sparks span:nth-child(2) { animation: cSpark2 2s ease-out infinite; }
.card-sparks span:nth-child(3) { animation: cSpark3 2s ease-out infinite; }
.card-sparks span:nth-child(4) { animation: cSpark4 2s ease-out infinite; }

@keyframes cSpark1 { 0%,60%{opacity:0;transform:translate(0,0)} 75%{opacity:1;transform:translate(-20px,-25px)} 100%{opacity:0;transform:translate(-35px,-50px)} }
@keyframes cSpark2 { 0%,60%{opacity:0;transform:translate(0,0)} 75%{opacity:1;transform:translate(20px,-25px)} 100%{opacity:0;transform:translate(40px,-55px)} }
@keyframes cSpark3 { 0%,60%{opacity:0;transform:translate(0,0)} 75%{opacity:1;transform:translate(-25px,15px)} 100%{opacity:0;transform:translate(-50px,30px)} }
@keyframes cSpark4 { 0%,60%{opacity:0;transform:translate(0,0)} 75%{opacity:1;transform:translate(0,-30px)} 100%{opacity:0;transform:translate(5px,-60px)} }

/* ── Label bar at the bottom ── */
.sport-card-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-family);
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sport-card-label i {
    margin-right: 6px;
    color: #f0b90b;
}

.card-match-count {
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Mobile: 2x2 grid */
@media (max-width: 768px) {
    .sports-cards-row {
        flex-wrap: wrap;
        padding: 10px;
        gap: 8px;
    }
    .sport-card {
        flex: 0 0 calc(50% - 4px);
        min-width: 0;
        max-width: none;
    }
    .sport-card-img-wrap {
        height: 110px;
    }
    .sport-card-label {
        font-size: 12px;
        padding: 8px 10px;
    }
}


.cricket-live-banner {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #040e1c;
}

/* Background image — full cover */
.cricket-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform-origin: center;
    animation: bannerBreath 4s ease-in-out infinite;
}

@keyframes bannerBreath {
    0%, 100% { transform: scale(1.00); }
    50%       { transform: scale(1.04); }
}

/* Dark gradient overlay for text readability */
.cricket-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.50) 45%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
}

/* ── Animated cricket ball ── */
.anim-ball {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #e8e8e8 0%, #c0392b 40%, #922b21 100%);
    box-shadow: 0 0 12px rgba(220,50,50,0.8), 0 2px 6px rgba(0,0,0,0.6);
    top: 52%;
    right: 35%;
    z-index: 4;
    animation: ballFly 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

/* Seam on ball */
.ball-seam {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.3);
    animation: ballSpin 0.4s linear infinite;
}

@keyframes ballFly {
    0%   { right: 18%; top: 45%; opacity: 0; transform: scale(0.6) rotate(0deg); }
    10%  { opacity: 1; }
    60%  { right: 60%; top: 52%; transform: scale(1) rotate(360deg); }
    80%  { right: 65%; top: 50%; transform: scale(1.1) rotate(520deg); opacity: 1; }
    100% { right: 75%; top: 42%; transform: scale(0.4) rotate(720deg); opacity: 0; }
}

@keyframes ballSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── Sparks explosion at bat impact ── */
.anim-sparks {
    position: absolute;
    top: 50%;
    right: 60%;
    z-index: 5;
    width: 0;
    height: 0;
    animation: sparksAppear 2.2s ease-in-out infinite;
}

@keyframes sparksAppear {
    0%, 55% { opacity: 0; }
    70%      { opacity: 1; }
    90%      { opacity: 0; }
    100%     { opacity: 0; }
}

.anim-sparks span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f39c12;
    box-shadow: 0 0 6px #f39c12, 0 0 12px #e74c3c;
    animation: sparkFly 2.2s ease-out infinite;
}

.anim-sparks span:nth-child(1) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark1; }
.anim-sparks span:nth-child(2) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark2; }
.anim-sparks span:nth-child(3) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark3; }
.anim-sparks span:nth-child(4) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark4; }
.anim-sparks span:nth-child(5) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark5; }
.anim-sparks span:nth-child(6) { animation-delay: 0.0s; transform-origin: 0 0; animation-name: spark6; }

@keyframes spark1 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(-30px,-40px)} 100%{opacity:0;transform:translate(-50px,-70px)} }
@keyframes spark2 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(30px,-40px)} 100%{opacity:0;transform:translate(60px,-80px)} }
@keyframes spark3 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(-40px,20px)} 100%{opacity:0;transform:translate(-80px,40px)} }
@keyframes spark4 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(40px,20px)} 100%{opacity:0;transform:translate(80px,50px)} }
@keyframes spark5 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(0,-50px)} 100%{opacity:0;transform:translate(10px,-100px)} }
@keyframes spark6 { 0%,60%{opacity:0;transform:translate(0,0)} 70%{opacity:1;transform:translate(-20px,40px)} 100%{opacity:0;transform:translate(-40px,90px)} }

/* ── Text Content ── */
.cricket-banner-content {
    position: absolute;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* LIVE NOW pill */
.cricket-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    font-family: var(--font-family);
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(192,57,43,0.7);
}

.live-blink-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    display: inline-block;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Big CRICKET heading */
.cricket-banner-heading {
    font-size: 52px;
    font-weight: 900;
    font-family: var(--font-family);
    color: #ffffff;
    margin: 0;
    line-height: 1;
    text-shadow:
        0 0 20px rgba(255,200,0,0.9),
        0 0 40px rgba(255,150,0,0.6),
        2px 2px 0 rgba(0,0,0,0.8);
    letter-spacing: -1px;
    animation: headingGlow 2.5s ease-in-out infinite;
}

@keyframes headingGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,200,0,0.9), 0 0 40px rgba(255,150,0,0.6), 2px 2px 0 rgba(0,0,0,0.8); }
    50%       { text-shadow: 0 0 30px rgba(255,220,0,1.0), 0 0 60px rgba(255,180,0,0.8), 2px 2px 0 rgba(0,0,0,0.8); }
}

.cricket-banner-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-family);
    margin: 0;
    font-weight: 400;
}

/* CTA Button */
.cricket-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-family);
    cursor: pointer;
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(231,76,60,0.5);
    transition: all 0.2s;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(231,76,60,0.5); transform: scale(1); }
    50%       { box-shadow: 0 4px 24px rgba(231,76,60,0.8); transform: scale(1.03); }
}

.cricket-banner-cta:hover {
    background: linear-gradient(135deg, #ff5a49 0%, #e74c3c 100%);
    transform: scale(1.05) !important;
}

/* Hover effect on whole banner */
.cricket-live-banner:hover .cricket-banner-bg {
    animation: bannerHover 0.4s ease forwards;
}

@keyframes bannerHover {
    to { transform: scale(1.06); filter: brightness(1.1); }
}

/* Mobile size */
@media (max-width: 768px) {
    .cricket-live-banner {
        height: 160px;
    }
    .cricket-banner-heading {
        font-size: 34px !important;
    }
    .cricket-banner-sub {
        font-size: 12px !important;
    }
    .cricket-banner-cta {
        font-size: 12px !important;
        padding: 8px 14px !important;
    }
    .cricket-banner-content {
        left: 16px;
        gap: 5px;
    }
    .anim-ball {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   DESKTOP ONLY & MOBILE ONLY HELPERS
   ========================================================================== */

/* On desktop: show desktop inputs, hide mobile button */
.mobile-only-input { display: none !important; }
.desktop-only-input { display: inline-flex !important; }

/* Header user icon */
.header-user-icon {
    color: #ffffff;
    margin-right: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

/* ==========================================================================
   MOBILE LOGIN DRAWER
   ========================================================================== */
.mobile-login-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
}

.mobile-login-drawer.active {
    display: flex;
    align-items: flex-end;
}

.mobile-login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.mobile-login-sheet {
    position: relative;
    width: 100%;
    background: linear-gradient(160deg, #061124 0%, #0d1f3c 100%);
    border-radius: 20px 20px 0 0;
    padding: 0 0 32px;
    border-top: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    animation: slideUpSheet 0.3s ease-out;
}

@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.mobile-login-header button {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-login-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-login-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-family);
    outline: none;
}

.mobile-login-input::placeholder { color: #888; }
.mobile-login-input:focus { border-color: #d11a2a; }

.mobile-login-submit {
    background: linear-gradient(180deg, #e32b3c 0%, #b51726 100%);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-demo-submit {
    background: linear-gradient(180deg, #01a7e1 0%, #008cc0 100%);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Compact mobile login button in header */
.btn-mobile-login {
    background: linear-gradient(180deg, #e32b3c 0%, #b51726 100%);
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* ==========================================================================
   MOBILE RESPONSIVE — CORE LAYOUT FIX (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Prevent any horizontal overflow */
    html, body, .app-container {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Hide desktop inputs, show mobile button */
    .desktop-only-input { display: none !important; }
    .mobile-only-input { display: flex !important; }

    /* Header compact */
    .main-header {
        height: 50px !important;
        padding: 0 10px !important;
        box-sizing: border-box;
    }

    .header-left {
        gap: 8px !important;
        flex-shrink: 0;
    }

    .logo-fair, .logo-deal {
        font-size: 17px !important;
    }

    .logo-subtitle {
        font-size: 7px !important;
    }

    .header-user-icon {
        display: none !important;
    }

    /* Subheader nav: horizontal scroll, no wrap */
    .subheader-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .subheader-menu {
        white-space: nowrap !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        min-width: max-content;
    }

    .subheader-menu .menu-tab-item a {
        padding: 9px 12px !important;
        font-size: 10px !important;
    }

    /* Workspace: full height, no overflow */
    .workspace-layout {
        height: calc(100vh - 106px) !important;
        overflow: hidden !important;
    }

    /* Main content: full width, scrollable */
    .main-content {
        width: 100% !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    /* Casino section: no extra padding */
    .casino-games-section {
        padding: 6px !important;
        background-color: #0b1a30 !important;
    }

    /* 2-column game grid */
    .featured-games-grid-2x4,
    .casino-games-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        padding: 6px !important;
    }

    /* Game image height on mobile */
    .game-img-wrapper {
        height: 95px !important;
    }

    /* Label bar compact */
    .game-label-bar-black {
        padding: 5px 8px !important;
        font-size: 9px !important;
    }

    .btn-play-now-red {
        font-size: 8px !important;
        letter-spacing: 0 !important;
    }

    /* Casino section header */
    .casino-section-header-red {
        font-size: 11px !important;
        padding: 8px 10px !important;
    }

    /* User logged-in header: compact */
    .btn-deposit-top, .btn-withdraw-top {
        padding: 5px 8px !important;
        font-size: 10px !important;
    }

    .user-stats { display: none !important; }
    .rules-link { display: none !important; }

    /* Exchange event row compact */
    .event-name-text {
        font-size: 11px !important;
    }

    /* Hide sidebar on mobile (controlled by drawer) */
    .sidebar-nav {
        position: fixed !important;
        left: -240px !important;
        top: 0;
        height: 100% !important;
        z-index: 200 !important;
        transition: transform 0.25s ease !important;
    }

    .sidebar-nav.active {
        transform: translateX(240px) !important;
    }

    /* Right panel: drawer on mobile */
    .right-panel {
        position: fixed !important;
        right: -320px !important;
        top: 0;
        height: 100% !important;
        width: 300px !important;
        z-index: 200 !important;
        transition: transform 0.25s ease !important;
    }

    .right-panel.active {
        transform: translateX(-320px) !important;
    }

    /* Mobile nav bar */
    .mobile-nav {
        display: flex !important;
        height: 56px !important;
    }

    /* WhatsApp widget above mobile nav */
    .whatsapp-floating-widget {
        bottom: 68px !important;
        right: 12px !important;
    }

    /* Sub-filters row compact */
    .sub-filters-row {
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px 8px;
    }

    /* Betslip inputs stacked */
    .betslip-inputs {
        flex-direction: column !important;
    }

    /* Quick stakes 3 cols */
    .quick-stakes {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Table headers compress */
    .headers-odds-group, .odds-buttons-group {
        width: 216px !important;
    }

    .header-column-odds, .market-pair {
        width: 72px !important;
    }

    .odds-cell {
        font-size: 11px !important;
    }

    .cell-size { display: none !important; }
}

/* Extra small phones (≤ 390px) */
@media (max-width: 390px) {
    .main-header {
        padding: 0 8px !important;
    }

    .logo-fair, .logo-deal {
        font-size: 15px !important;
    }

    .btn-mobile-login {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    .featured-games-grid-2x4,
    .casino-games-grid {
        gap: 4px !important;
        padding: 4px !important;
    }

    .game-img-wrapper {
        height: 82px !important;
    }

    .game-label-bar-black {
        padding: 4px 6px !important;
        font-size: 8px !important;
    }

    .subheader-menu .menu-tab-item a {
        padding: 8px 10px !important;
        font-size: 9px !important;
    }

    .headers-odds-group, .odds-buttons-group {
        width: 189px !important;
    }

    .header-column-odds, .market-pair {
        width: 63px !important;
    }
}

/* ==========================================================================
   CRICKET LOADING OVERLAY — premium animation before page redirect
   ========================================================================== */

/* Hidden by default */
.cricket-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Active = visible */
.cricket-loading-overlay.active {
    pointer-events: all;
    opacity: 1;
}

/* Blurred dark backdrop */
.cl-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Center content */
.cl-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
}

/* ── Cricket Ball ── */
.cl-ball-wrap {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cl-ball {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 30%,
        #ff6b6b 0%,
        #c0392b 40%,
        #7b1c10 100%
    );
    box-shadow:
        0 0 30px rgba(231,76,60,0.7),
        0 0 60px rgba(192,57,43,0.4),
        inset 0 -8px 20px rgba(0,0,0,0.5);
    position: relative;
    animation: ballSpin3D 1.2s linear infinite;
    flex-shrink: 0;
}

@keyframes ballSpin3D {
    0%   { transform: rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateY(360deg) rotateZ(20deg); }
}

/* Seam lines on ball */
.cl-seam {
    position: absolute;
    border-radius: 50%;
}
.cl-seam-h {
    width: 100%;
    height: 100%;
    border-top: 3px solid rgba(255,255,255,0.35);
    border-bottom: 3px solid rgba(255,255,255,0.20);
    top: 0; left: 0;
}
.cl-seam-v {
    width: 100%;
    height: 100%;
    border-left: 3px solid rgba(255,255,255,0.25);
    border-right: 3px solid rgba(255,255,255,0.15);
    top: 0; left: 0;
    transform: rotate(45deg);
}

/* Shine on ball */
.cl-ball-shine {
    position: absolute;
    width: 28px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    top: 14px;
    left: 16px;
    transform: rotate(-30deg);
    filter: blur(4px);
}

/* Shadow below ball */
.cl-ball-shadow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 14px;
    background: rgba(192,57,43,0.3);
    border-radius: 50%;
    filter: blur(8px);
    animation: shadowPulse 1.2s ease-in-out infinite;
}
@keyframes shadowPulse {
    0%,100% { transform: translateX(-50%) scaleX(1); opacity: 0.5; }
    50%      { transform: translateX(-50%) scaleX(0.85); opacity: 0.3; }
}

/* Orbiting particles around ball */
.cl-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 2s linear infinite;
}
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.cl-particle {
    position: absolute;
    border-radius: 50%;
    background: #f39c12;
    box-shadow: 0 0 6px #f39c12;
}
.cl-particle.p1 { width: 8px; height: 8px; top: 0; left: 50%; transform: translateX(-50%); }
.cl-particle.p2 { width: 6px; height: 6px; bottom: 5px; right: 8px; background: #e74c3c; box-shadow: 0 0 6px #e74c3c; }
.cl-particle.p3 { width: 5px; height: 5px; top: 20px; left: 0; background: #fff; box-shadow: 0 0 4px #fff; }

/* ── Text ── */
.cl-title {
    font-size: 32px;
    font-weight: 900;
    font-family: var(--font-family);
    color: #ffffff;
    text-align: center;
    text-shadow: 0 0 20px rgba(255,200,0,0.8);
    animation: titleGlow 1.5s ease-in-out infinite;
}
@keyframes titleGlow {
    0%,100% { text-shadow: 0 0 20px rgba(255,200,0,0.8); }
    50%      { text-shadow: 0 0 35px rgba(255,220,0,1.0), 0 0 70px rgba(255,150,0,0.5); }
}

.cl-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-family);
    text-align: center;
    min-height: 20px;
    transition: opacity 0.3s;
}

/* ── Progress bar ── */
.cl-progress-wrap {
    width: 280px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.cl-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c0392b 0%, #e74c3c 50%, #f39c12 100%);
    border-radius: 10px;
    transition: width 0.15s linear;
    box-shadow: 0 0 10px rgba(231,76,60,0.7);
}
.cl-progress-pct {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-family);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Fade out animation when done */
.cricket-loading-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ==========================================================================
   PREMIUM CUSTOM HTML SUB-HEADER NAVBAR
   ========================================================================== */
.premium-subheader-nav {
    width: 100%;
    background: #020710;
    padding: 6px 16px;
    box-sizing: border-box;
}
.premium-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, #05142b 0%, #030e20 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(30, 80, 160, 0.25);
    border-radius: 14px;
    padding: 6px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    gap: 12px;
}
.premium-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    flex-grow: 1;
    scrollbar-width: none; /* Firefox */
    padding: 4px 0;
}
.premium-nav-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.nav-item {
    background: transparent;
    border: none;
    color: #a4b4cb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    flex-shrink: 0;
    min-width: 76px;
}
.nav-item-icon {
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}
.nav-item span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-family: 'Roboto', sans-serif;
    color: #a4b4cb;
    transition: color 0.3s ease;
    text-transform: uppercase;
}
.nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
.nav-item:hover .nav-item-icon {
    transform: translateY(-3px) scale(1.08);
}
.nav-item:hover span {
    color: #ffffff;
}

/* Home button unique layout */
.nav-item.active[data-tab="all"] {
    background: linear-gradient(180deg, #1e6bf1 0%, #0c48b8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 24px rgba(30, 107, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px;
    min-width: 82px;
    padding: 12px 14px;
}
.nav-item.active[data-tab="all"] .nav-item-icon {
    color: #ffffff !important;
}
.nav-item.active[data-tab="all"] span {
    color: #ffffff !important;
}
.nav-item.active[data-tab="all"]::after {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 20px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    box-shadow: 0 0 10px #ffffff;
}

/* Divider line */
.nav-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    margin: 0 6px;
    flex-shrink: 0;
}

/* Glowing Float Badges */
.nav-badge-live {
    position: absolute;
    top: 2px;
    right: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
    text-transform: uppercase;
    animation: badgePulseLive 1.5s infinite ease-in-out;
}
@keyframes badgePulseLive {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(231, 76, 60, 0.8); }
    50% { transform: scale(1.08); box-shadow: 0 0 14px rgba(231, 76, 60, 1); }
}

.nav-badge-new {
    position: absolute;
    top: 2px;
    right: 12px;
    background: #27ae60;
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.8);
    text-transform: uppercase;
    animation: badgePulseNew 1.8s infinite ease-in-out;
}
@keyframes badgePulseNew {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(39, 174, 96, 0.8); }
    50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(39, 174, 96, 1); }
}

.premium-nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.promotions-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.promotions-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
.promotions-badge i {
    font-size: 18px;
    color: #f1c40f;
    animation: bounceGift 2s ease infinite;
}
.promo-text {
    display: flex;
    flex-direction: column;
}
.promo-text strong {
    font-size: 10px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}
.promo-text span {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Roboto', sans-serif;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
}
.control-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}
.control-btn.join-btn {
    background: linear-gradient(135deg, #1877f2 0%, #1150c4 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}
.control-btn.join-btn:hover {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45);
}

@keyframes bounceGift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@media (max-width: 1024px) {
    .premium-nav-controls {
        display: none;
    }
    .premium-subheader-nav {
        padding: 4px 8px;
    }
    .premium-nav-container {
        padding: 4px 8px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .premium-subheader-nav {
        padding: 8px 6px !important;
    }
    .premium-nav-container {
        padding: 8px 10px !important;
        border-radius: 10px !important;
    }
    .nav-item {
        padding: 10px 14px !important;
        min-width: 82px !important;
        gap: 6px !important;
    }
    .nav-item-icon {
        font-size: 28px !important;
    }
    .nav-item span {
        font-size: 11px !important;
    }
    .nav-badge-live, .nav-badge-new {
        font-size: 9px !important;
        padding: 2px 5px !important;
        top: 0px !important;
        right: 8px !important;
    }
}

