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

:root {
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Color Palette - Vibrant Teal-Emerald & Sunset Tangerine */
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-primary-darker: #064e3b;
    --color-primary-light: #ecfdf5;
    --color-primary-glow: rgba(5, 150, 105, 0.28);
    
    --color-accent: #f97316;
    --color-accent-hover: #ea580c;
    --color-accent-dark: #c2410c;
    --color-accent-light: #fff7ed;
    --color-accent-glow: rgba(249, 115, 22, 0.35);
    
    --color-gold: #eab308;
    --color-gold-light: #fef9c3;
    --color-red: #ef4444;
    --color-blue: #0284c7;
    --color-white: #ffffff;
    
    /* Backgrounds */
    --bg-page: #ffffff;
    --bg-outer: #0b1c15;
    --bg-section: #ffffff;
    --bg-section-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.96);
    --bg-footer: #062319;
    --bg-footer-dark: #02140e;
    
    /* Text */
    --color-text-heading: #0f172a;
    --color-text-body: #334155;
    --color-text-muted: #64748b;
    --color-text-light: #ffffff;
    
    /* Borders */
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --border-primary: rgba(5, 150, 105, 0.25);
    --border-accent: rgba(249, 115, 22, 0.3);
    
    /* Shadows & Radii */
    --box-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --box-shadow-lg: 0 16px 36px rgba(5, 150, 105, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --gradient-primary: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --gradient-hero: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%);
    --gradient-gold: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-rose: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);

    /* Mobile Container Width */
    --mobile-width: 480px;
}

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

/* Outer Desktop Background: Centers the mobile screen like an app preview */
body {
    background-color: var(--bg-outer);
    background-image: radial-gradient(circle at 50% 15%, rgba(5, 150, 105, 0.18) 0%, transparent 60%);
    color: var(--color-text-body);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    padding-top: 66px;
    padding-bottom: 74px; /* Space for sticky bottom navigation */
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    margin-top: 0;
}

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

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

/* Strictly Constrained Mobile Frame (Locked to Mobile View even on Laptop) */
.main-container,
.page-container {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.35);
    overflow-x: hidden;
}

/* Global Ad Banner Container */
.ad-banner-container,
.banner-wrapper {
    padding: 12px 14px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.ad-banner-container img,
.banner-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--box-shadow-sm);
    border: 1px solid var(--border-color);
}

/* ===== FIXED TOP MOBILE HEADER (LOCKED TO MOBILE WIDTH) ===== */
.main-header {
    background-color: var(--bg-header);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
    height: 64px;
    display: flex;
    align-items: center;
}

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

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

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

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

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

.btn-login {
    background-color: transparent;
    color: var(--color-text-heading);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-register {
    background: var(--gradient-accent);
    color: var(--color-white);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px var(--color-accent-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-register:hover {
    filter: brightness(1.08);
}

/* Mobile Hamburger Toggle */
.menu-toggle {
    background-color: var(--color-primary-light);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: var(--color-primary-dark);
}

.menu-toggle.active,
.menu-toggle:hover {
    background-color: var(--color-primary);
}

.menu-toggle.active svg,
.menu-toggle:hover svg {
    fill: var(--color-white);
}

/* Mobile Dropdown Nav Menu (Sliding within the 480px frame) */
.desktop-nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 64px;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
    z-index: 999;
    border-top: 1px solid var(--border-color);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 12px 14px 20px;
}

.desktop-nav.active {
    display: block;
}

.desktop-nav ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-nav li {
    width: 100%;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-heading);
    display: flex;
    align-items: center;
    padding: 11px 14px;
    width: 100%;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-color-light);
}

.desktop-nav a:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* Mobile Nav Strip Hidden */
.mobile-nav-strip {
    display: none;
}

/* ===== STICKY MOBILE BOTTOM BAR (AUTHENTIC MOBILE CASINO APP EXPERIENCE) ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    height: 62px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding: 0 6px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
    padding: 5px 6px;
    border-radius: 12px;
    transition: var(--transition);
    flex: 1;
    text-align: center;
    position: relative;
}

.bottom-nav-item i {
    font-size: 16px;
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.bottom-nav-item.active i {
    background: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.15);
}

.bottom-nav-item:hover i:not(.bottom-nav-item.highlight i) {
    transform: translateY(-2px);
    color: var(--color-primary);
}

.bottom-nav-item.highlight {
    color: var(--color-accent-hover);
}

.bottom-nav-item.highlight i {
    background: var(--gradient-accent);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: -16px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px var(--color-accent-glow), 0 0 0 1px rgba(249, 115, 22, 0.2);
    animation: bottom-btn-pulse 2.5s infinite ease-in-out;
}

@keyframes bottom-btn-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 6px 16px var(--color-accent-glow);
    }
    50% {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 22px rgba(249, 115, 22, 0.5);
    }
}

/* ===== MOBILE FOOTER ===== */
.main-footer {
    background-color: var(--bg-footer);
    color: #cbd5e1;
    padding: 40px 18px 24px;
    margin-top: 30px;
    position: relative;
    border-top: 3px solid var(--color-primary);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
    filter: brightness(1.2);
}

.footer-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.footer-nav h4,
.footer-contact h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 14px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-nav h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 26px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a,
.footer-contact p,
.footer-contact a {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-contact p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom {
    width: 100%;
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-copyright {
    color: #64748b;
    font-size: 12px;
}

.footer-copyright a {
    color: #cbd5e1;
    font-weight: 600;
}

/* Trust Badges Certification Bar */
.trust-badges-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 10px;
    width: 100%;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 700;
    color: #e2e8f0;
}

.trust-badge-pill i {
    color: var(--color-accent);
}

.article-trust-chips .trust-badge-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--color-text-heading);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0b1c15;
}
::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 3px;
}
