/* === BASE RESET & BODY === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #05050f;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    color: #ffffff;
    position: relative;
}

/* === ANIMATED NEON BACKGROUND === */
.neon-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,20,147,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,255,127,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(255,215,0,0.05) 0%, transparent 50%),
        #05050f;
    z-index: 0;
}

/* Animated neon grid lines */
.neon-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,20,147,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,20,147,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 6s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    from { opacity: 0.3; }
    to   { opacity: 0.8; }
}

/* === MAIN CONTENT WRAPPER === */
.content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 24px 16px;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 450px;
    max-width: 92%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter:
        drop-shadow(0 0 10px rgba(255,20,147,0.8))
        drop-shadow(0 0 30px rgba(255,20,147,0.4))
        drop-shadow(0 0 60px rgba(0,255,127,0.2));
    animation: logoPulse 3s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from {
        filter:
            drop-shadow(0 0 10px rgba(255,20,147,0.8))
            drop-shadow(0 0 30px rgba(255,20,147,0.4))
            drop-shadow(0 0 60px rgba(0,255,127,0.2));
    }
    to {
        filter:
            drop-shadow(0 0 15px rgba(255,20,147,1))
            drop-shadow(0 0 50px rgba(255,20,147,0.7))
            drop-shadow(0 0 80px rgba(0,255,127,0.4));
    }
}

/* === MARQUEE TEXT === */
.marquee-text {
    width: 100%;
    background: rgba(5,5,15,0.9);
    padding: 14px 0;
    border-top: 2px solid #ff1493;
    border-bottom: 2px solid #ff1493;
    margin-bottom: 30px;
    overflow: hidden;
    white-space: nowrap;
    color: #00ff7f;
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(13px, 3.5vw, 18px);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow:
        0 0 20px rgba(255,20,147,0.5),
        inset 0 0 20px rgba(0,255,127,0.05);
    text-shadow:
        0 0 5px #00ff7f,
        0 0 15px #00ff7f,
        0 0 30px #00ff7f;
}

.marquee-inner {
    display: inline-block;
    animation: scrollText 22s linear infinite;
    padding-left: 100%;
}

@keyframes scrollText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* === CTA BUTTON === */
.btn-wrapper {
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ref-btn {
    display: inline-block;
    background: linear-gradient(145deg, #ff1493, #cc006a);
    color: #ffffff;
    font-family: 'Bungee Shade', cursive;
    font-weight: 400;
    font-size: clamp(18px, 5vw, 26px);
    padding: clamp(14px, 3vw, 20px) clamp(30px, 8vw, 60px);
    border-radius: 80px;
    text-decoration: none;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow:
        0 0 20px rgba(255,20,147,0.8),
        0 0 40px rgba(255,20,147,0.4),
        0 0 80px rgba(255,20,147,0.2),
        inset 0 2px 5px rgba(255,255,255,0.3);
    transition: 0.3s;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    text-shadow:
        0 0 5px rgba(255,255,255,0.8),
        0 0 15px rgba(255,255,255,0.4);
    text-transform: uppercase;
    animation: btnNeonBlink 2.5s ease-in-out infinite;
}

@keyframes btnNeonBlink {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255,20,147,0.8),
            0 0 40px rgba(255,20,147,0.4),
            0 0 80px rgba(255,20,147,0.2),
            inset 0 2px 5px rgba(255,255,255,0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255,20,147,1),
            0 0 60px rgba(255,20,147,0.7),
            0 0 120px rgba(255,20,147,0.4),
            0 0 200px rgba(0,255,127,0.15),
            inset 0 2px 5px rgba(255,255,255,0.5);
    }
}

.ref-btn:hover {
    background: linear-gradient(145deg, #ff3aad, #ff1493);
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 0 40px rgba(255,20,147,1),
        0 0 80px rgba(255,20,147,0.8),
        0 0 150px rgba(0,255,127,0.3),
        inset 0 2px 8px rgba(255,255,255,0.6);
    border-color: #fff;
}

/* === FLAG SECTION === */
.flag-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flag-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
    margin-bottom: 15px;
    cursor: pointer;
}

