/* ==========================================================================
   INDUSTRIAL CASINO DESIGN SYSTEM — COMMON CSS (MOBILE-FIRST APP VIEW)
   Mode     : Always Mobile App View (Laptop/Desktop centered in 480px frame)
   Theme    : Industrial High-Roller Casino
   Palette  : Electric Flare Orange (#ff5500) + Midnight Slate (#090e1a / #0f172a)
   ========================================================================== */

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

:root {
    /* Backgrounds */
    --bg-base:        #090e1a;
    --bg-deep:        #060911;
    --bg-surface:     #0f172a;
    --bg-card:        #141e33;
    --bg-card-hover:  #192640;
    --bg-light:       #f8fafc;
    --bg-glass:       rgba(15, 23, 42, 0.95);

    /* Primary Accent — Electric Industrial Orange */
    --clr-orange:     #ff5500;
    --clr-orange-l:   #ff6f1f;
    --clr-orange-d:   #e04500;
    --clr-orange-glow: rgba(255, 85, 0, 0.35);
    --clr-orange-soft: rgba(255, 85, 0, 0.12);

    /* Auxiliary Accents */
    --clr-gold:       #f59e0b;
    --clr-gold-glow:  rgba(245, 158, 11, 0.3);
    --clr-navy:       #1e293b;
    --clr-navy-dark:  #0b1120;
    --clr-white:      #ffffff;
    --clr-slate-100:  #f1f5f9;
    --clr-slate-300:  #cbd5e1;
    --clr-slate-400:  #94a3b8;
    --clr-slate-500:  #64748b;

    /* Semantic Aliases */
    --primary-color:  var(--clr-orange);
    --text-main:      var(--clr-slate-100);
    --text-muted:     var(--clr-slate-400);
    --border-color:   rgba(255, 255, 255, 0.1);
    --border-orange:  rgba(255, 85, 0, 0.4);

    /* Typography */
    --font-display:   'Teko', sans-serif;
    --font-heading:   'Bebas Neue', sans-serif;
    --font-body:      'Plus Jakarta Sans', sans-serif;

    /* App Frame Width */
    --app-max-width:  480px;
    --header-h:       62px;
    --bottom-bar-h:   68px;

    /* Radius & Spacing */
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --radius-pill:    9999px;

    /* Shadows */
    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:      0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg:      0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-orange:  0 8px 25px rgba(255, 85, 0, 0.35);

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

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background-color: #04060c;
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(255, 85, 0, 0.06) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Constrain Whole Site into a Mobile Viewport on Laptop/Desktop */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.55;
    overflow-x: hidden;
    max-width: var(--app-max-width);
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 30px rgba(255, 85, 0, 0.15);
    padding-bottom: calc(var(--bottom-bar-h) + 15px);
}

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

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

ul {
    list-style: none;
}

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

/* ---- Typography Helpers ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.text-orange { color: var(--clr-orange) !important; }
.text-gold { color: var(--clr-gold) !important; }
.text-white { color: var(--clr-white) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }

/* Giant Stroke Watermark Title (Adapted for Mobile Width) */
.watermark-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.watermark-outline {
    font-family: var(--font-display);
    font-size: clamp(3rem, 11vw, 4.5rem);
    font-weight: 700;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 85, 0, 0.35);
    display: block;
    user-select: none;
    margin-bottom: -0.9rem;
    position: relative;
    z-index: 1;
}

.watermark-container.text-center .watermark-outline {
    margin-left: auto;
    margin-right: auto;
}

.section-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5.5vw, 2.1rem);
    font-weight: 700;
    color: var(--clr-white);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    line-height: 1.15;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 0.6rem;
    position: relative;
    z-index: 2;
}

.section-desc.center {
    margin-left: auto;
    margin-right: auto;
}

/* Container (Mobile Padding) */
.container {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---- Buttons ---- */
.btn-primary-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--clr-orange);
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--clr-orange);
    box-shadow: var(--shadow-orange);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary-orange:hover, .btn-primary-orange:active {
    background: var(--clr-orange-l);
    border-color: var(--clr-orange-l);
    transform: translateY(-2px);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-white:hover, .btn-outline-white:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--clr-white);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 0.95rem 1.8rem;
    font-size: 1.15rem;
}

.btn-block {
    width: 100%;
    display: flex;
}

/* ==========================================================================
   TOP BAR & HEADER (Mobile App Header)
   ========================================================================== */
