/* 1BET 2D/3D Betting Platform Styles - Modern Bootstrap-like Framework */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-tertiary: #252b4a;
    --bg-card: #1e2445;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --info: #3b82f6;
    --info-light: #60a5fa;
    --border: #2d3748;
    --border-light: #4a5568;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    padding-bottom: 4rem; /* space for bottom nav on mobile */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

/* Bootstrap-like Utility Classes */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.col {
    flex: 1;
    padding: 0 0.5rem;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }
.gap-5 { gap: var(--spacing-xl); }

.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }
.ml-3 { margin-left: var(--spacing-md); }
.ml-4 { margin-left: var(--spacing-lg); }
.ml-5 { margin-left: var(--spacing-xl); }
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }
.mr-3 { margin-right: var(--spacing-md); }
.mr-4 { margin-right: var(--spacing-lg); }
.mr-5 { margin-right: var(--spacing-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }
.pl-0 { padding-left: 0; }
.pl-1 { padding-left: var(--spacing-xs); }
.pl-2 { padding-left: var(--spacing-sm); }
.pl-3 { padding-left: var(--spacing-md); }
.pl-4 { padding-left: var(--spacing-lg); }
.pl-5 { padding-left: var(--spacing-xl); }
.pr-0 { padding-right: 0; }
.pr-1 { padding-right: var(--spacing-xs); }
.pr-2 { padding-right: var(--spacing-sm); }
.pr-3 { padding-right: var(--spacing-md); }
.pr-4 { padding-right: var(--spacing-lg); }
.pr-5 { padding-right: var(--spacing-xl); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }
.bg-card { background: var(--bg-card); }
.bg-success { background: var(--success); }
.bg-danger { background: var(--danger); }
.bg-warning { background: var(--warning); }
.bg-info { background: var(--info); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.w-auto { width: auto; }
.h-auto { height: auto; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.transition { transition: var(--transition-base); }
.transition-fast { transition: var(--transition-fast); }
.transition-slow { transition: var(--transition-slow); }
.transition-all { transition: all var(--transition-base); }

.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-y-1:hover { transform: translateY(-0.25rem); }

@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .d-md-flex { display: flex; }
    .col-md-12 { flex: 0 0 100%; max-width: 100%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    animation: slideIn 0.3s ease;
    transition: all var(--transition-base);
    min-width: 300px;
}

.toast.fade-out {
    animation: slideOut 0.3s ease forwards;
}

.toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: rgba(239, 68, 68, 0.3);
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.toast-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.toast-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.toast-info .toast-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 16px;
    height: 16px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.toast-close svg {
    width: 16px;
    height: 16px;
}

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

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

@media (max-width: 768px) {
    .toast-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
    }
}

/* Announcement Ticker */
.announcement-ticker {
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 0.3rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    box-shadow: var(--shadow-md);
}

.ticker-pulse {
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.ticker-pulse::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fbbf24;
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

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

@keyframes blink-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.blink-dash {
    animation: blink 1s ease-in-out infinite;
}

.blink-live {
    animation: blink-live 0.5s ease-in-out infinite;
    color: #34d399;
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.ticker-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.7rem;
}

/* Navbar - Mobile First */
.navbar {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.2rem;
    padding: 0 0.3rem;
}

.logo {
    display: none;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    padding: 0.1rem;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    color: #020617;
}

.logo-text {
    display: none;
}

@media (min-width: 480px) {
    .logo-text {
        display: flex;
        flex-direction: column;
    }
    .logo-main {
        font-size: 1rem;
        font-weight: 800;
        background: linear-gradient(135deg, #fef3c7, #fcd34d, #f59e0b);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 0.05em;
    }
    .logo-badge {
        font-size: 0.5rem;
        font-weight: 800;
        text-transform: uppercase;
        background: rgba(245, 158, 11, 0.2);
        color: #fcd34d;
        padding: 0.05rem 0.25rem;
        border-radius: 0.25rem;
        border: 1px solid rgba(245, 158, 11, 0.3);
        letter-spacing: 0.05em;
    }
}

/* Navigation Links - Professional Design */
.nav-links {
    display: flex;
    gap: 0.2rem;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.2rem 0.3rem;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(140, 179, 243, 0.3) transparent;
    -ms-overflow-style: none;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.nav-links::-webkit-scrollbar {
    height: 2px;
}

.nav-links::-webkit-scrollbar-track {
    background: transparent;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(140, 179, 243, 0.3);
    border-radius: 10px;
}

.nav-link {
    padding: 0.4rem 0.6rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    height: 36px;
    min-width: 60px;
    justify-content: center;
}

.nav-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.nav-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fcd34d;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(245, 158, 11, 0.2));
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.badge-2d, .badge-3d {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.badge-2d {
    background: linear-gradient(135deg, #8CB3F3 0%, #9679E6 100%);
    color: #ffffff;
}

.badge-3d {
    background: linear-gradient(135deg, #9679E6 0%, #8CB3F3 100%);
    color: #ffffff;
    font-weight: 600;
}

/* Badge styles for betting table rows */
.other-user-bet-row .badge-2d {
    background: #6366f1;
    color: white;
    border: 1px solid #4f46e5;
}

.other-user-bet-row .badge-3d {
    background: #10b981;
    color: white;
    border: 1px solid #059669;
}

.other-user-bet-row .badge-pending {
    background: #f59e0b;
    color: white;
    border: 1px solid #d97706;
}

.other-user-bet-row .badge-won {
    background: #10b981;
    color: white;
    border: 1px solid #059669;
}

.other-user-bet-row .badge-lost {
    background: #ef4444;
    color: white;
    border: 1px solid #dc2626;
}

.other-user-bet-row .badge-rejected {
    background: #6b7280;
    color: white;
    border: 1px solid #4b5563;
}

/* Current user badges - Red background to match red text */
.current-user-bet-row .badge-2d,
.current-user-bet-row .badge-3d,
.current-user-bet-row .badge-pending,
.current-user-bet-row .badge-won,
.current-user-bet-row .badge-lost,
.current-user-bet-row .badge-rejected {
    background: #dc2626 !important;
    border-color: #b91c1c !important;
    color: white !important;
}

/* Current user betting row - WHITE background, RED text */
.current-user-bet-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: white !important; /* Force white to override zebra striping */
}

.current-user-bet-row td {
    padding: 0.15rem 0.25rem !important; /* Very compact padding */
    font-size: 0.6rem !important; /* Very small font */
    line-height: 1.2;
    color: #dc2626 !important; /* Red text for current user */
    background-color: white !important; /* Force white on each cell */
}

.current-user-bet-row:hover {
    background-color: #f3f4f6 !important;
}

.current-user-bet-row:hover td {
    background-color: #f3f4f6 !important;
}

/* Override zebra striping for current user rows */
.excel-table tbody tr.current-user-bet-row:nth-child(even),
.excel-table tbody tr.current-user-bet-row:nth-child(odd) {
    background: white !important;
}

.excel-table tbody tr.current-user-bet-row:nth-child(even) td,
.excel-table tbody tr.current-user-bet-row:nth-child(odd) td {
    background: white !important;
}

/* Also target the specific table ID */
#userBetsTable tbody tr.current-user-bet-row:nth-child(even),
#userBetsTable tbody tr.current-user-bet-row:nth-child(odd) {
    background: white !important;
}

#userBetsTable tbody tr.current-user-bet-row:nth-child(even) td,
#userBetsTable tbody tr.current-user-bet-row:nth-child(odd) td {
    background: white !important;
}

/* Disable zebra striping for betting table */
.betting-table tbody tr:nth-child(even) {
    background: white !important;
}

.betting-table tbody tr:nth-child(even) td {
    background: white !important;
}

/* Other user betting row - WHITE background, BLACK text */
.other-user-bet-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: white !important; /* Force white to override zebra striping */
}

.other-user-bet-row td {
    padding: 0.15rem 0.25rem !important; /* Very compact padding */
    font-size: 0.6rem !important; /* Very small font */
    line-height: 1.2;
    color: #000 !important; /* Black text for other users */
    background-color: white !important; /* Force white on each cell */
}

.other-user-bet-row:hover {
    background-color: #f3f4f6 !important;
}

.other-user-bet-row:hover td {
    background-color: #f3f4f6 !important;
}

/* Override zebra striping for other user rows */
.excel-table tbody tr.other-user-bet-row:nth-child(even),
.excel-table tbody tr.other-user-bet-row:nth-child(odd) {
    background: white !important;
}

.excel-table tbody tr.other-user-bet-row:nth-child(even) td,
.excel-table tbody tr.other-user-bet-row:nth-child(odd) td {
    background: white !important;
}

/* Also target the specific table ID */
#userBetsTable tbody tr.other-user-bet-row:nth-child(even),
#userBetsTable tbody tr.other-user-bet-row:nth-child(odd) {
    background: white !important;
}

#userBetsTable tbody tr.other-user-bet-row:nth-child(even) td,
#userBetsTable tbody tr.other-user-bet-row:nth-child(odd) td {
    background: white !important;
}

/* Disable zebra striping for betting table (applies to all rows) */
.betting-table tbody tr:nth-child(even) {
    background: white !important;
}

.betting-table tbody tr:nth-child(even) td {
    background: white !important;
}

.betting-table tbody tr:nth-child(odd) {
    background: white !important;
}

.betting-table tbody tr:nth-child(odd) td {
    background: white !important;
}

/* User Info - Compact on mobile */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}

