/* ===================================================================
   HAVENLY-INSPIRED LUXURY THEME - CASINO INDONESIA
   MOBILE-FIRST / DEDICATED MOBILE CONTAINER DESIGN
   (Always renders as mobile viewport on all devices, including laptops)
   =================================================================== */

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

:root {
    /* Color Palette - Inspired by Havenly Reference */
    --color-primary: #A8582E;
    --color-primary-dark: #7C3F22;
    --color-primary-deep: #2E1A11;
    --color-accent-amber: #E2873E;
    --color-accent-gold: #D4AF37;
    --color-accent-light: #F6D6B8;
    
    /* Backgrounds */
    --bg-body: #FAF7F2;
    --bg-surface: #FFFFFF;
    --bg-surface-soft: #F4EFE6;
    --bg-surface-tint: #EEE6DA;
    --bg-dark-hero: #2D1A10;
    --bg-glass: rgba(255, 255, 255, 0.12);
    
    /* Text Colors */
    --text-primary: #1F1510;
    --text-secondary: #5E5047;
    --text-muted: #8E7D73;
    --text-light: #FAF6F0;
    --text-light-muted: rgba(250, 246, 240, 0.8);
    
    /* Borders & Accents */
    --border-light: rgba(168, 88, 46, 0.15);
    --border-subtle: #E8E0D5;
    
    /* Shadows */
    --shadow-subtle: 0 4px 16px rgba(46, 26, 17, 0.05);
    --shadow-card: 0 8px 24px rgba(46, 26, 17, 0.07);
    --shadow-hover: 0 12px 30px rgba(46, 26, 17, 0.12);

    /* Border Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    /* Desktop Ambient Canvas: Dark warm luxury backdrop with ambient glow */
    background-color: #120A06;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(168, 88, 46, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 50% 85%, rgba(226, 135, 62, 0.12) 0%, transparent 60%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Strict Mobile Container (Shows as mobile on all devices, including laptops) */
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    width: 100%;
    max-width: 480px; /* Standard premium mobile app container */
    margin: 0 auto;
    padding-top: 56px; /* Offset for fixed top navbar */
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    padding: 0 1.15rem;
    margin: 0 auto;
}

/* ===================================================================
   TOP ANNOUNCEMENT BAR (Mobile Optimized)
   =================================================================== */
.announcement-bar {
    background: #190D07;
    color: var(--text-light-muted);
    font-size: 0.76rem;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border-bottom: 1px solid rgba(226, 135, 62, 0.2);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-bar a {
    color: #F8D3B2;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.2rem;
    flex-shrink: 0;
}

/* ===================================================================
   MOBILE HEADER & DRAWER NAVIGATION (FIXED TOP)
   =================================================================== */
header {
    background: #2D1A10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    height: 56px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.15rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Header Right Actions (Daftar + Hamburger) */
.header-actions-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-signup-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #FFFFFF;
    color: var(--color-primary-deep);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.42rem 0.95rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: var(--transition-fast);
}

.btn-signup-compact::after {
    content: '»';
    font-size: 0.9rem;
    line-height: 1;
}

.btn-signup-compact:hover {
    background: #FDF4E7;
    transform: translateY(-1px);
}

/* Hamburger Toggle Button (Always visible in mobile-first mode) */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Slide Drawer (Strictly hidden until toggle button is clicked) */
.nav-list {
    display: none; /* Hidden by default - shows ONLY when toggle button is clicked */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #24130C;
    padding: 1.25rem 1.4rem 2.5rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
}

.nav-list.active {
    display: flex;
    flex-direction: column;
    animation: drawerFadeIn 0.22s ease-out forwards;
}

@keyframes drawerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
}

.drawer-brand img {
    height: 28px;
    width: auto;
    border-radius: 6px;
}

.drawer-close-btn {
    font-size: 1.8rem;
    color: #FAF5EE;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.drawer-close-btn:hover {
    background: var(--color-primary);
    color: #FFFFFF;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nav-list a {
    color: #FAF5EE;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list a::after {
    content: '➔';
    font-size: 0.8rem;
    opacity: 0.6;
}

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

.drawer-auth-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.drawer-auth-box .btn-primary {
    width: 100%;
    justify-content: center;
}

.drawer-auth-box .btn-outline {
    width: 100%;
    justify-content: center;
}

/* ===================================================================
   SHARED BUTTONS & BADGES
   =================================================================== */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #F8D3B2;
}

.badge-pill-light {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #F4EFE6;
    border: 1px solid #E2D6C5;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-dark);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFFFFF;
    color: var(--color-primary-deep);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #FDF5EA;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--color-primary-deep);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(46, 26, 17, 0.15);
    transition: var(--transition-fast);
}

.btn-dark:hover {
    background: var(--color-primary-dark);
}

.btn-arrow-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--color-primary-deep);
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 0.7rem;
    margin-left: 0.2rem;
}

/* Section Header Typography */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ===================================================================
   AD CONTAINERS
   =================================================================== */
.ad-container {
    width: 100%;
    padding: 0 1.15rem;
    margin: 1.8rem 0;
}

.ad-container img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-subtle);
    width: 100%;
    height: 85px;
    /* object-fit: cover; */
}

/* ===================================================================
   FOOTER (Mobile Stacked Layout)
   =================================================================== */
footer {
    background: #180D07;
    color: #FAF5EE;
    padding: 3.5rem 1.15rem 5rem; /* extra bottom padding for floating bar */
    border-top: 1px solid rgba(226, 135, 62, 0.15);
    position: relative;
    width: 100%;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin-bottom: 2.2rem;
}

.footer-about h4,
.footer-nav h4,
.footer-contact h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.8rem;
}

.footer-about p {
    color: rgba(250, 245, 238, 0.75);
    font-size: 0.86rem;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.footer-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E6C2A0;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a {
    color: rgba(250, 245, 238, 0.75);
    font-size: 0.88rem;
}

.footer-contact-info {
    color: rgba(250, 245, 238, 0.75);
    font-size: 0.86rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.social-pill {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
}

.footer-payment-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 1.2rem 0;
    margin-bottom: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.payment-label {
    width: 100%;
    font-size: 0.75rem;
    color: rgba(250, 245, 238, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.payment-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: rgba(250, 245, 238, 0.55);
}

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

.footer-links a {
    color: rgba(250, 245, 238, 0.65);
}

/* ===================================================================
   FLOATING BOTTOM ACTION BAR (Native Mobile App Style)
   =================================================================== */
.havenly-floating-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 999;
    background: rgba(30, 16, 10, 0.96);
    border-top: 1px solid rgba(226, 135, 62, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    padding: 0.7rem 1.15rem;
    padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.havenly-floating-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.floating-bar-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FAF5EE;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}

.floating-bar-info .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00E676;
    box-shadow: 0 0 8px #00E676;
    flex-shrink: 0;
    animation: pulseGlow 1.8s infinite;
}

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

.floating-bar-btn {
    background: #FFFFFF;
    color: var(--color-primary-deep);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.floating-bar-close {
    color: rgba(250, 245, 238, 0.5);
    font-size: 1.1rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    flex-shrink: 0;
}
