/* ==========================================================================
   COMMON STYLESHEET - MOBILE-FIRST CASINO APP VIEW (MAX-WIDTH 460PX)
   ========================================================================== */

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

:root {
    --primary-color: #009e4f;
    --primary-dark: #007a3d;
    --accent-yellow: #ffcc00;
    --accent-blue: #0044aa;
    --accent-orange: #ff5500;
    
    --bg-body: #ffffff;
    --bg-surface: #f4f6f8;
    --bg-dark: #003311;
    --bg-header: #008844;
    
    --text-main: #1e293b;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;
    
    --border-light: #e2e8f0;
    --header-height: 56px;
    --mobile-width: 460px;
    
    --font-heading: 'Chakra Petch', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    background-color: #009e4f;
    background-image: linear-gradient(180deg, #009e4f 0%, #006633 100%);
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    padding-top: var(--header-height, 56px);
    padding-bottom: 74px; /* Room for bottom action bar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Strict Mobile Viewport Constraint on all screens */
    width: 100%;
    max-width: var(--mobile-width, 460px);
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul, ol {
    list-style: none;
}

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

button, input {
    font-family: inherit;
}

.container {
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER (CASINO GREEN + GOLD HAMBURGER + BLUE/YELLOW BUTTONS)
   ========================================================================== */

body > header {
    background-color: var(--bg-header, #008844);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width, 460px);
    height: var(--header-height, 56px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid var(--accent-yellow, #ffcc00);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    height: 100%;
    gap: 8px;
}

/* Hamburger menu button */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: #ffcc00;
    border-radius: 2px;
    transition: 0.3s;
}

.mobile-menu-toggle:hover span {
    background: #ffffff;
}

/* Logo */
.logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 4px;
}

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

.logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

/* Header Auth Buttons (Login + Register) */
.header-auth {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.btn-login-header {
    background: #003388;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login-header:hover {
    background: #0044aa;
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffcc00;
    color: #003311 !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-signup:hover {
    background: #ffe033;
}

/* ==========================================================================
   DRAWER NAVIGATION MENU (SLIDE-IN SIDEBAR)
   ========================================================================== */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width, 460px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.nav-list {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 100%;
    max-width: var(--mobile-width, 460px);
    height: 100vh;
    background: #003311;
    z-index: 1002;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list.active {
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #00220a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffcc00;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-drawer-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
}

.nav-list ul {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.nav-list a {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
}

.nav-list a::after {
    content: '›';
    color: #ffcc00;
    font-size: 1.2rem;
    font-weight: 800;
}

.nav-list a:hover {
    background: rgba(255, 204, 0, 0.15);
    color: #ffcc00;
}

/* ==========================================================================
   SECTION HEADER (MOBILE)
   ========================================================================== */

.section-header {
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 45px;
    height: 2.5px;
    background: var(--primary-color, #009e4f);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.section-title span {
    color: var(--primary-color, #009e4f);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.section-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-color, #009e4f);
    text-transform: uppercase;
    margin-top: 0.4rem;
}

/* ==========================================================================
   AD CONTAINER
   ========================================================================== */

.ad-container {
    width: 100%;
    padding: 0 16px;
    margin: 1.2rem auto;
}

.ad-container a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 158, 79, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ad-container img {
    width: 100%;
    height: auto;
    max-height: 70px;
    /* object-fit: cover; */
}

/* ==========================================================================
   FOOTER (MOBILE COMPACT)
   ========================================================================== */

footer {
    background: #00220a;
    padding: 2rem 16px 1.5rem;
    margin-top: 2rem;
    color: #ffffff;
    border-top: 3px solid var(--accent-yellow, #ffcc00);
}

.footer-container {
    width: 100%;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.55;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    color: #ffcc00;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.footer-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.8rem;
}

.footer-nav a {
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-nav a::before {
    content: '›';
    color: #ffcc00;
    font-weight: 800;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-contact p {
    color: #cbd5e1;
    font-size: 0.8rem;
}

.footer-contact .contact-badge {
    display: inline-block;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.4);
    color: #ffcc00;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-heading);
    width: fit-content;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.75rem;
    text-align: center;
}

.footer-links a {
    color: #ffcc00;
    font-weight: 600;
}

/* ==========================================================================
   BOTTOM STICKY BAR (STRICTLY CONSTRAINED TO 460PX)
   ========================================================================== */

.mobile-bottom-cta {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width, 460px);
    bottom: 0;
    z-index: 2000;
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #00220a;
    border-top: 2px solid #ffcc00;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

.mobile-bottom-cta-btn {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-bottom-cta-btn-login {
    flex: 1;
    color: #ffffff;
    background: #003388;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-bottom-cta-btn-bonus {
    flex: 1.4;
    color: #003311;
    background: #ffcc00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}