.balance-pill {
    background: rgba(26, 31, 58, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 0.1rem 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    box-shadow: var(--shadow-md);
    height: 36px;
    min-width: 75px;
    justify-content: center;
}

.balance-icon {
    padding: 0.15rem;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
}

.balance-icon svg {
    width: 0.6rem;
    height: 0.6rem;
}

.balance-text {
    text-align: right;
}

.balance-label {
    display: none;
}

.balance-amount {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fcd34d;
}

.currency {
    font-size: 0.45rem;
    font-weight: 700;
    color: #f59e0b;
}

.refresh-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.refresh-btn svg {
    width: 0.6rem;
    height: 0.6rem;
}

.action-buttons {
    display: none;
}

@media (min-width: 600px) {
    .action-buttons {
        display: flex;
        gap: 0.25rem;
    }
}

.btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(26, 31, 58, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

.btn-arrow {
    width: 1rem;
    height: 1rem;
}

.topup-btn {
    background: linear-gradient(135deg, #10b981, #14b8a6, #0d9488);
    color: #020617;
    font-weight: 800;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.withdraw-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.profile-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    padding: 0.15rem 0.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    height: 36px;
    min-width: 36px;
    justify-content: center;
}

.profile-btn:hover {
    border-color: rgba(245, 158, 11, 0.5);
    color: white;
}

.avatar {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 0.35rem;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.6rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-details {
    display: none;
}

@media (min-width: 500px) {
    .user-details {
        display: block;
        text-align: left;
    }
    .user-name {
        font-size: 0.65rem;
        font-weight: 700;
        color: white;
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .user-role {
        font-size: 0.45rem;
        color: rgba(245, 158, 11, 0.8);
        font-family: monospace;
    }
}

.logout-btn {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.3rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    height: 36px;
    width: 36px;
    min-width: 36px;
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.5));
    color: #ffffff;
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.logout-btn svg {
    width: 0.9rem;
    height: 0.9rem;
}

/* Views */
.view {
    display: none;
    padding: 0.5rem 0 4rem;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

#view2d, #view3d {
    background: #05195C;
    border-radius: 1rem;
    padding: 0.5rem;
    height: calc(100vh - 50px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    #view2d, #view3d {
        height: calc(100vh - 45px);
        padding: 0.4rem;
    }
}

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

/* Hero Banner - Mobile Optimized */
.hero-banner {
    background: #131226;
    border: 1px solid rgba(126, 164, 226, 0.5);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -2rem;
    right: -2rem;
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.badge-icon {
    width: 0.7rem;
    height: 0.7rem;
}

.hero-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #fef3c7, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: #f59e0b;
}

.hero-description {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
}

.hero-market {
    position: relative;
    z-index: 1;
}

.market-card {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.market-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(30, 41, 59, 1);
    padding-bottom: 0.4rem;
    margin-bottom: 0.5rem;
}

.market-pulse {
    display: flex;
    width: 0.5rem;
    height: 0.5rem;
    position: relative;
}

.pulse-dot {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #34d399;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10b981;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.market-label {
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #34d399;
}

.market-time {
    font-size: 0.6rem;
    font-family: monospace;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.market-live {
    text-align: center;
    padding: 0.25rem 0;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), transparent);
    border-radius: 0.5rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    margin: 0.25rem 0;
}

.market-live-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.8);
}

.market-live-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: 0.1em;
    margin: 0.1rem 0;
    text-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.market-live-time {
    font-size: 0.55rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.market-indices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .market-indices {
        grid-template-columns: repeat(4, 1fr);
    }
}

.market-index {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(30, 41, 59, 1);
    border-radius: 0.5rem;
    padding: 0.4rem;
    text-align: center;
}

.index-label {
    font-size: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.index-value {
    font-size: 0.7rem;
    font-weight: 800;
    color: #e2e8f0;
    font-family: monospace;
}

.index-value-small {
    font-size: 0.6rem;
    font-weight: 600;
    color: #e2e8f0;
    font-family: monospace;
}

.index-change {
    font-size: 0.55rem;
    font-weight: 600;
    font-family: monospace;
    margin-top: 0.1rem;
}

.change-up {
    color: #10b981;
}

.change-down {
    color: #ef4444;
}

.index-up {
    color: #10b981;
}

.index-down {
    color: #ef4444;
}

/* Payment Ribbon */
.payment-ribbon {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-icon {
    padding: 0.4rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.payment-icon svg {
    width: 1rem;
    height: 1rem;
}

.payment-text h3 {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.payment-text p {
    font-size: 0.6rem;
    color: var(--text-secondary);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.payment-method {
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.6rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.payment-method .method-dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
}

.payment-method.kpay {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.payment-method.kpay .method-dot {
    background: #60a5fa;
}

.payment-method.ayarpay {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.payment-method.ayarpay .method-dot {
    background: #f87171;
}

.payment-method.wavepay {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.payment-method.wavepay .method-dot {
    background: #facc15;
}

/* Draw Schedule - Mobile */
.draw-schedule {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .draw-schedule {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.draw-card {
    background: rgba(30, 36, 69, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.draw-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(30, 36, 69, 0.8);
}

.draw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.draw-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.draw-badge.badge-2d {
    background: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 0.6rem;
}

.draw-badge.badge-3d {
    background: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    font-size: 0.6rem;
}

.draw-title {
    font-size: 0.7rem;
    font-weight: 800;
    color: white;
}

.draw-time {
    font-size: 0.6rem;
    font-family: monospace;
    font-weight: 700;
    color: #f59e0b;
}

/* Mobile adjustments for draw cards */
@media (max-width: 768px) {
    .draw-header {
        gap: 0.25rem;
    }

    .draw-title {
        font-size: 0.6rem;
    }

    .draw-time {
        font-size: 0.55rem;
    }
}

@media (max-width: 400px) {
    .draw-header {
        gap: 0.15rem;
    }

    .draw-title {
        font-size: 0.55rem;
    }

    .draw-time {
        font-size: 0.5rem;
    }
}

.draw-number-box {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: rgba(10, 14, 39, 0.8);
    border-radius: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin: 0.5rem 0;
}

.draw-number-label {
    font-size: 0.6rem;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.draw-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c7d2fe;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.05em;
    margin: 0.25rem 0;
}

.draw-date {
    font-size: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.draw-market-data {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.market-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.25rem 0;
    font-size: 0.55rem;
}

.market-data-label {
    color: #9ca3af;
    font-weight: 500;
}

.market-data-value {
    color: #c7d2fe;
    font-weight: 600;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.bracket-digit {
    color: #c7d2fe;
    font-weight: 600;
}

.draw-status {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 1rem;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.draw-status-open {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.draw-status-closed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.countdown-row {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 0.25rem 0;
}

.countdown-label {
    font-weight: 600;
}

.countdown-timer {
    font-family: monospace;
    font-weight: 700;
    color: #fcd34d;
}

/* Quick Actions - Mobile */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 480px) {
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.action-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    transition: all 0.2s;
    cursor: pointer;
}

.action-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
}

.action-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.action-icon-emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-icon-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.action-icon-slate {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(30, 41, 59, 1);
}

.action-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
}

.action-subtitle {
    font-size: 0.55rem;
    color: var(--text-secondary);
}

/* Leaderboard - Mobile */
.leaderboard {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.leaderboard-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.trophy-icon {
    width: 1rem;
    height: 1rem;
    color: #f59e0b;
}

.leaderboard-header h3 {
    font-size: 0.8rem;
    font-weight: 800;
    color: white;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.leaderboard-item {
    background: #020617;
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.winner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.winner-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.6rem;
}

.winner-details {
    display: flex;
    flex-direction: column;
}

.winner-name {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.6rem;
}

.winner-bet {
    color: var(--text-secondary);
    font-size: 0.5rem;
}

.winner-amount {
    text-align: right;
}

.winner-amount .amount {
    font-weight: 900;
    color: #f59e0b;
    font-size: 0.7rem;
}

.winner-amount .meta {
    font-size: 0.5rem;
    color: var(--text-secondary);
}

/* Cards */
.card {
    background: #0f141a;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

/* History Card - Mobile-First Professional Design */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.history-card .card-header {
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

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

.history-card .card-title {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.history-card .tab-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.history-card .tab-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.625rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.history-card .tab-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.history-card .tab-btn.active {
    background: white;
    color: var(--accent);
    border-color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-card .history-tab {
    padding: 1rem;
    background: var(--bg-secondary);
}

.history-card .filter-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.history-card .form-select {
    flex: 1;
    min-width: 140px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
}

.history-card .bet-item {
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 25%, #daa520 50%, #b8860b 75%, #8b6914 100%);
    border: 2px solid #ffd700;
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.history-card .bet-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.history-card .bet-item:hover {
    border-color: #fff;
    box-shadow: 0 12px 40px rgba(184, 134, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.history-card .history-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.history-card .history-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.history-card .bet-item-main,
.history-card .history-item-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.history-card .bet-item-left,
.history-card .history-item-left {
    flex: 1;
    min-width: 0;
}

.history-card .bet-item-title,
.history-card .history-item-title {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.history-card .bet-item .bet-item-title {
    color: #2d1810;
}

.history-card .bet-id {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffd700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    display: inline-block;
    border: 1px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.history-card .badge-2d,
.history-card .badge-3d {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffd700;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    display: inline-block;
    border: 1px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.history-card .badge-3d {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a1a6b 100%);
    border-color: #d4af37;
}

.history-card .bet-draw {
    color: #2d1810;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.history-card .bet-item .bet-item-sub {
    color: #2d1810;
    font-weight: 500;
}

.history-card .bet-item-sub,
.history-card .history-item-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
    line-height: 1.5;
}

.history-card .history-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.history-card .status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.history-card .bet-item .status-badge {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.history-card .status-pending {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.history-card .status-won {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    color: #34d399;
    border: 1px solid #34d399;
}

.history-card .status-lost {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    color: #f87171;
    border: 1px solid #f87171;
}

.history-card .status-approved {
    background: linear-gradient(135deg, #065f46 0%, #064e3b 100%);
    color: #34d399;
    border: 1px solid #34d399;
}

.history-card .status-rejected {
    background: linear-gradient(135deg, #7f1d1d 0%, #450a0a 100%);
    color: #f87171;
    border: 1px solid #f87171;
}

.history-card .slips-grid {
    padding: 0.75rem;
    background: rgba(26, 26, 26, 0.3);
    border-radius: var(--radius-md);
    gap: 0.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}

.history-card .ticket-slip {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(51, 51, 51, 0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.history-card .ticket-slip:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
    transform: translateY(-2px);
}

.history-card .slip-number {
    font-weight: 800;
    color: #ffd700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.history-card .slip-amount {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
}

.history-card .slip-potential {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.history-card .slip-odds {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.history-card .btn-delete-history {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.history-card .btn-delete-history:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .history-card .card-header {
        padding: 1rem;
    }
    
    .history-card .card-title {
        font-size: 1.125rem;
    }
    
    .history-card .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        min-width: 70px;
    }
    
    .history-card .history-tab {
        padding: 0.75rem;
    }
    
    .history-card .bet-item {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }
    
    .history-card .history-item {
        padding: 0.875rem;
    }
    
    .history-card .bet-item-main,
    .history-card .history-item-main {
        flex-direction: column;
        align-items: stretch;
    }
    
    .history-card .history-item-right {
        align-items: flex-start;
        margin-top: 0.5rem;
    }
    
    .history-card .slips-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.375rem;
    }
    
    .history-card .ticket-slip {
        padding: 0.625rem 0.375rem;
    }
    
    .history-card .slip-number {
        font-size: 1rem;
    }
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.25rem;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.form-input, .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 0.75rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.table th, .table td {
    padding: 0.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--accent);
}

.table tr:hover {
    background: var(--bg-tertiary);
}

/* Excel-like Table - Mobile */
.excel-table-container {
    overflow-x: auto;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
    min-width: 500px;
}

.excel-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.excel-table th {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: #e2e8f0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.4rem;
    border-bottom: 2px solid var(--accent);
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.excel-table th:last-child {
    border-right: none;
}

.excel-table td {
    padding: 0.4rem 0.3rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    border-right: 1px solid rgba(51, 65, 85, 0.3);
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.6rem;
}

.excel-table td:last-child {
    border-right: none;
}

.excel-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.1);
}

.excel-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

.excel-table tbody tr:nth-child(even):hover {
    background: rgba(245, 158, 11, 0.15);
}

.excel-table .game-badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    font-size: 0.5rem;
    font-weight: 700;
}

.excel-table .game-badge-2d {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.excel-table .game-badge-3d {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.excel-table .winning-number {
    font-size: 0.9rem;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: 0.1em;
}

/* User Bets Table Specific Styles - handled above with badge styles */

/* ============================================
   USER BETS CREDIT CARD STYLE
   ============================================ */

.user-bets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 0.75rem;
}

.loading-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.card-skeleton {
    height: 160px;
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bet-card {
    position: relative;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    min-height: 160px;
}

.bet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

/* Card gradient backgrounds */
.bet-card.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bet-card.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bet-card.gradient-pink {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bet-card.gradient-orange {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bet-card.gradient-green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bet-card.gradient-dark {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
}

/* Card chip design */
.card-chip {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Card content */
.card-user-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-bet-number {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card-amount {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.card-amount-label {
    font-size: 0.65rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.card-detail-item {
    display: flex;
    flex-direction: column;
}

.card-detail-label {
    font-size: 0.6rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.card-detail-value {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Status badges */
.card-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.card-status.pending {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-status.won {
    background: rgba(34, 197, 94, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

.card-status.lost {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.card-status.confirmed {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
}

/* Game type badge */
.card-game-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

/* Card pattern overlay */
.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 640px) {
    .user-bets-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.5rem;
    }
    
    .bet-card {
        padding: 0.875rem;
        min-height: 150px;
    }
    
    .card-bet-number {
        font-size: 1.75rem;
    }
    
    .card-amount {
        font-size: 1rem;
    }
    
    .card-chip {
        width: 35px;
        height: 24px;
    }
    
    .card-chip::before {
        width: 20px;
        height: 14px;
    }
}

/* User Popup Styles */
#userPopup {
    animation: popupFadeIn 0.2s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ============================================
   TICKET-STYLE BETTING UI - MOBILE FIRST
   ============================================ */

.ticket-card {
    border-color: rgba(245, 158, 11, 0.2);
    padding: 1rem;
    min-height: auto;
}

/* Number grid - big tap targets */
.number-grid-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.number-grid-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

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

.num-cell {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.num-cell:active {
    transform: scale(0.92);
}

.num-cell:hover {
    background: rgba(245,158,11,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.num-cell.selected {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 10px rgba(245,158,11,0.5);
    transform: scale(1.05);
}

@media (min-width: 480px) {
    .num-cell {
        font-size: 1.1rem;
        min-height: 44px;
    }
    .number-grid {
        gap: 4px;
    }
}

/* Ticket strip */
.ticket-strip-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0.75rem 0 0.3rem;
}

.ticket-strip {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 50px;
}

.ticket-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-align: center;
    padding: 0.75rem;
}

/* Single ticket item - touch friendly with gold credit card theme */
.ticket-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 25%, #daa520 50%, #b8860b 75%, #8b6914 100%);
    border: 2px solid #ffd700;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.2s;
    min-height: 44px;
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ticket-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.ticket-item:hover {
    border-color: #fff;
    box-shadow: 0 12px 40px rgba(184, 134, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.ticket-item.ticket-in {
    opacity: 1;
    transform: translateY(0);
}

.ticket-item.ticket-out {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Ticket number display */
.ticket-number-display {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticket-body {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    min-width: 48px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.2);
    position: relative;
    border: 1px solid #ffd700;
}

.ticket-body::before,
.ticket-body::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

.ticket-body::before { left: -3px; }
.ticket-body::after  { right: -3px; }

.ticket-game-label {
    font-size: 0.5rem;
    font-weight: 800;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1;
}

.ticket-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffd700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Amount column */
.ticket-amount-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticket-amount {
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(51, 51, 51, 0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticket-amount:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.ticket-amount.error { border-color: #f87171; }

.ticket-currency {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffd700;
    white-space: nowrap;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Delete button - bigger touch target with gold theme */
.ticket-delete {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.8) 0%, rgba(69, 10, 10, 0.8) 100%);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #f87171;
    border-radius: 0.5rem;
    padding: 0.5rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: 100%;
}

.ticket-delete:active {
    transform: scale(0.95);
}

.ticket-delete:hover {
    background: rgba(239,68,68,0.25);
}

/* Manual add row - touch friendly */
.manual-add-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px dashed var(--border);
    border-radius: 0.5rem;
}

.manual-add-row .number-input {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.4rem 0.2rem;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    color: white;
}

.manual-add-row .amount-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    color: white;
    font-size: 0.8rem;
}

.manual-add-row .btn-sm {
    width: 100%;
    white-space: nowrap;
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
}

/* Bet Summary - Gold Credit Card Theme */
.bet-summary {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(51, 51, 51, 0.6) 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin: 0.75rem 0;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.8rem;
}

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

.summary-row.highlight {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.3) 0%, rgba(218, 165, 32, 0.3) 100%);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border-bottom: none;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.summary-label {
    font-weight: 600;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.summary-value {
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.summary-row.highlight .summary-value {
    color: #fcd34d;
    font-size: 1rem;
}

/* Quick Betting Options */
.quick-betting-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-betting-options .btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-won {
    background: #d1fae5;
    color: #065f46;
}

.badge-lost {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* Round status */
.round-status {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 1rem;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.round-status.open {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.round-status.closed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.text-muted {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* ============================================
   BETTING HISTORY - MOBILE FRIENDLY
   ============================================ */

.bet-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bet-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.bet-id {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.55rem;
    font-weight: 700;
}

.bet-draw {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.6rem;
    font-weight: 600;
}

.bet-status {
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
}

.slips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.ticket-slip {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 0.5rem;
    padding: 0.4rem;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
    min-height: 40px;
}

.slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.slip-number {
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    min-width: 1.8rem;
    text-align: center;
}

.slip-amount {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
}

.slip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.slip-potential {
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
}

.slip-odds {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.1rem 0.25rem;
    border-radius: 0.25rem;
}

.bet-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.7rem;
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.summary-value {
    color: #ffffff;
    font-weight: 700;
}

.summary-win {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 0.4rem;
    padding: 0.3rem 0.5rem;
    margin-top: 0.2rem;
}

.bet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: 0.25rem;
}

.bet-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.55rem;
}

.bet-delete-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    border-radius: 0.4rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    touch-action: manipulation;
}

.bet-delete-btn:active {
    transform: scale(0.95);
}

.bet-delete-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: rgba(239, 68, 68, 0.6);
}

/* History filters - mobile */
#betFilter, #gameFilter {
    width: auto;
    padding: 0.3rem 0.5rem;
    font-size: 0.65rem;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 0.4rem;
    color: white;
}

/* Topup/Withdraw tabs */
.tab-btn {
    padding: 0.3rem 0.6rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.15s;
    background: rgba(51, 65, 85, 0.5);
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.5);
    cursor: pointer;
}

.tab-btn:hover {
    background: rgba(140, 179, 243, 0.2);
    color: #8CB3F3;
    border-color: rgba(140, 179, 243, 0.4);
}

.tab-btn.active {
    background: linear-gradient(135deg, #8CB3F3 0%, #9679E6 100%);
    color: #ffffff;
    border-color: #8CB3F3;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 65, 85, 0.8);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 400px) {
    .container {
        padding: 0 0.4rem;
    }
    .hero-title {
        font-size: 1rem;
    }
    .market-live-number {
        font-size: 2rem;
    }
    .num-cell {
        font-size: 0.8rem;
        min-height: 30px;
    }
    .ticket-num {
        font-size: 0.9rem;
    }
    .ticket-body {
        min-width: 38px;
        padding: 0.2rem 0.35rem;
    }
    .manual-add-row .number-input {
        width: 50px;
        font-size: 0.8rem;
    }
    .ticket-amount {
        font-size: 0.65rem;
        padding: 0.2rem 0.3rem;
    }
}

/* Mobile navbar fix */
@media (max-width: 768px) {
    .navbar-content {
        flex-wrap: wrap;
        align-items: center;
        padding: 0.5rem;
    }
    
    .logo {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }
    
    .nav-links {
        flex: 1 1 auto;
        display: flex;
        gap: 0.2rem;
        padding: 0.3rem;
        overflow-x: auto;
        justify-content: space-between;
    }
    
    .nav-link {
        flex: 1 1 auto;
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.6rem;
        font-size: 0.65rem;
        height: 44px;
        justify-content: center;
    }
    
    .nav-icon {
        width: 0.9rem;
        height: 0.9rem;
    }
    
    .badge-2d, .badge-3d {
        flex: 1 1 auto;
        min-width: 44px;
        min-height: 44px;
        height: 44px;
        font-size: 0.65rem;
    }
    
    .user-info {
        flex: 0 0 auto;
        gap: 0.1rem;
    }
    
    .logout-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    /* Ensure all buttons meet 44x44px minimum touch target */
    .btn, .btn-sm, .tab-btn, .action-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.6rem 1rem;
    }
    
    .ticket-delete {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem;
    }
    
    /* Sticky submit buttons for betting on mobile */
    #submit2dBtn, #submit3dBtn {
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin-top: 1rem;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
        border-radius: 0.5rem 0.5rem 0 0;
    }
}

@media (min-width: 768px) {
    .hero-banner {
        grid-template-columns: 1fr 300px;
        padding: 2rem;
    }
    .payment-ribbon {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
    .draw-schedule {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    .number-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .num-cell {
        font-size: 1.3rem;
        min-height: 50px;
    }
    .navbar-content {
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0 0.3rem;
    }
    .nav-links {
        gap: 0.2rem;
        padding: 0.3rem 0.3rem;
    }
    .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-width: 60px;
        height: 36px;
    }
    .nav-icon {
        width: 0.8rem;
        height: 0.8rem;
    }
    .balance-amount {
        font-size: 0.8rem;
    }
}

/* Auth */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-google {
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #e0e0e0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    height: 52px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    border-color: #d0d0d0;
}

.btn-google .google-icon {
    width: 24px;
    height: 24px;
}

.google-btn-container {
    width: 100%;
}

/* Balance display */
.balance-display {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fcd34d;
    padding: 0.5rem;
    background: #020617;
    border-radius: 0.5rem;
    text-align: center;
}

/* History Items */
.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 36, 69, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.history-item.pending {
    background: rgba(75, 85, 99, 0.4);
    border-color: rgba(107, 114, 128, 0.2);
}

.history-item:hover {
    background: rgba(30, 36, 69, 0.7);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.history-item.pending:hover {
    background: rgba(75, 85, 99, 0.5);
    border-color: rgba(107, 114, 128, 0.3);
}

.history-item-main {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.history-item-sub {
    font-size: 0.8rem;
    color: #a0aec0;
    line-height: 1.4;
}

/* Tab Buttons */
.tab-btn {
    background: rgba(30, 36, 69, 0.4);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: #9ca3af;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(30, 36, 69, 0.6);
    border-color: rgba(99, 102, 241, 0.2);
    color: #e5e7eb;
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
    color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Delete history button */
.history-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.btn-delete-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(239,68,68,0.15) 0%, rgba(220,38,38,0.15) 100%);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    border-radius: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
    box-shadow: 0 2px 4px rgba(239,68,68,0.1);
}

.btn-delete-history:active {
    transform: scale(0.92);
    box-shadow: 0 1px 2px rgba(239,68,68,0.15);
}

.btn-delete-history:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.25) 0%, rgba(220,38,38,0.25) 100%);
    border-color: rgba(239,68,68,0.5);
    color: #fecaca;
    box-shadow: 0 4px 8px rgba(239,68,68,0.2);
    transform: translateY(-1px);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */

/* Admin Header */
.admin-header {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.admin-header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-small {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.875rem;
    color: #020617;
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
}

.admin-brand-name {
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.admin-brand-subtitle {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: rgba(26, 31, 58, 0.8);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.admin-nav-link:hover {
    background: var(--bg-tertiary);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.admin-nav-link svg {
    width: 1rem;
    height: 1rem;
}

/* Admin Content */
.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 0.75rem;
}

.admin-welcome {
    margin-bottom: 1.5rem;
}

.admin-welcome h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
}

.admin-welcome p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.admin-table thead {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
}

.admin-table th {
    padding: 0.6rem 0.5rem;
    text-align: left;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--accent);
}

.admin-table td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    color: #e2e8f0;
}

.admin-table tbody tr:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Tab System */
.tab-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Auth Container for Admin and Main Page */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 1rem;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
    animation: fadeInUp 0.4s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-input {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.auth-form .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.auth-form .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-form .btn-native {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: var(--accent-hover);
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.status-pending {
    background: rgba(107, 114, 128, 0.3);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Action Buttons for Transactions */
.action-btn {
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    margin-right: 0.25rem;
}

.approve-btn {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.approve-btn:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
}

.reject-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.reject-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Transaction Type Badges */
.type-topup {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
}

.type-withdrawal {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Profile Modal Styles */
.profile-modal-content {
    max-width: 500px;
    width: 90%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    border: 3px solid rgba(99, 102, 241, 0.3);
    overflow: hidden;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.profile-role-badge {
    margin-bottom: 0.75rem;
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-user {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

.role-admin {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.role-staff {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.role-guest {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.profile-phone,
.profile-email {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    position: relative;
    padding: 1rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.stat-card-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stat-card-primary::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.stat-card-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.stat-card-success::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.stat-card-warning::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-card-info::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
}

.stat-card-primary .stat-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-card-success .stat-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-card-warning .stat-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-card-info .stat-icon {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.stat-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value .currency {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Admin Mobile Menu Button */
.admin-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

.admin-hamburger {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Live Results Card */
.live-results-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.live-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    animation: pulse 2s infinite;
}

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

.live-results-content {
    padding: 1rem;
}

.live-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.live-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-result-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.live-result-time {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.live-result-provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .admin-mobile-menu-btn {
        display: flex;
    }
    
    .admin-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        z-index: 100;
    }
    
    .admin-nav.active {
        display: flex;
    }
    
    .admin-nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    /* Tab navigation - horizontal scroll */
    .card-header .d-flex {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .card-header .d-flex::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Tables - horizontal scroll */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .admin-table {
        font-size: 0.75rem;
        min-width: 600px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.4rem;
    }
    
    /* Forms - full width on mobile */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-input,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Stats - stack vertically */
    .admin-content > .row > .col-12 > div {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-content > .row > .col-12 > div > div {
        justify-content: space-between;
    }
}

/* ============================================
   NATIVE MOBILE BUTTONS - All Submit Buttons
   ============================================ */

/* Base native button style */
.btn-native {
    width: 100%;
    min-height: 56px;
    border: none;
    border-radius: 14px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-transform: uppercase;
}

.btn-native::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn-native:active {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-native:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Primary button */
.btn-native-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: 2px solid rgba(99, 102, 241, 0.4);
}

.btn-native-primary:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Success button */
.btn-native-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.btn-native-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

/* Warning button */
.btn-native-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

.btn-native-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

/* Danger button */
.btn-native-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.btn-native-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}

/* ============================================
   SUBMIT BET BUTTONS - Gold Credit Card Theme
   ============================================ */

.submit-bet-button {
    width: 100%;
    min-height: 64px;
    border: 2px solid #ffd700;
    border-radius: var(--radius-xl);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-top: 1.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: linear-gradient(135deg, #b8860b 0%, #ffd700 25%, #daa520 50%, #b8860b 75%, #8b6914 100%);
    color: #1a1a1a;
}

.submit-bet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.submit-bet-button:hover {
    border-color: #fff;
    box-shadow: 0 12px 40px rgba(184, 134, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.submit-bet-button:active {
    transform: scale(0.96);
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.4);
}

.submit-bet-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.5);
}

.submit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse-icon 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.submit-text {
    flex: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.submit-arrow {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.submit-bet-button:hover .submit-arrow {
    transform: translateX(4px);
}

.submit-bet-button:active .submit-arrow {
    transform: translateX(2px);
}

/* 2D Submit Button */
.submit-2d {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: #ffffff;
    border: 2px solid rgba(16, 185, 129, 0.5);
}

.submit-2d:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    border-color: rgba(52, 211, 153, 0.7);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

/* 3D Submit Button */
.submit-3d {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    color: #ffffff;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.submit-3d:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #7c3aed 100%);
    border-color: rgba(167, 139, 250, 0.7);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .btn-native,
    .submit-bet-button {
        min-height: 64px;
        font-size: 1.125rem;
        padding: 0 1.25rem;
        border-radius: 18px;
    }

    .submit-icon {
        font-size: 1.75rem;
    }

    .submit-arrow {
        font-size: 1.75rem;
    }

    /* Sticky bottom on mobile for easy access */
    .ticket-card form {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 1rem;
        margin: 0 -1rem -1rem -1rem;
        border-top: 1px solid var(--border);
        border-radius: 0 0 0.75rem 0.75rem;
        z-index: 100;
    }

    .submit-bet-button {
        margin-top: 0;
        border-radius: 16px;
    }
}

@media (max-width: 400px) {
    .btn-native,
    .submit-bet-button {
        min-height: 60px;
        font-size: 1rem;
        padding: 0 1rem;
    }

    .submit-icon {
        font-size: 1.5rem;
    }

    .submit-arrow {
        font-size: 1.5rem;
    }
}

/* ============================================
   MOVIE TICKET NUMBER SELECTOR
   ============================================ */

.number-grid-section {
    background: rgba(10, 14, 39, 0.98);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 0;
    padding: 0.5rem;
    margin: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    width: 100%;
}

.ticket-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    width: 100%;
}

.ticket-row::before {
    content: attr(data-row);
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-seat {
    flex: 1;
    height: 44px;
    min-width: 0;
    border-radius: 8px 8px 12px 12px;
    background: #1a202c;
    border: 2px solid #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.ticket-seat::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: #4a5568;
    border-radius: 0 0 4px 4px;
}

.ticket-seat:active {
    transform: scale(0.9);
}

.ticket-seat.selected {
    background: #10b981;
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: seat-select 0.3s ease-out;
}

.ticket-seat.selected::before {
    background: #10b981;
}

@keyframes seat-select {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

.ticket-seat:hover {
    border-color: #10b981;
    background: #2d3748;
}

.ticket-seat.selected:hover {
    background: #34d399;
}

.ticket-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.legend-seat {
    width: 24px;
    height: 24px;
    border-radius: 4px 4px 6px 6px;
    position: relative;
}

.legend-seat.available {
    background: #1a202c;
    border: 2px solid #4a5568;
}

.legend-seat.available::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #4a5568;
    border-radius: 0 0 2px 2px;
}

.legend-seat.selected {
    background: #10b981;
    border: 2px solid #34d399;
}

.legend-seat.selected::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: #10b981;
    border-radius: 0 0 2px 2px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .number-grid-section {
        padding: 0.25rem;
        margin: 0;
    }

    .ticket-rows-container {
        gap: 0.15rem;
    }

    .ticket-row {
        gap: 0.1rem;
    }

    .ticket-row::before {
        left: -18px;
        font-size: 0.65rem;
    }

    .ticket-seat {
        height: 36px;
        font-size: 0.7rem;
        border-radius: 4px 4px 6px 6px;
    }

    .ticket-seat::before {
        bottom: -2px;
        height: 2px;
    }

    .ticket-legend {
        gap: 1rem;
        margin-top: 0.5rem;
        padding-top: 0.25rem;
    }

    .legend-item {
        font-size: 0.65rem;
    }

    .legend-seat {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 400px) {
    .ticket-seat {
        height: 34px;
        font-size: 0.7rem;
    }

    .ticket-row {
        gap: 0.1rem;
    }

    .ticket-row::before {
        display: none;
    }
}

/* Desktop hover effects */
@media (min-width: 769px) {
    .ticket-seat:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .ticket-seat.selected:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
    }
}

/* ============================================
   2D AND 3D VIEW BACKGROUNDS - Navbar Match
   ============================================ */

#view2d,
#view3d {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
}

#view2d .card-header,
#view3d .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1rem;
}