/* ============================================
   COMMON.CSS — Neon Cyber Theme
   Font: Space Grotesk + Syne
   Palette: Deep Purple, Electric Blue, Neon Cyan, Hot Pink
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
    --purple:       #7c3aed;
    --purple-light: #a78bfa;
    --purple-dark:  #4c1d95;
    --cyan:         #06b6d4;
    --cyan-light:   #67e8f9;
    --pink:         #ec4899;
    --pink-light:   #f9a8d4;
    --blue:         #3b82f6;
    --bg-deep:      #05030f;
    --bg-mid:       #0d0a1e;
    --bg-card:      #120f24;
    --bg-border:    rgba(124, 58, 237, 0.22);
    --text-main:    #e2d9f3;
    --text-muted:   #7c6fa0;
    --text-bright:  #ffffff;
    --primary:      #7c3aed;
    --accent:       #06b6d4;
    --danger:       #f43f5e;
    --success:      #10b981;
    --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --radius-xl:    30px;
    --shadow-purple: 0 8px 32px rgba(124, 58, 237, 0.25);
    --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.6);
    --glow-cyan:     0 0 20px rgba(6, 182, 212, 0.4);
    --glow-purple:   0 0 20px rgba(124, 58, 237, 0.4);
    --glow-pink:     0 0 20px rgba(236, 72, 153, 0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Ambient Background ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-deep);
    overflow: hidden;
}

.ambient-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 15% 25%, rgba(124,58,237,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 55% 40% at 85% 75%, rgba(6,182,212,0.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(236,72,153,0.06) 0%, transparent 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.orb-1 {
    width: 50vw; height: 50vw;
    background: rgba(124, 58, 237, 0.12);
    top: -20%; right: -15%;
    animation: orb-drift 20s infinite alternate ease-in-out;
}

.orb-2 {
    width: 40vw; height: 40vw;
    background: rgba(6, 182, 212, 0.1);
    bottom: -15%; left: -10%;
    animation: orb-drift 26s infinite alternate-reverse ease-in-out;
}

.orb-3 {
    width: 60vw; height: 20vh;
    background: rgba(236, 72, 153, 0.07);
    bottom: 0; left: 15%;
    filter: blur(120px);
}

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 40px) scale(1.1); }
}

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: 92%;
    max-width: 1380px;
    margin: 0 auto;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 10px; }

/* ── Header ── */
header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1380px;
    background: rgba(5, 3, 15, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-xl);
    z-index: 1005;
    height: 70px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(124,58,237,0.1);
    transition: var(--transition);
}

header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 62px;
    background: rgba(5, 3, 15, 0.97);
    border-color: rgba(124,58,237,0.15);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    transition: var(--transition);
}

header.scrolled .header-container { padding: 0 2rem; }

.logo img {
    height: 44px;
    transition: height 0.35s ease;
    filter: drop-shadow(0 0 10px rgba(124,58,237,0.35));
}

header.scrolled .logo img { height: 36px; }
.logo img:hover { filter: drop-shadow(0 0 18px rgba(6,182,212,0.6)); transform: scale(1.04); }

.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;
    padding-bottom: 4px;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1.5px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    transition: var(--transition);
}

.nav-list a:hover { color: var(--text-bright); }
.nav-list a:hover::after { width: 100%; }

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    padding: 0.5rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: var(--shadow-purple);
    border: 1px solid rgba(255,255,255,0.08);
    transition: var(--transition);
}

.header-auth .btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple), var(--glow-cyan);
    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(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 992px) {
    .nav-list {
        position: fixed;
        top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: #0a0718;
        padding: 6rem 2rem;
        z-index: 2000;
        box-shadow: -8px 0 40px rgba(0,0,0,0.7);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        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.7);
        backdrop-filter: blur(6px);
        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, #0a0718 0%, var(--bg-deep) 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(--purple), var(--cyan), 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(--cyan);
    margin-bottom: 1.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.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(--cyan); padding-left: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(124,58,237,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(--purple-light); margin-left: 1.5rem; font-size: 0.85rem; }

/* ── Ad Container ── */
.ad-container {
    max-width: 1200px;
    margin: 8rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-border);
    box-shadow: var(--glow-purple);
}

/* ── Section Title ── */
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 30%, var(--purple-light) 70%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-prefix {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.75rem;
    display: block;
}

/* ── Buttons ── */
.btn-green {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--shadow-purple);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-green::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-green:hover { transform: translateY(-2px); box-shadow: var(--glow-purple); color: #fff; }
.btn-green:hover::before { opacity: 1; }
.btn-green > * { position: relative; z-index: 1; }

.btn-yellow {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    box-shadow: var(--glow-pink);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(236,72,153,0.6);
    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(--cyan); }
.text-green  { color: var(--success); }
.text-warning { color: var(--pink) !important; }
.text-accent { color: var(--purple-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(124,58,237,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: rgba(5,3,15,0.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--bg-border);
    padding: 10px 14px;
    z-index: 1005;
    gap: 12px;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
}

.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(--purple-light);
    border: 1px solid var(--purple);
}

.mobile-bottom-bar .btn-register {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    color: #fff;
    border: 1px solid transparent;
}

@media (max-width: 768px) {
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 62px; }

    .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; }

    .header-container { padding: 1rem 5%; gap: 1rem; }
    .logo { flex-grow: 1; }
    .header-auth .btn-signup { padding: 0.45rem 0.9rem; font-size: 0.78rem; }
    .header-auth .arrow { display: none; }

    .ad-container { margin: 1.5rem auto; }

    .page-container > .ad-wrapper:first-child { padding-top: 5rem; }
}
