/* ============================================
   COMMON.CSS — Horizons Luxury Dark Mode
   Fonts: Plus Jakarta Sans + Inter
   Palette: Obsidian, Deep Slate, Luxury Gold & Emerald
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Safe Area Insets for Mobile */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);

    /* Brand & Surfaces in Premium Dark */
    --bg-body:          #080d16;
    --bg-body-alt:      #0d1424;
    --bg-card:          #111827;
    --bg-card-hover:    #172033;
    --bg-card-elevated: #162032;
    --bg-dark:          #05080f;
    --bg-dark-surface:  #0b111e;

    /* Borders & Outlines */
    --border-subtle:    rgba(255, 255, 255, 0.07);
    --border-card:      rgba(255, 255, 255, 0.1);
    --border-card-hover:rgba(245, 158, 11, 0.35);
    --border-dark:      rgba(255, 255, 255, 0.08);

    /* Typography Colors */
    --text-primary:     #f8fafc;
    --text-secondary:   #cbd5e1;
    --text-muted:       #94a3b8;
    --text-light:       #64748b;
    --text-white:       #ffffff;

    /* Accents */
    --accent-primary:   #ffffff;
    --accent-amber:     #f59e0b;
    --accent-gold:      #fbbf24;
    --accent-emerald:   #10b981;
    --accent-emerald-lt:rgba(16, 185, 129, 0.15);
    --accent-blue:      #38bdf8;
    --accent-red:       #f87171;

    /* Transitions & Shadows */
    --transition:       all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-xs:        6px;
    --radius-sm:        10px;
    --radius-md:        14px;
    --radius-lg:        20px;
    --radius-xl:        28px;
    --radius-pill:      9999px;

    --shadow-sm:        0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md:        0 6px 20px rgba(0, 0, 0, 0.45);
    --shadow-lg:        0 14px 36px rgba(0, 0, 0, 0.6);
    --shadow-gold:      0 0 25px rgba(245, 158, 11, 0.2);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-secondary);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    padding-top: calc(68px + var(--sat));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

/* Ambient Subtle Dark Gradient */
.ambient-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(16, 185, 129, 0.03) 0%, transparent 45%),
        #080d16;
    pointer-events: none;
    overflow: hidden;
}

.orb { display: none; }

html.no-scroll, body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

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

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

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: max(16px, var(--sal));
    padding-right: max(16px, var(--sar));
}

/* Minimalist Dark Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080d16; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ============================================
   HEADER & NAVIGATION (Fixed Header)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1005;
    background: rgba(8, 13, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sat);
}

header.scrolled {
    background: rgba(8, 13, 22, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1.25rem;
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

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

.logo-brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.logo-brand-text i {
    color: var(--accent-gold);
    font-size: 1.15rem;
}

/* Nav links (Desktop) */
.nav-list {
    display: flex;
    align-items: center;
}

.nav-list ul {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link .nav-arrow {
    display: none;
}

/* Mobile Drawer Extra Elements (hidden on desktop) */
.mobile-nav-header,
.mobile-nav-footer {
    display: none;
}

/* Header Search Bar */
.header-search {
    position: relative;
    flex: 1;
    max-width: 280px;
}

.header-search input {
    width: 100%;
    padding: 8px 16px 8px 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-size: 0.84rem;
    outline: none;
    transition: var(--transition);
}

.header-search input::placeholder {
    color: #64748b;
}

.header-search input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.header-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.82rem;
    pointer-events: none;
}

/* Header Auth Buttons */
.header-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-nav-login {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-nav-login:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-signup,
.btn-nav-signup {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #080d16 !important;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-signup:hover,
.btn-nav-signup:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.5);
    filter: brightness(1.08);
}

.btn-signup .arrow {
    transition: transform 0.2s ease;
}

.btn-signup:hover .arrow {
    transform: translateX(3px);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    z-index: 1010;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

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

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   ADS BANNER WRAPPER
   ============================================ */
.ad-wrapper {
    margin: 1.5rem auto 0;
}

.ad-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ad-container:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.18);
}

