/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.brand { 
    font-weight: 800; 
    font-size: 20px; 
    color: var(--text-main); 
    font-family: 'Inter', sans-serif; 
    letter-spacing: -0.5px; 
}
.brand span { 
    background: var(--primary-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

.nav-links { 
    display: flex; 
    gap: 8px; 
    align-items: center; 
}
.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-main); background: #f1f5f9; }
.nav-link.active { color: var(--primary); background: rgba(99, 102, 241, 0.08); font-weight: 600; }
.nav-link.logout { color: var(--danger); margin-left: 8px; }
.nav-link.logout:hover { background: rgba(239, 68, 68, 0.08); color: #dc2626; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 102;
}
.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    z-index: 99;
    animation: slideDown 0.3s ease;
}
.mobile-menu.active {
    display: block;
}
.mobile-menu .nav-link {
    display: block;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
    font-size: 16px;
}
.mobile-menu .nav-link:last-child {
    margin-bottom: 0;
}
.mobile-menu .nav-link.logout {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar { 
        padding: 14px 20px; 
    }
    .nav-links { 
        display: none; 
    }
    .menu-toggle { 
        display: flex; 
    }
    .hero h1 { font-size: 28px; }
    .container { padding: 24px 16px 40px; }
    .card { padding: 20px; }
    table { display: block; overflow-x: auto; }
    .grid { grid-template-columns: 1fr; }
    .pkg-grid { grid-template-columns: 1fr; }
}

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