.top-bar {
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    padding: 0.35rem 12px;
    color: var(--clr-slate-400);
    overflow: hidden;
    white-space: nowrap;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
}

.top-bar-item i {
    color: var(--clr-orange);
}

#main-header {
    background: rgba(9, 14, 26, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 16px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    max-height: 38px;
    width: auto;
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn-vip {
    background: var(--clr-orange);
    color: var(--clr-white);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-orange);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--clr-white);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Mobile Menu Navigation Drawer (Constrained inside Mobile App View) */
.nav-list {
    position: fixed;
    top: var(--header-h);
    right: max(0px, calc(50% - (var(--app-max-width) / 2)));
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-h) - var(--bottom-bar-h));
    background: var(--bg-deep);
    border-left: 2px solid var(--clr-orange);
    padding: 1.8rem 1.4rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85);
}

.nav-list.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-list a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--clr-slate-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-list a:hover, .nav-list a:active {
    color: var(--clr-orange);
    padding-left: 6px;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    max-width: var(--app-max-width);
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.no-scroll {
    overflow: hidden !important;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (True App Bottom Bar)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: var(--bottom-bar-h);
    background: rgba(9, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    border-top: 2px solid var(--clr-orange);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.7);
    padding: 0 4px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--clr-slate-400);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    padding: 6px 0;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 1.15rem;
    transition: var(--transition);
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--clr-orange);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

/* Floating Center CTA (DAFTAR) */
.bottom-nav-item.center-cta {
    position: relative;
    top: -12px;
}

.center-cta-circle {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--clr-orange-l) 0%, var(--clr-orange-d) 100%);
    color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255, 85, 0, 0.5), 0 0 0 4px var(--bg-base);
    font-size: 1.25rem;
    transition: var(--transition);
}

.bottom-nav-item.center-cta:hover .center-cta-circle {
    transform: scale(1.08);
}

.bottom-nav-item.center-cta span {
    color: var(--clr-orange-l);
    font-weight: 800;
    margin-top: 2px;
}

/* ==========================================================================
   FOOTER (Optimized for Mobile Viewport & App Container)
   ========================================================================== */
#main-footer {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
    border-top: 2px solid var(--clr-orange);
    padding: 2.2rem 0 calc(var(--bottom-bar-h) + 1.8rem);
    color: var(--clr-slate-400);
    margin-top: 2.5rem;
    position: relative;
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 85, 0, 0.6), transparent);
}

.footer-top-brand {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.6rem;
}

.footer-top-brand .logo {
    display: inline-block;
    margin-bottom: 0.8rem;
}

.footer-top-brand .logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: var(--clr-slate-400);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0.6rem auto 1.2rem;
    max-width: 420px;
}

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

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--clr-slate-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--clr-white);
    background: var(--clr-orange);
    border-color: var(--clr-orange);
    box-shadow: 0 4px 12px var(--clr-orange-glow);
    transform: translateY(-2px);
}

.footer-sections-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.footer-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--clr-white);
    font-size: 1.15rem;
    letter-spacing: 0.8px;
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2-Column Clean Nav */
.footer-nav-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-2col a {
    color: var(--clr-slate-300);
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-nav-2col a i {
    font-size: 0.75rem;
    color: var(--clr-orange);
    transition: var(--transition);
}

.footer-nav-2col a:hover {
    color: var(--clr-orange);
    padding-left: 3px;
}

/* Provider Badges */
.partner-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.partner-badge {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clr-slate-300);
    text-transform: uppercase;
    transition: var(--transition);
}

.partner-badge:hover {
    border-color: var(--border-orange);
    color: var(--clr-orange-l);
    background: var(--bg-card-hover);
}

/* Support Card */
.footer-support-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.84rem;
}

.support-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-slate-300);
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.support-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--clr-slate-400);
}

.support-item strong {
    color: var(--clr-slate-200);
}

/* Payment Badges & Security Pills */
.payment-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.pay-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 6px 4px;
    color: var(--clr-slate-300);
}

.security-cert-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cert-pill {
    background: rgba(255, 85, 0, 0.08);
    border: 1px solid rgba(255, 85, 0, 0.25);
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-slate-300);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--clr-slate-500);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-bottom a {
    color: var(--clr-orange);
    transition: var(--transition);
}

.footer-bottom a:hover {
    text-decoration: underline;
}