.flag {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff1493;
    box-shadow:
        0 0 12px rgba(255,20,147,0.8),
        0 0 25px rgba(255,20,147,0.4),
        0 0 50px rgba(0,255,127,0.15);
    animation: spinLeft 10s linear infinite, flagGlow 3s ease-in-out infinite alternate;
    pointer-events: none;
}

.flag-item:nth-child(odd) .flag {
    animation-delay: 0s, 0s;
}
.flag-item:nth-child(even) .flag {
    animation-delay: 0s, 1.5s;
}

@keyframes spinLeft {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@keyframes flagGlow {
    from {
        box-shadow:
            0 0 12px rgba(255,20,147,0.8),
            0 0 25px rgba(255,20,147,0.4),
            0 0 50px rgba(0,255,127,0.1);
        border-color: #ff1493;
    }
    to {
        box-shadow:
            0 0 18px rgba(0,255,127,0.9),
            0 0 35px rgba(0,255,127,0.5),
            0 0 60px rgba(255,20,147,0.2);
        border-color: #00ff7f;
    }
}

.flag-item:active { opacity: 0.8; }

.country-name {
    margin-top: 10px;
    font-size: clamp(15px, 4.5vw, 20px);
    font-weight: 600;
    color: #ffffff;
    text-shadow:
        0 0 5px rgba(255,20,147,0.7),
        1px 1px 3px #000;
    text-align: center;
    pointer-events: none;
}

.greeting {
    font-size: clamp(13px, 4vw, 17px);
    font-weight: 600;
    color: #00ff7f;
    text-shadow:
        0 0 5px #00ff7f,
        0 0 10px rgba(0,255,127,0.5);
    margin-bottom: 2px;
    pointer-events: none;
}

/* === SEO CONTENT === */
.seo-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(5,5,15,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,20,147,0.5);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: left;
    margin-top: 50px;
    color: #ffffff;
    box-shadow:
        0 0 30px rgba(255,20,147,0.15),
        0 0 60px rgba(0,255,127,0.05),
        inset 0 0 30px rgba(255,20,147,0.03);
}

.seo-content h1 {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 400;
    color: #ffd700;
    margin-bottom: 24px;
    border-left: 5px solid #ff1493;
    padding-left: 18px;
    text-shadow:
        0 0 5px rgba(255,215,0,0.8),
        0 0 15px rgba(255,215,0,0.4),
        0 0 30px rgba(255,215,0,0.2);
    animation: neonFlicker 4s ease-in-out infinite;
}

@keyframes neonFlicker {
    0%, 90%, 100% { opacity: 1; }
    92% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.5; }
    98% { opacity: 1; }
}

.seo-content p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #e0e0f0;
}

.seo-content b {
    color: #00ff7f;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0,255,127,0.5);
}

.security-badge {
    background: rgba(255,20,147,0.1);
    border: 1px solid #ff1493;
    padding: 15px;
    border-radius: 16px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    backdrop-filter: blur(5px);
    letter-spacing: 1px;
    box-shadow:
        0 0 15px rgba(255,20,147,0.3),
        inset 0 0 15px rgba(255,20,147,0.05);
    text-shadow: 0 0 8px rgba(255,20,147,0.7);
    animation: badgePulse 2s ease-in-out infinite alternate;
}

@keyframes badgePulse {
    from {
        box-shadow: 0 0 15px rgba(255,20,147,0.3), inset 0 0 15px rgba(255,20,147,0.05);
        border-color: #ff1493;
    }
    to {
        box-shadow: 0 0 25px rgba(0,255,127,0.4), inset 0 0 20px rgba(0,255,127,0.05);
        border-color: #00ff7f;
    }
}

