:root {
    /* Default Palette (Lotofácil) - Will be updated by JS */
    --primary-color: #930089;
    /* Lotofácil Purple */
    --primary-dark: #4b004b;
    --bic-blue: #0000FF;
    --white: #FFFFFF;
    --text-color: #FFFFFF;

    --tab-inactive: rgba(255, 255, 255, 0.2);
    --tab-active: rgba(255, 255, 255, 0.15);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* KingFluxo Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

.king-fluxo {
    font-family: 'Orbitron', sans-serif;
    color: #f5821f;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at center, var(--primary-color), var(--primary-dark));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease;
    /* Smooth theme transition */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Game Window Structure */
.game-window {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 0.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: var(--white);
    transition: background 0.5s ease;
    position: relative;
    /* For lock overlay */
    overflow: hidden;
    /* Ensure overlay covers corners */
}

/* Info Section */
.game-info-section {
    text-align: center;
    margin-bottom: 1.5rem;
    /* Reduced margin */
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header h1 {
    display: none;
    /* Hide Game Title as requested */
}

.contest-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    /* Reduced gap */
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contest-badge {
    padding: 0.3rem 0.8rem;
    /* More compact */
    font-size: 0.8rem;
}

.prize-info {
    margin-top: 0;
    /* Removed top margin since it's now first */
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.prize-value {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-value span {
    display: block;
    /* Prize on new line */
    font-weight: 800;
    font-size: 2.8rem;
    /* Slightly larger */
    color: #FFD700;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1;
    margin-top: 0.2rem;
}

.prize-value span small {
    font-size: 1.2rem;
    /* Much smaller currency symbol */
    vertical-align: super;
    margin-right: 5px;
    opacity: 0.9;
}

.winners-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.winner-stat {
    text-align: center;
}

.winner-stat .count {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4ade80;
    /* Green for winners */
}

.accumulation-status {
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.2rem 1rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Interaction Section */
.game-interaction-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 600px;
    /* Reduced from 1200px as requested */
    margin: 0 auto;
    padding: 0 0.3rem;
}

/* ... existing styles ... */

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.share-buttons {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease;
}

.share-buttons.visible {
    display: flex;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
    width: 100%;
}

.share-btn.whatsapp {
    background-color: #25D366;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.share-btn.whatsapp:hover {
    background-color: #128C7E;
}

.share-btn.email {
    background-color: #EA4335;
    /* Google Red */
    box-shadow: 0 4px 10px rgba(234, 67, 53, 0.3);
}

.share-btn.email:hover {
    background-color: #B93327;
}

/* Lock Overlay */
.lottery-card {
    position: relative;
    /* For absolute positioning of overlay */
}

.lock-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker background */
    backdrop-filter: blur(12px);
    /* Stronger blur */
    border-radius: 20px;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}

/* Pricing Styles */
.pricing-container {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.discount-badge {
    background-color: #f5821f;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.old-price {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.new-price {
    font-size: 1.4rem;
    color: #4ade80;
    /* Green for price */
    font-weight: 700;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.lock-overlay.active {
    display: flex;
}

.lock-content h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: var(--white);
}

.lock-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.btn-unlock {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-unlock:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
}

.whatsapp-link {
    display: none;
    /* Hidden by default */
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: #25D366;
    /* WhatsApp Green */
    border-radius: 50px;
    transition: var(--transition);
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    background-color: #128C7E;
}

.whatsapp-link.visible {
    display: inline-flex;
    animation: fadeIn 0.5s ease;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 0.5rem;
    /* Small horizontal padding */
    gap: 0.5rem;
    /* Minimal gap */
    white-space: nowrap;
    /* Prevent wrapping */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    /* Prevent logo shrinking */
    padding-left: 1.5rem;
    /* Increased padding for better alignment */
    display: flex;
    align-items: center;
}

.logo svg {
    height: 30px;
    /* Smaller logo height */
    width: auto;
    /* Maintain aspect ratio */
}

.nav-links {
    display: flex;
    gap: 1rem;
    /* Increased gap slightly */
    list-style: none;
    align-items: center;
    flex: 1;
    /* Allow links to take space for centering */
    justify-content: flex-end;
    /* Keep them right-aligned generally */
}

/* Target the News link specifically */
/* Target the News link specifically */
.nav-links li:first-child {
    margin-right: auto;
    /* Push News to the left/center */
    padding-left: 2rem;
    /* Increased space from logo */
    display: flex;
    align-items: center;
}

.nav-links li:first-child a {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-links li:first-child a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    /* Bolder */
    transition: var(--transition);
    font-size: 1.1rem;
    /* Larger */
}

/* User Profile Icon */
.user-profile {
    display: flex;
    align-items: center;
}

.user-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.user-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-icon svg {
    width: 32px;
    /* Increased from 24px */
    height: 32px;
}

/* System Status (Moved to main area) */
.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    /* Reduced margin */
    color: rgba(255, 255, 255, 0.5);
    /* More transparent text */
    font-size: 0.75rem;
    /* Smaller font */
    font-weight: 400;
    background: transparent;
    /* No background */
    padding: 0.2rem 0.5rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: none;
    /* No border */
}

.system-status .status-dot {
    width: 4px;
    /* Smaller dot */
    height: 4px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 3px #4ade80;
    opacity: 0.7;
    animation: pulse 3s infinite;
    /* Slower pulse */
}

.system-status strong {
    color: rgba(255, 255, 255, 0.7);
    /* Less contrasty strong text */
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--white);
}

/* Mobile Adjustments for Navbar */
@media (max-width: 480px) {
    .nav {
        padding: 0 0.2rem;
    }

    .logo svg {
        height: 24px;
        /* Even smaller on mobile */
    }

    .logo {
        padding-left: 0.5rem;
        /* Reduce padding on mobile */
    }

    .nav-links li:first-child {
        padding-left: 0.5rem;
        /* Reduce padding on mobile */
    }

    .nav-links {
        gap: 0.5rem;
    }

    .connected-status {
        padding: 0.2rem 0.5rem;
        font-size: 0.75rem;
    }

    .connected-info {
        flex-direction: column;
        /* Stack vertically on mobile */
        align-items: flex-end;
        /* Align right */
        line-height: 1;
    }

    .connected-info .label {
        font-size: 0.7rem;
        opacity: 0.8;
    }

    .connected-info .count {
        font-weight: 700;
    }
}


/* Game Section */
.game-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 2rem;
}

.game-container {
    width: 100%;
    max-width: 800px;
    /* Increased for larger grids */
}

/* Tabs & Dropdown */
.tabs-container {
    display: flex;
    gap: 2px;
    padding: 0;
    /* Remove padding to maximize space */
    width: 100%;
    /* Ensure full width */
    position: relative;
    /* Ensure z-index works */
    z-index: 20;
    /* Higher than window-content to allow dropdown to float over */
}

.tab-btn {
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 1rem 0.5rem;
    /* Reduced horizontal padding */
    border-radius: 15px 15px 0 0;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    /* Slightly smaller font if needed */
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Handle overflow text */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    /* Allow shrinking */
}

/* Specific Proportions */
.tab-btn[data-game="lotofacil"] {
    flex: 25;
}

.tab-btn[data-game="megasena"] {
    flex: 35;
}

.tab-btn[data-game="quina"] {
    flex: 25;
}

/* Color indicators for tabs */
.tab-btn[data-game="lotofacil"] {
    border-bottom: 3px solid #930089;
}

.tab-btn[data-game="megasena"] {
    border-bottom: 3px solid #209869;
}

.tab-btn[data-game="quina"] {
    border-bottom: 3px solid #260085;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--white);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    flex: 15;
    /* 15% */
}

.dropdown-btn {
    width: 100%;
    height: 100%;
    /* Fill container */
    min-width: 0;
    /* Allow shrinking */
    max-width: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 15px 15px 0 0;
    /* Match other tabs */
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(30, 0, 60, 0.95);
    /* Deep purple background */
    backdrop-filter: blur(10px);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    padding: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    text-decoration: none;
    display: flex;
    /* Flex for alignment if icons added later */
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    /* For hover effect */
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 25px;
    /* Slight movement */
    border-left: 3px solid #f5821f;
    /* Orange accent */
}

/* Window Content */
.window-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border-top-left-radius: 0;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease;
    position: relative;
    z-index: 10;
    /* Lower than tabs */
}

/* Interaction Section Styling */
.game-interaction-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darker background */
    backdrop-filter: blur(15px);
    /* Strong blur */
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Connected Status in Nav */
.connected-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.connected-icon svg {
    display: block;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.game-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contest-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contest-badge {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contest-badge.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    /* Green active dot */
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.game-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Prize Breakdown Popover */
.prize-breakdown-popover {
    position: absolute;
    top: 110%;
    /* Slightly lower */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 0, 40, 0.98);
    /* Darker and more opaque */
    backdrop-filter: blur(15px);
    padding: 1.5rem;
    /* Increased padding */
    border-radius: 16px;
    /* More rounded */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    /* Stronger shadow */
    z-index: 100;
    width: 320px;
    /* Wider */
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* More visible border */
    animation: fadeIn 0.3s ease;
    text-align: left;
}

.prize-breakdown-popover h3 {
    font-size: 1.1rem;
    /* Larger title */
    color: #f5821f;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* More spacing */
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    /* Larger text */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.breakdown-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-item .hits {
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.breakdown-item .details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.breakdown-item .winners {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.breakdown-item .prize-value-small {
    color: #4ade80;
    font-weight: 700;
}

/* Arrow for popover */
.prize-breakdown-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(30, 0, 60, 0.95);
}

/* Numbers Grid */
.lottery-card {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: visible;
    /* Allow expansion, no scrollbar */
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    /* Default for larger sets */
    gap: 0.5rem;
    /* Reduced gap */
    justify-items: center;
    max-width: 100%;
}

/* Adjust grid columns based on total numbers via JS classes or media queries */
.grid-small {
    grid-template-columns: repeat(5, 1fr);
}

.grid-medium {
    grid-template-columns: repeat(10, 1fr);
}

/* Specific Grid Styles */
.numbers-grid.grid-large {
    grid-template-columns: repeat(5, 1fr);
    /* 5 columns for Lotofácil */
    gap: 0.8rem;
    /* Reduced gap to save vertical space */
    max-width: 400px;
    /* Limit width to ensure it fits comfortably */
    margin: 0 auto;
    /* Center it */
}

.number-ball {
    width: 35px;
    /* Smaller default size */
    height: 35px;
    background-color: var(--white);
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
    cursor: default;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Larger balls for Lotofácil */
.numbers-grid.grid-large .number-ball {
    width: 50px;
    /* Slightly reduced from 55px */
    height: 50px;
    font-size: 1.2rem;
}

.number-ball.selected {
    background-color: var(--bic-blue);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.6);
    z-index: 10;
}

/* Controls */
.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    /* Matches theme */
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

/* Footer */
.footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .numbers-grid {
        grid-template-columns: repeat(5, 1fr);
        /* Force smaller grid on mobile */
        gap: 0.3rem;
    }

    .number-ball {
        width: 28px;
        /* Even smaller on mobile to fit 10 cols */
        height: 28px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {

    /* For very small screens, maybe reduce cols via JS or just shrink balls more */
    .number-ball {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2a002a 0%, #1a001a 100%);
    margin: 15% auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    backdrop-filter: blur(10px);
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: #f5821f;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.login-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: #f5821f;
    border-bottom: 2px solid #f5821f;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #f5821f;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(245, 130, 31, 0.2);
}

.cta-button {
    background: linear-gradient(45deg, #f5821f, #ff9d4d);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(245, 130, 31, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 130, 31, 0.5);
}

#loginMessage {
    margin-top: 15px;
    font-size: 14px;
}

.forgot-password a {
    color: #aaa;
    font-size: 12px;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #00ff88;
}

/* Ticket Share Info */
.ticket-share-info {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease;
}

.ticket-id {
    font-family: 'Orbitron', sans-serif;
    color: #f5821f;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.copy-link-container {
    display: flex;
    width: 100%;
    max-width: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-link-container input {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    outline: none;
    width: 100%;
}

.copy-link-container button {
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition);
}

.copy-link-container button:hover {
    transform: scale(1.1);
    background: #f5821f;
    color: #fff;
}

/* Payment Modal */
.payment-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 400px;
    text-align: center;
}

.qrcode-container {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    margin: 20px auto;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-container img {
    width: 100%;
    height: 100%;
}

.copy-paste-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.copy-paste-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    color: #fff;
}

.copy-paste-container button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.payment-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Payment Modal Enhancements */
.payment-info-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
}

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

.info-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
}

.timer-container {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc00;
    /* Warning color */
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.timer-container.expired {
    color: #ff4444;
}

/* Payment Instructions Box */
.payment-instructions-box {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
    font-size: 0.9rem;
    color: #ddd;
}

.payment-instructions-box p {
    margin: 5px 0;
}

.payment-instructions-box strong {
    color: #ffcc00;
}