/* ============================================
   COMMON.CSS
   Palette: Neon Red | Cyber Blue | Dark Obsidian
   Font: Inter + Orbitron
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #ff0040;
    --primary-dark: #cc0033;
    --primary-glow: rgba(255, 0, 64, 0.4);
    --secondary-color: #00e5ff;
    --accent-color: #ffd700;
    --bg-dark: #0a0a0f;
    --bg-surface: #11111a;
    --bg-card: rgba(17, 17, 26, 0.95);
    --bg-glass: rgba(10, 10, 15, 0.9);
    --text-main: #ffffff;
    --text-muted: #9aa0b4;
    --text-light: #d1d5db;
    --header-bg: rgba(10, 10, 15, 0.98);
    --border-color: rgba(255, 0, 64, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --radius: 4px;
    --radius-lg: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.85;
    font-size: 17px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255, 0, 64, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 45% at 90% 100%, rgba(0, 229, 255, 0.06) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: -0.2px;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

.container {
    width: 94%;
    max-width: 1280px;
    margin: 0 auto;
}

/* ── Ambient ── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 35% at 15% 20%, rgba(255, 215, 0, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 85% 80%, rgba(0, 229, 255, 0.03) 0%, transparent 55%);
}
.ambient-background .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.orb-1 { width: 500px; height: 500px; background: var(--primary-color); top: -100px; right: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--secondary-color); bottom: 10%; left: -100px; }
.orb-3 { width: 200px; height: 200px; background: var(--accent-color); top: 50%; left: 50%; opacity: 0.06; }

/* ── Header ── */
header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 2005;
    height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0,0,0,0.7);
    height: 70px;
}
.glass-nav {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle) !important;
}
.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
}
.logo img {
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: var(--transition);
}
.logo img:hover { filter: drop-shadow(0 0 15px rgba(255, 0, 64, 0.6)); }

.nav-list ul { display: flex; gap: 0; align-items: center; }
.nav-list a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: none;
    letter-spacing: 0.2px;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    transition: var(--transition);
}
.nav-list a:hover { 
    color: var(--primary-color); 
    border-color: var(--primary-color);
    background: rgba(255, 0, 64, 0.05);
}

.header-auth .btn-signup {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.2px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.header-auth .btn-signup:hover {
    background: var(--primary-color);
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 2010;
    transition: var(--transition);
}
.mobile-menu-toggle:hover { border-color: var(--primary-color); }
.mobile-menu-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-main);
    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; inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2004;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }
body.no-scroll { overflow: hidden; }

/* ── Section Titles ── */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #fff;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
}
.section-title.text-white { color: #fff; }

/* ── Footer ── */
footer {
    background: #050508;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    line-height: 1.7;
}
.footer-nav h4, .footer-contact h4 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.footer-nav a:hover { color: var(--primary-color); }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--primary-color); }

/* ── Mobile Bottom Bar ── */
.mobile-bottom-bar { display: none; }

/* ── Ad Container ── */
.ad-container {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 0, 64, 0.02);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .header-container { padding: 0 1.25rem; }
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: 260px;
        height: 100vh; height: 100dvh;
        background: #0c0c12;
        padding: 5rem 1.25rem 2rem;
        z-index: 2008;
        border-left: 1px solid var(--border-subtle);
        box-shadow: -20px 0 50px rgba(0,0,0,0.9);
        transition: right 0.4s ease;
        overflow-y: auto;
    }
    .nav-list.active { right: 0; }
    .nav-list ul { flex-direction: column; gap: 0.3rem; }
    .nav-list a { font-size: 0.8rem; padding: 0.8rem 1rem; display: block; }
    .mobile-menu-toggle { display: flex; }
    .header-auth .btn-signup { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-brand .footer-desc { margin: 0.75rem auto; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0;
        width: 100%;
        background: #050508;
        border-top: 1px solid var(--border-subtle);
        padding: 8px 10px;
        z-index: 1005;
        gap: 8px;
    }
    .mobile-bottom-bar a {
        flex: 1; text-align: center;
        padding: 10px 0;
        font-family: 'Orbitron', sans-serif;
        font-weight: 800;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: var(--transition);
    }
    .mobile-bottom-bar .btn-login { border: 1px solid var(--secondary-color); color: var(--secondary-color); }
    .mobile-bottom-bar .btn-register { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff; font-weight: 800; box-shadow: 0 0 15px var(--primary-glow); }
    body { padding-bottom: 60px; }
}
