/* Base Reset & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary-color: #2962FF;
    --accent-color: #FFD740;
    --danger-color: #FF5252;
    --success-color: #00C853;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.5;
    text-align: center;
    padding-bottom: 20px;
    overflow-x: hidden;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header / Top Bar */
#top-bar {
    background: linear-gradient(90deg, #e53935, #d32f2f, #c62828);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scarcity-icon {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.main-content {
    padding-top: 20px;
}

/* Live Viewers Badge */
.live-viewers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Hero Section */
#hero-section {
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-out;
}

.headline {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #ffffff;
}

.highlight {
    color: var(--accent-color);
    animation: glow 2s ease-in-out infinite;
}

.hero-image-container {
    margin: 15px 0;
}

.hero-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.subheadline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

/* --- Spin Wheel Styles --- */
#wheel-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.instruction-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

.instruction-text small {
    color: #ff6b6b;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow:
        0 0 0 8px #1a1a2e,
        0 0 0 12px #ffd700,
        0 0 40px rgba(255, 215, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.5);
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 40px solid #ff4757;
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -38px;
    left: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 28px solid #ff6b7a;
}

.spin-button {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #ffe066, #ffd700);
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    font-weight: 800;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    z-index: 20;
    box-shadow:
        0 4px 20px rgba(255, 215, 0, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
    transition: transform 0.1s, box-shadow 0.1s;
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.spin-button:active {
    transform: scale(0.95);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-muted);
}

.modal-btn {
    margin-top: 20px;
    background: linear-gradient(90deg, #ffd700, #ffb700);
    color: #1a1a2e;
    border: none;
    padding: 14px 35px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Result Section */
#result-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

#result-section.active {
    display: block;
}

.result-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--success-color);
}

.checkmark-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.result-card h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.status-box {
    background: rgba(0, 200, 83, 0.15);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    color: #69f0ae;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.btn-cta {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ffd700, #ffb700);
    color: #1a1a2e;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.waiting-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    fill: #4caf50;
}

/* Social Proof */
#social-proof {
    margin-top: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.trusted-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ratings {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rating-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.recent-winner {
    font-size: 0.85rem;
    background: rgba(255, 152, 0, 0.2);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: countUp 0.5s ease-out;
}

/* User Reviews */
.user-reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    text-align: left;
}

.review {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.review-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

/* Review Info Container */
.review-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.review-top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.review-stars {
    font-size: 0.75rem;
    text-align: left;
}

.review-author {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
}

.review-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.review-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* Footer */
#footer-section {
    margin-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 20px 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .headline {
        font-size: 1.4rem;
    }

    .wheel-container {
        width: 280px;
        height: 280px;
    }

    #wheel-canvas {
        width: 280px;
        height: 280px;
    }

    .trust-badges {
        gap: 10px;
    }

    .trust-badge {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}

.disclaimer {
    margin-top: 12px;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}