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

/* ==========================================================================
   AURA CASINO MOBILE-FIRST DESIGN SYSTEM (440px Centered App Frame)
   Emerald-Obsidian & Rich Gold Luxury Palette
   ========================================================================== */

:root {
    /* App Frame Width */
    --app-width: 440px;

    /* Background & Surfaces */
    --bg-outside: #050b08;
    --bg-app: #08140f;
    --bg-surface: #0e1e17;
    --bg-surface-2: #142920;
    --bg-surface-3: #1b352a;
    --bg-card: rgba(20, 41, 32, 0.7);
    --bg-card-hover: rgba(27, 53, 42, 0.95);

    /* Gold Accents */
    --gold: #d4a017;
    --gold-light: #f5cf58;
    --gold-dark: #b8860b;
    --gold-glow: rgba(212, 160, 23, 0.35);
    --gold-soft: rgba(212, 160, 23, 0.12);
    --gold-border: rgba(212, 160, 23, 0.28);
    --gold-gradient: linear-gradient(135deg, #f5cf58 0%, #d4a017 50%, #b8860b 100%);

    /* Green / Accent Highlights */
    --green-accent: #00d084;
    --green-glow: rgba(0, 208, 132, 0.4);
    --red-hot: #ff4757;

    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #f0f4f1;
    --text-muted: #8ea397;
    --text-muted-2: #647a6e;
    --text-gold: #f5cf58;

    /* Borders & Lines */
    --line-subtle: rgba(255, 255, 255, 0.07);
    --line-gold: rgba(212, 160, 23, 0.22);
    --line-gold-bright: rgba(212, 160, 23, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-gold: 0 8px 24px rgba(212, 160, 23, 0.25);
    --shadow-app: 0 0 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(212, 160, 23, 0.2);

    /* Typography */
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

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

/* ==========================================================================
   RESET & GLOBAL BASE (Outer Laptop Environment)
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-outside);
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-outside);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(0, 208, 132, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 90% 70%, rgba(212, 160, 23, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.012) 0, rgba(255, 255, 255, 0.012) 1px, transparent 0, transparent 24px);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

/* Custom Scrollbar for Mobile Frame */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface-3);
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-gold);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ==========================================================================
   MAIN CONTAINER (Mobile-First 440px Centered Viewport on Laptop)
   ========================================================================== */

.main-container {
    width: 100%;
    max-width: var(--app-width);
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-app);
    color: var(--text-light);
    position: relative;
    box-shadow: var(--shadow-app);
    padding-bottom: 74px; /* Space for Fixed Bottom Nav Dock */
    overflow-x: hidden;
}

.container {
    width: 100%;
    padding: 0 14px;
}

/* ==========================================================================
   HEADER & APP DOWNLOAD STRIP (Fixed to Mobile Frame)
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    z-index: 1000;
    background: rgba(8, 20, 15, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-gold);
    transition: var(--transition);
}

/* 1. Top Mini App Download Bar (Matching Example Image) */
.app-download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #102d21 0%, #091a13 100%);
    border-bottom: 1px solid rgba(212, 160, 23, 0.18);
    font-size: 11px;
}

.app-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.app-bar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--gold-gradient);
    color: #05140d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.app-bar-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.app-bar-text strong {
    color: #ffffff;
    font-size: 11px;
    line-height: 1.2;
}

.app-bar-text span {
    color: var(--gold-light);
    font-size: 9.5px;
    opacity: 0.9;
}

.app-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-app-install {
    background: var(--gold-gradient);
    color: #05140d;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(212, 160, 23, 0.35);
    transition: var(--transition);
}

.btn-app-install:hover {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.btn-app-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    transition: var(--transition);
}

.btn-app-close:hover {
    color: #ffffff;
}

/* 2. Main Navigation Bar */
.header-top {
    padding: 10px 14px;
}

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

.header-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hamburger Toggle Button */
.menu-toggle-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.menu-toggle-btn .bar {
    width: 17px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle-btn:hover {
    background: var(--bg-surface-2);
    border-color: var(--gold);
}

.menu-toggle-btn.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle-btn.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

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

.logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

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

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line-gold);
    background: var(--bg-surface);
    color: var(--text-light);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--bg-surface-2);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background: var(--gold-gradient);
    color: #05140d;
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn-register::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(25deg);
    animation: btnShimmer 3.5s infinite;
}

@keyframes btnShimmer {
    0% { left: -70%; }
    25% { left: 160%; }
    100% { left: 160%; }
}

.btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 160, 23, 0.45);
    filter: brightness(1.05);
}

/* Header Spacer so content flows nicely under fixed header */
.header-spacer {
    height: 98px; /* App Download bar + Header bar */
    width: 100%;
}

.header-spacer.no-app-bar {
    height: 56px;
}

/* Desktop nav is hidden — purely mobile navigation drawer used */
.desktop-nav,
.mobile-nav-strip,
.nav-list {
    display: none !important;
}

