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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: #fff;
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.nav-container {
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1002;
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid #4ade80;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Menu */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.nav-center a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-center a:hover {
    color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.4);
}

/* Right Side Controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1002;
}

/* Buttons */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-block;
}

.btn-outline {
    color: #4ade80;
    border: 2px solid #4ade80;
    background: transparent;
}

.btn-outline:hover {
    background: #4ade80;
    color: #0f2027;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #0f2027;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.6);
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.notification-btn:hover {
    color: #4ade80;
}

.notification-btn svg {
    width: 24px;
    height: 22px;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #0f2027;
}

.streak-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #fbbf24;
    font-size: 0.95rem;
}

/* Profile Menu */
.profile-menu {
    position: relative;
    cursor: pointer;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s;
}

.profile-trigger:hover {
    opacity: 0.8;
}

.profile-name {
    font-weight: 600;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.profile-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.profile-trigger:hover .profile-icon {
    border-color: #4ade80;
    color: #4ade80;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 150%;
    background: #1a2e35;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(74, 222, 128, 0.2);
    overflow: hidden;
    animation: fadeIn 0.2s ease;
    z-index: 1001;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

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

/* Footer */
footer {
    position: relative;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

/* --- MOBILE DRAWER & HAMBURGER --- */

/* Hamburger Icon */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation (Optional if you want it to animate when open) */
.hamburger.active div:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }


/* Overlay Backdrop */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer Panel */
.mobile-drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    max-width: 300px;
    height: 100%;
    background: #0f2027;
    border-right: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu-overlay.active .mobile-drawer {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
}

.close-btn:hover {
    color: #4ade80;
}

/* Drawer Links */
.drawer-links a {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.3s;
}

.drawer-links a:hover {
    color: #4ade80;
    padding-left: 10px;
}

/* --- MODAL STYLES --- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
}

.auth-modal {
    background: linear-gradient(135deg, #1a2e35 0%, #0f2027 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.2);
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #4ade80;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 0 2rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.modal-footer a {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(74, 222, 128, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #4ade80;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    cursor: pointer;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.error-message ul {
    margin: 0;
    padding-left: 1.5rem;
}

.btn-success {
    background: linear-gradient(135deg, #4ade80, #22d3ee);
    color: #0f2027;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 222, 128, 0.6);
}

.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: #4ade80;
}

/* --- Responsive Navigation (922px) --- */
@media (max-width: 922px) {
    .nav-container {
        justify-content: space-between;
    }

    .hamburger {
        display: block;
        order: 1;
    }

    .logo {
        position: absolute;
        left: 45%;
        transform: translateX(-50%);
        order: 2;
    }

    .nav-right {
        order: 3;
        gap: 0.5rem;
    }

    .nav-center {
        display: none;
    }

    .profile-name {
        display: none;
    }

    .nav-buttons .btn-primary {
        display: none;
    }

    .profile-icon {
        width: 32px;
        height: 32px;
    }
    
    .profile-icon svg {
        width: 20px;
        height: 20px;
    }

    .auth-modal {
        width: 95%;
        max-width: 400px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}