/* ============================================
   COMMON.CSS — Luxury Casino Theme
   Font: Playfair Display + Inter
   Palette: Deep Navy, Royal Gold, Rich Red, Soft Cream
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --navy:          #0a1628;
    --navy-light:    #12233d;
    --navy-dark:     #050c16;
    --gold:          #c9a227;
    --gold-light:    #e8c547;
    --gold-dark:     #8f6e1a;
    --red:           #b91c1c;
    --red-light:     #dc2626;
    --cream:         #fef3c7;
    --cream-dark:    #fde68a;
    --bg-primary:    #050c16;
    --bg-secondary:  #0a1628;
    --bg-card:       #0f1f36;
    --bg-border:     rgba(201, 162, 39, 0.25);
    --text-main:     #e5e7eb;
    --text-muted:    #9ca3af;
    --text-bright:   #ffffff;
    --primary:       #c9a227;
    --accent:        #dc2626;
    --success:       #10b981;
    --transition:    all 0.3s ease;
    --radius-sm:     4px;
    --radius-md:     8px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --shadow-gold:   0 8px 32px rgba(201, 162, 39, 0.2);
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.5);
    --glow-gold:     0 0 20px rgba(201, 162, 39, 0.3);
    --glow-red:      0 0 20px rgba(220, 38, 38, 0.3);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Ambient Background ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-primary);
    overflow: hidden;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(201,162,39,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 20% 80%, rgba(185,28,28,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 35% 25% at 50% 50%, rgba(201,162,39,0.04) 0%, transparent 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.orb-1 {
    width: 45vw; height: 45vw;
    background: rgba(201, 162, 39, 0.1);
    top: -15%; right: -10%;
    animation: orb-drift 18s infinite alternate ease-in-out;
}

.orb-2 {
    width: 35vw; height: 35vw;
    background: rgba(185, 28, 28, 0.08);
    bottom: -10%; left: -5%;
    animation: orb-drift 24s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 50vw; height: 15vh;
    background: rgba(201, 162, 39, 0.05);
    bottom: 0; left: 10%;
    filter: blur(140px);
}

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(25px, 35px) scale(1.08); }
}

html.no-scroll, 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: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(5,12,22,0.98) 0%, rgba(5,12,22,0.9) 100%);
    border-bottom: 1px solid var(--bg-border);
    z-index: 1005;
    height: 76px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 64px;
    background: rgba(5,12,22,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    transition: var(--transition);
}

.logo img {
    height: 42px;
    transition: height 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(201,162,39,0.4));
}

header.scrolled .logo img { height: 36px; }
.logo img:hover { filter: drop-shadow(0 0 14px rgba(201,162,39,0.7)); transform: scale(1.03); }

.nav-list ul { display: flex; gap: 2.25rem; }

.nav-list a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 4px;
    text-transform: uppercase;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: var(--transition);
}

.nav-list a:hover { color: var(--gold-light); }
.nav-list a:hover::after { width: 100%; }

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-gold);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    text-transform: uppercase;
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
    filter: brightness(1.1);
}

/* ── Mobile Toggle ── */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    z-index: 2001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--gold-light);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: var(--bg-secondary);
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -8px 0 40px rgba(0,0,0,0.7);
        transition: right 0.4s ease;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        border-left: 1px solid var(--bg-border);
    }

    .nav-list.active { right: 0; visibility: visible; }
    .nav-list ul { flex-direction: column; gap: 1.8rem; }

    .mobile-menu-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.75);
        z-index: 998;
    }

    .mobile-menu-overlay.active { display: block; }
    .mobile-menu-toggle { display: flex; }

    .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Footer ── */
footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 5rem 5% 2.5rem;
    margin-top: 5rem;
    border-top: 1px solid var(--bg-border);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), transparent);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-nav h4, .footer-contact h4 {
    color: var(--gold);
    margin-bottom: 1.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-light); padding-left: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(201,162,39,0.12);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a { color: var(--gold-light); margin-left: 1.5rem; font-size: 0.85rem; }

/* ── Ad Container ── */
.ad-container {
    max-width: 1200px;
    margin: 6rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-border);
    box-shadow: var(--shadow-gold);
}

/* ── Section Title ── */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-bright);
    letter-spacing: -0.5px;
}

.section-prefix {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Buttons ── */
.btn-green {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    padding: 12px 30px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-green:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); color: var(--navy-dark); filter: brightness(1.08); }

.btn-yellow {
    background: linear-gradient(135deg, var(--red), var(--red-light));
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--glow-red);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(220,38,38,0.5);
    color: #fff;
}

