/* === BASE RESET & BODY === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0a0a0a;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    color: #fef3c7;
    position: relative;
}

/* === THREE.JS BACKGROUND CANVAS === */
.three-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.three-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* === DARK OVERLAY === */
.overlay-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(
        ellipse at 50% 30%,
        rgba(212, 175, 55, 0.08) 0%,
        rgba(10, 10, 10, 0.75) 60%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* === 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: 30px 16px;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 460px;
    max-width: 92%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.6));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 42px rgba(255, 215, 0, 0.9));
}

/* === MARQUEE TEXT === */
.marquee-text {
    width: 100%;
    background: rgba(10, 8, 0, 0.9);
    padding: 14px 0;
    border-top: 2px solid #d4af37;
    border-bottom: 2px solid #d4af37;
    margin-bottom: 36px;
    overflow: hidden;
    white-space: nowrap;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    font-size: clamp(13px, 3.5vw, 19px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.marquee-inner {
    display: inline-block;
    animation: scrollText 24s linear infinite;
    padding-left: 100%;
}

@keyframes scrollText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* === GOLD SHIMMER TEXT EFFECT === */
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.shimmer-text {
    background: linear-gradient(-45deg, #d4af37 0%, #ffd700 25%, #d4af37 50%, #ffd700 75%, #d4af37 100%);
    background-size: 400% 400%;
    animation: shimmer 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CTA BUTTON === */
.btn-wrapper {
    margin-bottom: 52px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ref-btn {
    display: inline-block;
    background: linear-gradient(-45deg, #d4af37 0%, #ffd700 25%, #d4af37 50%, #ffd700 75%, #d4af37 100%);
    background-size: 400% 400%;
    animation: shimmer 3s ease infinite;
    color: #0a0a0a;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(18px, 5.5vw, 28px);
    padding: clamp(14px, 3vw, 20px) clamp(32px, 8vw, 64px);
    border-radius: 80px;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(212, 175, 55, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.ref-btn:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 18px 48px rgba(212, 175, 55, 0.75),
        0 0 0 2px rgba(255, 215, 0, 0.6),
        inset 0 2px 8px rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.85);
}

/* === FLAG SECTION === */
.flag-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

.flag-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    margin-bottom: 14px;
    cursor: pointer;
}

.flag {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
    animation: spinLeft 12s linear infinite;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.flag-item:hover .flag {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.75);
}

.flag-item:active { opacity: 0.75; }

@keyframes spinLeft {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .flag { animation: none; }
    .marquee-inner { animation: none; padding-left: 16px; }
    .ref-btn { animation: none; background: #d4af37; }
    .shimmer-text { animation: none; }
}

.country-name {
    margin-top: 9px;
    font-size: clamp(15px, 4.5vw, 20px);
    font-weight: 700;
    color: #fef3c7;
    font-family: 'Lato', sans-serif;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    text-align: center;
    pointer-events: none;
}

.greeting {
    font-size: clamp(13px, 4vw, 17px);
    font-weight: 700;
    color: #d4af37;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
    pointer-events: none;
}

/* === GLASSMORPHISM PREMIUM CARD MIXIN === */
/* Applied to: seo-content, jackpot-section, review-section */

/* === SEO CONTENT === */
.seo-content {
    width: 100%;
    max-width: 1200px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 44px 36px;
    border-radius: 24px;
    text-align: left;
    margin-top: 52px;
    color: #fef3c7;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.08);
}

.seo-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 22px;
    border-left: 5px solid #d4af37;
    padding-left: 18px;
    line-height: 1.3;
}

.seo-content p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 18px;
    color: rgba(254, 243, 199, 0.9);
}

.seo-content b {
    color: #ffd700;
    font-weight: 700;
}

.security-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 13px;
    color: #ffd700;
    font-weight: 700;
    text-align: center;
    margin-top: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.security-badge i {
    color: #d4af37;
    margin-right: 6px;
}

/* === JACKPOT TICKER === */
.jackpot-section {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto;
    padding: 20px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jackpot-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.jackpot-title i {
    margin-right: 8px;
    color: #ffd700;
}

.ticker-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    font-size: 14px;
    color: rgba(254, 243, 199, 0.85);
}

.ticker-item:last-child { border-bottom: none; }
.ticker-time { color: rgba(212, 175, 55, 0.6); min-width: 45px; font-size: 13px; }
.ticker-game { color: #fef3c7; min-width: 100px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ticker-user { color: rgba(254, 243, 199, 0.7); flex: 1; font-family: monospace; font-size: 13px; }
.ticker-amount { color: #ffd700; font-weight: 700; font-size: 14px; }

/* === REVIEW SECTION === */
.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 48px auto 40px;
    padding: 44px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.review-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    color: #d4af37;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.stars input { display: none; }

.stars label {
    font-size: 36px;
    color: rgba(212, 175, 55, 0.25);
    cursor: pointer;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: #ffd700;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
}

.review-input {
    width: 100%;
    max-width: 620px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-input textarea {
    flex: 1;
    min-width: 260px;
    padding: 14px 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    color: #fef3c7;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    resize: none;
    height: 58px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-input textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.2);
}

.review-input textarea::placeholder {
    color: rgba(254, 243, 199, 0.45);
}

.submit-btn {
    padding: 0 28px;
    background: linear-gradient(135deg, #d4af37, #b8960c);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 58px;
    min-width: 110px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.45);
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

.reviews-container { width: 100%; }

.reviews-header {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
    text-align: center;
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 260px;
}

.review-card {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 24px 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.review-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.15);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #7a5c00);
    border: 2px solid rgba(212, 175, 55, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0a0a;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    color: #d4af37;
    font-size: 15px;
    font-family: 'Playfair Display', serif;
}

.review-date {
    font-size: 12px;
    color: rgba(254, 243, 199, 0.5);
    font-family: monospace;
}

.review-stars {
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 15px;
}

.review-stars i { margin-right: 2px; }

.review-text {
    color: rgba(254, 243, 199, 0.85);
    font-size: 14px;
    line-height: 1.65;
    word-break: break-word;
    font-family: 'Lato', sans-serif;
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 8, 0, 0.85);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 24px;
    padding: 40px 36px;
    width: 92%;
    max-width: 420px;
    text-align: center;
    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.2),
        0 24px 48px rgba(0, 0, 0, 0.7);
    animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0%   { transform: scale(0.75); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    color: #d4af37;
    font-size: clamp(20px, 5vw, 26px);
    margin-bottom: 28px;
    /* Gold shimmer on modal title */
    background: linear-gradient(-45deg, #d4af37 0%, #ffd700 25%, #d4af37 50%, #ffd700 75%, #d4af37 100%);
    background-size: 400% 400%;
    animation: shimmer 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === WHEEL OF FORTUNE === */
.minigame-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.wheel-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-canvas {
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(212, 175, 55, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease;
}

/* Pointer triangle at top of wheel */
.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 22px solid #d4af37;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.6));
}

/* Center hub circle on wheel */
.wheel-canvas::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.spin-btn {
    background: linear-gradient(135deg, #d4af37, #b8960c);
    color: #0a0a0a;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 36px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #ffd700, #d4af37);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spin-btn i {
    margin-right: 8px;
}

/* Spinning animation for the button icon while wheel spins */
@keyframes spin-icon {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.spin-btn.spinning i {
    display: inline-block;
    animation: spin-icon 0.5s linear infinite;
}

.modal-message {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    color: rgba(254, 243, 199, 0.9);
    margin-bottom: 22px;
    min-height: 24px;
    line-height: 1.5;
}

.success-text {
    color: #d4af37 !important;
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

.hidden {
    display: none !important;
}

.modal-cta-btn {
    background: linear-gradient(-45deg, #d4af37 0%, #ffd700 25%, #d4af37 50%, #ffd700 75%, #d4af37 100%);
    background-size: 400% 400%;
    animation: shimmer 3s ease infinite;
    color: #0a0a0a;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 900;
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-cta-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 42px rgba(255, 215, 0, 0.65);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo { width: 340px; }
    .flag { width: 80px; height: 80px; }
    .flag-item { min-width: 106px; }
    .seo-content { padding: 32px 20px; }
    .review-section { padding: 32px 20px; }
    .wheel-wrapper { width: 240px; height: 240px; }
    .wheel-canvas { width: 240px !important; height: 240px !important; }
}

@media (max-width: 480px) {
    .logo { width: 268px; }
    .flag { width: 70px; height: 70px; }
    .flag-item { min-width: 96px; }
    .marquee-text { font-size: 12px; padding: 10px 0; }
    .ref-btn { white-space: normal; font-size: 18px; padding: 14px 28px; line-height: 1.35; word-break: keep-all; }
    .ticker-item { font-size: 12px; gap: 6px; }
    .ticker-time { min-width: 36px; }
    .ticker-game { min-width: 76px; }
    .modal-content { padding: 28px 20px; }
    .wheel-wrapper { width: 210px; height: 210px; }
    .wheel-canvas { width: 210px !important; height: 210px !important; }
}