.ad-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

/* ============================================
   FOOTER (Dark Mode)
   ============================================ */
footer.glass-footer {
    background: #05080f;
    color: #94a3b8;
    padding: 4.5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand .footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 1.25rem;
}

.footer-brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.footer-nav h4,
.footer-contact h4,
.footer-subscribe h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav ul li a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: #ffffff;
    transform: translateX(3px);
    display: inline-block;
}

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

.footer-contact .contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Newsletter Subscribe Box */
.footer-subscribe p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-subscribe-form {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.footer-subscribe-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xs);
    color: #ffffff;
    font-size: 0.86rem;
    outline: none;
    transition: var(--transition);
}

.footer-subscribe-form input:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

.footer-subscribe-form button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #080d16;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 16px;
    border-radius: var(--radius-xs);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 42px;
}

.footer-subscribe-form button:hover {
    filter: brightness(1.1);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #64748b;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Fixed Bottom Navigation */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 13, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 14px calc(8px + var(--sab)) 14px;
    z-index: 999;
    gap: 10px;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px 10px;
    min-height: 46px;
    border-radius: var(--radius-pill);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    transition: var(--transition);
}

.mobile-bottom-bar a:active {
    transform: scale(0.97);
}

.mobile-bottom-bar .btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-bottom-bar .btn-login:hover {
    background: rgba(255, 255, 255, 0.14);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #080d16;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

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

/* ============================================
   RESPONSIVE BREAKPOINTS (COMMON)
   ============================================ */
@media (max-width: 1080px) {
    .header-search { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 860px) {
    .header-container {
        height: 62px;
        gap: 0.75rem;
    }

    .logo img {
        height: 32px;
    }

    .logo-brand-text {
        font-size: 1.1rem;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Off-canvas Mobile Drawer */
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: #0b111e;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: stretch;
        padding: calc(1.25rem + var(--sat)) 1.25rem calc(1.25rem + var(--sab)) 1.25rem;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
        z-index: 1002;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.75);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 0.75rem;
    }

    .mobile-nav-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-nav-title i {
        color: var(--accent-gold);
    }

    .mobile-nav-close {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: 0.95rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent-gold);
    }

    .nav-list ul {
        flex-direction: column;
        width: 100%;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

    .nav-link {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(245, 158, 11, 0.15);
        border-color: rgba(245, 158, 11, 0.3);
        color: var(--accent-gold);
    }

    .nav-link .nav-arrow {
        display: inline-block;
        color: rgba(255, 255, 255, 0.35);
        font-size: 0.75rem;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .btn-mobile-login,
    .btn-mobile-signup {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        text-align: center;
        padding: 11px 0;
        border-radius: var(--radius-pill);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: var(--transition);
    }

    .btn-mobile-login {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #ffffff;
    }

    .btn-mobile-signup {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: #080d16 !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-auth .lang-chip,
    .header-auth .btn-nav-login {
        display: none;
    }

    .header-auth .btn-signup {
        padding: 7px 14px;
        font-size: 0.8rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-top: calc(62px + var(--sat));
        padding-bottom: calc(66px + var(--sab));
    }
}

@media (max-width: 480px) {
    body {
        padding-top: calc(58px + var(--sat));
    }

    .container {
        width: 100%;
        padding-left: max(14px, var(--sal));
        padding-right: max(14px, var(--sar));
    }

    .header-container {
        height: 58px;
    }

    .logo-brand-text {
        font-size: 0.98rem;
        max-width: 140px;
    }

    .logo img {
        height: 28px;
    }

    .header-auth .btn-signup {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 4px;
    }

    .header-auth .btn-signup .arrow {
        display: none;
    }

    .mobile-menu-toggle {
        width: 38px;
        height: 38px;
    }

    footer.glass-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-brand-name {
        font-size: 1.2rem;
    }

    .footer-subscribe-form {
        flex-direction: column;
    }

    .footer-subscribe-form button {
        width: 100%;
        padding: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
}