/* ── Utility Classes ── */
.text-muted-light { color: var(--text-muted); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.5px; }
.text-white  { color: #fff; }
.text-gold   { color: var(--gold); }
.text-green  { color: var(--success); }
.text-warning { color: var(--red-light) !important; }
.text-accent { color: var(--gold-light); }
.text-center { text-align: center; }
.text-start  { text-align: left; }
.fw-bold     { font-weight: 700; }
.fs-3        { font-size: 1.875rem; }
.fs-4        { font-size: 1.5rem; }
.fs-5        { font-size: 1.25rem; }
.fs-6        { font-size: 1rem; }
.d-flex      { display: flex; }
.d-none      { display: none; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; } .gap-5 { gap: 3rem; }
.me-2 { margin-right: 0.5rem; } .ms-2 { margin-left: 0.5rem; }
.ms-auto { margin-left: auto; }
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }   .mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-0 { padding-top: 0 !important; } .pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; } .pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.p-3 { padding: 1rem; } .p-5 { padding: 3rem; }
.border-0 { border: none !important; }
.background-none { background: none !important; }
.border-top-dark { border-top: 1px solid rgba(201,162,39,0.15); }

@media (min-width: 992px) { .d-lg-flex { display: flex; } }
@media (min-width: 768px) { .d-md-block { display: block; } }

/* ── Mobile Bottom Bar ── */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(5,12,22,0.98) 0%, rgba(5,12,22,1) 100%);
    border-top: 1px solid var(--bg-border);
    padding: 10px 14px;
    /* Safe area for iPhone notch / home indicator */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1005;
    gap: 12px;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}

.mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-bottom-bar .btn-login {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    border: 1px solid transparent;
}

@media (max-width: 1200px) {
    .container { padding: 0 4%; }
}

@media (max-width: 992px) {
    header { width: 100%; border-radius: 0; top: 0; }
    .header-container { padding: 0 1.25rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: max(75px, calc(60px + env(safe-area-inset-bottom, 0px))); }

    .section-title { font-size: 1.7rem; margin-bottom: 2.5rem; }

    footer { padding: 3.5rem 5% 2rem; margin-top: 3rem; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .footer-brand .footer-desc { text-align: center; margin: 0 auto; }
    .footer-nav ul, .footer-contact .contact-list { align-items: center; }
    .footer-contact .contact-list li { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1.2rem; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .footer-links a { margin-left: 0; min-height: 44px; display: inline-flex; align-items: center; }

    .header-container { padding: 0 1.2rem; gap: 0.8rem; }
    .logo { flex-grow: 1; }
    .logo img { height: 36px; }
    .logo a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
    .header-auth .btn-signup { padding: 0.75rem 1.2rem; font-size: 0.78rem; min-height: 44px; min-width: 44px; }
    .header-auth .arrow { display: none; }

    .ad-container { margin: 1.5rem auto; }

    .page-container > .ad-wrapper:first-child { padding-top: 5rem; }
    
    .container { padding: 0 1.25rem; }
}

@media (max-width: 576px) {
    body { padding-bottom: 70px; }
    .logo img { height: 32px; }
    .header-container { padding: 0 1rem; gap: 0.5rem; }
    .mobile-menu-toggle { width: 44px; height: 44px; }
    .mobile-bottom-bar { padding: 12px 16px; gap: 12px; }
    .mobile-bottom-bar a { padding: 12px 0; font-size: 0.85rem; min-height: 48px; }
    .mobile-bottom-bar a i { font-size: 1rem; }
    .container { padding: 0 1.25rem; }
    .section-title { font-size: 1.5rem; line-height: 1.3; margin-bottom: 2rem; }
    footer { padding: 3rem 5% 1.75rem; }
    .header-auth .btn-signup { padding: 0.6rem 0.8rem; font-size: 0.72rem; white-space: nowrap; }
}

@media (max-width: 400px) {
    body { padding-bottom: 65px; }
    .logo img { height: 28px; }
    .mobile-bottom-bar { padding: 10px 12px; gap: 10px; }
    .mobile-bottom-bar a { padding: 10px 0; font-size: 0.8rem; min-height: 46px; }
    .container { padding: 0 1rem; }
    .section-prefix { font-size: 0.62rem; letter-spacing: 2px; }
    .section-title { font-size: 1.4rem; }
    .header-auth .btn-signup { padding: 0.5rem 0.6rem; font-size: 0.68rem; white-space: nowrap; }
}
