/* === BASE RESET & BODY === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    color: #f1f5f9;
    position: relative;
}

/* === SINGAPORE SKYLINE SILHOUETTE === */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: rgba(14, 165, 233, 0.06);
    clip-path: polygon(
        0% 100%,
        0% 65%,
        1% 65%, 1% 55%,
        2% 55%, 2% 65%,
        3% 65%, 3% 50%,
        4% 50%, 4% 65%,
        5% 65%, 5% 55%,
        6% 55%, 6% 40%,
        6.5% 40%, 6.5% 35%,
        7% 35%, 7% 40%,
        7.5% 40%, 7.5% 55%,
        8% 55%, 8% 45%,
        9% 45%, 9% 55%,
        10% 55%, 10% 65%,
        11% 65%, 11% 42%,
        11.5% 42%, 11.5% 38%,
        12% 38%, 12% 42%,
        12.5% 42%, 12.5% 65%,
        14% 65%, 14% 55%,
        15% 55%, 15% 48%,
        16% 48%, 16% 55%,
        17% 55%, 17% 65%,
        18% 65%, 18% 30%,
        18.5% 30%, 18.5% 25%,
        19% 25%, 19% 20%,
        19.2% 20%, 19.2% 18%,
        19.4% 18%, 19.4% 20%,
        19.6% 20%, 19.6% 30%,
        20% 30%, 20% 65%,
        21% 65%, 21% 50%,
        22% 50%, 22% 45%,
        23% 45%, 23% 50%,
        24% 50%, 24% 65%,
        26% 65%, 26% 52%,
        27% 52%, 27% 65%,
        28% 65%, 28% 48%,
        29% 48%, 29% 65%,
        30% 65%, 30% 55%,
        31% 55%, 31% 40%,
        31.5% 40%, 31.5% 36%,
        32% 36%, 32% 40%,
        32.5% 40%, 32.5% 55%,
        33% 55%, 33% 65%,
        34% 65%, 34% 50%,
        35% 50%, 35% 65%,
        40% 65%, 40% 55%,
        41% 55%, 41% 65%,
        45% 65%, 45% 50%,
        46% 50%, 46% 46%,
        46.5% 46%, 46.5% 44%,
        47% 44%, 47% 46%,
        47.5% 46%, 47.5% 50%,
        48% 50%, 48% 65%,
        50% 65%, 50% 48%,
        51% 48%, 51% 65%,
        55% 65%, 55% 52%,
        56% 52%, 56% 65%,
        60% 65%, 60% 55%,
        61% 55%, 61% 50%,
        62% 50%, 62% 55%,
        63% 55%, 63% 65%,
        65% 65%, 65% 42%,
        65.5% 42%, 65.5% 38%,
        66% 38%, 66% 42%,
        66.5% 42%, 66.5% 65%,
        70% 65%, 70% 50%,
        71% 50%, 71% 65%,
        75% 65%, 75% 55%,
        76% 55%, 76% 65%,
        80% 65%, 80% 45%,
        81% 45%, 81% 40%,
        81.5% 40%, 81.5% 38%,
        82% 38%, 82% 40%,
        82.5% 40%, 82.5% 45%,
        83% 45%, 83% 65%,
        85% 65%, 85% 52%,
        86% 52%, 86% 65%,
        88% 65%, 88% 55%,
        89% 55%, 89% 65%,
        91% 65%, 91% 48%,
        92% 48%, 92% 65%,
        94% 65%, 94% 55%,
        95% 55%, 95% 65%,
        97% 65%, 97% 50%,
        98% 50%, 98% 65%,
        100% 65%, 100% 100%
    );
    z-index: 0;
    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: 20px 0 240px;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 450px;
    max-width: 95%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 24px rgba(14, 165, 233, 0.6));
}

/* === MARQUEE TEXT === */
.marquee-text {
    width: 100%;
    background: rgba(15, 23, 42, 0.92);
    padding: 14px 0;
    border-top: 2px solid #0ea5e9;
    border-bottom: 2px solid #0ea5e9;
    margin-bottom: 30px;
    overflow: hidden;
    white-space: nowrap;
    color: #38bdf8;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(13px, 3.5vw, 18px);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}

.marquee-inner {
    display: inline-block;
    animation: scrollText 25s linear infinite;
    padding-left: 100%;
}

@keyframes scrollText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-inner { animation: none; padding-left: 16px; }
}

/* === CTA BUTTON === */
.btn-wrapper {
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ref-btn {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    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(56, 189, 248, 0.7);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    letter-spacing: 2px;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.ref-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
    .ref-btn::before { animation: none; }
}

.ref-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #38bdf8;
}

/* === FLAG SECTION === */
.flag-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.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: 120px;
    margin-bottom: 15px;
    cursor: pointer;
}

.flag {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #0ea5e9;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    animation: spinLeft 12s linear infinite;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.flag-item:hover .flag {
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.7);
}

.flag-item:active { opacity: 0.8; }

@keyframes spinLeft {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .flag { animation: none; }
}

.country-name {
    margin-top: 8px;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 600;
    color: #f1f5f9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    text-align: center;
    pointer-events: none;
}

.greeting {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 400;
    color: #38bdf8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    margin-bottom: 2px;
    pointer-events: none;
}