/* ==========================================================================
   OFF-CANVAS NAVIGATION DRAWER (Exact Match to User Image)
   ========================================================================== */

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateX(-100vw);
    width: 100%;
    max-width: var(--app-width);
    height: 100vh;
    background: linear-gradient(180deg, #071f15 0%, #03120c 100%);
    border-right: 1px solid var(--line-gold);
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.85);
    z-index: 1600;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
}

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

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(212, 160, 23, 0.18);
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.drawer-title i {
    font-size: 15px;
    color: var(--gold);
}

.drawer-close-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background: rgba(212, 160, 23, 0.2);
    color: var(--gold-light);
    border-color: var(--gold);
}

.drawer-nav-list {
    flex: 1;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.drawer-nav-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: var(--transition);
}

.drawer-nav-item a i {
    font-size: 16px;
    width: 22px;
    text-align: center;
    color: var(--gold-light);
    transition: var(--transition);
}

.drawer-nav-item a:hover,
.drawer-nav-item a.active {
    background: rgba(212, 160, 23, 0.12);
    border-color: rgba(212, 160, 23, 0.25);
    color: #ffffff;
    transform: translateX(4px);
}

.drawer-nav-item a:hover i,
.drawer-nav-item a.active i {
    color: var(--gold);
    transform: scale(1.15);
}

.drawer-footer {
    padding: 18px 16px 24px;
    border-top: 1px solid rgba(212, 160, 23, 0.18);
    background: rgba(4, 15, 10, 0.8);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.drawer-vip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: var(--gold-gradient);
    color: #04120a;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.35);
    transition: var(--transition);
}

.drawer-vip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.5);
}

.drawer-cs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.drawer-cs-badge i {
    color: var(--green-accent);
}

/* ==========================================================================
   FIXED MOBILE BOTTOM NAVIGATION DOCK (Docked to 440px Container)
   ========================================================================== */

.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-width);
    height: 60px;
    background: rgba(7, 18, 13, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line-gold);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 0 4px;
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    height: 100%;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.bottom-nav-link i {
    font-size: 17px;
    transition: var(--transition);
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: var(--gold-light);
}

.bottom-nav-link:hover i,
.bottom-nav-link.active i {
    color: var(--gold);
    transform: translateY(-2px);
}

/* Center Highlight Button in Bottom Bar (Deposit / Play) */
.bottom-nav-link.nav-center-item {
    position: relative;
    margin-top: -14px;
}

.bottom-nav-link.nav-center-item .center-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #04120a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(212, 160, 23, 0.5);
    border: 3px solid #071810;
    transition: var(--transition);
}

.bottom-nav-link.nav-center-item:hover .center-icon-wrap {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.65);
}

.bottom-nav-link.nav-center-item .center-icon-wrap i {
    font-size: 18px;
    color: #04120a;
}

.bottom-nav-link.nav-center-item span {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 9.5px;
}

/* ==========================================================================
   FLOATING CUSTOMER SERVICE BUTTON (As in media_1790221421153.png)
   ========================================================================== */

.floating-cs-btn {
    position: fixed;
    bottom: 74px;
    left: calc(50% - (var(--app-width) / 2) + 14px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e676 0%, #00a854 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.45);
    z-index: 990;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
}

.floating-cs-btn:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.6);
}

.cs-pulse-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--green-accent);
    opacity: 0.6;
    animation: csPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
}

@keyframes csPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

@media (max-width: 440px) {
    .floating-cs-btn {
        left: 14px;
    }
}

/* ==========================================================================
   COMMON CONTENT MODULES (Clean Mobile-Scaled Typography)
   ========================================================================== */

.section {
    padding: 22px 14px;
    position: relative;
    width: 100%;
}

.section-header {
    margin-bottom: 16px;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.section-desc {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.5;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--gold-light);
    font-size: 11.5px;
    font-weight: 700;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--gold);
    transform: translateX(3px);
}

/* Ad Banner Container */
.ad-banner-container {
    padding: 10px 14px;
    width: 100%;
}

.ad-banner-container img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line-gold);
}

/* ==========================================================================
   CLEAN MOBILE APP FOOTER
   ========================================================================== */

.site-footer {
    padding: 30px 14px 18px;
    background: #040c08;
    border-top: 1px solid var(--line-gold);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.footer-brand {
    text-align: center;
    margin-bottom: 22px;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    margin: 0 auto 12px;
}

.footer-about {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.social-link {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    border: 1px solid var(--line-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 13px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold-gradient);
    color: #04120a;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.footer-nav-block {
    margin-bottom: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    padding: 14px;
}

.footer-nav-title {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.footer-nav-links a {
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-nav-links a:hover {
    color: var(--gold-light);
    transform: translateX(2px);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.footer-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(212, 160, 23, 0.08);
    border: 1px solid var(--line-gold);
    color: var(--gold-light);
    font-size: 10.5px;
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted-2);
    border-top: 1px solid var(--line-subtle);
    padding-top: 14px;
}
