/* =========================================================
   INDONESIA CASINO ONLINE — MODERN TECH THEME
   Inspired by Top-Tier Gaming Portals
   Colors: Ultra Clean Light (#f3f6fb), Electric Blue (#2563eb),
           Royal Indigo/Purple, Vivid Amber/Gold (#f59e0b),
           Deep Slate Navy Footer (#0b1120)
   Fonts: Plus Jakarta Sans (body) + Lexend (headings)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Backgrounds */
    --clr-bg:          #f3f6fb;
    --clr-bg-alt:      #e9eff7;
    --clr-card:        #ffffff;
    --clr-card-soft:   #f8fafc;
    --clr-surface:     #ffffff;

    /* Primary & Brand Colors */
    --clr-primary:      #2563eb;
    --clr-primary-dark: #1d4ed8;
    --clr-primary-light:#3b82f6;
    --clr-indigo:       #4f46e5;
    --clr-purple:       #7c3aed;
    --clr-hero-gradient: linear-gradient(135deg, #3730a3 0%, #4f46e5 45%, #7c3aed 100%);
    --clr-ticker-gradient: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #3b82f6 100%);

    /* Accents */
    --clr-gold:        #f59e0b;
    --clr-gold-light:  #fbbf24;
    --clr-gold-dark:   #d97706;
    --clr-emerald:     #10b981;
    --clr-rose:        #f43f5e;
    --clr-cyan:        #06b6d4;

    /* Text */
    --clr-text:        #0f172a;
    --clr-text-muted:  #64748b;
    --clr-text-light:  #94a3b8;
    --clr-text-white:  #ffffff;

    /* Borders & Lines */
    --clr-border:      #e2e8f0;
    --clr-border-light:#f1f5f9;
    --clr-border-focus:#3b82f6;
    --clr-border-blue: rgba(37, 99, 235, 0.18);

    /* Footer */
    --clr-footer-bg:   #0b1120;
    --clr-footer-card: #131c31;
    --clr-footer-text: #94a3b8;

    /* Layout metrics */
    --header-h:        72px;
    --topbar-h:        38px;
    --header-total:    calc(var(--header-h) + var(--topbar-h));
    --radius-sm:       8px;
    --radius:          12px;
    --radius-lg:       18px;
    --radius-xl:       24px;

    /* Shadows & Transitions */
    --shadow-sm:       0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-card:     0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-hover:    0 20px 35px -8px rgba(37, 99, 235, 0.15), 0 10px 15px -6px rgba(15, 23, 42, 0.05);
    --shadow-gold:     0 8px 24px rgba(245, 158, 11, 0.3);
    --shadow-blue:     0 8px 24px rgba(37, 99, 235, 0.28);
    --ease:            cubic-bezier(0.16, 1, 0.3, 1);
    --transition:      all 0.3s var(--ease);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--clr-text);
    background-color: var(--clr-bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', 'Plus Jakarta Sans', sans-serif;
    line-height: 1.25;
    font-weight: 700;
    color: var(--clr-text);
}

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

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

.container {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

/* Section Title with Badge (Matching reference image) */
.sec-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.sec-badge-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-indigo));
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.sec-badge-icon.amber {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.sec-badge-icon.emerald {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.sec-badge-icon.purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--clr-primary);
}

.section-heading {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    color: var(--clr-text);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

.section-subheading {
    color: var(--clr-text-muted);
    font-size: 0.98rem;
    margin-top: 0.4rem;
}

.blue-text {
    color: var(--clr-primary);
}

.gold-text {
    color: var(--clr-gold);
}

/* Info Alert Callout Box (as in reference image) */
.info-callout {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--clr-primary);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #1e3a8a;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.info-callout i {
    color: var(--clr-primary);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* White Card Wrapper */
.white-card-box {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.25rem;
    margin-bottom: 2.5rem;
}

/* ---- 1. Top Utility Bar ---- */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--clr-border);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2010;
    font-size: 0.78rem;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-left a {
    color: var(--clr-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-bar-left a i {
    color: var(--clr-emerald);
}

.top-bar-left a:hover {
    color: var(--clr-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.top-bar-right a {
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--clr-primary);
    background: #eff6ff;
}

/* ---- 2. Main Header ---- */
header#main-header, header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    width: 100%;
    height: var(--header-h);
    display: flex;
    align-items: center;
    z-index: 2005;
    background: #ffffff;
    border-bottom: 1px solid var(--clr-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--clr-primary);
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-list ul {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.nav-list a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--clr-text);
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--clr-primary);
    background: #eff6ff;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login-header {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--clr-primary);
    padding: 0.55rem 1.25rem;
    border: 1.5px solid var(--clr-primary);
    border-radius: var(--radius-sm);
    background: #ffffff;
    transition: var(--transition);
}

.btn-login-header:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.header-auth .btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-gold);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    z-index: 2001;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--clr-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ---- Main Footer ---- */
footer#main-footer, footer {
    background: var(--clr-footer-bg);
    color: var(--clr-footer-text);
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .footer-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-top: 1rem;
    line-height: 1.8;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.footer-social a:hover {
    color: #ffffff;
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-nav h4, .footer-contact h4 {
    font-family: 'Lexend', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-nav ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #94a3b8;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-contact li i {
    color: var(--clr-primary-light);
    width: 18px;
    text-align: center;
}

/* Payment & Security Logos in Footer */
.footer-trust-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.trust-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
}

.trust-pill i {
    color: var(--clr-emerald);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Fixed Bottom Bar */
.mobile-bottom-bar {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .top-bar-right { display: none; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        padding: 5.5rem 1.75rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--clr-border);
        transition: right 0.4s var(--ease);
        overflow-y: auto;
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 0.35rem; width: 100%; }
    .nav-list a { font-size: 0.95rem; padding: 0.75rem 1rem; display: block; border-radius: 8px; }
    .nav-list a:hover { background: #eff6ff; color: var(--clr-primary); }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-login-header,
    .header-auth .btn-signup { display: none; }
    .header-container { padding: 0 1.25rem; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .top-bar-left a:last-child { display: none; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .footer-desc { margin: 1rem auto; }
    .footer-social { justify-content: center; }
    .footer-nav ul, .footer-contact ul { align-items: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-trust-grid { flex-direction: column; justify-content: center; text-align: center; }
    .trust-badges-row { justify-content: center; }

    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid var(--clr-border);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        padding: 10px 14px;
        z-index: 2005;
        gap: 10px;
    }
    .mobile-bottom-bar a {
        flex: 1;
        text-align: center;
        padding: 12px 8px;
        font-weight: 700;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    .mobile-bottom-bar .btn-login {
        border: 1.5px solid var(--clr-primary);
        color: var(--clr-primary);
        background: #ffffff;
    }
    .mobile-bottom-bar .btn-register {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #ffffff;
        box-shadow: var(--shadow-gold);
    }
    body { padding-bottom: 68px; }
}

@media (max-width: 480px) {
    .top-bar { display: none; }
    header#main-header, header { top: 0; }
}
