/* Royal Gold & Midnight Casino Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;900&display=swap');

:root {
    /* Luxury Casino Palette */
    --primary-color: #d4af37; /* Gold */
    --primary-hover: #f1c40f;
    --secondary-color: #800000; /* Deep Crimson */
    --bg-dark: #0a0a0a; /* Midnight Black */
    --bg-card: rgba(20, 20, 20, 0.95);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --header-bg: rgba(10, 10, 10, 0.98);
    --border-color: rgba(212, 175, 55, 0.3);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    text-transform: none;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(128, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-size: cover;
}

/* Base Utility Classes */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

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

ul {
    list-style: none;
}
img { max-width: 100%; height: auto;}

/* Header Rewrite */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    z-index: 2005;
    transition: var(--transition);
    height: 90px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
header.scrolled {
    height: 75px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}
.logo img {
    height: 45px;
    transition: var(--transition);
}
.nav-list ul {
    display: flex;
    gap: 1.5rem;
}
.nav-list a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 10px 0;
}
.nav-list a:hover {
    color: var(--primary-color);
}

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
    color: #000;
    padding: 0.8rem 2.2rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 5px;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.header-auth .btn-signup:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

/* Mobile Signin Button - Hidden on desktop */
.btn-mobile-signin {
    display: none;
}

.section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 2rem;
    color: #e5e7eb;
    text-transform: none;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.75rem;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.85;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 2001;
}
.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2004;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* Footer Rewrite */
footer {
    background: #030205;
    padding: 5rem 5% 2rem;
    margin-top: 5rem;
    border-top: 2px solid var(--primary-color);
    position: relative;
}
footer::before {
    content:'';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1), transparent 70%);
    pointer-events: none;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    position: relative; z-index: 2;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    max-width: 300px;
}
.footer-nav h4, .footer-contact h4 {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.footer-nav ul, .footer-contact ul {
    display: flex; flex-direction: column; gap: 0.8rem;
}
.footer-nav a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    position: relative; z-index: 2;
}

/* Mobile Bar */
.mobile-bottom-bar { display: none; }
@media(max-width: 992px) {
    .header-container { 
        padding: 0 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .logo {
        order: 0;
        flex-shrink: 0;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-dark);
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        transition: right 0.4s;
        border-left: 1px solid var(--primary-color);
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 2rem; }
    .mobile-menu-toggle { 
        display: flex;
        order: 3;
        flex-shrink: 0;
    }
    .header-auth .btn-signup { display: none; }
    
    /* Mobile Signin Button */
    .btn-mobile-signin {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, var(--primary-color), #b8860b);
        color: #000;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        font-weight: 800;
        text-transform: uppercase;
        border-radius: 5px;
        text-decoration: none;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
        transition: var(--transition);
        order: 2;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    .btn-mobile-signin:hover {
        background: #fff;
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    
    .btn-mobile-signin i {
        font-size: 0.9rem;
    }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .footer-desc { margin: 1rem auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-dark);
        border-top: 1px solid var(--primary-color);
        padding: 10px;
        z-index: 1005;
        justify-content: space-between;
        gap: 10px;
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center; padding: 12px 0;
        font-family: 'Inter', sans-serif; font-weight: bold;
        text-transform: uppercase; border-radius: 4px;
    }
    .mobile-bottom-bar .btn-login { border: 1px solid var(--primary-color); color: var(--primary-color); background: #fff; }
    .mobile-bottom-bar .btn-register { background: var(--primary-color); color: #fff; }
    body { padding-bottom: 60px; }
}