/* ========================================
   FALCON LOTTERY - COMPLETE STYLES
   ======================================== */

:root {
    --lottery-gold: #FFD700;
    --lottery-orange: #FF8C00;
    --lottery-green: #10B981;
    --lottery-red: #EF4444;
    --lottery-purple: #8B5CF6;
}

/* ========================================
   LOTTERY MAIN CONTAINER
   ======================================== */

.lottery-main {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--dark-bg);
}

.lottery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.lottery-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.lottery-logo-display {
    margin: 30px 0;
}

.lottery-logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 60px rgba(255, 215, 0, 0.8);
    }
}

.lottery-name {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    margin: 20px 0;
}

.lottery-subtitle {
    color: var(--lottery-gold);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========================================
   JACKPOT SECTION
   ======================================== */

.jackpot-section {
    margin: 40px 0;
}

.jackpot-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.1));
    border: 3px solid var(--lottery-gold);
    border-radius: 24px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
}

.jackpot-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 215, 0, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.jackpot-label {
    font-size: 1.2rem;
    color: var(--lottery-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.jackpot-amount {
    font-size: 4rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

.jackpot-usd {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 10px 0 30px;
    position: relative;
    z-index: 1;
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.countdown-timer strong {
    color: var(--lottery-gold);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
}

/* ========================================
   ROUND STATS
   ======================================== */

.round-stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.round-stats-section .stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.round-stats-section .stat-card:hover {
    border-color: var(--lottery-gold);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.round-stats-section .stat-icon {
    font-size: 3rem;
}

.round-stats-section .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.round-stats-section .stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

/* ========================================
   BUY TICKETS SECTION
   ======================================== */

.section-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.buy-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 44, 191, 0.1));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
}

.header-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h2 {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin: 0;
}

.card-body {
    padding: 30px;
}

.ticket-info-box {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.ticket-info-box .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.ticket-info-box .info-row:last-child {
    border-bottom: none;
}

.ticket-info-box .info-row strong {
    color: var(--lottery-gold);
    font-family: 'Orbitron', sans-serif;
}

.input-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.qty-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.5);
}

.qty-input {
    width: 100px;
    height: 60px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    color: #f8f8f8;  /* ✅ Bright cyan color */
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);  /* ✅ Added glow */
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-select {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 10px 20px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    border-color: var(--lottery-gold);
    background: rgba(255, 215, 0, 0.1);
    color: var(--lottery-gold);
}

.cost-summary {
    background: var(--dark-bg);
    border-radius: 16px;
    padding: 25px;
    margin: 30px 0;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.cost-row strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.cost-row.bonus strong {
    color: var(--lottery-green);
}

.cost-row.total {
    border-top: 2px solid var(--border-color);
    margin-top: 10px;
    padding-top: 20px;
}

.cost-row.total strong {
    color: var(--lottery-gold);
    font-size: 1.5rem;
}

.balance-display {
    text-align: center;
    color: var(--text-secondary);
    margin: 20px 0;
}

.balance-display span {
    color: var(--primary-color);
    font-weight: 700;
}

.buy-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
}

/* ========================================
   INFO SIDEBAR
   ======================================== */

.info-sidebar .info-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
}

.info-sidebar .info-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

.play-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.play-step {
    display: flex;
    gap: 15px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.prize-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prize-tier {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--dark-bg);
    border-radius: 8px;
    border-left: 4px solid var(--lottery-gold);
}

.prize-tier.burn {
    border-left-color: var(--lottery-red);
}

.tier-percent {
    color: var(--lottery-gold);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.info-sidebar .info-card.warning {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--lottery-red);
}

/* ========================================
   YOUR TICKETS SECTION
   ======================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 30px;
}

.section-header h2 {
    font-size: 2rem;
    font-family: 'Orbitron', sans-serif;
}

.view-all-btn {
    padding: 12px 24px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    border-color: var(--primary-color);
}

.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.ticket-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.ticket-card:hover {
    transform: translateY(-5px);
}

.ticket-card.winner {
    border-color: var(--lottery-gold);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.ticket-header {
    margin-bottom: 20px;
}

.ticket-id {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ticket-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.ticket-number {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    color: #FFFFFF !important;  /* ✅ Force white color */
}

.ticket-card.winner .ticket-number {
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    animation: ticketPulse 1.5s ease-in-out infinite;
}

@keyframes ticketPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ticket-status {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
}

.ticket-status.winner {
    background: rgba(255, 215, 0, 0.2);
    color: var(--lottery-gold);
}

.ticket-status.claimed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--lottery-green);
}

.ticket-status.pending {
    background: rgba(139, 92, 246, 0.2);
    color: var(--lottery-purple);
}

.claim-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.claim-btn:hover {
    transform: scale(1.05);
}

.claim-all-btn {
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.claim-all-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   RESULTS SECTION
   ======================================== */

.results-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.round-label {
    font-size: 1.5rem;
    font-weight: 700;
}

.results-status {
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--lottery-green);
    border-radius: 50px;
}

.winning-numbers {
    text-align: center;
    margin: 40px 0;
}

.numbers-label {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.numbers-display {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.number-ball {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--lottery-gold), var(--lottery-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #000;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .lottery-name {
        font-size: 2rem;
    }
    
    .jackpot-amount {
        font-size: 2.5rem;
    }
    
    .tickets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .jackpot-amount {
        font-size: 2rem;
    }
    
    .ticket-number {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}