/* Lottery Section Styles - Integrated with MoonYetis Ecosystem Design */

/* ===================================== */
/* LOTTERY WIDGET CONTAINER */
/* ===================================== */

.lottery-widget-container {
    margin: 2rem 0;
    padding: 0;
    background: transparent;
}

.lottery-widget {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===================================== */
/* WALLET CONNECTION SECTION */
/* ===================================== */

.lottery-wallet-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wallet-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 350px;
}

.wallet-status-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wallet-status-card.connected {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.wallet-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.wallet-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.wallet-status-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.wallet-address-text {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.wallet-connect-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.wallet-connect-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wallet-connect-btn:disabled {
    background: rgba(76, 175, 80, 0.8);
    cursor: not-allowed;
}

/* ===================================== */
/* PURCHASE SECTION */
/* ===================================== */

.lottery-purchase-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.purchase-card,
.user-tickets-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.purchase-card:hover,
.user-tickets-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.purchase-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ticket-price {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

.purchase-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.quantity-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    min-width: 3rem;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.total-cost {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.total-cost span {
    color: #ffffff;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.purchase-btn {
    width: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* ===================================== */
/* USER TICKETS SECTION */
/* ===================================== */

.user-tickets-card h5 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tickets-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.user-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.875rem;
}

.ticket-number {
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.ticket-amount {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'JetBrains Mono', monospace;
}

.ticket-status.confirmed {
    color: #4CAF50;
}

.ticket-status.pending {
    color: #FFC107;
}

/* ===================================== */
/* RECENT WINNERS SECTION */
/* ===================================== */

.recent-winners-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.recent-winners-section h4 {
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.winner-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.winner-position {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFD700;
    min-width: 2rem;
    text-align: center;
}

.winner-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.winner-week {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.winner-wallet {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
}

.winner-prize {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4CAF50;
    font-family: 'JetBrains Mono', monospace;
}

.winner-loading,
.no-winners {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

/* ===================================== */
/* FALLBACK MESSAGE */
/* ===================================== */

.lottery-fallback {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(20px);
}

.fallback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.lottery-fallback h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.lottery-fallback p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.fallback-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.fallback-stats .stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fallback-stats .label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.fallback-stats .value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* ===================================== */
/* NOTIFICATIONS */
/* ===================================== */

.lottery-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lottery-notification.show {
    transform: translateX(0);
}

.lottery-notification.lottery-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.lottery-notification.lottery-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.lottery-notification.lottery-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* ===================================== */
/* POWERBALL NUMBER SELECTOR */
/* ===================================== */

.powerball-number-selector {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

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

.section-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.section-title.powerball-title {
    color: #ff6b6b;
}

.selection-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Number Grids */
.number-grid {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.main-numbers {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    max-width: 100%;
}

.powerball-numbers {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    max-width: 520px; /* Smaller grid for 26 numbers */
}

.number-btn {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'JetBrains Mono', monospace;
}

.number-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.number-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.number-btn.powerball-selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.number-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Selected Numbers Preview */
.selected-numbers-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 60px;
}

.preview-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.preview-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.preview-number.powerball-preview {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.preview-placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    font-style: italic;
}

/* Selector Controls */
.selector-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.control-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.quick-pick-btn:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
}

.clear-selection-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #ff6b6b;
}

/* Ticket Summary */
.ticket-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.summary-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.selection-status {
    justify-content: center;
}

.selection-status .status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-style: italic;
}

.selection-status.complete .status-text {
    color: #4CAF50;
    font-weight: 600;
    font-style: normal;
}

/* ===================================== */
/* LOTTERY ACTIONS GRID */
/* ===================================== */

.lottery-stats-panel {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.lottery-stat-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lottery-stat-value {
    display: block;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.lottery-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.lottery-action-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.lottery-action-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lottery-action-card:hover .action-image {
    transform: scale(1.05);
}

.action-image-container {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.action-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ===================================== */
/* RESPONSIVE DESIGN */
/* ===================================== */

@media (max-width: 768px) {
    .lottery-purchase-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wallet-status-card {
        flex-direction: column;
        text-align: center;
        min-width: auto;
        gap: 1rem;
    }
    
    .wallet-info {
        align-items: center;
    }
    
    .fallback-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lottery-notification {
        left: 20px;
        right: 20px;
        transform: translateY(-100%);
        max-width: none;
    }
    
    .lottery-notification.show {
        transform: translateY(0);
    }
    
    /* Powerball Selector Mobile Styles */
    .powerball-number-selector {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .main-numbers {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .powerball-numbers {
        grid-template-columns: repeat(6, 1fr);
        max-width: 100%;
    }
    
    .number-btn {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .selector-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .control-btn {
        width: 100%;
        justify-content: center;
    }
    
    .selected-numbers-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .preview-label {
        min-width: auto;
    }
    
    /* Lottery Actions Grid Mobile Styles */
    .lottery-stats-panel {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .lottery-actions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 2rem 0;
    }
    
    .lottery-action-card {
        min-height: 320px;
    }
    
    .action-image-container {
        height: 100%;
    }
}

@media (max-width: 480px) {
    .lottery-widget {
        gap: 1rem;
    }
    
    .purchase-card,
    .user-tickets-card,
    .recent-winners-section {
        padding: 1rem;
    }
    
    .quantity-selector {
        gap: 0.5rem;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .quantity-display {
        font-size: 1.25rem;
        min-width: 2.5rem;
    }
}

/* ========================= LOTTERY MODAL STYLES ========================= */

.lottery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10010; /* Higher than wallet-connection-hub and product-modal */
    animation: fadeIn 0.3s ease;
}

.lottery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lottery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.lottery-modal-content {
    position: relative;
    background: #2b2b2b;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto;
}

.lottery-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.lottery-modal-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #d4af37;
    text-transform: uppercase;
}

.lottery-modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #d4af37;
    cursor: pointer;
    transition: transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lottery-modal-close:hover {
    transform: scale(1.2);
    color: #f0c14b;
}

.lottery-modal-body {
    padding: 2rem;
}

.lottery-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Powerball Number Selector Styles */
.powerball-number-selector {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.number-selector-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.selector-title {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #d4af37;
    text-transform: uppercase;
    text-align: center;
}

.main-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.powerball-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(45px, 1fr));
    gap: 8px;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.number-btn {
    width: 45px;
    height: 45px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.number-btn:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.05);
}

.number-btn.selected {
    background: #d4af37;
    border-color: #f0c14b;
    color: #2b2b2b;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.number-btn.selected:hover {
    background: #f0c14b;
    transform: scale(1.15);
}

.powerball-grid .number-btn.selected {
    background: #d4af37;
    border-color: #f0c14b;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.selected-numbers-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.selected-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.selected-numbers,
.selected-powerball {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.selected-number {
    width: 32px;
    height: 32px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2b2b2b;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.selected-powerball .selected-number {
    background: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.empty-selection {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.9rem;
}

.selection-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.quick-pick-btn,
.clear-selection-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-pick-btn:hover,
.clear-selection-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.ticket-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 1.5rem;
}

.preview-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #d4af37;
    margin-bottom: 1rem;
}

.preview-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.preview-main-numbers,
.preview-powerball-number {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.preview-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 120px;
}

.preview-values {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
    text-align: right;
}

.preview-values.powerball {
    color: #d4af37;
}

.ticket-cost {
    text-align: center;
    font-size: 1.1rem;
    color: #d4af37;
    margin-top: 1rem;
}

.cancel-btn,
.purchase-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.cancel-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.purchase-btn {
    background: #d4af37;
    color: #2b2b2b;
}

.purchase-btn:hover:not(:disabled) {
    background: #f0c14b;
    transform: translateY(-2px);
}

.purchase-btn:disabled {
    background: rgba(212, 175, 55, 0.3);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .lottery-modal-content {
        width: 95vw;
        margin: auto;
        max-height: 95vh;
    }
    
    .lottery-modal.show {
        padding: 0.5rem;
    }
    
    .lottery-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .lottery-modal-body {
        padding: 1.5rem;
    }
    
    .lottery-modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }
    
    .lottery-modal-title {
        font-size: 1.25rem;
    }
    
    .main-numbers-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
    }
    
    .powerball-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .number-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .selection-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .quick-pick-btn,
    .clear-selection-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .preview-main-numbers,
    .preview-powerball-number {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .preview-values {
        text-align: left;
    }
}

/* ========================= RESULTS MODAL STYLES ========================= */

.results-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

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

.results-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #ffffff;
}

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

.winning-numbers-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.main-winning-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.winning-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border: 3px solid #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    animation: numberReveal 0.6s ease;
}

.powerball-winning-number .winning-number {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border-color: #ff4757;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    position: relative;
}

.powerball-winning-number .winning-number::after {
    content: 'PB';
    position: absolute;
    bottom: -20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff4757;
}

.jackpot-info {
    text-align: center;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.jackpot-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.next-drawing {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-tickets-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

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

.section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.total-score {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.tickets-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-ticket {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.user-ticket:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.ticket-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.ticket-score {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ticket-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.user-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid transparent;
}

.user-number.main {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.user-number.powerball {
    background: rgba(255, 165, 2, 0.3);
    color: #ffa502;
}

.user-number.match {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-color: #4CAF50;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    animation: matchGlow 1s ease-in-out infinite alternate;
}

.no-tickets-message {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-tickets-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-tickets-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.buy-tickets-link {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.buy-tickets-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.prize-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-breakdown h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
}

.prize-tiers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

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

.tier-match {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.tier-points {
    font-weight: 600;
    color: #ffa502;
    font-size: 0.9rem;
}

.refresh-btn,
.close-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn {
    background: linear-gradient(135deg, #4834d4, #686de0);
    border-color: #4834d4;
    color: #ffffff;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #3742fa, #5352ed);
    box-shadow: 0 5px 15px rgba(72, 52, 212, 0.3);
    transform: translateY(-2px);
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Animations for results */
@keyframes numberReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(180deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotateY(90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes matchGlow {
    0% {
        box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), 0 0 30px rgba(76, 175, 80, 0.4);
    }
}

/* ===================================== */
/* RESULTS MODAL STYLES - EMOTIONAL EXPERIENCE */
/* ===================================== */

/* Prize Showcase Section */
.prize-showcase-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.prize-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.prize-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.prize-image {
    max-width: 200px;
    max-height: 150px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.prize-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.prize-glow-effect {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, #FFD700, #FFA500, #FF8C00, #FFD700);
    border-radius: 20px;
    opacity: 0.3;
    animation: rotate 3s linear infinite;
    z-index: -1;
}

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

.prize-value-container {
    position: relative;
    z-index: 1;
}

.prize-amount-usd {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.prize-amount-fb {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
}

/* Lottery Status Section */
.lottery-status-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    animation: pulse 2s infinite;
}

.status-badge.active {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

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

.status-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.countdown-container {
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: #ffffff;
    min-width: 60px;
}

.countdown-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* YouTube Video Section */
.youtube-video-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.video-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

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

#youtube-link-input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.875rem;
    min-width: 250px;
}

#update-video-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    font-weight: 600;
}

.video-container {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-video-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1rem;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Participants Section */
.participants-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.participants-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1.1rem;
}

.transparency-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    color: #4CAF50;
    font-weight: 600;
}

.transparency-icon {
    font-size: 1rem;
}

.participants-count {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.participants-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.participant-wallet {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.participant-tickets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ticket-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
}

.ticket-preview.revealed {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.ticket-preview.hidden {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
}

/* ========================= PAYMENT MODAL STYLES ========================= */

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-section h4 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-section p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
}

.payment-amount {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #4CAF50 !important;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

.payment-address-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.payment-address {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 8px;
    color: #FFD700;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    word-break: break-all;
    border: 1px solid rgba(255, 215, 0, 0.3);
    min-width: 200px;
}

.copy-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.payment-status {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-align: center;
    padding: 0.75rem;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.payment-countdown {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

/* Mobile responsiveness for results modal */
@media (max-width: 768px) {
    .prize-showcase-section {
        padding: 1.5rem 1rem;
    }
    
    .prize-amount-usd {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .time-unit {
        padding: 0.5rem 0.75rem;
        min-width: 50px;
        font-size: 0.875rem;
    }
    
    .video-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-controls {
        justify-content: stretch;
    }
    
    #youtube-link-input {
        min-width: 100%;
    }
    
    .participants-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .participant-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .participant-tickets {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-winning-numbers {
        gap: 0.25rem;
    }
    
    .winning-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .jackpot-amount {
        font-size: 1.25rem;
    }
    
    .prize-tiers {
        gap: 0.25rem;
    }
    
    .prize-tier {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .tier-match,
    .tier-points {
        font-size: 0.8rem;
    }
    
    .user-number {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .lottery-modal-footer {
        gap: 0.5rem;
    }
    
    .refresh-btn,
    .close-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}