/* ==========================================================================
   COMMON STYLESHEET - MOBILE-FOCUSED CASINO THEME (STRICT MOBILE LAYOUT)
   Locked to Mobile Viewport (max-width: 500px) Centered on All Screens
   ========================================================================== */

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

:root {
    /* Brand Colors - Royal Blue & Tech Indigo */
    --primary: #1a56db;
    --primary-hover: #1646b5;
    --primary-dark: #0f368a;
    --primary-light: #3b82f6;
    --primary-soft: #eef4ff;
    --primary-gradient: linear-gradient(135deg, #1a56db 0%, #0284c7 100%);
    --primary-gradient-hover: linear-gradient(135deg, #1646b5 0%, #0369a1 100%);
    
    /* Secondary & Dark Accent Colors */
    --navy-deep: #081126;
    --navy-card: #0d1a3a;
    --navy-accent: #172a5a;
    --navy-border: #1e3674;
    
    /* Vibrant Accents */
    --accent-gold: #f59e0b;
    --accent-gold-light: #fef3c7;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-cyan: #06b6d4;

    /* Light Theme Backgrounds (Default) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-alt: #f1f5f9;
    --bg-dark-section: #08122c;

    /* Light Theme Text Colors */
    --text-heading: #09122a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Borders & Lines */
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-blue: rgba(26, 86, 219, 0.16);

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 30px -6px rgba(26, 86, 219, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-blue: 0 10px 25px -4px rgba(26, 86, 219, 0.35);

    /* Animation Transitions */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* ── Enhanced Dark Mode Overrides (Luxury Midnight Casino Palette) ── */
[data-theme="dark"] {
    --bg-body: #080f24;
    --bg-card: #0f1c3f;
    --bg-card-alt: #162654;
    --bg-dark-section: #050a18;

    --text-heading: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #8fa0c0;
    --text-light: #5f739c;

    --border-color: rgba(255, 255, 255, 0.09);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-blue: rgba(96, 165, 250, 0.35);
    --primary-soft: rgba(26, 86, 219, 0.25);

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] html {
    background: #040714 radial-gradient(circle at 50% 15%, rgba(26, 86, 219, 0.14) 0%, transparent 65%);
}

[data-theme="dark"] body {
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(26, 86, 219, 0.25);
    border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Outer screen background for desktop/laptop — gives a high-end mobile showcase framing */
    background: #060d1f;
    min-height: 100%;
}

/* STRICT MOBILE VIEWPORT: max-width 500px centered on laptop/desktop */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-body);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(26, 86, 219, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: hidden;
    padding-bottom: 76px; /* Room for bottom fixed mobile bar */
    -webkit-font-smoothing: antialiased;
}

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

body.no-scroll {
    overflow: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ==========================================================================
   MOBILE TOP INFO BAR
   ========================================================================== */

.topbar {
    background: var(--primary);
    color: #ffffff;
    font-size: 0.74rem;
    padding: 0.45rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    font-weight: 600;
}

.topbar-item svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.topbar-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */

body > header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    width: 100%;
}

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

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* Mobile Nav Drawer (Scoped to the 500px mobile container) */
.nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem 1.2rem;
    z-index: 999;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    max-height: 80vh;
    overflow-y: auto;
}

.nav-list.active {
    display: block;
    animation: slideDown 0.25s ease-out;
}

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

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

.nav-list a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-heading);
    padding: 0.75rem 0.5rem;
    display: block;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary);
    padding-left: 0.8rem;
    background: var(--primary-soft);
}

/* Theme Toggle Button */
.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.theme-toggle:hover,
.theme-toggle:active {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.08);
}

.theme-toggle .sun-icon {
    display: none;
    color: #f59e0b;
}

.theme-toggle .moon-icon {
    display: block;
    color: var(--text-heading);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] body > header {
    background-color: #0e1836;
}

[data-theme="dark"] .nav-list {
    background: #0e1836;
}

[data-theme="dark"] .mobile-fixed-btn {
    background: rgba(14, 24, 54, 0.98);
}

/* Header Auth Button */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 0.6rem;
}

.header-auth .btn-signup {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 3px 10px rgba(26, 86, 219, 0.35);
}

.header-auth .btn-signup:hover {
    background: var(--primary-gradient-hover);
    color: #ffffff;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    z-index: 1001;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    background: var(--primary);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary);
}

/* ==========================================================================
   MOBILE SECTION HEADERS
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.6rem;
    border: 1px solid rgba(26, 86, 219, 0.15);
}

.section-title {
    font-size: 1.55rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-heading);
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.section-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding: 0 0.5rem;
}

/* ==========================================================================
   AD CONTAINER (MOBILE)
   ========================================================================== */

.ad-wrapper {
    margin: 1.8rem auto;
}

.ad-container {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-xs);
}

/* ==========================================================================
   FOOTER (MOBILE STACK)
   ========================================================================== */

/* ==========================================================================
   FOOTER (MODERN MOBILE CARD-BASED LAYOUT)
   ========================================================================== */

footer {
    background: var(--navy-deep);
    color: #cbd5e1;
    padding: 2.2rem 0 1.2rem;
    border-top: 3px solid var(--primary);
    position: relative;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

/* Brand & Accreditation Card */
.footer-brand-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.1rem;
    text-align: center;
}

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

.footer-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.footer-trust-item {
    background: var(--navy-card);
    border: 1px solid var(--navy-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffffff;
}

.trust-icon {
    font-size: 0.85rem;
}

/* General Footer Card */
.footer-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.1rem;
}

.footer-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.f-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 6px var(--primary-light);
}

.f-indicator--green {
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
}

.footer-card-header h4 {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

/* Navigation Chips Grid */
.footer-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.footer-chip {
    background: var(--navy-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-chip:hover,
.footer-chip:active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-chip svg {
    opacity: 0.6;
    transition: var(--transition);
}

.footer-chip:hover svg,
.footer-chip:active svg {
    opacity: 1;
    transform: translateX(2px);
}

/* 24/7 CS Support Body */
.footer-support-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--navy-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
}

.support-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(26, 86, 219, 0.2);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.support-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.support-val {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Compliance Disclaimer Box */
.footer-compliance {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-compliance p {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.76rem;
    gap: 0.6rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

.footer-bottom-links .divider {
    color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   MOBILE FIXED BOTTOM BAR (ALWAYS VISIBLE & PINNED TO 500px CONTAINER)
   ========================================================================== */

.mobile-fixed-btn {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 0.65rem 1rem 0.85rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.mobile-btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 0.75rem 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.mobile-btn--outline {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.mobile-btn--outline:active,
.mobile-btn--outline:hover {
    background: var(--primary-soft);
}

.mobile-btn--solid {
    background: var(--primary-gradient);
    color: #ffffff;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.35);
}

.mobile-btn--solid:active,
.mobile-btn--solid:hover {
    background: var(--primary-gradient-hover);
}