/* === JACKPOT TICKER === */
.jackpot-section {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto;
    padding: 18px 24px;
    background: rgba(5,5,15,0.9);
    border: 1px solid rgba(255,20,147,0.35);
    border-radius: 16px;
    box-shadow:
        0 0 20px rgba(255,20,147,0.1),
        0 0 40px rgba(0,255,127,0.05);
}

.jackpot-title {
    font-family: 'Bungee Shade', cursive;
    font-size: 15px;
    font-weight: 400;
    color: #ffd700;
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 5px rgba(255,215,0,0.8),
        0 0 15px rgba(255,215,0,0.4);
}

.ticker-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(255,20,147,0.2);
    font-size: 14px;
    color: #ccccdd;
}

.ticker-item:last-child { border-bottom: none; }
.ticker-time { color: rgba(255,255,255,0.5); min-width: 45px; font-size: 13px; }
.ticker-game { color: #ffffff; min-width: 100px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ticker-user { color: #aaaacc; flex: 1; font-family: monospace; font-size: 13px; }
.ticker-amount {
    color: #00ff7f;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0,255,127,0.7);
}

/* === REVIEW SECTION === */
.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 40px 32px;
    background: rgba(5,5,15,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0,255,127,0.25);
    border-radius: 24px;
    box-shadow:
        0 0 30px rgba(0,255,127,0.08),
        0 0 60px rgba(255,20,147,0.05);
}

.review-title {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 400;
    color: #ffd700;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow:
        0 0 5px rgba(255,215,0,0.9),
        0 0 20px rgba(255,215,0,0.5),
        0 0 40px rgba(255,215,0,0.2);
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,20,147,0.25);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.stars input { display: none; }

.stars label {
    font-size: 35px;
    color: #333355;
    cursor: pointer;
    transition: 0.15s;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: #ffd700;
    text-shadow:
        0 0 5px rgba(255,215,0,1),
        0 0 20px rgba(255,215,0,0.7),
        0 0 40px rgba(255,215,0,0.3);
}

.review-input {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-input textarea {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,20,147,0.4);
    border-radius: 30px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: none;
    height: 60px;
    transition: 0.3s;
}

.review-input textarea:focus {
    outline: none;
    border-color: #ff1493;
    background: rgba(255,20,147,0.05);
    box-shadow: 0 0 20px rgba(255,20,147,0.3);
}

.review-input textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.submit-btn {
    padding: 0 30px;
    background: linear-gradient(145deg, #ff1493, #cc006a);
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 30px;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    height: 60px;
    min-width: 120px;
    box-shadow: 0 0 15px rgba(255,20,147,0.5);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255,20,147,0.8), 0 10px 20px rgba(0,0,0,0.3);
}

.reviews-header {
    font-size: 18px;
    font-weight: 700;
    color: #00ff7f;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0,255,127,0.6);
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 280px;
}

.review-card {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: rgba(5,5,15,0.8);
    border: 1px solid rgba(255,20,147,0.3);
    border-radius: 20px;
    padding: 25px 20px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
    animation: fadeInCard 0.4s ease;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.review-card:hover {
    border-color: #ff1493;
    box-shadow:
        0 0 20px rgba(255,20,147,0.25),
        0 0 40px rgba(0,255,127,0.08);
    transform: translateY(-3px);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff1493, #00ff7f);
    border: 2px solid #ff1493;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 0 12px rgba(255,20,147,0.5);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: #ff1493;
    font-size: 15px;
    text-shadow: 0 0 6px rgba(255,20,147,0.5);
}

.review-date {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-family: monospace;
}

.review-stars {
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 15px;
}

.review-stars i { margin-right: 3px; }

.review-text {
    color: #d0d0e8;
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #05050f, #0d0d2b);
    border: 3px solid #ff1493;
    border-radius: 24px;
    padding: 40px 32px;
    width: 92%;
    max-width: 480px;
    text-align: center;
    box-shadow:
        0 0 40px rgba(255,20,147,0.5),
        0 0 80px rgba(255,20,147,0.2),
        0 0 120px rgba(0,255,127,0.1);
    animation: modalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: 'Bungee Shade', cursive;
    color: #ff1493;
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 24px;
    text-shadow:
        0 0 5px rgba(255,20,147,1),
        0 0 20px rgba(255,20,147,0.7),
        0 0 50px rgba(255,20,147,0.3);
    animation: neonFlicker 3s ease-in-out infinite;
}

/* === SCRATCH CARD GAME === */
.scratch-container {
    position: relative;
    width: 280px;
    height: 160px;
    margin: 0 auto 24px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #ffd700;
    box-shadow:
        0 0 20px rgba(255,215,0,0.5),
        0 0 50px rgba(255,215,0,0.2);
    cursor: crosshair;
    touch-action: none;
    user-select: none;
}

/* Prize layer underneath the scratch overlay */
.scratch-prize-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d0d1a, #1a0d2e);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scratch-prize-layer .prize-icon {
    font-size: 40px;
    animation: prizePulse 0.8s ease-in-out infinite alternate;
}

