:root {
    --primary-black: #000000;
    --dark-black: #1a1a1a;
    --medium-black: #2d2d2d;
    --light-black: #3d3d3d;
    --primary-red: #dc2626;
    --light-red: #ef4444;
    --very-light-red: #fecaca;
    --dark-red: #991b1b;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --success-green: #10b981;
    --toast-bg: rgba(26, 26, 26, 0.95);
}

html, body {
    width: 100%;
    max-width: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: float 8s infinite linear;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}

header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--dark-red);
    direction: ltr;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(45deg, var(--white), var(--very-light-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hamburger {
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger:hover .hamburger-line { background: var(--primary-red); }

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: var(--primary-red);
}
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: var(--primary-red);
}

.main-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--dark-red);
    z-index: 999;
    overflow-y: auto;
}

.main-sidebar.active { right: 0; }

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.profile-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid var(--primary-red);
    overflow: hidden;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.main-nav { list-style: none; margin-bottom: 2rem; }

.main-nav li {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s ease;
}

.main-sidebar.active .main-nav li { opacity: 1; transform: translateX(0); }

.main-nav li:nth-child(1) { transition-delay: 0.05s; }
.main-nav li:nth-child(2) { transition-delay: 0.1s; }
.main-nav li:nth-child(3) { transition-delay: 0.15s; }
.main-nav li:nth-child(4) { transition-delay: 0.2s; }
.main-nav li:nth-child(5) { transition-delay: 0.25s; }
.main-nav li:nth-child(6) { transition-delay: 0.3s; }
.main-nav li:nth-child(7) { transition-delay: 0.35s; }
.main-nav li:nth-child(8) { transition-delay: 0.4s; }
.main-nav li:nth-child(9) { transition-delay: 0.45s; }

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.main-nav a:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--primary-red);
    transform: translateX(-5px);
}

.main-nav .active {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--primary-red);
}

.nav-icon { width: 20px; text-align: center; color: var(--primary-red); }

.home-nav-item {
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    margin-bottom: 0.5rem;
}

.logout {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.logout a { color: var(--light-red); }

.auth-btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: none;
    background: linear-gradient(45deg, var(--primary-red), var(--dark-red));
    color: var(--white);
}

.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(220,38,38,0.4); }

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--toast-bg);
    backdrop-filter: blur(10px);
    border-right: 4px solid var(--primary-red);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--white);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease;
    max-width: 320px;
}

.toast.success { border-right-color: #10b981; }
.toast.success i { color: #10b981; }
.toast.error { border-right-color: var(--primary-red); }
.toast.error i { color: var(--primary-red); }

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

footer {
    background: rgba(0,0,0,0.4);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--dark-red);
    margin-top: 0;
    display: block !important;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--light-red); }

footer p { color: var(--light-gray); font-size: 0.9rem; }