/* ==========================================================================
   MATKA BOOKING - Full Responsive Website (Desktop, Laptop, Tablet & Mobile)
   ========================================================================== */

:root {
    /* Main Theme Colors (Red & White Scheme) */
    --bg-main: #F1F5F9;
    --bg-surface: #FFFFFF;
    --bg-card: #FFFFFF;
    --border-light: #E2E8F0;
    
    /* Header & Brand Colors */
    --header-red: #B71C1C;
    --header-red-dark: #990000;
    --brand-red: #B71C1C;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    
    /* Action & Status Colors */
    --status-green-bg: #27AE60;
    --status-orange-bg: #F97316;
    --status-red-bg: #E53935;
    --btn-chart-red: #B71C1C;
    --btn-play-green: #2ECC71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
    padding-bottom: 72px;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

body.market-modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Container Wrapper */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==========================================================================
   FULL-WIDTH DESKTOP / LAPTOP / MOBILE HEADER
   ========================================================================== */
.app-header {
    background: #0F172A;
    background: linear-gradient(180deg, #0F172A 0%, #111827 100%);
    border-bottom: 2px solid #B71C1C;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 3500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    background: #1E293B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.header-icon-btn:hover {
    background: #334155;
    color: #FFFFFF;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.brand-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 17px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.2px;
}

.brand-title span {
    color: #FCD34D;
}

.brand-tagline {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-style:italic;
    letter-spacing: 0.3px;
}

.header-page-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wallet Pill Header Widget */
.wallet-pill {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-pill:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.wallet-icon {
    font-size: 14px;
    color: #FCD34D;
}

.wallet-amount {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.notify-btn {
    position: relative;
}

.notify-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: #10B981;
    border: 2px solid #B71C1C;
    border-radius: 50%;
}

.btn-primary-pill {
    background: #FFFFFF;
    color: #B71C1C;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-primary-pill:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Desktop Navigation Links */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.18);
}

.nav-link.aviator-link {
    background: #FFFFFF;
    color: var(--brand-red);
    border-radius: 20px;
    padding: 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link.aviator-link:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
}

/* Header Right - Wallet & Account */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wallet-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    cursor: pointer;
}

.wallet-badge:hover { background: rgba(255, 255, 255, 0.25); }

.wallet-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.wallet-val { font-size: 15px; font-weight: 800; }
.wallet-lbl { font-size: 10px; opacity: 0.9; }

.profile-btn { color: #FFFFFF; font-size: 24px; cursor: pointer; }

@media (max-width: 900px) { .desktop-nav { display: none; } }

/* ==========================================================================
   SIDEBAR DRAWER MENU BAR (Clean Hierarchy, Grouping & Safe Mobile Overlay)
   ========================================================================== */
.sidebar-overlay,
.sidebar-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.sidebar-overlay.active,
.sidebar-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-drawer,
.sidebar-drawer-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 310px;
    max-width: 84vw;
    height: 100%;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 5001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px)) 14px;
    box-sizing: border-box;
}

.sidebar-overlay.active .sidebar-drawer,
.sidebar-drawer-overlay.active .sidebar-drawer-content {
    transform: translateX(0);
}

