* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c2461, #1e3799, #4a69bd);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
}

.matka-booking-container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.subtitle {
    color: #a5b1c2;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.ticket-price-info {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    border-radius: 10px;
    padding: 10px 15px;
    margin: 15px 0;
    text-align: center;
    border: 1px solid rgba(46, 204, 113, 0.3);
    font-weight: 600;
    color: #2ecc71;
}

.game-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.game-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-section {
    display: none;
}

.game-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.game-title {
    font-size: 1.3rem;
    color: #feca57;
    margin-bottom: 10px;
}

.game-description {
    font-size: 0.9rem;
    color: #a5b1c2;
    margin-bottom: 10px;
}

.payout-info {
    display: inline-block;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.ticket-selection {
    margin: 15px 0;
    text-align: center;
}

.ticket-selection label {
    display: block;
    margin-bottom: 8px;
    color: #feca57;
    font-size: 0.9rem;
}

.ticket-select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.9rem;
    text-align: center;
}

.ticket-select option {
    background-color: #1e3799;
    color: white;
}

.lucky-pick-container {
    background: rgba(155, 89, 182, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.lucky-pick-title {
    color: #9b59b6;
    font-size: 1rem;
    margin-bottom: 10px;
}

.lucky-pick-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.lucky-pick-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.lucky-pick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.clear-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.lucky-numbers {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #feca57;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lucky-number-badge {
    background: rgba(155, 89, 182, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.timer-container {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.closing-timer-container {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.2));
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    border: 2px solid rgba(155, 89, 182, 0.3);
}

.timer-title {
    color: #e74c3c;
    font-size: 1rem;
    margin-bottom: 10px;
}

.closing-timer-title {
    color: #9b59b6;
    font-size: 1rem;
    margin-bottom: 10px;
}

.countdown {
    font-size: 1.8rem;
    font-weight: 700;
    color: #feca57;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.closing-countdown {
    font-size: 1.8rem;
    font-weight: 700;
    color: #feca57;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.timer-info {
    color: #a5b1c2;
    font-size: 0.9rem;
}

.current-time {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin: 15px 0;
    font-size: 0.9rem;
}

.game-selection-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.game-time-info {
    margin-top: 10px;
    padding: 8px;
    background: rgba(155, 89, 182, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #9b59b6;
    display: none;
}

#gameSelect {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2ecc71, #1abc9c);
    color: white;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
}

#gameSelect option {
    background-color: #1abc9c;
    color: white;
}

.single-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.single-cell {
    text-align: center;
}

.single-label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.andhar-label {
    color: #ff6b6b;
}

.bahar-label {
    color: #48dbfb;
}

.single-input {
    width: 100%;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.single-input:focus {
    outline: none;
    border-color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}

.single-input.filled {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
    font-weight: 600;
}

.jodia-container {
    max-height: 400px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.jodia-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}

.jodia-cell {
    text-align: center;
}

.jodia-label {
    font-size: 0.7rem;
    color: #a5b1c2;
    margin-bottom: 2px;
}

.jodia-input {
    width: 100%;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.jodia-input:focus {
    outline: none;
    border-color: #48dbfb;
    background: rgba(72, 219, 251, 0.1);
}

.jodia-input.filled {
    background: rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
    color: #2ecc71;
    font-weight: 600;
}

.calculate-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.calculate-button:focus {
    outline: 2px solid #feca57;
    outline-offset: 2px;
}

.user-info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.user-info-form {
    background: linear-gradient(135deg, #0c2461, #1e3799);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info-title {
    color: #feca57;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.user-input-group {
    margin-bottom: 20px;
}

.user-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #a5b1c2;
    font-size: 0.9rem;
}

.user-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.user-input:focus {
    outline: none;
    border-color: #feca57;
    background: rgba(254, 202, 87, 0.1);
}

.user-info-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.user-info-btn {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.proceed-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.user-info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.user-info-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.summary-container {
    background: rgba(155, 89, 182, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid rgba(155, 89, 182, 0.3);
    display: none;
}

.summary-title {
    color: #9b59b6;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.customer-info {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.customer-info div {
    margin-bottom: 5px;
}

.customer-info div:last-child {
    margin-bottom: 0;
}

.summary-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid;
}

.andhar-summary {
    border-left-color: #ff6b6b;
}

.bahar-summary {
    border-left-color: #48dbfb;
}

.jodia-summary {
    border-left-color: #2ecc71;
}

.total-amount {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(254, 202, 87, 0.2));
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-top: 15px;
}

.total-label {
    font-size: 1rem;
    color: #a5b1c2;
    margin-bottom: 5px;
}

.grand-total {
    font-size: 2rem;
    font-weight: 700;
    color: #ff6b6b;
}

.send-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.send-button:focus {
    outline: 2px solid #feca57;
    outline-offset: 2px;
}

.payment-section {
    background: rgba(46, 204, 113, 0.15);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 2px dashed #2ecc71;
    text-align: center;
    display: none;
}

.payment-title {
    color: #2ecc71;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

#qrCodeContainer {
    margin: 20px auto;
    max-width: 250px;
    background: white;
    padding: 15px;
    border-radius: 10px;
}

#paymentInstructions {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #a5b1c2;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a5b1c2;
    font-size: 0.8rem;
}

/* Floating Scroll Buttons */
.floating-scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-scroll-btn.show {
    display: flex;
}

.floating-scroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.floating-scroll-btn.up {
    background: linear-gradient(135deg, #3498db, #2980b9);
    bottom: 90px;
}

.floating-scroll-btn.down {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Responsive */
@media (max-width: 480px) {
    .matka-booking-container {
        padding: 15px;
    }
    
    .game-tabs {
        flex-direction: column;
    }
    
    .lucky-pick-buttons {
        flex-direction: column;
    }
    
    .jodia-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .countdown {
        font-size: 1.5rem;
    }
    
    .user-info-form {
        padding: 20px;
    }
    
    .user-info-buttons {
        flex-direction: column;
    }
    
    .floating-scroll-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-scroll-btn.up {
        bottom: 75px;
    }
}