/* ==========================================================================
   CASINO ONLINE INDONESIA - Mobile-First / Mobile-Only Framing System
   Even on Laptop / Desktop, renders as a centered Mobile Casino App (max-width: 480px)
   ========================================================================== */

@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;1,400&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
    /* Mobile Shell Constraints */
    --mobile-width: 480px;

    /* Brand Primary & Accents */
    --primary: #00f0ff;
    --primary-hover: #38bdf8;
    --primary-glow: rgba(0, 240, 255, 0.35);
    --accent-indigo: #6366f1;
    --accent-indigo-hover: #818cf8;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Dark Backgrounds */
    --bg-dark: #070c16;
    --bg-surface: #0b1324;
    --bg-surface-2: #0f1a30;
    --bg-card: rgba(14, 23, 42, 0.78);
    --bg-card-hover: rgba(20, 32, 58, 0.92);
    --header-bg: rgba(7, 12, 22, 0.94);

    /* Text Colors */
    --text-main: #f8fafc;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-cyan: #00f0ff;

    /* Borders & Glass */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(56, 189, 248, 0.22);
    --border-cyan-glow: rgba(0, 240, 255, 0.4);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Utilities */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 45px rgba(3, 7, 18, 0.7);
    --shadow-cyan: 0 0 25px rgba(0, 240, 255, 0.22);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background: #030710;
    width: 100%;
    min-height: 100vh;
}

/* ─── Body Centered as Mobile App Frame on All Devices (Including Laptop) ─── */
body {
    font-family: var(--font-body);
    font-size: 0.93rem;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    
    /* Strict Mobile Framing */
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(56, 189, 248, 0.18);
    padding-bottom: 74px !important; /* Space for fixed bottom bar */
}

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

ul {
    list-style: none;
}

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

/* ─── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00f0ff, #6366f1);
    border-radius: 4px;
}

/* ─── Ambient Glow Background ───────────────── */
.ambient-background {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 15%, rgba(0, 240, 255, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(14, 165, 233, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #070c16 0%, #0a1325 50%, #070c16 100%);
    pointer-events: none;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.6;
    pointer-events: none;
}

/* ─── Mobile Container ───────────────────────── */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.grid-container {
    display: grid;
    gap: 16px;
}

/* ─── Typography Utility Classes ────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-cyan { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: var(--text-white) !important; }
.text-center { text-align: center; }

/* ─── Section Header ─────────────────────────── */
.section-header {
    margin-bottom: 28px;
    position: relative;
}

.section-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
    width: fit-content;
}

.section-header.text-center .section-prefix {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.22;
}

.section-title span.highlight {
    background: linear-gradient(135deg, #00f0ff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Buttons ─────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
    color: #070c16;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.35);
    transition: var(--transition);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:active {
    transform: scale(0.97);
}

.btn-white-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    color: #070c16;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.92rem;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    width: 100%;
}

/* ─── Header Navigation (Always Mobile Layout) ──────────────── */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.header-container {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Brand Logo (Loaded From Server) */
.logo a,
.logo-link,
.logo-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-wordmark .hero-main-visual,
.logo-wordmark img,
.site-logo {
    height: 36px;
    width: auto;
    max-height: 40px;
    max-width: 150px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.2));
}

.footer-logo .site-logo,
.footer-brand .logo-wordmark .hero-main-visual {
    height: 40px;
    max-height: 44px;
    max-width: 170px;
}

/* ─── Mobile Menu Drawer (CENTERED IN MOBILE SHELL) ─── */
.nav-list {
    display: none !important;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 100vh;
    background: #080e1c;
    border-left: 1px solid var(--border-accent);
    border-right: 1px solid var(--border-accent);
    padding: 20px 18px 40px;
    z-index: 10005;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
    overflow-y: auto;
}

.nav-list.active {
    display: flex !important;
    flex-direction: column;
    animation: centerNavSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes centerNavSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.nav-close-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}

.nav-close-btn:hover {
    color: var(--primary);
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-grow: 1;
    width: 100%;
}

.nav-link {
    font-size: 0.96rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 8px 4px;
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link:hover,
.nav-link:active {
    color: var(--primary);
    padding-left: 6px;
}

.nav-drawer-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* Header Action Buttons */
.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header-auth .btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
    color: #070c16;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* Mobile Toggle - ALWAYS VISIBLE */
.mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1006;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10004;
    display: none !important;
}

.mobile-menu-overlay.active {
    display: block !important;
}

/* ─── Mobile Fixed Bottom Bar (ALWAYS VISIBLE ON ALL SCREENS) ─── */
.mobile-bottom-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 9999;
    background: rgba(7, 12, 22, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(56, 189, 248, 0.25);
    padding: 10px 14px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    gap: 10px;
}

.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
}

.mobile-bottom-bar .btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
    color: #070c16;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.4);
}

/* ─── Ad Banner Container ─────────────────────── */
.ad-wrapper {
    margin: 18px auto;
}

.ad-container {
    background: rgba(14, 23, 42, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