/* Sidebar User Info Card */
.sidebar-user-card {
    background: linear-gradient(135deg, #B71C1C 0%, #880E4F 100%);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.25);
    box-sizing: border-box;
}

.sidebar-user-card .user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.sidebar-user-card .user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.sidebar-user-card .user-name {
    font-size: 14px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-card .user-phone {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.sidebar-user-card .user-wallet-badge {
    font-size: 11px;
    font-weight: 700;
    color: #FCD34D;
    margin-top: 2px;
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    color: #FFFFFF;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

/* Sidebar Section Headers */
.sidebar-section-label {
    font-size: 10px;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 8px 4px 8px;
    margin-top: 4px;
}

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

/* Compact Menu Item Row */
.menu-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.18s ease;
    position: relative;
    box-sizing: border-box;
}

.menu-item-row:hover {
    background: #F8FAFC;
    border-color: #E2E8F0;
    transform: translateX(3px);
}

.menu-item-row:active {
    background: #F1F5F9;
    transform: translateX(1px);
}

/* Clear Active Page Indicator */
.menu-item-row.active {
    background: #FEF2F2 !important;
    border-color: #FCA5A5 !important;
}

.menu-item-row.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: #B71C1C;
    border-radius: 0 3px 3px 0;
}

.menu-item-row.active .menu-item-text {
    color: #B71C1C !important;
    font-weight: 800 !important;
}

.menu-item-row.active .menu-item-icon {
    background: #B71C1C !important;
    color: #FFFFFF !important;
}

.menu-item-row.active .menu-arrow {
    color: #B71C1C !important;
}

/* Menu Item Icon Badge */
.menu-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.menu-item-icon.highlight {
    background: #FEF2F2;
    color: #B71C1C;
}

.menu-item-icon.brand {
    background: #B71C1C;
    color: #FFFFFF;
}

.menu-item-icon.danger {
    background: #FEE2E2;
    color: #DC2626;
}

.menu-item-icon.text-red {
    color: #B71C1C;
}

.menu-item-text {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-text.brand {
    color: #B71C1C;
    font-weight: 800;
}

.menu-item-text.danger {
    color: #DC2626;
    font-weight: 800;
}

.menu-arrow {
    font-size: 11px;
    color: #CBD5E1;
    transition: transform 0.18s ease;
}

.menu-item-row:hover .menu-arrow {
    transform: translateX(2px);
    color: #94A3B8;
}

/* Special Rows */
.menu-item-row.logout-row {
    margin-top: 6px;
    border-top: 1px solid #F1F5F9;
    padding-top: 10px;
}

.menu-item-row.login-row {
    margin-top: 6px;
    background: #FEF2F2;
    border-color: #FECACA;
}

/* ==========================================================================
   MAIN CONTENT AREA & LIVE DATE TIME BAR
   ========================================================================== */
.main-content {
    flex: 1;
    padding: 20px 0 60px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* LIVE DATE & TIME BAR */
.datetime-bar {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 14px;
    font-weight: 800;
    color: #1E293B;
}

.datetime-group { display: flex; align-items: center; gap: 8px; }
.datetime-group i { color: var(--brand-red); font-size: 16px; }

.datetime-clock {
    color: var(--brand-red);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 15px;
    background: rgba(183, 28, 28, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(183, 28, 28, 0.2);
}

/* ==========================================================================
   LIVE MARQUEE & TICKER STRIP
   ========================================================================== */
.live-ticker-wrap {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ticker-date-time {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

.live-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-item i {
    color: #B71C1C;
    font-size: 14px;
}

.live-clock-val {
    color: #B71C1C;
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 800;
    background: #FEF2F2;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #FCA5A5;
}

.ticker-notice {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-notice i {
    color: #B71C1C;
}

@media (max-width: 640px) {
    .live-ticker-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 14px;
    }
    .ticker-notice {
        font-size: 12px;
        width: 100%;
    }
}

/* ==========================================================================
   QUICK ACTION BANNER GRID (Add Fund, Withdraw, Win Rates, Charts)
   ========================================================================== */
.quick-banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 18px 0;
}

@media (max-width: 900px) {
    .quick-banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 14px 0;
    }
}

.quick-action-box {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-action-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

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

.q-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.q-info strong {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.q-info span {
    font-size: 11px;
    font-weight: 600;
    color: #64748B;
}

/* Quick Action Box Color Palettes */
.quick-action-box.green .q-icon {
    background: #DCFCE7;
    color: #16A34A;
}
.quick-action-box.green:hover {
    border-color: #86EFAC;
}

.quick-action-box.orange .q-icon {
    background: #FFEDD5;
    color: #EA580C;
}
.quick-action-box.orange:hover {
    border-color: #FDBA74;
}

.quick-action-box.red .q-icon {
    background: #FEE2E2;
    color: #DC2626;
}
.quick-action-box.red:hover {
    border-color: #FCA5A5;
}

.quick-action-box.blue .q-icon {
    background: #E0E7FF;
    color: #4F46E5;
}
.quick-action-box.blue:hover {
    border-color: #A5B4FC;
}

/* ==========================================================================
   MARKET SECTION TITLE STRIPS
   ========================================================================== */
.section-title-strip {
    background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%);
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFFFF;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.2);
}

.section-title-strip.night-strip {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.2);
}

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

.strip-left h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.strip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.2);
}

.strip-badge {
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ==========================================================================
   MARKET CARDS RESPONSIVE GRID
   ========================================================================== */
.markets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .markets-grid {
        grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
        gap: 18px;
    }
}

.market-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.market-card:hover {
    transform: none !important;
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

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

.market-name {
    font-size: 15px;
    font-weight: 900;
    color: #0F172A;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.badge-status {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    color: #FFFFFF;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-status.running { background: #10B981; }
.badge-status.only-close { background: #F59E0B; }
.badge-status.closed { background: #EF4444; }

.market-card-mid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 8px;
    padding: 6px 10px;
    gap: 8px;
}

.market-result {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #B71C1C;
    margin: 0;
}

.market-timings-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    white-space: nowrap;
}

.market-card-bottom {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-chart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-chart:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
}

.btn-play {
    flex: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #B71C1C 0%, #DC2626 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(183, 28, 28, 0.25);
    transition: all 0.15s ease;
}

.btn-play:hover:not(.disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.35);
}

.btn-play.disabled {
    background: #E2E8F0 !important;
    color: #94A3B8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

@media (max-width: 480px) {
    .market-card {
        padding: 10px 12px;
        gap: 6px;
    }
    .market-name {
        font-size: 14px;
    }
    .market-result {
        font-size: 16px;
    }
    .market-timings-badge {
        font-size: 10.5px;
    }
    .btn-chart,
    .btn-play {
        padding: 7px 8px;
        font-size: 11.5px;
    }
}

.timings-row { display: flex; gap: 20px; }
.time-block { display: flex; align-items: baseline; gap: 6px; }
.time-lbl { font-size: 13px; font-weight: 600; color: #475569; }

.time-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-red);
    border-bottom: 1px dotted var(--brand-red);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-chart {
    height: 36px;
    padding: 0 14px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1.5px solid #B71C1C;
    color: #B71C1C;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(183, 28, 28, 0.12);
    transition: all 0.2s ease;
}

.btn-chart:hover {
    background: #B71C1C;
    color: #FFFFFF;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.28);
}

.btn-play {
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
    transition: all 0.2s ease;
}

.btn-play:hover {
    transform: none !important;
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.45);
}

.btn-play.disabled {
    background: #94A3B8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Rule Notice inside Modal */
.rule-notice-box {
    background: #FFF7ED;
    border: 1px solid #FFEDD5;
    color: #C2410C;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   NEW STYLING FOR WALLET, NOTIFICATIONS, MPIN & PASSWORD MODALS
   ========================================================================== */

/* Wallet Action Row Cards (Matching Image 3) */
.wallet-action-row {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.wallet-action-row:hover {
    transform: translateY(-2px);
}

.wallet-action-row.add-fund { border-left: 4px solid #EC4899; }
.wallet-action-row.withdraw-fund { border-left: 4px solid #8B5CF6; }
.wallet-action-row.history { border-left: 4px solid #D97706; }
.wallet-action-row.bank-details { border-left: 4px solid #10B981; }

.wallet-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wallet-action-icon.pink { background: #EC4899; }
.wallet-action-icon.purple { background: #8B5CF6; }
.wallet-action-icon.amber { background: #D97706; }
.wallet-action-icon.green { background: #10B981; }

.wallet-action-text {
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
}

/* Toggle Switch (Matching Image 1) */
.toggle-switch-wrapper {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #27AE60; }
input:checked + .slider:before { transform: translateX(22px); }

/* MPIN Box Inputs & Custom Keypad (Matching Image 2) */
.pin-boxes-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.pin-box {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 2px solid #B71C1C;
    background: #F8FAFC;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    outline: none;
    color: #B71C1C;
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.keypad-btn {
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 800;
    color: #1E293B;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: background 0.15s ease, transform 0.1s ease;
}

.keypad-btn:active {
    background: #E2E8F0;
    transform: scale(0.95);
}

/* Eye Icon Password Input Container (Matching Image 4) */
.input-eye-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-eye-wrapper input {
    padding-right: 44px;
}

.eye-btn {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #B71C1C;
    font-size: 16px;
    cursor: pointer;
}

/* DESKTOP FOOTER & MOBILE STICKY BOTTOM NAV */
.site-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 30px 0;
    font-size: 13px;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    color: #FFFFFF;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}

/* Mobile Bottom Nav (Strictly Hidden on Laptop & Desktop) */
.mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #FFFFFF;
        border-top: 1px solid #E2E8F0;
        justify-content: space-around;
        align-items: center;
        z-index: 3500;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
        box-sizing: border-box;
    }
    body {
        padding-top: 60px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }
}

.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748B;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    flex: 1;
    height: 100%;
    min-height: 48px;
    transition: color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-tab i {
    font-size: 18px;
    transition: transform 0.18s ease;
}

.mobile-tab.active {
    color: var(--brand-red);
}

.mobile-tab:active i {
    transform: scale(0.92);
}

/* Primary & Prominent Center Play Action */
.mobile-tab.tab-play-prominent {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5px;
    flex: 1.15;
    z-index: 10;
}

.prominent-play-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 100%);
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.45);
    margin-top: -16px;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.prominent-play-btn i {
    font-size: 17px !important;
    margin-left: 2px;
    color: #FFFFFF !important;
}

.mobile-tab.tab-play-prominent:hover .prominent-play-btn,
.mobile-tab.tab-play-prominent:active .prominent-play-btn {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.55);
}

.mobile-tab.tab-play-prominent span {
    font-size: 11px;
    font-weight: 800;
    color: var(--brand-red);
    margin-top: 2px;
}

/* Strictly hide bottom navigation when modal is open so it never covers content, buttons, or modal actions */
body.market-modal-open .mobile-bottom-nav,
body.app-modal-open .mobile-bottom-nav,
body:has(.modal-overlay.active) .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

/* NORMAL ELEGANT DESIGN FOR ALL PAGES / MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #E2E8F0;
}

#chartModalOverlay .modal-container {
    max-width: 1250px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 4px;
}

.modal-title { font-size: 20px; font-weight: 900; color: var(--brand-red); display: flex; align-items: center; gap: 10px; }

.modal-close-btn {
    background: #FEF2F2;
    border: 1.5px solid #FCA5A5;
    color: #B71C1C;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.modal-close-btn:hover {
    background: #B71C1C;
    color: #FFFFFF;
    transform: scale(1.05);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.form-input:focus { border-color: var(--brand-red); }

.form-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: var(--brand-red);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

/* /* User Chart Modal HTML Table Formatting (Matching Red/White Home Page Brand Theme) */
.chart-render-wrapper {
    background: #F8FAFC !important;
    padding: 16px !important;
    border-radius: 14px !important;
    max-height: 82vh !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch !important;
}

.btn-scroll-action, .btn-chart-scroll {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    border: 1.5px solid #0284C7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.btn-scroll-action:hover, .btn-chart-scroll:hover {
    transform: scale(1.04) !important;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
}

.panel-info {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(183, 28, 28, 0.15) !important;
    border: 2px solid #B71C1C !important;
    background: #FFFFFF !important;
}

.panel-heading {
    background: linear-gradient(135deg, #B71C1C 0%, #990000 100%) !important;
    padding: 12px 10px !important;
    text-align: center !important;
    border-radius: 8px 8px 0 0 !important;
}

.panel-heading h1 {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
    letter-spacing: 0.5px !important;
    font-family: 'Inter', sans-serif !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.panel-body {
    background: #FFFFFF !important;
    padding: 0 !important;
    overflow: visible !important;
}

.chart-table, table.panel-chart {
    width: 100% !important;
    min-width: 860px !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    text-align: center !important;
    font-family: 'Consolas', 'Courier New', monospace, sans-serif !important;
    background: #FFFFFF !important;
}

/* Light Blue Header Row (DATE, Mon, Tue, Wed, Thu, Fri, Sat, Sun) */
.chart-table thead {
    position: static !important;
}

.chart-table thead tr {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
}

.chart-table thead td, .chart-table thead th {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    padding: 8px 2px !important;
    border: 1px solid #0369A1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.chart-table thead td.day-hdr {
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
}

/* DATE Column Sticky & Responsive */
.chart-table tbody tr td:first-child, .chart-table thead tr td:first-child,
.chart-table tbody tr td.date-cell, .chart-table thead tr td.date-hdr {
    position: sticky !important;
    left: 0 !important;
    z-index: 10 !important;
    background: #FEF2F2 !important;
    color: #B71C1C !important;
    border: 1px solid #FCA5A5 !important;
    box-shadow: 2px 0 5px rgba(183, 28, 28, 0.1) !important;
    font-weight: 900 !important;
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.chart-table thead tr td:first-child, .chart-table thead tr td.date-hdr {
    z-index: 20 !important;
    background: #0284C7 !important;
    color: #FFFFFF !important;
    border-color: #0369A1 !important;
}

.chart-table tbody tr td {
    border: 1px solid #E2E8F0 !important;
    padding: 4px 1px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
    line-height: 1.25 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.chart-table td.patti-cell {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    padding: 3px 1px !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Small Patti Digit Boxes */
.chart-table .digit-box {
    display: block !important;
    margin: 2px auto !important;
    width: 22px !important;
    height: 19px !important;
    line-height: 17px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    border-radius: 4px !important;
    font-family: 'Consolas', 'Courier New', monospace !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.chart-table td.patti-cell.red-cell .digit-box {
    color: #D32F2F !important;
    border: 1px solid #FCA5A5 !important;
    background: #FEF2F2 !important;
}

.chart-table td.patti-cell.normal-cell .digit-box {
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
    background: #F8FAFC !important;
}

/* Prominent Jodi Main Box (Middle 2-Digit Numbers) */
.chart-table td.jodi-cell {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    padding: 3px 1px !important;
    text-align: center !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

.chart-table .jodi-box,
.chart-table td span.redword,
.chart-table td span.normal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 38px !important;
    margin: 0 auto !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    font-family: 'Consolas', 'Courier New', monospace !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
}

.chart-table .jodi-box.redword,
.chart-table td span.redword {
    color: #D32F2F !important;
    border: 1.5px solid #FCA5A5 !important;
    background: #FEF2F2 !important;
}

.chart-table .jodi-box.normal,
.chart-table td span.normal {
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #F8FAFC !important;
}

.chart-table tbody tr:nth-child(even) {
    background: #F8FAFC !important;
}

/* Mobile Media Queries (< 768px) */
@media (max-width: 768px) {
    .modal-overlay {
        top: 60px !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
        padding: 10px 8px calc(16px + env(safe-area-inset-bottom, 0px)) 8px !important;
        background: #F1F5F9 !important;
        z-index: 4000 !important;
        box-sizing: border-box !important;
    }

    /* Market Games and Bidding overlays cover full screen with smooth blur backdrop */
    .market-games-overlay,
    #bidModalOverlay,
    #marketGamesModalOverlay {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 6000 !important;
    }

    #entryReviewModalOverlay {
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: rgba(15, 23, 42, 0.75) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 100000 !important;
    }

    .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 16px 12px 30px 12px !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid #E2E8F0 !important;
        gap: 14px !important;
    }

    #chartModalOverlay {
        padding: 2px !important;
    }

    #chartModalOverlay .modal-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 4px 30px 4px !important;
        border-radius: 10px !important;
        gap: 6px !important;
    }

    .modal-header {
        padding-bottom: 8px !important;
        position: sticky !important;
        top: 0 !important;
        background: #FFFFFF !important;
        z-index: 20 !important;
    }

    .modal-title {
        font-size: 15px !important;
    }

    .modal-close-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }

    .btn-scroll-action {
        font-size: 11px !important;
        padding: 4px 14px !important;
        border-radius: 16px !important;
    }

    .chart-render-wrapper {
        padding: 4px 1px !important;
        max-height: 84vh !important;
        border-radius: 6px !important;
        overflow-x: auto !important;
    }

    .panel-heading {
        padding: 8px 4px !important;
    }

    .panel-heading h1 {
        font-size: 14px !important;
    }

    .chart-table, table.panel-chart {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed !important;
    }

    .chart-table thead td, .chart-table thead th {
        font-size: 9px !important;
        padding: 3px 0 !important;
    }

    .chart-table thead td.day-hdr {
        width: calc((100% - 38px) / 7) !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 9px !important;
    }

    /* DATE Column Sticky & Responsive */
    .chart-table tbody tr td:first-child, .chart-table thead tr td:first-child,
    .chart-table tbody tr td.date-cell, .chart-table thead tr td.date-hdr {
        width: 38px !important;
        min-width: 38px !important;
        max-width: 38px !important;
        font-size: 7.5px !important;
        padding: 2px 0 !important;
        line-height: 1.1 !important;
        word-break: break-all !important;
        white-space: normal !important;
    }

    .chart-table tbody tr td {
        padding: 1px 0 !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
    }

    /* Patti Cell (Open & Close) */
    .chart-table td.patti-cell {
        width: calc((100% - 38px) / 28) !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 1px 0 !important;
    }

    /* Jodi Cell */
    .chart-table td.jodi-cell {
        width: calc(((100% - 38px) / 28) * 2) !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 1px 0 !important;
    }

    /* Stacked Patti Digit Boxes (3 per cell) */
    .chart-table .digit-box {
        width: 100% !important;
        max-width: 11px !important;
        height: 11px !important;
        line-height: 11px !important;
        font-size: 7.5px !important;
        font-weight: 800 !important;
        margin: 1px auto !important;
        border-radius: 2px !important;
        padding: 0 !important;
    }

    /* Jodi Box */
    .chart-table .jodi-box,
    .chart-table td span.redword,
    .chart-table td span.normal {
        width: 100% !important;
        max-width: 22px !important;
        height: 24px !important;
        line-height: 22px !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        border-radius: 3px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   REDESIGNED USER PROFILE & GAME WIN RATES STYLES
   ========================================================================== */

.sec-page-heading {
    font-size: 22px;
    font-weight: 900;
    color: #1E293B;
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sec-page-heading i {
    color: var(--brand-red);
}

/* User Profile Card & Grid */
.profile-hero-card {
    background: linear-gradient(135deg, #B71C1C 0%, #880E4F 100%);
    border-radius: 20px;
    padding: 22px 20px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.25);
}

.profile-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.profile-hero-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-hero-name {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.profile-hero-phone {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 600;
}

.profile-status-badge {
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.22);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 480px) {
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
}

.profile-stat-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFFFFF;
    flex-shrink: 0;
}

.stat-icon.red { background: linear-gradient(135deg, #EF4444 0%, #B71C1C 100%); }
.stat-icon.green { background: linear-gradient(135deg, #22C55E 0%, #15803D 100%); }
.stat-icon.amber { background: linear-gradient(135deg, #F59E0B 0%, #B45309 100%); }
.stat-icon.blue { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }

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

.stat-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

.stat-val {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
}

.stat-val.green-text { color: #16A34A; }
.stat-val.red-text { color: #DC2626; }
.stat-val.active-text { color: #16A34A; font-size: 12px; }

.profile-referral-card {
    background: linear-gradient(135deg, #FEF2F2 0%, #FFF1F2 100%);
    border: 1.5px dashed #FCA5A5;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referral-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #B71C1C;
    font-size: 20px;
}

.referral-header strong {
    font-size: 15px;
    color: #1E293B;
    display: block;
}

.referral-code-pill {
    background: #FFFFFF;
    border: 1.5px solid #B71C1C;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.1);
    transition: transform 0.15s ease;
}

.referral-code-pill:hover {
    transform: scale(1.02);
}

.code-num {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #B71C1C;
    font-family: 'Consolas', monospace;
}

.copy-btn-lbl {
    font-size: 12px;
    font-weight: 800;
    color: #B71C1C;
    background: #FEF2F2;
    padding: 6px 12px;
    border-radius: 8px;
}

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

@media (max-width: 480px) {
    .profile-shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-shortcut-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #1E293B;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.profile-shortcut-btn i {
    font-size: 20px;
    color: #B71C1C;
}

.profile-shortcut-btn:hover {
    background: #FEF2F2;
    border-color: #FCA5A5;
    transform: translateY(-2px);
}

/* REDESIGNED GAME WIN RATES PAGE STYLES (Matching Uploaded Image 2) */
.game-rates-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.win-rate-row {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.win-rate-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.rate-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rate-badge {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.rate-badge.sd { background: #E91E63; }
.rate-badge.jd { background: #8E24AA; }
.rate-badge.rb { background: #D97706; }
.rate-badge.sp { background: #4CAF50; }
.rate-badge.dp { background: #E53935; }
.rate-badge.tp { background: #3F51B5; }
.rate-badge.hs { background: #FF5722; }
.rate-badge.fs { background: #00ACC1; }

.rate-title {
    font-size: 16px;
    font-weight: 800;
    color: #1E293B;
}

.rate-val {
    font-size: 18px;
    font-weight: 900;
    color: #B71C1C;
    font-family: 'Consolas', 'Courier New', monospace;
}

/* ==========================================================================
   ADD FUND, WITHDRAW FUND, HISTORY & BANK DETAILS PAGES STYLING
   ========================================================================== */

/* Quick Amount Pills */
.quick-amounts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.amount-chip {
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 calc(25% - 8px);
    text-align: center;
    min-width: 70px;
}

.amount-chip:hover, .amount-chip.active {
    background: #FEF2F2;
    border-color: #B71C1C;
    color: #B71C1C;
}

.amount-chip.pink-chip:hover, .amount-chip.pink-chip.active {
    background: #FDF2F8;
    border-color: #EC4899;
    color: #EC4899;
}

.amount-chip.purple-chip:hover, .amount-chip.purple-chip.active {
    background: #F5F3FF;
    border-color: #8B5CF6;
    color: #8B5CF6;
}

/* Payment Mode Selector Tabs */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.payment-mode-pill {
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-mode-pill:hover {
    border-color: #94A3B8;
}

.payment-mode-pill.active {
    border-color: #EC4899;
    background: #FDF2F8;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.payment-mode-pill .mode-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #FFFFFF;
}

.payment-mode-pill .mode-text {
    display: flex;
    flex-direction: column;
}

.payment-mode-pill .mode-title {
    font-size: 13px;
    font-weight: 800;
    color: #1E293B;
}

.payment-mode-pill .mode-sub {
    font-size: 10px;
    color: #64748B;
}

/* QR Code & Payment Details Box */
.qr-details-card {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.qr-code-img {
    width: 140px;
    height: 140px;
    background: #FFFFFF;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.upi-id-badge {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #1E293B;
    cursor: pointer;
}

/* History Filter Tabs & Item Cards */
.history-filter-bar {
    display: flex;
    gap: 8px;
    background: #F1F5F9;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.history-filter-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-filter-btn.active {
    background: #FFFFFF;
    color: #D97706;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.history-card-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.history-card-item.deposit {
    border-left: 4px solid #10B981;
}

.history-card-item.withdraw {
    border-left: 4px solid #EF4444;
}

.txn-status-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 4px;
}

.txn-status-badge.success {
    background: #DCFCE7;
    color: #15803D;
}

.txn-status-badge.pending {
    background: #FEF3C7;
    color: #B45309;
}

.txn-status-badge.rejected {
    background: #FEE2E2;
    color: #B91C1C;
}

/* Saved Bank Account Card */
.saved-bank-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    margin-bottom: 12px;
}

/* ==========================================================================
   CHART TYPE SELECTION MODAL (BLUR OVERLAY & MINIMAL CLEAN BUTTONS)
   ========================================================================== */
.chart-popup-overlay,
#chartTypeModalOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.chart-popup-overlay.active,
#chartTypeModalOverlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.chart-type-modal-card {
    width: 100% !important;
    max-width: 310px !important;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 18px 18px 20px 18px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    margin: auto !important;
    transform: scale(0.92);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-popup-overlay.active .chart-type-modal-card,
#chartTypeModalOverlay.active .chart-type-modal-card {
    transform: scale(1) !important;
}

.chart-popup-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 14px 0 !important;
    border-bottom: 1px solid #F1F5F9 !important;
    margin-bottom: 14px !important;
}

.chart-popup-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #1E293B !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.chart-type-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
}

.btn-clean-chart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 50px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    border: none !important;
    transition: all 0.18s ease !important;
    box-sizing: border-box !important;
    text-transform: capitalize !important;
    letter-spacing: 0.3px !important;
}

.btn-clean-chart:active {
    transform: scale(0.96) !important;
}

.btn-clean-jodi {
    background: linear-gradient(135deg, #B71C1C 0%, #DC2626 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.28) !important;
}

.btn-clean-jodi:hover {
    background: linear-gradient(135deg, #991B1B 0%, #B71C1C 100%) !important;
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.38) !important;
}

.btn-clean-panel {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28) !important;
}

.btn-clean-panel:hover {
    background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38) !important;
}

.btn-clean-chart i {
    font-size: 18px !important;
}

/* ==========================================================================
   IN-CHART VIEWER SWITCHER BAR
   ========================================================================== */
.chart-view-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.chart-toggle-btn {
    flex: 1;
    max-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 800;
    border-radius: 9px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    background: #FFFFFF;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chart-toggle-btn.active {
    background: #B71C1C !important;
    color: #FFFFFF !important;
    border-color: #991B1B !important;
    box-shadow: 0 3px 8px rgba(183, 28, 28, 0.25) !important;
}

.chart-toggle-btn:not(.active):hover {
    background: #F1F5F9;
    color: #0F172A;
}

/* ==========================================================================
   JODI CHART SPECIFIC TABLE STYLING
   ========================================================================== */
.chart-table.jodi-chart-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    margin: 0 auto !important;
}

.chart-table.jodi-chart-table thead tr {
    background: #0284C7 !important;
}

.chart-table.jodi-chart-table thead td,
.chart-table.jodi-chart-table thead th {
    background: #0284C7 !important;
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 8px 4px !important;
    text-align: center !important;
    border: 1px solid #0369A1 !important;
    box-sizing: border-box !important;
}

.chart-table.jodi-chart-table thead td.date-hdr,
.chart-table.jodi-chart-table thead td:first-child {
    background: #0369A1 !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
}

.chart-table.jodi-chart-table thead td.jodi-day-hdr {
    width: auto !important;
    min-width: 50px !important;
}

.chart-table.jodi-chart-table tbody tr td.date-cell,
.chart-table.jodi-chart-table tbody tr td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 10 !important;
    background: #FEF2F2 !important;
    color: #B71C1C !important;
    border: 1px solid #FCA5A5 !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    padding: 6px 4px !important;
    text-align: center !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
}

.chart-table.jodi-chart-table tbody tr td.jodi-cell {
    padding: 6px 4px !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: 1px solid #E2E8F0 !important;
    width: auto !important;
    min-width: 48px !important;
    box-sizing: border-box !important;
}

.chart-table.jodi-chart-table .jodi-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 38px !important;
    margin: 0 auto !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    border-radius: 8px !important;
    font-family: 'Consolas', 'Courier New', monospace !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    transition: transform 0.15s ease !important;
}

.chart-table.jodi-chart-table .jodi-box:hover {
    transform: scale(1.08) !important;
}

.chart-table.jodi-chart-table .jodi-box.redword {
    color: #D32F2F !important;
    border: 1.5px solid #FCA5A5 !important;
    background: #FEF2F2 !important;
}

.chart-table.jodi-chart-table .jodi-box.normal {
    color: #0F172A !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #F8FAFC !important;
}

.chart-table.jodi-chart-table tbody tr:nth-child(even) {
    background: #F8FAFC !important;
}

.chart-table.jodi-chart-table tbody tr:hover {
    background: #EFF6FF !important;
}

/* Responsive adjustments for Jodi Chart on mobile (< 768px) */
@media (max-width: 768px) {
    .chart-type-modal-card {
        max-width: 290px !important;
        padding: 18px 16px !important;
    }

    .btn-clean-chart {
        height: 48px !important;
        font-size: 15px !important;
    }

    .chart-view-toggle-bar {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .chart-toggle-btn {
        padding: 7px 10px !important;
        font-size: 12px !important;
    }

    .chart-table.jodi-chart-table {
        table-layout: fixed !important;
    }

    .chart-table.jodi-chart-table thead td,
    .chart-table.jodi-chart-table thead th {
        font-size: 11px !important;
        padding: 5px 1px !important;
    }

    .chart-table.jodi-chart-table thead td.date-hdr,
    .chart-table.jodi-chart-table thead td:first-child,
    .chart-table.jodi-chart-table tbody tr td.date-cell,
    .chart-table.jodi-chart-table tbody tr td:first-child {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        font-size: 8.5px !important;
        padding: 4px 1px !important;
        line-height: 1.15 !important;
        white-space: normal !important;
        word-break: break-all !important;
    }

    .chart-table.jodi-chart-table tbody tr td.jodi-cell {
        padding: 3px 1px !important;
        min-width: 0 !important;
    }

    .chart-table.jodi-chart-table .jodi-box {
        width: 36px !important;
        height: 30px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 400px) {
    .chart-table.jodi-chart-table thead td,
    .chart-table.jodi-chart-table thead th {
        font-size: 9.5px !important;
    }

    .chart-table.jodi-chart-table thead td.date-hdr,
    .chart-table.jodi-chart-table thead td:first-child,
    .chart-table.jodi-chart-table tbody tr td.date-cell,
    .chart-table.jodi-chart-table tbody tr td:first-child {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        font-size: 7.5px !important;
    }

    .chart-table.jodi-chart-table .jodi-box {
        width: 32px !important;
        height: 28px !important;
        font-size: 14px !important;
        border-radius: 5px !important;
    }
}

/* ==========================================================================
   MARKET GAMES SELECTION MODAL (21 GAME TYPES FROM SCREENSHOTS)
   ========================================================================== */
.market-games-overlay {
    position: fixed !important;
    top: 60px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    background: #F1F5F9 !important;
    z-index: 2000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.market-games-container {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 20px 16px 28px 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #E2E8F0 !important;
    box-sizing: border-box !important;
}

.market-games-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #E2E8F0;
    margin-bottom: 14px;
    position: relative;
    background: transparent;
    z-index: 10;
}

.market-games-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.market-games-back-btn:hover {
    background: #FFF1F2;
    border-color: #FDA4AF;
    color: #B71C1C;
    transform: translateX(-2px);
}

.market-games-back-btn:active {
    transform: scale(0.95);
}

.market-games-title-box {
    text-align: center;
    flex: 1;
}

.market-games-main-title {
    font-size: 20px;
    font-weight: 900;
    color: #1E293B;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.market-games-sub-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    margin-top: 2px;
}

.market-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.market-game-card {
    position: relative;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px 10px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.game-card-rate-pill {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #475569;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 2px 6px;
    border-radius: 6px;
    line-height: 1;
}

.market-game-card:hover .game-card-rate-pill {
    background: #E2E8F0;
    color: #0F172A;
    border-color: #CBD5E1;
}

.market-game-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.market-game-card:active {
    transform: scale(0.97);
}

.market-game-card.red-border {
    border-color: #FDA4AF !important;
}

.market-game-card.red-border:hover {
    border-color: #F87171 !important;
}

.game-card-icon-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.game-card-line {
    width: 46px;
    height: 3.5px;
    border-radius: 4px;
    margin: 12px 0 8px 0;
}

.game-card-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #1E293B;
    text-align: center;
    line-height: 1.25;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   MARKET GAMES FOOTER - BACK TO ALL MARKETS BUTTON
   ========================================================================== */
.market-games-bottom-wrapper {
    padding: 10px 0 2px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.bid-back-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    height: 52px;
    padding: 0 24px;
    background: linear-gradient(135deg, #B71C1C 0%, #881337 100%);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.bid-back-secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.bid-back-secondary-btn:hover {
    background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.bid-back-secondary-btn:hover::before {
    left: 150%;
}

.bid-back-secondary-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 3px 10px rgba(183, 28, 28, 0.25);
}

.bid-back-secondary-btn .btn-arrow-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #FFFFFF;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.bid-back-secondary-btn:hover .btn-arrow-icon {
    transform: translateX(-4px);
    background: rgba(255, 255, 255, 0.35);
}

.bid-back-secondary-btn .btn-text {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* ==========================================================================
   DYNAMIC SCREENSHOT-MATCHING BIDDING INTERFACE (ALL 21 GAME TYPES)
   ========================================================================== */
#bidModalOverlay {
    position: fixed !important;
    top: 60px !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;
    background: #F1F5F9 !important;
    z-index: 2000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.game-bidding-container {
    max-width: 600px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 20px 16px 24px 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #E2E8F0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.bidding-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    position: relative;
}

.bidding-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.bidding-back-btn:hover {
    background: #F1F5F9;
    color: #B71C1C;
}

.bidding-title-wrap {
    flex: 1;
}

.bidding-screen-title {
    font-size: 19px;
    font-weight: 800;
    color: #1E293B;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.2px;
}

.bidding-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.bidding-meta-pill {
    border: 1.5px solid #CBD5E1;
    border-radius: 25px;
    background: #FFFFFF;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.meta-pill-input {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    text-align: center;
    width: 100%;
    background: transparent;
}

.bidding-meta-pill.session-pill {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.bidding-meta-pill.session-pill:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}

.bidding-meta-pill.session-pill.dropdown-open {
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}

.session-selected-val {
    font-size: 15px;
    font-weight: 800;
    color: #1E293B;
    text-align: center;
    width: 100%;
    padding-right: 14px;
}

.session-chevron {
    position: absolute;
    right: 14px;
    font-size: 12px;
    color: #64748B;
    transition: transform 0.22s ease;
    pointer-events: none;
}

.bidding-meta-pill.session-pill.dropdown-open .session-chevron {
    transform: rotate(180deg);
    color: #B71C1C;
}

/* Custom Modern Dropdown Menu for Open / Close */
.custom-session-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 16px;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
    padding: 6px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 4px;
    animation: sessionDropdownFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-session-dropdown.active {
    display: flex !important;
}

@keyframes sessionDropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.session-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
}

.session-dropdown-option:hover {
    background: #F8FAFC;
}

.session-dropdown-option.active {
    background: #FEF2F2;
}

.session-dropdown-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #F8FAFC;
}

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

.session-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.session-dot.open-dot {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.45);
}

.session-dot.close-dot {
    background: #B71C1C;
    box-shadow: 0 0 6px rgba(183, 28, 28, 0.45);
}

.session-option-text {
    font-size: 14.5px;
    font-weight: 800;
    color: #1E293B;
}

.session-dropdown-option.active .session-option-text {
    color: #B71C1C;
}

.session-check-icon {
    font-size: 13px;
    color: #B71C1C;
}

/* 1. SINGLE DIGIT GRID (Screenshot 1) */
.single-digit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.single-digit-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.digit-pill-box {
    border: 1.5px solid #CBD5E1;
    border-radius: 25px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.digit-pill-box:focus-within {
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.digit-circle-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #1E293B;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.digit-points-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100%;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}

.digit-points-input:focus,
.digit-points-input:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.digit-points-input::placeholder {
    color: #94A3B8;
    font-weight: 500;
    font-size: 13.5px;
}

/* 2. BULK KEYPAD PAGES (Screenshots 2, 4, 5) */
.bulk-keypad-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bulk-input-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bulk-input-lbl {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
}

.bulk-pill-input-box {
    border: 1.5px solid #CBD5E1;
    border-radius: 25px;
    padding: 8px 16px;
    background: #FFFFFF;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bulk-pill-input-box:focus-within {
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.bulk-pill-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    background: transparent !important;
}

.bulk-pill-input:focus,
.bulk-pill-input:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.bulk-pill-input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.bulk-keypad-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.bulk-key-btn {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    height: 60px;
    font-size: 24px;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bulk-key-btn:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.bulk-key-btn.active {
    background: #FEF2F2 !important;
    border-color: #B71C1C !important;
    color: #B71C1C !important;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.18) !important;
    transform: scale(1.03);
}

/* 3. ADD BID PAGES (Screenshot 3 - Single Pana, Double Pana, Jodi, Sangam) */
.add-bid-game-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.add-bid-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.add-bid-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.add-bid-lbl {
    font-size: 13.5px;
    font-weight: 700;
    color: #1E293B;
}

.btn-add-bid {
    background: #E57373;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    padding: 13px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    margin-top: 4px;
    transition: all 0.15s ease;
}

.btn-add-bid:hover {
    background: #B71C1C;
    box-shadow: 0 3px 8px rgba(183, 28, 28, 0.25);
}

.pending-bids-list {
    margin-top: 6px;
    max-height: 160px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pending-bid-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
}

.pending-bid-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-bid-badge {
    background: #FEF2F2;
    color: #B71C1C;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
}

.btn-delete-bid {
    background: transparent;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: transform 0.15s ease;
}

.btn-delete-bid:hover {
    transform: scale(1.15);
}

/* Checkbox rows for Odd Even & SP DP TP */
.odd-even-checks-row, .bet-types-checks-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 8px 0 10px 0;
}

.custom-checkbox-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
    user-select: none;
}

.custom-chk {
    width: 19px;
    height: 19px;
    accent-color: #B71C1C;
    cursor: pointer;
    border-radius: 4px;
}

.motor-hint-text {
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* Choice Pana Layout (Screenshot matching) */
.choice-pana-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-digits-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.choice-digit-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.choice-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: flex-end;
    margin-top: 2px;
}

.choice-action-pts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.choice-action-btn-col .btn-add-bid {
    margin-top: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sangam Layout */
.sangam-game-wrap,
.half-sangam-wrap,
.full-sangam-wrap,
.red-bracket-wrap,
.digit-based-jodi-wrap,
.group-jodi-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.red-bracket-checkbox-row {
    margin: 2px 0 6px 0;
}

.half-sangam-row {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 8px;
    align-items: flex-end;
}

@media (max-width: 440px) {
    .half-sangam-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.mode-toggle-pill {
    background: #B71C1C;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    height: 44px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.mode-toggle-pill:hover {
    background: #991B1B;
}

.digit-based-jodi-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

@media (max-width: 440px) {
    .digit-based-jodi-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .digit-based-jodi-row .add-bid-field:nth-child(3) {
        grid-column: span 2;
    }
}

.group-jodi-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    align-items: flex-end;
}

@media (max-width: 440px) {
    .group-jodi-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .group-jodi-row > div:nth-child(3) {
        grid-column: span 2;
    }
}

.group-jodi-row .btn-add-bid {
    margin-top: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 4px;
}

/* 4. STICKY BOTTOM SUMMARY BAR */
.bidding-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 6px 14px;
    border-top: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    margin-top: 16px;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.bidding-stat-block {
    display: flex;
    flex-direction: column;
}

.bidding-stat-block .stat-lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748B;
}

.bidding-stat-block .stat-val {
    font-size: 17px;
    font-weight: 900;
    color: #B71C1C;
    line-height: 1.2;
}

.bidding-place-btn {
    background: #E57373;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 25px;
    border: none;
    cursor: not-allowed;
    opacity: 0.75;
    transition: all 0.15s ease;
}

.bidding-place-btn.active {
    background: #B71C1C !important;
    cursor: pointer !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.28) !important;
}

.bidding-place-btn.active:hover {
    transform: scale(1.02);
}

@media (max-width: 480px) {
    .market-games-container,
    .game-bidding-container {
        padding: 14px 10px 24px 10px !important;
        border-radius: 14px !important;
        max-height: none !important;
        width: 100% !important;
    }

    .market-games-grid {
        gap: 10px !important;
    }

    .market-game-card {
        padding: 14px 8px 12px 8px !important;
        border-radius: 14px !important;
    }

    .game-card-icon-circle {
        width: 54px !important;
        height: 54px !important;
    }

    .game-card-icon-circle svg {
        width: 24px !important;
        height: 24px !important;
    }

    .game-card-line {
        width: 38px !important;
        margin: 10px 0 6px 0 !important;
    }

    .game-card-name {
        font-size: 13.5px !important;
        min-height: 32px !important;
    }

    .market-games-bottom-wrapper {
        padding: 10px 0 2px 0 !important;
        margin-top: 4px !important;
    }

    .bid-back-secondary-btn {
        max-width: 100% !important;
        height: 48px !important;
        font-size: 14px !important;
        padding: 0 16px !important;
    }

    .bid-back-secondary-btn .btn-arrow-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }
}

/* ==============================================================================
   PHASE 2 AUTHENTICATION & PASSWORD CONTROLS
   ============================================================================== */
.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrap .form-input {
    width: 100%;
    padding-right: 44px;
    box-sizing: border-box;
}

.toggle-password-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748B;
    font-size: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    z-index: 2;
}

.toggle-password-btn:hover {
    color: #B71C1C;
}

.toggle-password-btn:focus {
    outline: none;
}

/* ==========================================================================
   PHASE 7 — PREMIUM MOBILE-FIRST GAMEPLAY UX & DESIGN SYSTEM
   ========================================================================== */

/* 1. Market Explorer Toolbar & Search */
.market-explorer-toolbar {
    margin: 18px 0 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

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

.market-search-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 38px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 22px;
    font-size: 14px;
    color: #1E293B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.market-search-input:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.12);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    color: #B71C1C;
}

.market-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.market-filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    height: 38px;
    padding: 0 14px;
    border-radius: 19px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.filter-pill:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.filter-pill.active {
    background: #B71C1C;
    border-color: #B71C1C;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(183, 28, 28, 0.25);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.green { background: #10B981; }
.status-dot.amber { background: #F59E0B; }
.status-dot.red   { background: #EF4444; }

.user-pts-pill {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* 2. Game Category Tabs inside Market Games Modal */
.game-category-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 0;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.game-category-tabs::-webkit-scrollbar {
    display: none;
}

.game-cat-tab {
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.game-cat-tab:hover {
    background: #E2E8F0;
}

.game-cat-tab.active {
    background: #cb202d;
    border-color: #cb202d;
    color: #FFFFFF;
}

/* 3. Quick Points Chips */
.quick-points-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.points-chip {
    padding: 6px 12px;
    border-radius: 8px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.points-chip:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
}

.points-chip.active {
    background: #27AE60;
    border-color: #27AE60;
    color: #FFFFFF;
}

.points-chip.clear-chip {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #991B1B;
}

/* 4. Entry Review & Confirmation Modal */
.review-summary-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

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

.review-meta-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
}

.review-meta-val {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
}

.badge-session {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    background: #E0E7FF;
    color: #3730A3;
    width: fit-content;
}

.review-selections-section {
    margin-bottom: 14px;
}

.review-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.review-items-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
}

.review-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid #F1F5F9;
}

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

.review-digit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    background: #EEF2F6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    color: #1E293B;
}

.review-item-pts {
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
}

.review-item-win-sub {
    font-size: 11px;
    color: #16A34A;
    font-weight: 700;
}

.review-item-remove-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.review-item-remove-btn:hover {
    color: #EF4444;
    background: #FEF2F2;
}

.review-balance-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.review-balance-row.remaining-row {
    padding-top: 6px;
    border-top: 1px dashed #CBD5E1;
    font-weight: 700;
}

.review-disclaimer-box {
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11px;
    color: #92400E;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.4;
    margin-bottom: 16px;
}

.review-disclaimer-box i {
    font-size: 13px;
    margin-top: 1px;
    flex-shrink: 0;
}

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

.btn-review-back {
    flex: 1;
    height: 46px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-review-back:hover {
    background: #F1F5F9;
}

.btn-review-confirm {
    flex: 2;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
    border: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
    transition: all 0.15s ease;
}

.btn-review-confirm:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.45);
}

.btn-review-confirm:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* 5. User Bids History Filter Chips */
.bid-filter-chip {
    padding: 6px 12px;
    border-radius: 16px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bid-filter-chip:hover {
    background: #E2E8F0;
}

.bid-filter-chip.active {
    background: #B71C1C;
    border-color: #B71C1C;
    color: #FFFFFF;
}

/* 6. In-App Toast Alert System */
.matka-toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 90vw;
    pointer-events: none;
}

.matka-toast {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
}

.matka-toast.success { background: #065F46; border: 1px solid #059669; }
.matka-toast.error   { background: #991B1B; border: 1px solid #DC2626; }
.matka-toast.info    { background: #1E293B; border: 1px solid #334155; }

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

@media (max-width: 480px) {
    .review-summary-card {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================================================
   PUBLIC VISITOR VIEW & AUTHENTICATED USER DASHBOARD DESIGN SYSTEM
   ========================================================================== */

/* 1. Global Layout Constraints */
.view-section {
    width: 100%;
    box-sizing: border-box;
}

/* 2. Stunning Homepage Hero Banner */
.home-hero-banner {
    background: #0F172A;
    background: radial-gradient(circle at 85% 20%, rgba(183, 28, 28, 0.32) 0%, transparent 65%), linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #1A0D14 100%);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 20px 22px;
    margin: 8px 0 14px 0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 20px;
    padding: 3px 10px;
    text-transform: uppercase;
    width: fit-content;
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
    display: inline-block;
    animation: livePulseDot 1.6s ease-in-out infinite;
}

@keyframes livePulseDot {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 22px;
    font-weight: 900;
    color: #FFFFFF;
    margin: 8px 0 6px 0;
    letter-spacing: 0.2px;
    line-height: 1.25;
}

.hero-subtext {
    font-size: 13px;
    color: #94A3B8;
    margin: 0 0 16px 0;
    max-width: 620px;
    line-height: 1.45;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-hero-play {
    background: linear-gradient(135deg, #B71C1C 0%, #DC2626 100%);
    color: #FFFFFF;
    border: none;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.4);
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.btn-hero-play:hover {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(183, 28, 28, 0.5);
}

.btn-hero-rates {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}

.btn-hero-rates:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.hero-highlights-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11.5px;
    font-weight: 700;
    color: #CBD5E1;
}

.hero-highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 3. Homepage APK Download Advertisement Banner */
.homepage-apk-banner-container {
    width: 100%;
    max-width: 100%;
    margin: 6px 0 14px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.apk-download-banner {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 45%, #0F172A 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(6, 78, 59, 0.2);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: all 0.2s ease;
}

.apk-download-banner:hover {
    border-color: #10B981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.apk-banner-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.apk-banner-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apk-banner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.apk-banner-info strong {
    font-size: 13px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.apk-banner-info span {
    font-size: 10.5px;
    color: #A7F3D0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.apk-banner-right {
    flex-shrink: 0;
}

.btn-apk-download {
    background: #10B981;
    color: #FFFFFF !important;
    padding: 6px 14px;
    height: 32px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-apk-download:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.45);
}

/* 4. Matka Play Market Rates Section */
.home-market-rates-section {
    width: 100%;
    box-sizing: border-box;
}

.rates-strip {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%) !important;
    border-left: 4px solid #F59E0B !important;
}

.rates-icon {
    color: #F59E0B !important;
}

.gold-badge {
    background: rgba(245, 158, 11, 0.18) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #FCD34D !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.rates-section-sub {
    font-size: 12.5px;
    color: #64748B;
    margin: 6px 0 14px 0;
    font-weight: 600;
}

.market-rates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.market-rate-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.market-rate-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.rate-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #FEF2F2;
    color: #B71C1C;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rate-card-content {
    flex: 1;
    min-width: 0;
}

.rate-card-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rate-card-val {
    font-size: 14px;
    font-weight: 900;
    color: #0F172A;
    margin: 1px 0;
    font-family: 'Consolas', 'Courier New', monospace;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.rate-card-ratio {
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
}

.btn-rate-play {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-size: 11px;
    font-weight: 800;
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-rate-play:hover {
    background: #B71C1C;
    color: #FFFFFF;
    border-color: #B71C1C;
}

/* 4. Authenticated User Dashboard */
.dashboard-user-banner {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 20px;
    margin: 16px 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.user-greeting-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-greeting-avatar {
    width: 48px;
    height: 48px;
    background: #FEE2E2;
    color: #B71C1C;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.greeting-salute {
    font-size: 16px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 4px;
}

.greeting-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
    font-weight: 600;
}

.member-pill {
    background: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

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

.btn-dash-action {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-dash-action:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.btn-dash-action.danger {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}

.btn-dash-action.danger:hover {
    background: #FEE2E2;
}

/* 5. Authoritative Real Cash Wallet Card */
.dashboard-credit-card {
    background: linear-gradient(135deg, #7F1D1D 0%, #B71C1C 50%, #991B1B 100%);
    border-radius: 18px;
    padding: 22px 24px;
    margin-bottom: 20px;
    color: #FFFFFF;
    box-shadow: 0 12px 28px -6px rgba(183, 28, 28, 0.35);
    box-sizing: border-box;
}

.credit-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.credit-card-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FEE2E2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.non-monetary-badge {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FEF08A;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.credit-balance-huge {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
}

.credit-disclaimer {
    font-size: 12px;
    color: #FCA5A5;
    margin: 0 0 18px 0;
    line-height: 1.4;
}

.credit-card-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-reload-large {
    background: #FFFFFF;
    color: #B71C1C;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
}

.btn-reload-large:hover {
    background: #F8FAFC;
    transform: translateY(-1px);
}

.btn-ledger-quick {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-ledger-quick:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 6. Dashboard Shortcuts Grid */
.dash-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.dash-shortcut-box {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.dash-shortcut-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E1;
}

.s-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.s-icon.purple { background: #F3E8FF; color: #7E22CE; }
.s-icon.orange { background: #FFF7ED; color: #EA580C; }
.s-icon.green  { background: #ECFDF5; color: #059669; }
.s-icon.red    { background: #FEF2F2; color: #DC2626; }

.s-info strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 2px;
}

.s-info span {
    display: block;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

/* 7. Recent Placed Bids Card */
.dashboard-recent-bids-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.recent-bids-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 14px;
}

.rb-title {
    font-size: 14px;
    font-weight: 800;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rb-view-all {
    font-size: 12px;
    font-weight: 700;
    color: #B71C1C;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recent-bids-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-bid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13px;
}

.recent-bid-meta strong {
    color: #0F172A;
    font-size: 13px;
    display: block;
}

.recent-bid-meta span {
    color: #64748B;
    font-size: 11px;
    font-weight: 600;
}

.recent-bid-val {
    text-align: right;
}

.recent-bid-pts {
    font-weight: 800;
    color: #B71C1C;
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 2px;
}

.status-badge.pending { background: #EFF6FF; color: #1D4ED8; }
.status-badge.won     { background: #ECFDF5; color: #047857; }
.status-badge.lost    { background: #FEF2F2; color: #B91C1C; }

.empty-recent-bids {
    text-align: center;
    padding: 24px 16px;
    color: #94A3B8;
}

.empty-recent-bids i {
    font-size: 32px;
    margin-bottom: 8px;
    color: #CBD5E1;
}

.empty-recent-bids p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
}

/* ==========================================================================
   RESPONSIVE LAYOUT AUDIT & VIEWPORT ADJUSTMENTS (320px - 1440px)
   ========================================================================== */

@media (max-width: 900px) {
    .public-feature-grid,
    .dash-shortcuts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .credit-balance-huge {
        font-size: 30px;
    }
    .dashboard-user-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 14px;
    }
    .user-greeting-actions {
        width: 100%;
        justify-content: flex-start;
        display: flex;
        gap: 8px;
    }
    .live-ticker-wrap {
        padding: 6px 12px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .public-feature-grid,
    .dash-shortcuts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .btn-visitor-primary,
    .btn-visitor-secondary,
    .btn-reload-large,
    .btn-ledger-quick {
        width: 100%;
        justify-content: center;
    }
    .credit-card-bottom,
    .hero-actions-row {
        flex-direction: row;
    }
    .market-rates-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }
    .apk-download-banner {
        padding: 9px 12px;
    }
    .home-hero-banner {
        padding: 14px 14px;
    }
    .hero-title {
        font-size: 18px;
    }
    .hero-subtext {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .hero-highlights-strip {
        gap: 10px;
        font-size: 11px;
    }
    .markets-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .market-card {
        padding: 10px 12px;
    }
}

@media (max-width: 380px) {
    .app-header {
        height: 56px;
        padding: 0 10px;
    }
    .header-brand {
        gap: 6px;
    }
    .brand-img {
        width: 30px;
        height: 30px;
    }
    .brand-title {
        font-size: 14px;
    }
    .brand-tagline {
        display: none !important;
    }
    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    #headerAuthBtn {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
    }
    .wallet-pill {
        padding: 4px 8px;
        gap: 4px;
        font-size: 11px;
    }
    .container {
        padding: 0 8px;
    }
    .credit-balance-huge {
        font-size: 26px;
    }
    .greeting-salute {
        font-size: 14px;
    }
}

@media (max-width: 340px) {
    .container {
        padding: 0 6px;
    }
    .market-rates-grid {
        grid-template-columns: 1fr !important;
        gap: 6px;
    }
    .apk-download-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .btn-apk-download {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .market-card {
        padding: 10px 8px;
    }
    .action-buttons button {
        font-size: 11.5px;
        padding: 7px 5px;
    }
}

/* ==========================================================================
   REAL CASH WALLET & DASHBOARD ENHANCEMENTS
   ========================================================================== */
.real-wallet-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    border: 1px solid #334155 !important;
    color: #FFFFFF !important;
}

.real-wallet-card .credit-card-label {
    color: #94A3B8 !important;
}

.real-wallet-card .credit-balance-huge {
    color: #10B981 !important;
}

.wallet-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34D399;
    font-size: 11px;
    font-weight: 800;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.wallet-actions-dual {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-deposit-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-deposit-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38);
}

.btn-withdraw-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #B71C1C 0%, #DC2626 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-withdraw-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.38);
}

/* ==========================================================================
   DEPOSIT PAYMENT QR & WITHDRAWAL METHOD STYLES
   ========================================================================== */
.deposit-qr-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-copy-upi {
    transition: background 0.15s ease;
}

.btn-copy-upi:hover {
    background: #991B1B !important;
}

.withdraw-tab-btn {
    transition: all 0.2s ease;
}

/* ==========================================================================
   FULL-SCREEN PANEL & JODI CHART OVERLAY (100dvh, Edge-to-Edge)
   ========================================================================== */
.fullscreen-chart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    background: #0B1120;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.fschart-header {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    background: #0F172A;
    border-bottom: 1px solid #1E293B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    gap: 6px;
    z-index: 10;
    flex-wrap: nowrap !important;
    box-sizing: border-box;
}

.fschart-title-box {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.fschart-title-box > div {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fschart-back-btn,
.fschart-close-btn,
.fschart-tool-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1E293B;
    color: #F1F5F9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.fschart-back-btn:hover,
.fschart-tool-btn:hover {
    background: #334155;
    color: #FFFFFF;
}

.fschart-close-btn {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #F87171;
}

.fschart-close-btn:hover {
    background: #EF4444;
    color: #FFFFFF;
}

.fschart-market-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.fschart-subtitle {
    font-size: 9.5px;
    font-weight: 600;
    color: #94A3B8;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.fschart-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
}

.fschart-type-toggle {
    display: inline-flex;
    align-items: center;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    flex-shrink: 0;
}

.fschart-btn {
    border: none;
    background: transparent;
    color: #94A3B8;
    font-weight: 700;
    font-size: 11px;
    padding: 0 8px;
    height: 28px;
    min-height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.15s ease;
}

.fschart-btn.active {
    background: #B71C1C;
    color: #FFFFFF;
    box-shadow: 0 1px 4px rgba(183, 28, 28, 0.35);
}

.fschart-body {
    flex: 1;
    width: 100%;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    overflow: hidden;
    position: relative;
    background: #0F172A;
}

.fschart-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #FFFFFF;
}

.fschart-loader {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.88);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    z-index: 5;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.fschart-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: #B71C1C;
    border-radius: 50%;
    animation: fschartSpin 0.75s linear infinite;
}

@keyframes fschartSpin {
    to { transform: rotate(360deg); }
}

.fschart-blocked-card {
    position: absolute;
    inset: 20px;
    max-width: 480px;
    margin: auto;
    height: fit-content;
    background: #0F172A;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 6;
}

.fschart-blocked-card .fallback-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(183, 28, 28, 0.15);
    color: #EF4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px auto;
}

.fschart-blocked-card h4 {
    margin: 0 0 8px 0;
    color: #F1F5F9;
    font-size: 17px;
    font-weight: 800;
}

.fschart-blocked-card p {
    color: #94A3B8;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.fschart-fallback-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #B71C1C 0%, #DC2626 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 13.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: transform 0.15s ease;
    width: 100%;
}

.fschart-fallback-open-btn:hover {
    transform: translateY(-1px);
}

/* Responsive refinements for mobile & small screens (320px - 480px) */
@media (max-width: 480px) {
    .fschart-header {
        padding: 0 8px;
        gap: 5px;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        flex-wrap: nowrap !important;
    }
    .fschart-body {
        height: calc(100vh - 48px);
        height: calc(100dvh - 48px);
    }
    .fschart-title-box {
        gap: 6px;
        flex: 1 1 auto;
        min-width: 0;
    }
    .fschart-back-btn,
    .fschart-close-btn,
    .fschart-tool-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 6px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .fschart-market-title {
        font-size: 13px;
        line-height: 1.2;
    }
    .fschart-subtitle {
        font-size: 9px;
        line-height: 1;
    }
    .fschart-btn {
        padding: 0 7px;
        font-size: 10.5px;
        height: 28px;
        min-height: 28px;
    }
    .fschart-controls {
        gap: 4px;
        flex-shrink: 0;
        flex-wrap: nowrap !important;
    }
}

@media (max-width: 350px) {
    .fschart-header {
        padding: 0 4px;
        gap: 3px;
    }
    .fschart-subtitle {
        display: none !important;
    }
    .fschart-market-title {
        font-size: 11.5px;
    }
    .fschart-back-btn,
    .fschart-close-btn,
    .fschart-tool-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        font-size: 12px;
    }
    .fschart-btn {
        padding: 0 5px;
        font-size: 10px;
        height: 26px;
        min-height: 26px;
    }
    .fschart-controls {
        gap: 3px;
    }
}





/* Compact market surfaces and accessible mobile controls. */
.market-card { border-radius: 12px; box-shadow: none; transition: border-color .15s ease; }
.market-name { white-space: normal; overflow-wrap: anywhere; font-weight: 700; line-height: 1.3; }
.market-card-mid-row { flex-wrap: wrap; background: transparent; border: 0; padding: 2px 0; }
.market-result { font-variant-numeric: tabular-nums; }
.market-timings-badge { color: #475569; font-weight: 500; }
.market-card .action-buttons button { min-height: 44px; }
.market-card .btn-play { background: #B71C1C; box-shadow: none; }
.badge-status.running { background: #047857; }
.badge-status.only-close { background: #92400E; }
:where(button, a, input:not(.digit-points-input):not(.bulk-pill-input), select, textarea):focus-visible { outline: 2px solid #B71C1C; outline-offset: 3px; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* PWA Standalone Mode: Clean mobile app appearance with download banner hidden */
@media (display-mode: standalone) {
    #homepageApkBannerContainer,
    .homepage-apk-banner-container,
    .apk-download-banner,
    .download-app-section,
    #sidebarMenuItemDownloadApp {
        display: none !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
    }
}

body.is-pwa-standalone #homepageApkBannerContainer,
body.is-pwa-standalone .homepage-apk-banner-container,
body.is-pwa-standalone .apk-download-banner,
body.is-pwa-standalone .download-app-section,
body.is-pwa-standalone #sidebarMenuItemDownloadApp {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Market rates grid rules consolidated into home.css */
.hero-title { margin: 0; font-size: 22px; color: #0F172A; }
.hero-actions-row { margin: 0; }
.btn-hero-rates { min-height: 44px; color: #475569; background: #FFFFFF; border: 1px solid #CBD5E1; }
.hero-banner { background: transparent; box-shadow: none; border: 0; padding: 12px 0; }
.home-hero-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; box-shadow: none; border: 0; padding: 8px 0; }
