/* ==========================================================================
   CASINO ONLINE INDONESIA - LUXURY DARK GOLD & EMERALD DESIGN SYSTEM
   Inspired by modern high-end iGaming UI (Obsidian / 24K Gold / Neon Mint)
   ========================================================================== */

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

:root {
    /* Primary Luxury Palette */
    --bg-base: #0a0b0e;
    --bg-page: #0d0f13;
    --bg-surface: #12151b;
    --bg-surface-alt: #161a23;
    --bg-card: #13161d;
    --bg-card-hover: #181d27;
    --bg-elevated: #1b202c;

    /* Gold / Amber Accents */
    --gold-primary: #fbbf24;
    --gold-bright: #facc15;
    --gold-deep: #f59e0b;
    --gold-dark: #b45309;
    --gold-gradient: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #d97706 100%);
    --gold-glow: rgba(251, 191, 36, 0.25);
    --gold-subtle: rgba(251, 191, 36, 0.1);
    --gold-border: rgba(251, 191, 36, 0.35);

    /* Neon Emerald / Mint Accents */
    --green-primary: #00d284;
    --green-bright: #00e676;
    --green-hover: #10b981;
    --green-gradient: linear-gradient(135deg, #00e676 0%, #00d284 50%, #059669 100%);
    --green-glow: rgba(0, 210, 132, 0.35);
    --green-subtle: rgba(0, 210, 132, 0.12);
    --green-border: rgba(0, 210, 132, 0.3);

    /* Cyan / Ice Blue Accents */
    --cyan-primary: #06b6d4;
    --cyan-bright: #22d3ee;
    --cyan-subtle: rgba(6, 182, 212, 0.12);

    /* Typography & Contrast Colors */
    --text-white: #ffffff;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dim: #6b7280;
    --text-gold: #fbbf24;
    --text-green: #00d284;

    /* Borders & Outlines */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-highlight: rgba(251, 191, 36, 0.45);

    /* Shadows & Effects */
    --shadow-card: 0 12px 35px -8px rgba(0, 0, 0, 0.7);
    --shadow-gold-hover: 0 10px 30px -5px rgba(251, 191, 36, 0.3);
    --shadow-green-hover: 0 10px 30px -5px rgba(0, 210, 132, 0.35);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* 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-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    padding-top: 105px;
}

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: 1260px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Helper text highlights */
.highlight-gold, .txt-gold {
    color: var(--gold-bright);
    font-weight: 600;
}

.highlight-green, .txt-green {
    color: var(--green-primary);
    font-weight: 600;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.header.scrolled {
    background: rgba(7, 8, 10, 0.97);
    border-bottom-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.header-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    color: var(--text-muted);
}

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

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

.topbar-item .icon {
    color: var(--gold-bright);
}

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

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-selector:hover {
    color: var(--gold-bright);
}

.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.45rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.2));
}

.logo-text-brand {
    display: flex;
    align-items: center;
    font-weight: 900;
}

.logo-text-brand .brand-p1 {
    color: #38bdf8;
}

.logo-text-brand .brand-p2 {
    color: var(--gold-bright);
}

.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: 600;
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

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

.nav-item.active a {
    color: var(--gold-bright);
    background: rgba(251, 191, 36, 0.1);
    font-weight: 700;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

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

/* Button Masuk (Golden Luxury Button) */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: #0b0d11;
    background: var(--gold-gradient);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

/* Button Daftar (Vibrant Emerald Mint Button) */
.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 24px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 800;
    color: #04140b;
    background: var(--green-gradient);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-green-hover);
    transition: var(--transition);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 132, 0.55);
    filter: brightness(1.1);
}

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

/* ==========================================================================
   LIVE WINNER TICKER BAR
   ========================================================================== */
.live-ticker-bar {
    background: #090b0e;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    padding: 7px 0;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    gap: 5px;
}

.ticker-track {
    display: flex;
    animation: ticker-scroll 32s 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-muted);
}

.ticker-name {
    font-weight: 700;
    color: var(--text-white);
}

.ticker-game {
    color: var(--gold-bright);
    font-weight: 600;
}

.ticker-amount {
    color: var(--green-primary);
    font-weight: 800;
}

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

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

.ad-banner-container:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   SECTION HEADER UTILITIES
   ========================================================================== */
.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 46px;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.6px;
    margin-bottom: 12px;
    line-height: 1.25;
}

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

/* ==========================================================================
   FOOTER (LUXURY OBSIDIAN & GOLD)
   ========================================================================== */
.footer {
    background: #08090b;
    color: var(--text-muted);
    padding-top: 65px;
    padding-bottom: 30px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.05), transparent 70%);
    pointer-events: none;
}

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

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

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

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

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

.social-pill {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-pill:hover {
    background: var(--gold-bright);
    color: #0b0d11;
    border-color: var(--gold-bright);
    transform: translateY(-2px);
}

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

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gold-bright);
    border-radius: 2px;
}

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

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

.footer-col ul li a:hover {
    color: var(--gold-bright);
    transform: translateX(3px);
}

.btn-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #05150d;
    background: var(--green-gradient);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(0, 210, 132, 0.3);
    transition: var(--transition);
}

.btn-contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 132, 0.5);
    filter: brightness(1.1);
}

/* Footer Compliance & Badges */
.footer-badges-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-tag.badge-gold {
    color: var(--gold-bright);
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.06);
}

/* Footer Bottom Legal & Disclaimer */
.footer-bottom {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-muted);
    font-size: 0.84rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--gold-bright);
}

.footer-copyright {
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-disclaimer {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .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(10, 11, 14, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        border-bottom: 1px solid rgba(251, 191, 36, 0.3);
        padding: 16px 20px;
        display: none;
        box-shadow: 0 16px 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; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .header-main { height: 60px; }
    .logo { font-size: 1.2rem; }
    .logo img { height: 32px; }
    .btn-login { padding: 7px 16px; font-size: 0.82rem; }
    .btn-register { padding: 7px 18px; font-size: 0.82rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.92rem; }
    .footer { padding-top: 48px; }
    .footer-badges-row { justify-content: center; }
}

@media (max-width: 480px) {
    body { padding-top: 54px; }
    .container { padding: 0 16px; }
    .header-main { height: 54px; }
    .logo { font-size: 1.1rem; }
    .logo img { height: 28px; }
    .btn-login { padding: 6px 13px; font-size: 0.78rem; }
    .btn-register { padding: 6px 15px; font-size: 0.78rem; }
    .section-title { font-size: 1.55rem; }
    .section-subtitle { font-size: 0.86rem; }
    .badge-tag { font-size: 0.72rem; padding: 4px 10px; }
    .footer-bottom-links { gap: 12px; font-size: 0.78rem; }
}
