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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    line-height: 1.5;
    overflow-x: hidden;
    background-image: radial-gradient(circle at center, #1a1f3a 0%, #0a0e1a 70%);
    width: 100%;
    max-width: 100vw;
}

/* Navigation */
.navbar {
    background: #121826;
    border-bottom: 1px solid #2a2f52;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
}

.logo i {
    font-size: 1.75rem;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }
}

.payment-proof-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.payment-proof-link:hover {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    text-decoration: underline;
}

/* Mobile/Desktop visibility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Carousel Styles */
.winners-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.winners-carousel {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

.winner-card {
    min-width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.winner-card.active {
    display: block;
}

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

.winner-game {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.winner-block {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
}

.winner-card-body {
    margin-bottom: 1.5rem;
}

.winner-number-display,
.winner-jackpot-display {
    margin-bottom: 1rem;
    text-align: center;
}

.winner-number-label,
.winner-jackpot-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.winner-number-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.winner-jackpot-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.winner-card-footer {
    text-align: center;
}

.payment-proof-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
}

.payment-proof-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #1e293b;
    border-color: var(--primary);
}

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

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: var(--primary);
}

.carousel-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}

.tagline {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 0.25rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #f59e0b;
    border-bottom-color: #f59e0b;
}

/* Jackpot Banner */
.jackpot-banner {
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jackpot-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.jackpot-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.jackpot-left i {
    font-size: 1.25rem;
}

.jackpot-amount {
    font-size: 1.125rem;
    font-weight: 700;
}

.jackpot-right {
    font-weight: 600;
}

.next-drawing {
    color: #1e293b;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Clock Section */
.clock-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.clock-container {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 95vw;
    max-height: 95vw;
    flex-shrink: 0;
}

.thunder-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
    border-radius: 50%;
    font-size: 40px;
    color: #f59e0b;
    animation: pulse 2s infinite alternate;
    box-shadow: 0 0 20px #f59e0b;
}

@keyframes pulse {
    from {
        text-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        text-shadow: 0 0 10px #f59e0b, 0 0 20px #f59e0b;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.clock-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #1e293b;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    animation: rotate-glow 20s infinite linear;
}

@keyframes rotate-glow {
    0% {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
            inset 0 0 20px rgba(0, 0, 0, 0.3),
            0 0 5px #10b981,
            0 0 30px rgba(245, 158, 11, 0.1);
    }

    33% {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
            inset 0 0 20px rgba(0, 0, 0, 0.3),
            0 0 10px #ff4d4d,
            0 0 30px rgba(245, 158, 11, 0.1);
    }

    66% {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
            inset 0 0 20px rgba(0, 0, 0, 0.3),
            0 0 15px #f59e0b,
            0 0 30px rgba(245, 158, 11, 0.2);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5),
            inset 0 0 20px rgba(0, 0, 0, 0.3),
            0 0 5px #10b981,
            0 0 30px rgba(245, 158, 11, 0.1);
    }
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.outer-ring {
    width: 96%;
    height: 96%;
    border: 3px solid #f59e0b;
    box-shadow: 0 0 15px #f59e0b;
    animation: ring-pulse 3s infinite alternate;
}

@keyframes ring-pulse {
    from {
        opacity: 0.8;
    }

    to {
        opacity: 1;
    }
}

.middle-ring {
    width: 85%;
    height: 85%;
}

.inner-ring {
    width: 70%;
    height: 70%;
}

.segment-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.segment {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: left center;
    height: 6px;
    background-color: #10b981;
    border-radius: 3px;
    opacity: 0.15;
    transition: opacity 0.5s ease, filter 0.5s ease, height 0.3s ease;
}

.segment.active {
    opacity: 0.9;
    filter: drop-shadow(0 0 4px currentColor);
    height: 8px;
}

.segment.active-current {
    opacity: 1;
    filter: drop-shadow(0 0 8px currentColor);
    height: 10px;
    animation: segment-pulse 1s infinite alternate;
}

@keyframes segment-pulse {
    from {
        filter: drop-shadow(0 0 5px currentColor);
    }

    to {
        filter: drop-shadow(0 0 10px currentColor);
    }
}

.segment.closed {
    background-color: #ff4d4d;
}

.segment.drawing {
    background-color: #f59e0b;
}

.tick-marks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tick {
    position: absolute;
    width: 1px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    transform-origin: center bottom;
}

.tick.major {
    height: 10px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.15);
}

.tick.active {
    background-color: rgba(255, 255, 255, 0.4);
}

.block-highlight {
    position: absolute;
    top: 90px;
    color: #f59e0b;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 5;
    background-color: rgba(15, 23, 42, 0.7);
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(4px);
    font-family: 'Space Grotesk', sans-serif;
}

.highlight-number {
    font-size: 1.8rem;
    margin-bottom: 2px;
}

.status-indicator {
    position: absolute;
    bottom: 90px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    font-family: 'Space Grotesk', sans-serif;
}

.status-open {
    background-color: rgba(0, 50, 20, 0.7);
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.status-closed {
    background-color: rgba(50, 0, 0, 0.7);
    color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

.status-drawing {
    background-color: rgba(50, 40, 0, 0.7);
    color: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
    border-radius: 50%;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    border-top-color: #f59e0b;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-text {
    color: #f59e0b;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.clock-stats {
    display: flex;
    gap: 4rem;
    text-align: center;
}

.clock-stat {
    color: #e2e8f0;
}

.clock-stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: 500;
}

.clock-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

/* Betting Form */
.betting-section {
    background: #161b36;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2f52;
}

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

.section-badge {
    background: #f59e0b;
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-label i {
    color: #f59e0b;
}

.form-input {
    width: 100%;
    background: #1a2332;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.2s;
}

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

.form-input::placeholder {
    color: #64748b;
}

.input-help {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.input-help i {
    color: #f59e0b;
}

.input-group {
    display: flex;
    gap: 0.75rem;
}

.random-btn {
    background: #374151;
    color: #f59e0b;
    border: 1px solid #4b5563;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.random-btn:hover {
    background: #4b5563;
}

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

.modal-content {
    background: #1a2332 !important;
    border: 1px solid #2a2f52 !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    width: 75vw !important;
    min-width: 75vw !important;
    max-width: 1200px !important;
    max-height: 80vh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2a2f52;
    padding-bottom: 1rem;
}

.modal-title {
    color: #f59e0b;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    background: #0a0e1a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #2a2f52;
}

/* Custom scrollbar for modal - Force wide scrollbar */
.modal-body::-webkit-scrollbar {
    width: 40px !important;
    height: 40px !important;
}

.modal-body::-webkit-scrollbar-track {
    background: #0a0e1a !important;
    border-radius: 10px !important;
    border: 2px solid #2a2f52 !important;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #4b5563 !important;
    border-radius: 10px !important;
    border: 3px solid #0a0e1a !important;
    min-height: 50px !important;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280 !important;
}

.modal-body::-webkit-scrollbar-thumb:active {
    background: #f59e0b !important;
}

/* Firefox scrollbar styling for modal */
.modal-body {
    scrollbar-width: thick !important;
    scrollbar-color: #4b5563 #0a0e1a !important;
}

.pills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* Ensure remove buttons are always visible and clickable */
.pills-grid .number-pill .remove-btn {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.number-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161b36;
    color: #f59e0b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #2a2f52;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 100px;
    font-size: 1.1rem;
}

.number-pill:hover {
    background: #1f2544;
    border-color: #374151;
}

.number-pill .remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 0.375rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.number-pill .remove-btn:hover {
    background: #dc2626;
    transform: scale(1.15);
}

.number-pill .remove-btn:active {
    transform: scale(0.95);
}

.btn-secondary {
    background: #374151;
    color: #f59e0b;
    border: 1px solid #4b5563;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-close {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-close:hover {
    background: #dc2626;
}

.place-bet-btn {
    width: 100%;
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.place-bet-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* Tabbed Interface Styles */
.number-tabs-container {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.tab-navigation {
    display: flex;
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: #64748b;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #334155;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: #1e293b;
    color: #f1f5f9;
}

.tab-btn.active {
    background: #f59e0b;
    color: #000;
    font-weight: 600;
}

.tab-content {
    padding: 0;
}

.tab-panel {
    display: none;
    padding: 1.5rem;
}

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

.tab-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tab-label {
    color: #f1f5f9;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tab-input {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #334155;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.tab-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.tab-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.tab-input-group .tab-input {
    flex: 1;
}

.tab-generate-btn {
    background: #f59e0b;
    color: #000;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-generate-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.tab-range-group {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.range-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.range-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
}

.range-separator {
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}

.tab-textarea {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #334155;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    resize: vertical;
    min-height: 100px;
}

.tab-textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.1);
}

.tab-help {
    color: #64748b;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.generated-numbers-display {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 1rem;
}

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

.numbers-count {
    color: #f59e0b;
    font-weight: 600;
    font-size: 0.875rem;
}

.clear-all-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.clear-all-btn:hover {
    background: #dc2626;
}

.numbers-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.number-preview-pill {
    background: #161b36;
    color: #f59e0b;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #2a2f52;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.number-preview-pill .remove-preview-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    margin-left: 0.25rem;
    transition: all 0.2s;
}

.number-preview-pill .remove-preview-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    /* Main Container */
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }

    /* Clock Section */
    .clock-container {
        width: 280px;
        height: 280px;
    }

    .clock-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .clock-stat-value {
        font-size: 1.125rem;
    }

    /* Jackpot Banner */
    .jackpot-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .jackpot-left,
    .jackpot-right {
        font-size: 0.875rem;
    }

    .jackpot-amount {
        font-size: 1rem;
    }

    /* Betting Form */
    .betting-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Tab System */
    .tab-navigation {
        flex-wrap: wrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 1 1 45%;
        min-width: 45%;
        white-space: nowrap;
    }

    .tab-range-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .range-separator {
        align-self: center;
        margin: 0.25rem 0;
    }

    .tab-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .display-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    /* Active Bets Section */
    .active-bets-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .active-bets-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .active-bets-title {
        font-size: 1.25rem;
    }

    /* Betting Phase Grid */
    .betting-phase-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

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

    /* Better touch targets */
    .tab-input,
    .form-control,
    .form-input,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        min-height: 44px;
        padding: 0.875rem 1rem;
        -webkit-appearance: none;
        border-radius: 8px;
    }

    /* Mobile form improvements */
    .form-input {
        background: #1a2332;
        border: 1px solid #2a2f52;
        color: #ffffff;
        width: 100%;
        transition: border-color 0.3s ease;
    }

    .form-input:focus {
        outline: none;
        border-color: #f59e0b;
        box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        color: #cbd5e1;
        font-weight: 500;
        font-size: 0.9rem;
    }

    /* Button improvements */
    .btn,
    .place-bet-btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .place-bet-btn {
        width: 100%;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        border: none;
        color: #1e293b;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .place-bet-btn:hover,
    .place-bet-btn:active {
        background: linear-gradient(135deg, #d97706, #b45309);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }

    .tab-generate-btn,
    .random-btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    /* Tab input groups mobile */
    .tab-input-group {
        gap: 0.75rem;
    }

    .tab-input {
        flex: 1;
        min-width: 0;
    }

    /* Error message mobile */
    .error-message {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    /* Autocomplete and autofill styling */
    input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #1a2332 inset;
        -webkit-text-fill-color: #ffffff;
        border-color: #2a2f52 !important;
    }
}

/* Active Bets Section */
.active-bets-section {
    margin-top: 3rem;
    background: #161b36;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2f52;
}

.active-bets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.active-bets-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* New Active Bets Grid Styling */
.active-bets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bet-button {
    background: linear-gradient(145deg, #1a2332, #161b2b);
    border: 1px solid #2a2f52;
    border-radius: 8px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.bet-quantity {
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 50%;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Keep the table for larger screens but hide on mobile */
.active-bets-table-container {
    display: none;
}

@media (min-width: 900px) {
    .active-bets-table-container {
        display: block;
        overflow-x: auto;
        margin-top: 1.5rem;
    }
}

.active-bets-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.active-bets-table th,
.active-bets-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.active-bets-table th {
    background: #161b36;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #2a2f52;
}

.active-bets-table td {
    color: #cbd5e1;
    font-size: 0.98rem;
    border-bottom: 1px solid #2a2f52;
}

.active-bets-table tr:last-child td {
    border-bottom: none;
}

.active-bets-table .bet-number {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.1rem;
}

.active-bets-table .bet-qty {
    font-weight: 600;
    color: #10b981;
}

.active-bets-table .bet-amount {
    color: #f59e0b;
}

.active-bets-table .bet-email {
    color: #64748b;
    font-size: 0.95rem;
}

/* Previous Winners Section */
.winners-section {
    margin-top: 3rem;
    background: #161b36;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #2a2f52;
}

.winners-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.winners-table-container {
    overflow-x: auto;
}

.winners-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.winners-table th,
.winners-table td {
    padding: 0.75rem 1rem;
    text-align: left;
}

.winners-table th {
    background: #161b36;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #2a2f52;
}

.winners-table td {
    color: #cbd5e1;
    font-size: 0.98rem;
    border-bottom: 1px solid #2a2f52;
}

.winners-table tr:last-child td {
    border-bottom: none;
}

.winners-table .winner-block {
    font-weight: 700;
    color: #f59e0b;
    font-size: 1.1rem;
}

.winners-table .winner-number {
    font-weight: 700;
    color: #10b981;
}

.winners-table .winner-payout {
    color: #f59e0b;
}

.winners-table .winner-date {
    color: #64748b;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {

    .active-bets-table th,
    .active-bets-table td,
    .winners-table th,
    .winners-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
    }
}

/* --- MOBILE FRIENDLY ENHANCEMENTS --- */

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10000;
    position: relative;
    padding: 4px;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background: #f59e0b;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .jackpot-content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .clock-container {
        width: 95vw;
        height: 95vw;
        max-width: 100vw;
        max-height: 100vw;
    }

    .section-title,
    .active-bets-title,
    .winners-title {
        font-size: 1.2rem;
    }

    .form-input,
    .random-btn,
    .place-bet-btn {
        font-size: 1rem;
        padding: 0.75rem 0.75rem;
    }

    .betting-section,
    .active-bets-section,
    .winners-section {
        padding: 1rem;
    }

    .active-bets-table th,
    .active-bets-table td,
    .winners-table th,
    .winners-table td {
        padding: 0.5rem 0.5rem;
        font-size: 0.95rem;
    }

    .navbar,
    nav {
        padding: 0.5rem 0;
    }

    .nav-container {
        flex-direction: row;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 0.7rem;
    }
}

@media (max-width: 600px) {
    .main-container {
        padding: 0.5rem;
    }

    .betting-section,
    .active-bets-section,
    .winners-section {
        padding: 0.5rem;
    }

    .section-title,
    .active-bets-title,
    .winners-title {
        font-size: 1rem;
    }

    .form-input,
    .random-btn,
    .place-bet-btn {
        font-size: 0.95rem;
        padding: 0.5rem 0.5rem;
    }

    .clock-container {
        width: 90vw;
        height: 90vw;
    }

    .logo {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.6rem;
    }
}


@media (max-width: 900px) {
    .navbar .nav-menu {
        display: none !important;
    }

    .navbar .auth-container {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .navbar .nav-menu {
        display: none !important;
    }

    .navbar .auth-container {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }
}

/* Golden Ticket Input Styling */
.golden-ticket-input {
    background: linear-gradient(120deg, rgba(245, 158, 11, 0.05) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 2px solid #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.golden-ticket-input::placeholder {
    color: rgba(245, 158, 11, 0.6);
}

.golden-ticket-input:focus {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Additional Mobile Responsiveness */
@media (max-width: 900px) {
    .clock-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .input-group {
        flex-direction: column;
    }

    .random-btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .betting-phase-grid {
        grid-template-columns: 1fr !important;
    }

    .active-bets-section,
    .winners-section {
        margin-top: 1.5rem;
    }
}

@media (max-width: 600px) {
    .clock-stats {
        gap: 1rem;
    }

    .clock-stat-value {
        font-size: 1.2rem;
    }

    .clock-stat-label {
        font-size: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    [style*="padding: 0 2rem"] {
        padding: 0 1rem !important;
    }

    .block-highlight {
        top: 70px;
        font-size: 0.9rem;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .status-indicator {
        bottom: 70px;
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Backdrop overlay for when drawer is open */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
}

.overlay.active {
    display: block;
}

/* Responsive tables for small screens */
@media (max-width: 600px) {

    .active-bets-table,
    .winners-table {
        display: block;
        width: 100%;
    }

    .active-bets-table thead,
    .winners-table thead {
        display: none;
    }

    .active-bets-table tbody,
    .winners-table tbody,
    .active-bets-table tr,
    .winners-table tr {
        display: block;
        width: 100%;
    }

    .active-bets-table td,
    .winners-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .active-bets-table td::before,
    .winners-table td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        color: #f59e0b;
    }
}

/* Authentication Styles */
.auth-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #cbd5e1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border: 1px solid #334155;
}

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

.modal-header h2 {
    color: #f1f5f9;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #f1f5f9;
}

.auth-form {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f1f5f9;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 1rem;
}

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

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-secondary {
    background: transparent;
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.btn-secondary:hover {
    background: #f59e0b;
    color: white;
}

.full-width {
    width: 100%;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.link-button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.875rem;
    display: block;
    margin: 0.5rem auto;
}

.link-button:hover {
    color: #f59e0b;
}

.message {
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    border-left: 4px solid #10b981;
}

.message-error {
    border-left: 4px solid #ef4444;
}

.message-info {
    border-left: 4px solid #3b82f6;
}

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

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

</style>