/* Mobile-First Responsive Landing Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background overlay */
.background-overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 30% 20%, rgba(139, 0, 0, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(220, 20, 60, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, #000 0%, #1a0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.background-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.background-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
    letter-spacing: 2px;
}

.background-features {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    opacity: 0.4;
}

.feature-text {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Top app bar */
.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(1rem, 3vw, 1.5rem);
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bitcoin-logo-small {
    width: clamp(30px, 8vw, 40px);
    height: clamp(30px, 8vw, 40px);
    background: linear-gradient(45deg, #f7931a, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
}

.app-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Main modal popup */
.modal-popup {
    position: relative;
    width: 100%;
    max-width: min(95vw, 400px);
    background: 
        linear-gradient(135deg, #8b0000 0%, #660000 40%, #330000 80%, #000 100%);
    border-radius: clamp(1rem, 4vw, 2rem);
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.8rem);
    box-shadow: 
        0 30px 60px rgba(255, 0, 0, 0.4),
        0 0 0 1px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 100;
    position: relative;
    margin-top: clamp(2rem, 5vw, 3rem);
    animation: modalGlow 3s ease-in-out infinite;
}

/* Close button */
.close-button {
    position: absolute;
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    width: clamp(28px, 7vw, 35px);
    height: clamp(28px, 7vw, 35px);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-button:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.close-button:active {
    transform: scale(0.95);
}

.close-icon {
    color: #fff;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 300;
}

/* Clean Money Display */
.money-display-clean {
    text-align: center;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.currency-label-clean {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 600;
    color: #ffd700;
    margin-bottom: clamp(0.5rem, 2vw, 0.8rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}

.amount-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
    flex-wrap: wrap;
}

.amount-image {
    max-width: clamp(200px, 40vw, 300px);
    height: auto;
    display: block;
}

.in-image {
    max-width: clamp(60px, 8vw, 100px);
    height: auto;
    display: block;
}

.bitcoin-image {
    max-width: clamp(200px, 40vw, 300px);
    height: auto;
    display: block;
}

.redemption-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    font-weight: 500;
    color: #f7931a;
    opacity: 0.9;
    font-style: italic;
    text-shadow: 
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
}


/* Casino-style animations */
@keyframes neonGlow {
    0% { 
        text-shadow: 
            0 0 10px #ffd700,
            0 0 20px #ffd700,
            0 0 30px #ffd700;
    }
    100% { 
        text-shadow: 
            0 0 15px #ffd700,
            0 0 30px #ffd700,
            0 0 45px #ffd700,
            0 0 60px #ffd700;
    }
}

@keyframes casinoShine {
    0% { 
        background-position: 0% 50%;
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(255, 69, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4);
    }
    50% { 
        background-position: 100% 50%;
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 50px rgba(255, 69, 0, 0.8),
            0 0 70px rgba(255, 215, 0, 0.6);
    }
    100% { 
        background-position: 0% 50%;
        text-shadow: 
            0 0 20px rgba(255, 0, 0, 0.8),
            0 0 40px rgba(255, 69, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4);
    }
}

@keyframes casinoPulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.05);
    }
}

@keyframes casinoBlur {
    0% { 
        filter: blur(2px);
        opacity: 0.7;
    }
    100% { 
        filter: blur(4px);
        opacity: 0.4;
    }
}

@keyframes bitcoinPulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.08);
    }
}

@keyframes bitcoinGlow {
    0% { 
        text-shadow: 
            0 0 15px rgba(247, 147, 26, 0.8),
            0 0 30px rgba(247, 147, 26, 0.6),
            0 0 45px rgba(247, 147, 26, 0.4);
    }
    100% { 
        text-shadow: 
            0 0 20px rgba(247, 147, 26, 1),
            0 0 40px rgba(247, 147, 26, 0.8),
            0 0 60px rgba(247, 147, 26, 0.6),
            0 0 80px rgba(247, 147, 26, 0.4);
    }
}

@keyframes bitcoinBlur {
    0% { 
        filter: blur(1px);
        opacity: 0.6;
    }
    100% { 
        filter: blur(3px);
        opacity: 0.3;
    }
}

@keyframes subtleGlow {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(247, 147, 26, 0.6);
    }
    50% { 
        text-shadow: 0 0 15px rgba(247, 147, 26, 0.8);
    }
}

