/* === BASE RESET & BODY === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(160deg, #04170b 0%, #06351c 100%);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    color: #f1f5f9;
    position: relative;
}

/* === CODE-LIKE FLOATING CHARACTERS BACKGROUND === */
.code-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* behind .content (which is z-index:2) */
    overflow: hidden;
}

.code-bg .code-char {
    position: absolute;
    bottom: -6%;
    color: rgba(86, 255, 150, 0.12);
    font-family: monospace, 'Courier New', monospace;
    text-shadow: 0 0 8px rgba(34,197,34,0.08);
    user-select: none;
    opacity: 0.9;
    transform-origin: center;
    animation-name: floatUp;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 0.0; }
    10% { opacity: 0.25; }
    60% { opacity: 0.6; }
    100% { transform: translateY(-120vh) scale(0.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .code-bg .code-char { animation: none; opacity: 0.06; }
}

/* === SINGAPORE SKYLINE SILHOUETTE === */
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: rgba(34, 197, 94, 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(34, 197, 94, 0.6));
}

/* === MARQUEE TEXT === */
.marquee-text {
    width: 100%;
    background: rgba(4, 23, 11, 0.92);
    padding: 14px 0;
    border-top: 2px solid #22c55e;
    border-bottom: 2px solid #22c55e;
    margin-bottom: 30px;
    overflow: hidden;
    white-space: nowrap;
    color: #4ade80;
    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(34, 197, 94, 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;
}

.upgrade-banner {
    max-width: 980px;
    margin: 0 auto 28px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #d9f99d;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    font-size: clamp(14px, 2vw, 18px);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.ref-btn {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 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(74, 222, 128, 0.7);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 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(34, 197, 94, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: #4ade80;
}

/* === 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 #22c55e;
    box-shadow: 0 6px 18px rgba(34,197,34,0.22);
    animation: subtleFloat 6s ease-in-out infinite, spinLeft 14s linear infinite;
    pointer-events: none;
    transition: transform 0.28s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.flag-item:hover .flag {
    box-shadow: 0 18px 44px rgba(34,197,34,0.6);
    transform: translateY(-6px) scale(1.06);
}

.flag-item:active { opacity: 0.8; }

@keyframes subtleFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@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;
}

/* percentage badge next to country name */
.country-percent {
    display: inline-block;
    margin-left: 8px;
    background: linear-gradient(180deg, #10b981, #059669);
    color: #04210b;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    box-shadow: 0 6px 18px rgba(16,185,129,0.18);
}

.greeting {
    font-size: clamp(13px, 3.5vw, 16px);
    font-weight: 400;
    color: #4ade80;
    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(4, 23, 11, 0.9);
    border: 1px solid rgba(34, 197, 94, 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(34, 197, 94, 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, #22c55e, #4ade80);
    width: 0;
    transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(34, 197, 94, 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: #4ade80;
}

/* === SEO CONTENT === */
.seo-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(4, 23, 11, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-left: 3px solid #22c55e;
    padding: 40px 36px;
    border-radius: 16px;
    text-align: left;
    margin-top: 50px;
    color: #f1f5f9;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.08);
}

.seo-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    color: #4ade80;
    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: #4ade80;
    font-weight: 600;
}

.security-badge {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-left: 3px solid #22c55e;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    color: #4ade80;
    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(4, 23, 11, 0.92);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-left: 3px solid #22c55e;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(34, 197, 94, 0.06);
}

.jackpot-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #4ade80;
    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(34, 197, 94, 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: #4ade80; font-weight: 700; font-size: 14px; }

/* === REVIEW SECTION === */
.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 48px auto 40px;
    padding: 40px 32px;
    background: rgba(4, 23, 11, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-left: 3px solid #22c55e;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.06);
}

.review-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: #4ade80;
    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(34, 197, 94, 0.2);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-box > span {
    color: #4ade80;
    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: #14532d;
    cursor: pointer;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: #4ade80;
    text-shadow: 0 0 16px rgba(74, 222, 128, 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(6, 53, 28, 0.8);
    border: 1px solid rgba(34, 197, 94, 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: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.review-input textarea::placeholder {
    color: #475569;
}

.submit-btn {
    padding: 0 28px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    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(34, 197, 94, 0.4);
}

.reviews-header {
    font-size: 18px;
    font-weight: 600;
    color: #4ade80;
    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(6, 53, 28, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-left: 3px solid #22c55e;
    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: #22c55e;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 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, #22c55e, #15803d);
    border: 2px solid rgba(74, 222, 128, 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: #4ade80;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-date {
    font-size: 11px;
    color: #475569;
    font-family: monospace;
}

.review-stars {
    color: #4ade80;
    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;
}

/* === 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; }
    .content { padding-bottom: 160px; }
}
