/* ===============
   MODERN DESIGN SYSTEM - CASINO INDONESIA
   Refined with animated particles, glassmorphism, micro-interactions
   =============== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --navy-darkest: #04080f;
    --navy-dark: #ffffff;
    --navy-medium: #0d172a;
    --navy-card: #111e38;
    --navy-border: #1e2d4a;

    --brand-green: #22c55e;
    --brand-green-hover: #4ade80;
    --brand-green-light: rgba(34, 197, 94, 0.15);
    --brand-green-glow: rgba(34, 197, 94, 0.4);
    --brand-green-subtle: rgba(34, 197, 94, 0.12);

    --accent-blue: #3b82f6;
    --accent-blue-light: rgba(59, 130, 246, 0.15);
    --accent-indigo: #818cf8;
    --accent-purple: #a78bfa;
    --accent-purple-light: rgba(167, 139, 250, 0.15);
    --accent-quote-bg: #151d38;
    --accent-quote-text: #c084fc;
    --accent-amber: #fbbf24;
    --accent-amber-light: rgba(251, 191, 36, 0.15);
    --accent-rose: #f43f5e;

    --bg-page: #060b17;
    --bg-surface: #0d172a;
    --bg-surface-alt: #111e38;
    --bg-surface-dark: #04080f;

    --text-main: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --text-white: #ffffff;
    --text-white-sub: #94a3b8;

    --border-light: #1e2d4a;
    --border-card: #1e2e4f;

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 50px -12px rgba(34, 197, 94, 0.25);
    --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.35), 0 8px 25px rgba(34, 197, 94, 0.4);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 25px rgba(34, 197, 94, 0.6); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    padding-top: 108px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll-reveal animation helper */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============
   HEADER & NAVBAR (FIXED TOP)
   =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(6, 11, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(4, 8, 15, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(34, 197, 94, 0.25);
}

.header-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--text-white-sub);
}

.topbar-info { display: flex; align-items: center; gap: 20px; }

.topbar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.topbar-item .icon { color: var(--brand-green); }

.topbar-actions { display: flex; align-items: center; gap: 16px; }

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-white-sub);
    transition: var(--transition);
}

.lang-selector:hover { color: var(--brand-green); }

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.3));
}

.nav-menu { display: flex; align-items: center; }

.nav-list { display: flex; align-items: center; gap: 4px; }

.nav-item a {
    display: block;
    padding: 7px 15px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-white-sub);
    border-radius: var(--radius-pill);
    transition: var(--transition);
    position: relative;
}

.nav-item a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active a {
    color: #04080f;
    background: var(--brand-green);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.header-right { display: flex; align-items: center; gap: 10px; }

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #04080f;
    background: var(--brand-green);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glow-green);
    transition: var(--transition);
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-register:hover {
    background: #16a34a;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.btn-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white-sub);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.btn-contact-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--brand-green);
    border-color: rgba(34, 197, 94, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ===============
   LIVE WINNER TICKER BAR
   =============== */
.live-ticker-bar {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--accent-rose);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    gap: 4px;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 120px;
}

.ticker-item {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 28px;
    font-size: 0.82rem;
    color: var(--text-white-sub);
}

.ticker-name { font-weight: 700; color: var(--text-white); }
.ticker-game { color: var(--accent-amber); font-weight: 500; }
.ticker-amount { color: var(--brand-green); font-weight: 800; }

/* ===============
   AD BANNER CONTAINER
   =============== */
.ad-banner-container {
    margin: 20px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.ad-banner-container:hover { transform: translateY(-2px); }

/* ===============
   SECTION TITLES
   =============== */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-green);
    background: var(--brand-green-subtle);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy-dark);
    letter-spacing: -0.6px;
    margin-bottom: 12px;
    line-height: 1.22;
}

.section-title-dark { color: var(--text-white); }

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.section-subtitle-dark { color: var(--text-white-sub); }

/* ===============
   STATS COUNTER BAR
   =============== */
.stats-bar {
    background: var(--navy-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-item:last-child::after { display: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-white-sub);
    font-weight: 500;
}

/* ===============
   FOOTER
   =============== */
.footer {
    background: var(--navy-darkest);
    color: var(--text-white-sub);
    padding-top: 70px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.06), transparent 70%);
    pointer-events: none;
}

.footer-newsletter-wrap {
    background: var(--navy-medium);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    padding: 38px 44px;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.footer-newsletter-wrap::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-newsletter-text h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 6px;
}

.footer-newsletter-text p {
    color: var(--text-white-sub);
    font-size: 0.92rem;
}

.footer-newsletter-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    padding: 5px 5px 5px 18px;
    width: 100%;
    max-width: 420px;
}

.footer-newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 0.88rem;
    flex-grow: 1;
    min-width: 0;
}

.footer-newsletter-form input::placeholder { color: var(--text-light); }

.footer-newsletter-form button {
    background: var(--brand-green);
    color: #04080f;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.footer-newsletter-form button:hover { background: #16a34a; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-col-brand .footer-logo img { height: 30px; width: auto; }

.footer-col-brand p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-socials { display: flex; gap: 8px; }

.social-pill {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white-sub);
    font-size: 0.85rem;
    transition: var(--transition);
}

.social-pill:hover {
    background: var(--brand-green);
    color: #04080f;
    border-color: var(--brand-green);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.88rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-col ul li a::before {
    content: '';
    width: 0;
    height: 1px;
    background: var(--brand-green);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--brand-green);
}

