/* Reset & Variables — Premium Casino Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap');

:root {
    --primary-color: #d4af37;
    --primary-light: #f5d061;
    --primary-dark: #a8861c;
    --secondary-color: #c41e3a;
    --secondary-light: #e63946;
    --accent-color: #00c9a7;
    --bg-dark: #0a0f1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2235;
    --bg-glass: rgba(10, 15, 26, 0.85);
    --text-main: #f5f0e8;
    --text-muted: #9ca3af;
    --text-gold: #d4af37;
    --header-bg: rgba(10, 15, 26, 0.92);
    --border-color: rgba(212, 175, 55, 0.15);
    --border-gold: rgba(212, 175, 55, 0.4);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 4px 24px rgba(212, 175, 55, 0.25);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 72px;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 10px;
}

/* Header */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(10, 15, 26, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.85rem 5%;
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    justify-self: start;
}

.logo img {
    height: 42px;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.nav-list {
    justify-self: center;
}

.nav-list ul {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-light);
}

.nav-list a:hover::after {
    width: 100%;
}

.header-auth {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0f1a;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: var(--shadow-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
    color: #0a0f1a;
}

.btn-search {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover {
    background: rgba(212, 175, 55, 0.1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    justify-self: end;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .header-container {
        grid-template-columns: 1fr auto auto;
        gap: 0.6rem;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #0d1525;
        padding: 5rem 2rem;
        z-index: 999;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
        border-left: 1px solid var(--border-color);
    }

    .nav-list.active {
        display: block;
    }

    .nav-list ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .header-auth {
        display: flex;
        justify-self: end;
        gap: 0.5rem;
    }

    .header-auth .btn-signup {
        padding: 0.5rem 1rem;
        font-size: 0.72rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        justify-self: end;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0d1525 0%, #060a12 100%);
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-nav h4,
.footer-contact h4,
.footer-programs h4 {
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav ul,
.footer-programs ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav a,
.footer-programs a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-programs a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: #0a0f1a;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.ad-container {
    max-width: 1200px;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 26, 0.97);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-gold);
    padding: 10px 15px;
    z-index: 1005;
    gap: 12px;
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-color);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #0a0f1a;
    box-shadow: var(--shadow-gold);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 65px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav ul,
    .footer-programs ul,
    .footer-contact .contact-list {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== FLOATING AD BANNER ===== */
.floating-ad-banner {
    position: fixed;
    bottom: 90px;
    left: 0;
    right: 0;
    width: calc(100% - 32px);
    max-width: 420px;
    margin: 0 auto;
    z-index: 9999;
    transform: translateY(180%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    padding: 0 16px;
    will-change: transform;
    /* iOS safe area offset */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.floating-ad-banner.fb-visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-ad-banner.fb-hidden {
    transform: translateY(180%);
    opacity: 0;
}

.fb-inner {
    position: relative;
    background: linear-gradient(135deg, #1a1020 0%, #0e1526 50%, #15101e 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 14px 16px 14px 58px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.08), 0 0 30px rgba(212, 175, 55, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fb-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0f1a;
    font-size: 1rem;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.fb-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fb-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    transform: rotate(90deg);
}

.fb-text {
    margin-bottom: 10px;
}

.fb-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 4px;
}

.fb-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 2px;
    font-family: 'Playfair Display', serif;
}

.fb-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.fb-cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #0a0f1a;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.fb-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.42);
    color: #0a0f1a;
}

/* Desktop: bottom-right corner, wider layout */
@media (min-width: 993px) {
    .floating-ad-banner {
        bottom: 30px;
        left: auto;
        right: 30px;
        margin: 0;
        padding: 0;
        padding-bottom: 0;
    }

    .fb-inner {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 18px;
        padding: 18px 22px 18px 68px;
        min-width: 440px;
    }

    .fb-text {
        margin-bottom: 0;
    }

    .fb-cta {
        width: auto;
        padding: 10px 22px;
        white-space: nowrap;
    }
}

/* Hide banner behind mobile-bottom-bar zone on very small devices */
@media (max-width: 768px) {
    .floating-ad-banner {
        bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 380px) {
    .floating-ad-banner {
        width: calc(100% - 20px);
        padding: 0 10px;
    }
    .fb-inner {
        padding: 12px 12px 12px 52px;
    }
    .fb-icon {
        left: 10px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .fb-title {
        font-size: 0.88rem;
    }
    .fb-desc {
        font-size: 0.68rem;
    }
    .fb-cta {
        padding: 8px 0;
        font-size: 0.74rem;
    }
}
