.navbar {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo:hover {
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}


.nav-link {
    color: var(--horizon-purple);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(106, 90, 205, 0.1);
    text-decoration: none;
    box-shadow: 0 0 10px rgba(106, 90, 205, 0.3);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--button-gradient);
    box-shadow: var(--glow-shadow);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--horizon-purple);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(106, 90, 205, 0.3);
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.user-section {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    display: block;
}

.user-avatar-small:hover {
    border-color: var(--horizon-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    min-width: 200px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-info {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-username {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item.logout {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    margin-top: 4px;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff5252;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--glass-bg);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .user-dropdown {
        right: -10px;
        min-width: 180px;
        top: calc(100% + 8px);
    }
    
    .user-avatar-small {
        width: 32px;
        height: 32px;
    }
}

.help-modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 320px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.help-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.help-header-icon {
    width: 40px;
    height: 40px;
    background: var(--button-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.help-header-text h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.help-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.help-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.help-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.help-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--horizon-purple);
    transform: translateY(-2px);
}

.help-option i {
    font-size: 1.25rem;
    color: var(--horizon-purple);
    width: 20px;
    text-align: center;
}

.help-option-text {
    display: flex;
    flex-direction: column;
}

.help-option-title {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.help-option-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.help-action {
    text-align: center;
}

.help-action-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.btn-help {
    background: var(--button-gradient);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-help:hover {
    background: var(--button-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--button-gradient);
    color: white;
    box-shadow: var(--glow-shadow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--button-hover-gradient);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-text-spacer {
    width: 0.5rem;
}