.footer-col ul li a:hover::before { width: 12px; }

.footer-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 22px;
    font-size: 0.8rem;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-white-sub);
    font-size: 0.78rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===============
   RESPONSIVE DESIGN
   =============== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item:nth-child(2)::after { display: none; }
    .container { padding: 0 20px; }
}

@media (max-width: 868px) {
    body { padding-top: 60px; }
    .header-topbar { display: none; }
    .live-ticker-bar { display: none; }
    .header-main { height: 60px; }
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: rgba(6, 11, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(34, 197, 94, 0.25);
        padding: 16px 20px;
        display: none;
        box-shadow: 0 14px 40px rgba(0,0,0,0.8);
        z-index: 1001;
    }
    .nav-menu.active { display: block; }
    .nav-list { flex-direction: column; align-items: flex-start; gap: 4px; }
    .nav-item { width: 100%; }
    .nav-item a { width: 100%; padding: 10px 16px; }
    .btn-contact-pill { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-newsletter-wrap {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .footer-newsletter-form { max-width: 100%; }
}

@media (max-width: 768px) {
    /* Header */
    .header-main { height: 60px; }
    .logo { font-size: 1.15rem; gap: 8px; }
    .logo img { height: 30px; }
    .btn-login { padding: 6px 14px; font-size: 0.82rem; }
    .btn-register { padding: 6px 16px; font-size: 0.82rem; }
    .header-right { gap: 8px; }

    /* Stats */
    .stats-bar { padding: 28px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-item::after { display: none; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.78rem; }

    /* Footer */
    .footer { padding-top: 50px; }
    .footer-newsletter-wrap { padding: 22px 18px; margin-bottom: 40px; }
    .footer-newsletter-text h3 { font-size: 1.2rem; }
    .footer-newsletter-text p { font-size: 0.84rem; }
    .footer-newsletter-form { flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius-md); }
    .footer-newsletter-form input { width: 100%; padding: 10px 0; }
    .footer-newsletter-form button { width: 100%; padding: 12px 0; text-align: center; }
    .footer-col h4 { font-size: 0.92rem; margin-bottom: 14px; }
    .footer-col ul li a { font-size: 0.82rem; }
    .footer-col-brand p { font-size: 0.82rem; }
    .footer-badges-row { gap: 8px; padding: 18px 0; }
    .badge-tag { font-size: 0.72rem; padding: 4px 10px; }
    .footer-bottom { font-size: 0.76rem; flex-direction: column; text-align: center; gap: 6px; }

    /* Section headers */
    .section-header-center { margin-bottom: 32px; }
    .section-title { font-size: 1.65rem; }
    .section-subtitle { font-size: 0.9rem; }

    /* Ad banner */
    .ad-banner-container { margin: 14px auto; border-radius: var(--radius-sm); }
}

@media (max-width: 480px) {
    body { padding-top: 54px; }
    .container { padding: 0 16px; }

    /* Header */
    .header-main { height: 54px; }
    .logo { font-size: 1.05rem; gap: 6px; }
    .logo img { height: 26px; }
    .btn-login { padding: 5px 12px; font-size: 0.78rem; }
    .btn-register { padding: 5px 14px; font-size: 0.78rem; gap: 4px; }
    .mobile-menu-toggle { font-size: 1.3rem; }

    /* Stats */
    .stats-bar { padding: 22px 0; }
    .stats-grid { gap: 12px; }
    .stat-number { font-size: 1.4rem; margin-bottom: 3px; }
    .stat-label { font-size: 0.72rem; }

    /* Section headers */
    .section-title { font-size: 1.4rem; letter-spacing: -0.3px; }
    .section-subtitle { font-size: 0.84rem; }
    .section-badge { font-size: 0.7rem; padding: 4px 10px; letter-spacing: 0.5px; }
    .section-header-center { margin-bottom: 26px; }

    /* Footer */
    .footer { padding-top: 36px; padding-bottom: 20px; }
    .footer-newsletter-wrap { padding: 18px 14px; margin-bottom: 30px; border-radius: var(--radius-lg); }
    .footer-newsletter-text h3 { font-size: 1.08rem; }
    .footer-newsletter-text p { font-size: 0.8rem; }
    .footer-grid { gap: 24px; margin-bottom: 30px; }
    .footer-col-brand .footer-logo { font-size: 1.1rem; }
    .footer-col-brand .footer-logo img { height: 24px; }
    .footer-col h4 { font-size: 0.88rem; margin-bottom: 12px; }
    .footer-col ul li { margin-bottom: 8px; }
    .footer-col ul li a { font-size: 0.8rem; }
    .footer-socials { gap: 6px; }
    .social-pill { width: 32px; height: 32px; font-size: 0.78rem; }
    .footer-badges-row { gap: 6px; padding: 14px 0; }
    .badge-tag { font-size: 0.68rem; padding: 3px 8px; }
    .footer-bottom { font-size: 0.72rem; }

    /* Ad banner */
    .ad-banner-container { margin: 10px auto; }
}

/* --- Ultra small (360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .logo { font-size: 0.95rem; }
    .logo img { height: 22px; }
    .btn-login { display: none; }
    .stat-number { font-size: 1.25rem; }
    .footer-newsletter-text h3 { font-size: 1rem; }
}