/* === DATA VISUALIZATION BARS === */
.data-bars-section {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.data-bar-card {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.data-bar-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.data-bar-track {
    background: rgba(14, 165, 233, 0.1);
    border-radius: 4px;
    height: 6px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 8px;
}

.data-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    width: 0;
    transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    .data-bar-fill { transition: none; }
}

.data-bar-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #38bdf8;
}

/* === SEO CONTENT === */
.seo-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-left: 3px solid #0ea5e9;
    padding: 40px 36px;
    border-radius: 16px;
    text-align: left;
    margin-top: 50px;
    color: #f1f5f9;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.08);
}

.seo-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    color: #38bdf8;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.seo-content p {
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: #cbd5e1;
}

.seo-content b {
    color: #38bdf8;
    font-weight: 600;
}

.security-badge {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.5);
    border-left: 3px solid #0ea5e9;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    color: #38bdf8;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

/* === JACKPOT TICKER === */
.jackpot-section {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 18px 22px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-left: 3px solid #0ea5e9;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.06);
}

.jackpot-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.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(14, 165, 233, 0.12);
    font-size: 13px;
    color: #cbd5e1;
}

.ticker-item:last-child { border-bottom: none; }
.ticker-time { color: #64748b; min-width: 45px; font-size: 12px; }
.ticker-game { color: #f1f5f9; min-width: 100px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ticker-user { color: #94a3b8; flex: 1; font-family: monospace; font-size: 12px; }
.ticker-amount { color: #38bdf8; font-weight: 700; font-size: 14px; }

/* === REVIEW SECTION === */
.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 48px auto 40px;
    padding: 40px 32px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-left: 3px solid #0ea5e9;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(14, 165, 233, 0.06);
}

.review-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: #38bdf8;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-box > span {
    color: #38bdf8;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.stars input { display: none; }

.stars label {
    font-size: 32px;
    color: #334155;
    cursor: pointer;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: #38bdf8;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.review-input {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-input textarea {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: none;
    height: 58px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-input textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.review-input textarea::placeholder {
    color: #475569;
}

.submit-btn {
    padding: 0 28px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 58px;
    min-width: 110px;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.reviews-header {
    font-size: 18px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 18px;
    flex-wrap: wrap;
    min-height: 260px;
}

.review-card {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-left: 3px solid #0ea5e9;
    border-radius: 12px;
    padding: 22px 18px;
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.review-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    border: 2px solid rgba(56, 189, 248, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.reviewer-name {
    font-weight: 600;
    color: #38bdf8;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 11px;
    color: #475569;
    font-family: monospace;
}

.review-stars {
    color: #38bdf8;
    margin-bottom: 12px;
    font-size: 14px;
}

.review-stars i { margin-right: 2px; }

.review-text {
    color: #cbd5e1;
    font-size: 13px;
    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.88);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border: 2px solid rgba(14, 165, 233, 0.5);
    border-radius: 16px;
    padding: 36px 32px;
    width: 90%;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.2), 0 24px 64px rgba(0, 0, 0, 0.6);
    animation: modal-pop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    font-size: clamp(20px, 4vw, 26px);
    margin-bottom: 28px;
    letter-spacing: 2px;
    font-weight: 700;
}

/* === NUMBER MATCHING MINI-GAME === */
.minigame-container {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 22px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.match-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1e3a5f, #1e293b);
    border: 2px solid rgba(14, 165, 233, 0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(18px, 4vw, 26px);
    font-weight: 700;
    color: transparent;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 56px;
}

.match-tile:hover:not(.flipped):not(.matched) {
    border-color: #38bdf8;
    background: linear-gradient(135deg, #1e3a5f, #164e7a);
}

.match-tile.flipped {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    border-color: #38bdf8;
    color: #fff;
    transform: scale(1.04);
}

.match-tile.matched {
    background: linear-gradient(135deg, #064e3b, #065f46);
    border-color: rgba(52, 211, 153, 0.7);
    color: rgba(52, 211, 153, 0.9);
    cursor: default;
    transform: scale(1);
    animation: matchPulse 0.4s ease;
}

@keyframes matchPulse {
    0% { transform: scale(1.1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .match-tile, .match-tile.flipped, .match-tile.matched {
        transition: none;
        animation: none;
    }
}

/* === MODAL MESSAGE & CTA === */
.modal-message {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 20px;
    min-height: 22px;
    font-weight: 500;
}

.success-text {
    color: #34d399;
    font-weight: 700;
    font-size: 18px;
}

.hidden {
    display: none !important;
}

.modal-cta-btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    padding: 16px 28px;
    border: 2px solid rgba(56, 189, 248, 0.6);
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(14, 165, 233, 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo { width: 340px; }
    .flag { width: 80px; height: 80px; }
    .flag-item { min-width: 100px; }
    .content { padding-bottom: 200px; }
    .seo-content { padding: 28px 20px; }
    .review-section { padding: 28px 16px; }
}

@media (max-width: 480px) {
    .logo { width: 270px; }
    .flag { width: 70px; height: 70px; }
    .flag-item { min-width: 90px; }
    .marquee-text { 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: 34px; }
    .ticker-game { min-width: 80px; }
    .match-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
    .match-tile { font-size: 16px; min-height: 46px; }
    .modal-content { padding: 24px 18px; }
    .content { padding-bottom: 160px; }
}
