/* =========================================
   MINIMAL LUXURY CASINO — Common Mobile Theme
   Mobile-First Architecture with Desktop Outer Backdrop
   Fonts: Montserrat + Plus Jakarta Sans
   ========================================= */

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

:root {
    /* Backgrounds */
    --clr-bg-light:      #ffffff;
    --clr-bg-surface:    #f8fafc;
    --clr-bg-subtle:     #f1f5f9;
    --clr-bg-accent-box: #fefce8;
    --clr-bg-teal:       #14b8a6;
    --clr-bg-teal-dark:  #0f766e;
    --clr-bg-dark:       #0b0f17;
    --clr-bg-dark-card:  #111827;

    /* Primary & Brand Accents */
    --clr-primary:       #0f172a;
    --clr-gold:          #d97706;
    --clr-gold-light:    #f59e0b;
    --clr-gold-glow:     rgba(217, 119, 6, 0.25);
    --clr-teal:          #0d9488;
    --clr-teal-light:    #2dd4bf;
    --clr-emerald:       #10b981;

    /* Text Colors */
    --clr-text-heading:  #0f172a;
    --clr-text-body:     #475569;
    --clr-text-muted:    #94a3b8;
    --clr-text-light:    #f8fafc;
    --clr-text-subtle:   #cbd5e1;

    /* Borders */
    --clr-border:        #e2e8f0;
    --clr-border-subtle: #f1f5f9;
    --clr-border-dark:   #1e293b;
    --clr-border-gold:   rgba(217, 119, 6, 0.35);

    /* Header & Navigation */
    --header-h:          60px;
    --header-bg:         rgba(255, 255, 255, 0.98);

    /* Geometry & Transitions */
    --radius-sm:         6px;
    --radius-md:         10px;
    --radius-lg:         16px;
    --radius-full:       9999px;

    --ease:              cubic-bezier(0.16, 1, 0.3, 1);
    --transition:        all 0.3s var(--ease);

    /* Shadows */
    --shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md:         0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg:         0 8px 28px rgba(0, 0, 0, 0.12);
    --shadow-hover:      0 12px 32px rgba(0, 0, 0, 0.16);
    --shadow-dark:       0 10px 30px rgba(0, 0, 0, 0.45);

    /* Outer backdrop colors */
    --outer-bg-solid:    #077a39;
    --outer-bg-gradient: radial-gradient(circle at 50% 15%, #0b9347 0%, #066d31 65%, #044d22 100%);
}

/* =========================================
   DARK MODE OVERRIDES
   ========================================= */
[data-theme="dark"],
.dark-mode {
    --clr-bg-light:      #0b0f17;
    --clr-bg-surface:    #111827;
    --clr-bg-subtle:     #172033;
    --clr-bg-accent-box: #171d15;
    --clr-primary:       #f8fafc;
    --clr-text-heading:  #f8fafc;
    --clr-text-body:     #cbd5e1;
    --clr-text-muted:    #64748b;
    --clr-border:        #1e293b;
    --clr-border-subtle: #172033;
    --header-bg:         rgba(11, 15, 23, 0.98);
    --shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md:         0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg:         0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-hover:      0 12px 32px rgba(0, 0, 0, 0.6);
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    background: var(--outer-bg-solid);
    min-height: 100vh;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--clr-text-body);
    background: var(--outer-bg-solid);
    background-image: var(--outer-bg-gradient);
    background-attachment: fixed;
    background-size: cover;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   MOBILE APP CONTAINER (CENTERED ON DESKTOP)
   ========================================= */
.mobile-app-wrapper {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--clr-bg-light);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-top: 104px; /* clearance for fixed top banner + header */
    padding-bottom: 64px; /* clearance for sticky bottom bar */
    transition: background-color 0.35s ease;
}

/* Fixed Top Header Container */
.fixed-top-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 1000;
    background: var(--header-bg);
}

@media (max-width: 500px) {
    html, body {
        background: var(--clr-bg-light);
    }
    .mobile-app-wrapper,
    .fixed-top-header {
        max-width: 100%;
    }
    .mobile-app-wrapper {
        box-shadow: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--clr-text-heading);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.35s ease;
}

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

ul {
    list-style: none;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 4px;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* ---- Top Mobile App Promo / Download Banner ---- */
.top-app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #0f4c4a 0%, #064e3b 60%, #047857 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    z-index: 1001;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.top-app-banner.hidden {
    display: none !important;
}