@keyframes prizePulse {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

.scratch-prize-layer .prize-text {
    font-family: 'Bungee Shade', cursive;
    font-size: 18px;
    color: #ffd700;
    text-shadow:
        0 0 5px rgba(255,215,0,0.9),
        0 0 20px rgba(255,215,0,0.5);
    letter-spacing: 2px;
}

/* Canvas scratch overlay */
.scratch-canvas {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    cursor: crosshair;
    touch-action: none;
}

.scratch-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.modal-message {
    font-size: 18px;
    color: #e0e0ff;
    margin-bottom: 24px;
    min-height: 24px;
    font-family: 'Inter', sans-serif;
}

.success-text {
    color: #00ff7f;
    font-weight: 700;
    font-size: 20px;
    text-shadow:
        0 0 5px rgba(0,255,127,1),
        0 0 20px rgba(0,255,127,0.6);
}

.hidden {
    display: none !important;
}

.modal-cta-btn {
    background: linear-gradient(145deg, #ff1493, #cc006a);
    color: #ffffff;
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 400;
    padding: 16px 30px;
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 0 20px rgba(255,20,147,0.8),
        0 0 50px rgba(255,20,147,0.3),
        inset 0 0 10px rgba(255,255,255,0.1);
    transition: 0.3s;
}

.modal-cta-btn:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 40px rgba(255,20,147,1),
        0 0 80px rgba(255,20,147,0.5),
        0 0 120px rgba(0,255,127,0.2),
        inset 0 0 20px rgba(255,255,255,0.2);
}

/* === REDUCED MOTION FALLBACK === */
@media (prefers-reduced-motion: reduce) {
    .logo,
    .ref-btn,
    .flag,
    .security-badge,
    .marquee-inner,
    .neon-bg::before {
        animation: none !important;
    }
    .logo {
        filter: drop-shadow(0 0 10px rgba(255,20,147,0.6));
    }
    .ref-btn {
        box-shadow: 0 0 20px rgba(255,20,147,0.6);
    }
    .flag {
        box-shadow: 0 0 12px rgba(255,20,147,0.6);
        border-color: #ff1493;
    }
    .marquee-inner {
        /* disable scroll but keep readable */
        padding-left: 16px;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo { width: 340px; }
    .flag { width: 82px; height: 82px; }
    .flag-item { min-width: 110px; }
    .seo-content { padding: 30px 20px; }
    .review-section { padding: 30px 18px; }
    .modal-content { padding: 30px 20px; }
}

@media (max-width: 480px) {
    .logo { width: 270px; }
    .flag { width: 72px; height: 72px; }
    .flag-item { min-width: 96px; }
    .marquee-text { font-size: 12px; padding: 10px 0; }
    .ref-btn { white-space: normal; font-size: 17px; padding: 14px 28px; line-height: 1.4; word-break: keep-all; }
    .ticker-item { font-size: 12px; gap: 6px; }
    .ticker-time { min-width: 35px; }
    .ticker-game { min-width: 75px; }
    .scratch-container { width: 240px; height: 140px; }
}