/* Trophy icon */
.trophy-icon {
    margin: 0 auto clamp(1rem, 3vw, 2rem);
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    background: 
        linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    border-radius: clamp(1rem, 3vw, 1.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: trophyPulse 2s ease-in-out infinite;
}

.trophy-inner {
    font-size: clamp(2rem, 6vw, 3.5rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Congratulations section */
.congratulations-section {
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
}

.congratulations-title, .won-text {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.won-text {
    font-size: clamp(1rem, 3.5vw, 1.6rem);
    animation: wonGlow 2.5s ease-in-out infinite;
}


/* Gratis large */
.gratis-large {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    animation: gratisFlash 1.5s ease-in-out infinite;
    letter-spacing: 2px;
}

/* Description text */
.description-text {
    font-size: clamp(0.7rem, 2.5vw, 1rem);
    color: #fff;
    line-height: 1.4;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-shadow: 
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
    opacity: 0.9;
}

/* CTA Container */
.cta-container {
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.cta-button {
    width: 100%;
    background: #dc143c;
    background: linear-gradient(45deg, #dc143c, #b22222, #8b0000);
    color: #fff;
    border: none;
    padding: clamp(0.8rem, 3vw, 1.2rem) clamp(1rem, 4vw, 1.8rem);
    border-radius: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 
        0 10px 30px rgba(220, 20, 60, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: ctaPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(220, 20, 60, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.2);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.button-text {
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.button-arrow {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Disclaimer */
.disclaimer-text {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    margin-bottom: clamp(0.6rem, 1.5vw, 1rem);
    font-weight: 500;
}

/* Lucky counter */
.lucky-counter {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.lucky-number {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    animation: numberChange 3s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes modalGlow {
    0%, 100% { 
        box-shadow: 
            0 30px 60px rgba(255, 0, 0, 0.4),
            0 0 0 1px rgba(255, 69, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 35px 70px rgba(255, 0, 0, 0.5),
            0 0 0 2px rgba(255, 69, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes wonGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.6); }
}

@keyframes amountShine {
    0%, 100% { 
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
        background: linear-gradient(45deg, #00ff00, #32cd32, #228b22);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    50% { 
        text-shadow: 0 0 40px rgba(0, 255, 0, 0.9);
        background: linear-gradient(45deg, #32cd32, #00ff00, #32cd32);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

@keyframes gratisFlash {
    0%, 100% { 
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
    50% { 
        color: #ffd700;
        text-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
    }
}

@keyframes ctaPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(220, 20, 60, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 
            0 12px 35px rgba(220, 20, 60, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.15);
    }
}

@keyframes numberChange {
    0%, 85% { transform: scale(1) rotate(0deg); }
    5% { transform: scale(1.15) rotate(2deg); }
    15% { transform: scale(0.95) rotate(-2deg); }
    25% { transform: scale(1.05) rotate(1deg); }
    35% { transform: scale(1.02) rotate(-1deg); }
    45% { transform: scale(1.1) rotate(2deg); }
    55% { transform: scale(0.92) rotate(-2deg); }
    65% { transform: scale(1.03) rotate(1deg); }
    75% { transform: scale(0.98) rotate(-1deg); }
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Loading modal styles */
.loading-modal {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(135deg, #8b0000 0%, #660000 40%, #330000 80%, #000 100%);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 
        0 30px 60px rgba(255, 0, 0, 0.4),
        0 0 0 1px rgba(255, 69, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalGlow 3s ease-in-out infinite;
}

.loading-trophy {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 
        0 15px 35px rgba(255, 215, 0, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: trophyPulse 2s ease-in-out infinite;
}

.loading-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.spinner-circle {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-description {
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced mobile responsiveness */
@media (max-width: 320px) {
    .modal-popup {
        padding: clamp(1rem, 3vw, 1.5rem) clamp(0.8rem, 2.5vw, 1.2rem);
        margin-top: clamp(1rem, 3vw, 1.5rem);
        max-width: 98vw;
    }
    
    .trophy-icon {
        width: clamp(50px, 12vw, 70px);
        height: clamp(50px, 12vw, 70px);
        margin-bottom: clamp(0.8rem, 2vw, 1rem);
    }
    
    .trophy-inner {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .dollar-icon, .amount-text {
        font-size: clamp(3.5rem, 15vw, 6rem);
    }
}

@media (max-width: 280px) {
    .modal-popup {
        padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.6rem, 2vw, 1rem);
        margin-top: clamp(0.8rem, 2.5vw, 1.2rem);
        max-width: 99vw;
    }
    
    .dollar-icon, .amount-text {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    .currency-label-clean {
        font-size: clamp(0.7rem, 2.5vw, 0.9rem);
    }
}

@media (max-height: 600px) {
    .modal-popup {
        margin-top: clamp(0.5rem, 2vw, 1rem);
        padding: clamp(1rem, 3vw, 1.5rem) clamp(0.8rem, 2.5vw, 1.2rem);
    }
    
    .background-text {
        display: none;
    }
    
    .trophy-icon {
        margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
    }
    
    .description-text {
        margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    }
}

@media (max-height: 500px) {
    .modal-popup {
        margin-top: 0.5rem;
        padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.6rem, 2vw, 1rem);
    }
    
    .trophy-icon {
        width: clamp(40px, 10vw, 60px);
        height: clamp(40px, 10vw, 60px);
        margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .trophy-inner {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
    
    .congratulations-title, .won-text {
        font-size: clamp(1rem, 3vw, 1.4rem);
    }
    
    .won-text {
        font-size: clamp(0.8rem, 2.5vw, 1.2rem);
    }
}

/* iOS specific optimizations */
@supports (-webkit-touch-callout: none) {
    .cta-button {
        -webkit-appearance: none;
        border-radius: 1.5rem;
    }
    
    .modal-popup {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Android specific optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .amount-large {
        -webkit-font-feature-settings: "tnum";
        font-feature-settings: "tnum";
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .trophy-icon {
        box-shadow: 
            0 15px 35px rgba(255, 215, 0, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.2),
            inset 0 1px 4px rgba(255, 255, 255, 0.3);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .modal-popup {
        margin-top: 0.5rem;
        padding: 1.5rem 2rem;
    }
    
    .trophy-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .trophy-inner {
        font-size: 2rem;
    }
    
    .amount-large {
        font-size: 3rem;
    }
    
    .background-text {
        display: none;
    }
    
    .background-features {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
    }
    
    .close-button:hover {
        transform: none;
    }
    
    .cta-button:active {
        transform: scale(0.95);
    }
    
    .close-button:active {
        transform: scale(0.9);
    }
}