.top-app-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    line-height: 1;
}
.top-app-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

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

.top-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.top-app-text {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.top-app-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.top-app-badge {
    background: #facc15;
    color: #0f172a;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.top-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #10b981;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
}
.top-app-btn:hover {
    background: #059669;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-bg-light);
    border: 1px solid var(--clr-primary);
}
.btn-primary:hover {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
    color: #ffffff;
}

.btn-gold {
    background: var(--clr-gold);
    color: #ffffff;
    border: 1px solid var(--clr-gold);
}
.btn-gold:hover {
    background: #b45309;
    border-color: #b45309;
}

.btn-outline-gold {
    background: transparent;
    color: var(--clr-text-heading);
    border: 1.5px solid var(--clr-text-heading);
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
}
.btn-outline-gold:hover {
    background: var(--clr-gold);
    border-color: var(--clr-gold);
    color: #ffffff;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--clr-border);
    background: var(--clr-bg-surface);
    color: var(--clr-text-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}
.theme-toggle-btn:hover {
    border-color: var(--clr-gold);
    color: var(--clr-gold);
}

/* ---- Header & Nav ---- */
#main-header {
    width: 100%;
    height: var(--header-h);
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    transition: var(--transition);
}

.header-container {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4.5px;
    padding: 6px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--clr-text-heading);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Smart Centered Logo */
.header-center,
.header-container .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: calc(100% - 170px);
    z-index: 1;
    pointer-events: auto;
}

.header-container .logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    max-width: 100%;
    overflow: hidden;
}

.logo-img {
    max-height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions-wrap,
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    flex-shrink: 0;
}

.header-btn-login {
    background: #0f172a;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}
.dark-mode .header-btn-login {
    background: #1e293b;
}

.header-btn-register {
    background: var(--clr-gold);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px var(--clr-gold-glow);
    transition: var(--transition);
}
.header-btn-register:hover {
    background: #b45309;
}

/* Mobile Slide-Out Drawer */
.nav-list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 290px;
    max-width: 80vw;
    height: 100vh;
    background: var(--clr-bg-surface);
    padding: 4rem 1.25rem 2rem;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
    z-index: 1005;
    overflow-y: auto;
}

.nav-list.active {
    left: 0;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.nav-list ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clr-text-heading);
    background: var(--clr-bg-subtle);
    border: 1px solid var(--clr-border);
    transition: var(--transition);
}

.nav-list ul li a:hover {
    background: var(--clr-gold);
    color: #ffffff;
    border-color: var(--clr-gold);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

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

.section-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--clr-text-heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

.diamond-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0.75rem auto 1.25rem;
}
.diamond-divider::before,
.diamond-divider::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--clr-border);
}
.diamond-divider i {
    font-size: 0.65rem;
    color: var(--clr-gold);
}

/* ---- Mobile Footer ---- */
#main-footer {
    background: #090d14;
    color: #94a3b8;
    padding: 3rem 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    font-size: 0.8rem;
    color: #94a3b8;
}
.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.footer-symbol-mark {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
}
.footer-symbol-mark i {
    transform: rotate(-45deg);
    color: #ffffff;
    font-size: 0.75rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #64748b;
}

.footer-bottom a {
    color: #94a3b8;
}

/* ---- Fixed Mobile Bottom Bar ---- */
.mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 10px;
    z-index: 999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    gap: 8px;
    align-items: center;
}

@media (max-width: 500px) {
    .mobile-bottom-bar {
        max-width: 100%;
    }
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 0.7rem 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.mobile-bottom-bar .btn-login {
    background: #1e3a8a;
    color: #ffffff;
    border: 1px solid #3b82f6;
}
.mobile-bottom-bar .btn-login:hover {
    background: #1d4ed8;
}

.mobile-bottom-bar .btn-register {
    background: #f59e0b;
    color: #0f172a;
    border: 1px solid #fbbf24;
}
.mobile-bottom-bar .btn-register:hover {
    background: #d97706;
    color: #ffffff;
}

.mobile-bottom-bar .btn-home {
    flex: 0 0 42px;
    height: 42px;
    padding: 0;
    background: #334155;
    color: #ffffff;
    border: 1px solid #475569;
    font-size: 0.95rem;
}