:root {
    --bg: #050509;
    --bg-alt: #0a0a12;
    --accent: #ff1744;
    --accent-glow: rgba(255, 23, 68, 0.6);
    --text: #f5f5f5;
    --text-muted: #888;
    --border: rgba(255, 255, 255, 0.06);
    --glass: rgba(10, 10, 18, 0.75);
    --radius: 18px;
    --blur: 24px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 40px var(--accent-glow);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: radial-gradient(circle at 15% 25%, #1a0a14 0%, var(--bg) 40%, #000 100%);
    color: var(--text);
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Background Glow */
.bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 23, 68, 0.12), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 23, 68, 0.08), transparent 55%);
    pointer-events: none;
    z-index: -1;
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    backdrop-filter: blur(var(--blur)) saturate(180%);
    background: linear-gradient(to bottom, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.8));
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: none;
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-links a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === CONTENT === */
.content {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* === HERO === */
.hero {
    padding: 4rem 3rem;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--glow);
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff5252 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* === AUTH CARDS === */
.auth-card, .profile-card {
    max-width: 440px;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(150%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow), var(--glow);
    animation: fadeIn 0.5s ease-out;
}

.auth-card h2, .profile-card h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    text-align: center;
}

.auth-card form label {
    display: block;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.auth-card form input {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-top: 0.4rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 20, 0.9);
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition);
}

.auth-card form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.15);
}

.auth-card form button {
    width: 100%;
    margin-top: 1.5rem;
}

.auth-switch {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.auth-switch a:hover {
    color: #ff5252;
    text-decoration: underline;
}

/* === PROFILE === */
.profile-card p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.profile-card strong {
    color: var(--accent);
}

/* === ERROR PAGE === */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: clamp(4rem, 15vw, 8rem);
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
    margin-bottom: 1rem;
    font-weight: 900;
}

.error-page p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* === FLASH MESSAGES === */
.flash-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
}

.flash {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(var(--blur));
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease-out;
    transition: opacity var(--transition);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash.success {
    background: rgba(0, 200, 83, 0.25);
    border: 1px solid rgba(0, 200, 83, 0.5);
    color: #00ff6a;
}

.flash.error {
    background: rgba(255, 23, 68, 0.25);
    border: 1px solid rgba(255, 23, 68, 0.5);
    color: #ff5252;
}

/* === FOOTER === */
.footer {
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: linear-gradient(to top, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.8));
    backdrop-filter: blur(var(--blur));
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .burger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        background: rgba(5, 5, 9, 0.98);
        backdrop-filter: blur(var(--blur));
        border-left: 1px solid var(--border);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .hero {
        padding: 3rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .auth-card, .profile-card {
        padding: 2.5rem 2rem;
    }

    .flash-container {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .error-page h1 {
        font-size: 5rem;
    }
}
/* Desktop/Mobile Toggle */
.burger-only {
    display: none;
}

.desktop-only {
    display: flex;
}

.nav-desktop-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-desktop-auth a:not(.btn) {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-desktop-auth a:not(.btn)::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-desktop-auth a:not(.btn):hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .burger-only {
        display: block;
    }
    
    .desktop-only {
        display: none !important;
    }
}
