/* ===================================================
   SKYAPEX SUPPORT — SHARED DESIGN SYSTEM
   Included by all pages for consistent branding.
=================================================== */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- CSS VARIABLES ---- */
:root {
    --bg: #050505;
    --surface: #0a0a0a;
    --surface-2: #111111;
    --border: #222222;
    --border-2: #333333;
    --primary: #F5B84A;
    --primary-hover: #D49D38;
    --primary-light: #F5C05F;
    --primary-dark: #C99B34;
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-faint: #666666;
    --red: #ef4444;
    --green: #22c55e;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444444; }

/* ---- PRELOADER ---- */
#preloader {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    background-color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }

.preloader-spinner {
    position: relative; width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
}
.preloader-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 4px solid #222222; border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}
.preloader-icon { color: var(--primary); font-size: 1.25rem; }

/* ---- NAV ---- */
nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background-color: rgba(5,5,5,0.80);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 1rem;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
@media (min-width: 640px) { .nav-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nav-inner { padding: 0 2rem; } }

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(245,184,74,0.3); flex-shrink: 0;
}
.nav-logo-icon i { color: #000; font-size: 0.875rem; }
.nav-logo-text {
    font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em;
    color: var(--text-main); font-family: 'Outfit', sans-serif;
}

.nav-links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: #9ca3af;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-main); }

.nav-actions { display: none; align-items: center; gap: 1.5rem; }
@media (min-width: 768px) { .nav-actions { display: flex; } }

.nav-actions .btn-login {
    font-size: 0.875rem; font-weight: 500;
    color: #d1d5db; transition: color 0.2s ease;
}
.nav-actions .btn-login:hover { color: var(--text-main); }

.nav-actions .btn-register {
    padding: 0.625rem 1.5rem; border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 500; color: var(--text-main);
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(4px); transition: all 0.3s ease;
}
.nav-actions .btn-register:hover {
    background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.2);
}

/* Mobile hamburger */
.mobile-menu-btn {
    display: flex; align-items: center; padding: 0.5rem;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); transition: color 0.2s ease;
}
.mobile-menu-btn:hover { color: var(--text-main); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile dropdown */
.mobile-menu {
    display: none; background-color: var(--surface);
    border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
    padding: 0.5rem 1rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.25rem;
}
.mobile-menu a {
    display: block; padding: 0.5rem 0.75rem;
    font-size: 0.875rem; font-weight: 500;
    color: var(--text-muted); transition: color 0.2s ease; border-radius: var(--radius-sm);
}
.mobile-menu a:hover { color: var(--text-main); }
.mobile-menu-actions { padding-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }

.btn-secondary-mobile, .btn-primary-mobile {
    display: block; text-align: center; padding: 0.5rem 1rem;
    border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; transition: all 0.3s ease;
}
.btn-secondary-mobile {
    color: var(--text-main); border: 1px solid var(--primary); background: transparent;
}
.btn-secondary-mobile:hover { background: rgba(245,184,74,0.1); }
.btn-primary-mobile { color: #050505; background-color: var(--primary); border: 1px solid var(--primary); }
.btn-primary-mobile:hover { background-color: var(--primary-hover); }

/* ---- FOOTER ---- */
footer.site-footer {
    background-color: #050505;
    border-top: 1px solid var(--border);
    padding: 4rem 1rem 2rem;
}
@media (min-width: 640px) { footer.site-footer { padding: 4rem 1.5rem 2rem; } }
@media (min-width: 1024px) { footer.site-footer { padding: 4rem 2rem 2rem; } }

.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 3rem; margin-bottom: 4rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .brand-logo-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.footer-brand .brand-logo-row .logo-icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(245,184,74,0.3);
}
.footer-brand .brand-logo-row .logo-icon i { color: #000; font-size: 0.875rem; }
.footer-brand .brand-logo-row span {
    font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em;
    color: var(--text-main); font-family: 'Outfit', sans-serif;
}
.footer-brand p {
    color: var(--text-muted); font-size: 0.875rem;
    margin-bottom: 1.5rem; max-width: 20rem; line-height: 1.6;
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    border: 1px solid #333; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.875rem; transition: all 0.2s ease;
}
.footer-social a:hover { color: var(--text-main); background-color: #111; }

.footer-col h4 { color: var(--text-main); font-weight: 500; margin-bottom: 1rem; font-size: 0.875rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--text-main); }

.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 2rem;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    gap: 1rem; font-size: 0.75rem; color: var(--text-faint);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-status { display: flex; align-items: center; gap: 0.5rem; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: var(--text-main); }

/* ---- TOAST ---- */
#toast-container {
    position: fixed; bottom: 1rem; right: 1rem;
    z-index: 9999; display: flex; flex-direction: column;
    gap: 0.5rem; pointer-events: none;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
    padding: 8rem 1rem 4rem;
    text-align: center;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.page-hero-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 600px; height: 600px;
    background: rgba(245,184,74,0.07); border-radius: 50%;
    filter: blur(120px); pointer-events: none;
}
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 1rem; border-radius: var(--radius-full);
    background: rgba(245,184,74,0.08); border: 1px solid rgba(245,184,74,0.2);
    font-size: 0.75rem; font-weight: 500; color: var(--primary-light);
    margin-bottom: 1.5rem;
}
.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700; color: var(--text-main);
    letter-spacing: -0.03em; margin-bottom: 1rem;
}
.page-hero p {
    color: #9ca3af; font-size: 1.125rem;
    max-width: 42rem; margin: 0 auto;
}

/* ---- CONTENT WRAPPER ---- */
.page-content {
    max-width: 80rem; margin: 0 auto;
    padding: 4rem 1rem;
}
@media (min-width: 640px) { .page-content { padding: 4rem 1.5rem; } }
@media (min-width: 1024px) { .page-content { padding: 4rem 2rem; } }

/* ---- SHARED CARD ---- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: border-color 0.3s ease;
}
.card:hover { border-color: rgba(245,192,95,0.3); }

/* ---- SHARED BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: var(--radius-full);
    font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; border: none;
}
.btn-primary {
    background: var(--primary); color: #050505;
    box-shadow: 0 0 0 rgba(245,184,74,0);
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(245,184,74,0.4);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent; color: var(--primary);
    border: 1px solid rgba(245,184,74,0.3);
}
.btn-outline:hover {
    background: rgba(245,184,74,0.1);
    border-color: var(--primary);
}
.btn-ghost {
    background: rgba(255,255,255,0.05); color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

/* ---- FORM ELEMENTS ---- */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
    font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
    display: flex; align-items: center; gap: 0.5rem;
}
.form-input {
    width: 100%; padding: 0.75rem 1rem;
    background: var(--surface); border: 1px solid var(--border-2);
    border-radius: var(--radius-md); color: var(--text-main);
    font-size: 0.875rem; font-family: inherit;
    transition: border-color 0.2s ease;
    outline: none;
}
.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-faint); }

/* ---- ANIMATIONS ---- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.02); } }
@keyframes marquee-scroll { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity:0; transform: translateY(16px); } to { opacity:1; transform: translateY(0); } }
