/**
 * HAMMERTIME CREATORS LIMITED
 * Enterprise Header & Navigation v7.0
 * 
 * Features:
 * - Enterprise-grade glass morphism
 * - Advanced micro-interactions
 * - Smart search with keyboard shortcuts
 * - Notification center
 * - User profile dropdown
 * - Mega menu support
 * - Fluid animations with hardware acceleration
 */

/* ===================================
   MAIN HEADER - ENTERPRISE
   =================================== */
.main-header.enterprise-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

/* Header Top Bar */
.enterprise-header .header-top {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border-bottom: 1px solid rgba(255, 203, 5, 0.1);
    padding: 0.625rem 0;
    display: block;
}

.enterprise-header .header-top .container {
    display: block;
}

.enterprise-header .header-top-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.enterprise-header .header-contact {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 2rem;
}

.enterprise-header .contact-item {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.enterprise-header .contact-item:hover {
    color: #F59E0B !important;
}

.enterprise-header .contact-item i {
    font-size: 0.875rem;
    color: #F59E0B;
}

.enterprise-header .header-meta {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 1.5rem;
}

.enterprise-header .meta-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.enterprise-header .meta-link:hover {
    color: #F59E0B !important;
}

.enterprise-header .meta-link i {
    font-size: 0.875rem;
    color: #F59E0B;
}

/* Header Main */
.enterprise-header .header-main {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-header.scrolled .header-main {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-bottom-color: rgba(245, 158, 11, 0.25);
}

/* ===================================
   NAVBAR LAYOUT
   =================================== */
.enterprise-header .navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 80px;
    position: relative;
}

/* ===================================
   LOGO - ENHANCED
   =================================== */
.enterprise-header .logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    z-index: 2;
    position: relative;
    margin-right: 2rem;
}

.enterprise-header .logo a {
    display: flex;
    align-items: center;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.enterprise-header .logo a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F59E0B, transparent);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.enterprise-header .logo a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.enterprise-header .logo a:hover {
    transform: translateY(-2px);
}

.enterprise-header .logo img {
    height: 48px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.enterprise-header .logo a:hover img {
    filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
    transform: scale(1.02);
}

/* ===================================
   NAVIGATION LINKS - ENTERPRISE
   =================================== */
.enterprise-header .nav-links {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.enterprise-header .nav-links li {
    position: relative;
    list-style: none;
}

.enterprise-header .nav-link {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.enterprise-header .nav-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    color: #F59E0B;
}

.enterprise-header .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 203, 5, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: 10px;
}

.enterprise-header .nav-link span {
    position: relative;
    z-index: 1;
}

.enterprise-header .nav-link:hover {
    color: #F59E0B;
    transform: translateY(-1px);
}

.enterprise-header .nav-link:hover::before {
    opacity: 1;
}

.enterprise-header .nav-link:hover i {
    transform: scale(1.1);
}

.enterprise-header .nav-link.active {
    color: #F59E0B;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 203, 5, 0.1) 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.enterprise-header .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: #F59E0B;
    border-radius: 2px;
}

.nav-arrow {
    font-size: 0.625rem !important;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-item-mega:hover .nav-arrow {
    transform: rotate(180deg);
}

/* ===================================
   SEARCH BAR - ENTERPRISE
   =================================== */
.enterprise-header .header-search {
    flex: 0 0 auto;
    max-width: 280px;
    width: 100%;
    position: relative;
}

.enterprise-header .search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.enterprise-header .search-icon {
    position: absolute;
    left: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s ease;
}

.enterprise-header .search-input {
    width: 100%;
    height: 42px;
    padding: 0 4.5rem 0 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    font-size: 0.875rem;
    color: #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-header .search-input:focus {
    outline: none;
    border-color: #F59E0B;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.enterprise-header .search-input:focus ~ .search-icon {
    color: #F59E0B;
}

.enterprise-header .search-input::placeholder {
    color: #9ca3af;
}

.enterprise-header .search-shortcut {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.125rem 0.375rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #9ca3af;
    font-family: var(--font-mono, monospace);
    pointer-events: none;
    line-height: 1.4;
}

.enterprise-header .search-input:focus ~ .search-shortcut {
    opacity: 0;
}

/* ===================================
   NAV ACTIONS - ENTERPRISE
   =================================== */
.enterprise-header .nav-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.enterprise-header .btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #6b7280;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-header .btn-icon:hover {
    background: #f9fafb;
    color: #F59E0B;
    border-color: #F59E0B;
    transform: translateY(-1px);
}

.enterprise-header .btn-icon:active {
    transform: translateY(0);
}

/* Button Variants */
.enterprise-header .btn-ghost {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.enterprise-header .btn-ghost:hover {
    background: #f9fafb;
    border-color: #F59E0B;
    color: #F59E0B;
    transform: translateY(-1px);
}

.enterprise-header .btn-primary.btn-glow {
    position: relative;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 100%);
    color: #1f2937;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    overflow: hidden;
    white-space: nowrap;
}

.enterprise-header .btn-primary.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.enterprise-header .btn-primary.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.enterprise-header .btn-primary.btn-glow:hover::before {
    left: 100%;
}

.enterprise-header .btn-primary.btn-glow i {
    transition: transform 0.3s ease;
}

.enterprise-header .btn-primary.btn-glow:hover i {
    transform: scale(1.15);
}

.enterprise-header .btn-icon i {
    font-size: 1rem;
}

.enterprise-header .btn-icon .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    background: #F59E0B;
    color: #1f2937;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    border: 2px solid #ffffff;
}

.enterprise-header .btn-icon .badge.badge-alert {
    background: #ef4444;
    color: #ffffff;
}

/* ===================================
   USER MENU - ENTERPRISE
   =================================== */
.enterprise-header .user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.enterprise-header .user-menu-trigger:hover {
    border-color: #F59E0B;
    background: rgba(245, 158, 11, 0.05);
}

.enterprise-header .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #F59E0B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.enterprise-header .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enterprise-header .user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.enterprise-header .user-menu-trigger i.fa-chevron-down {
    font-size: 0.625rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.enterprise-header .user-menu-trigger[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
    color: #F59E0B;
}

/* User Menu Header */
.user-menu-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.user-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--brand-primary);
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name-large {
    font-weight: var(--weight-bold);
    font-size: var(--text-base);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.user-email {
    font-size: var(--text-sm);
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===================================
   DROPDOWN MENUS - ENHANCED
   =================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
}

.dropdown-header span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.dropdown-header .mark-all-read {
    font-size: 0.75rem;
    color: #F59E0B;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.dropdown-header .mark-all-read:hover {
    color: #d97706;
    text-decoration: underline;
}

.dropdown-header .compose-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F59E0B;
    color: #1f2937;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-header .compose-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

.dropdown-content {
    max-height: 360px;
    overflow-y: auto;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dropdown-empty {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
}

.dropdown-empty i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.dropdown-empty p {
    margin: 0;
    font-size: 0.9rem;
}

.dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    background: #f9fafb;
}

.dropdown-footer a {
    color: #F59E0B;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.dropdown-footer a:hover {
    color: #d97706;
    text-decoration: underline;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

/* Notification Items */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
}

.notification-item.unread:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fef3c7 100%);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.booking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notification-icon.payment {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-icon.message {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.notification-icon.alert {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-icon.info {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0 0 4px;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Message Items */
.message-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.2s;
}

.message-item:hover {
    background: #f9fafb;
}

.message-item.unread {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
}

.message-avatar {
    position: relative;
    flex-shrink: 0;
}

.message-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar .online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.message-header strong {
    font-size: 0.875rem;
    color: #1f2937;
}

.message-time {
    font-size: 0.7rem;
    color: #9ca3af;
}

.message-preview {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User Menu */
.user-menu {
    min-width: 280px;
}

.user-menu-header {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fff 100%);
}

.user-avatar-lg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.user-avatar-lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F59E0B;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info strong {
    display: block;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.8rem;
    color: #6b7280;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f9fafb;
    color: #F59E0B;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #9ca3af;
    transition: color 0.2s;
}

.dropdown-item:hover i {
    color: #F59E0B;
}

.dropdown-item.admin-link {
    color: #7c3aed;
}

.dropdown-item.admin-link i {
    color: #7c3aed;
}

.dropdown-item.admin-link:hover {
    background: rgba(124, 58, 237, 0.1);
}

.dropdown-item.logout-link {
    color: #ef4444;
}

.dropdown-item.logout-link i {
    color: #ef4444;
}

.dropdown-item.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ===================================
   MOBILE MENU TOGGLE
   =================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    gap: 5px;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.mobile-menu-toggle .bar {
    width: 22px;
    height: 2.5px;
    background: #4b5563;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background: var(--color-primary);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background: var(--color-primary);
}

/* Mobile menu close button is only used on mobile; hide by default */
.mobile-menu-close {
    display: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .header-search {
        max-width: 280px;
    }
    
    .nav-links {
        gap: 0.125rem;
    }
    
    .nav-link {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 992px) {
    .header-top {
        display: none;
    }
    
    .navbar {
        height: 70px;
    }
    
    .logo img {
        height: 44px;
        max-width: 160px;
    }
    
    .nav-links {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .btn-ghost,
    .btn-primary.btn-glow {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-ghost span,
    .btn-primary.btn-glow span {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-contact,
    .header-meta {
        display: none;
    }
    
    .navbar {
        height: 64px;
    }
    
    .logo img {
        height: 38px;
        max-width: 140px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-trigger {
        padding: 0.375rem;
    }
}

/* Mobile Menu Panel - Active State (Moved to 992px to cover tablets) */
@media (max-width: 992px) {
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        padding: 24px;
        gap: 8px;
        z-index: 1000;
        overflow-y: auto;
        animation: slideInDown 0.3s ease;
    }
    
    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.active .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 12px;
        background: #f9fafb;
        border: 1px solid #e5e7eb;
    }
    
    .nav-links.active .nav-link:hover,
    .nav-links.active .nav-link.active {
        background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
        border-color: #F59E0B;
    }
    
    .nav-links.active .nav-link i {
        display: block !important;
        width: 24px;
        text-align: center;
        color: #F59E0B;
    }
    
    .nav-links.active .nav-link span {
        display: block !important;
    }
    
    .nav-links.active .nav-arrow {
        display: none;
    }
    
    /* Mobile Nav Actions */
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px 24px;
        gap: 12px;
        border-top: 1px solid #e5e7eb;
        z-index: 1001;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-actions.active .btn-ghost,
    .nav-actions.active .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .nav-actions.active .btn-ghost span,
    .nav-actions.active .btn-primary span {
        display: inline !important;
    }
    
    /* Hide dropdowns in mobile menu */
    .nav-actions.active .dropdown {
        display: none;
    }
}

.dropdown-item:hover i {
    color: var(--brand-primary);
}

/* Notification List */
.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.notification-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--radius-full);
}

.notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--duration-fast);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: var(--brand-primary-light);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--gray-900);
    margin-bottom: var(--space-1);
}

.notification-text {
    font-size: var(--text-xs);
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: var(--text-xs);
    color: var(--gray-400);
    margin-top: var(--space-1);
}

/* Empty State */
.dropdown .empty-state {
    padding: var(--space-8) var(--space-4);
    text-align: center;
    color: var(--gray-400);
    font-size: var(--text-sm);
}

.dropdown .empty-state i {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-2);
}

/* ===================================
   MOBILE MENU
   =================================== */
.enterprise-header .mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
    flex-shrink: 0;
}

.enterprise-header .mobile-menu-toggle:hover {
    border-color: #F59E0B;
    background: #f9fafb;
}

.enterprise-header .mobile-menu-toggle .bar {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.enterprise-header .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #F59E0B;
}

.enterprise-header .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.enterprise-header .mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #F59E0B;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal);
    z-index: calc(var(--z-sticky) - 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Page Progress */
.page-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-primary-hover));
    transition: width 0.1s linear;
    z-index: calc(var(--z-sticky) + 1);
}

/* ===================================
   RESPONSIVE - ENTERPRISE HEADER
   =================================== */
@media (max-width: 1200px) {
    .enterprise-header .header-search {
        max-width: 220px;
    }
    
    .enterprise-header .nav-links {
        gap: 0;
    }
    
    .enterprise-header .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 992px) {
    .enterprise-header .header-top {
        display: none !important;
    }
    
    .enterprise-header .navbar {
        height: 64px;
        position: relative;
    }
    
    .enterprise-header .mobile-menu-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(245, 158, 11, 0.2);
        order: 99;
        margin-left: auto;
    }
    
    .enterprise-header .nav-links:not(.active),
    .enterprise-header .header-search {
        display: none !important;
    }
    
    .enterprise-header .logo img {
        height: 38px;
        max-width: 140px;
    }
    
    .enterprise-header .btn-ghost span,
    .enterprise-header .btn-primary.btn-glow span {
        display: none;
    }
    
    .enterprise-header .btn-ghost,
    .enterprise-header .btn-primary.btn-glow {
        padding: 0.5rem 0.75rem;
    }
    
    /* Ensure nav-actions doesn't overlap hamburger */
    .enterprise-header .nav-actions {
        flex-shrink: 0;
        order: 2;
        gap: 0.5rem;
    }
    
    .enterprise-header .logo {
        order: 1;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .enterprise-header .user-name {
        display: none;
    }
    
    .enterprise-header .user-menu-trigger {
        padding: 0.25rem;
    }
    
    .enterprise-header .nav-actions {
        gap: 0.5rem;
    }
}

/* ===================================
   ENTERPRISE MOBILE MENU - PREMIUM GRADE
   Full-screen slide-in panel with elegant animations
   =================================== */
@media (max-width: 992px) {
    /* Force override any display:none from other stylesheets */
    .enterprise-header .nav-links {
        display: none !important;
    }
    
    /* Anchor the dropdown to the navbar */
    .enterprise-header .navbar {
        position: relative;
    }

    /* Premium Full-Screen Mobile Menu Panel */
    .main-header.enterprise-header .nav-links.active,
    .enterprise-header .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
        z-index: 9999 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        animation: mobileMenuSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        box-shadow: none !important;
        border: none !important;
        border-top: none !important;
        max-height: none !important;
    }

    @keyframes mobileMenuSlideIn {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Mobile Menu Header */
    .enterprise-header .nav-links.active::before {
        content: '';
        display: block;
        width: 100%;
        height: 80px;
        flex-shrink: 0;
    }

    /* Menu Items Container */
    .main-header.enterprise-header .nav-links.active li,
    .enterprise-header .nav-links.active li {
        display: block !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 16px !important;
        width: 100% !important;
        opacity: 0;
        animation: menuItemFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        border-bottom: none !important;
    }

    .enterprise-header .nav-links.active li:nth-child(1) { animation-delay: 0.05s; }
    .enterprise-header .nav-links.active li:nth-child(2) { animation-delay: 0.1s; }
    .enterprise-header .nav-links.active li:nth-child(3) { animation-delay: 0.15s; }
    .enterprise-header .nav-links.active li:nth-child(4) { animation-delay: 0.2s; }
    .enterprise-header .nav-links.active li:nth-child(5) { animation-delay: 0.25s; }
    .enterprise-header .nav-links.active li:nth-child(6) { animation-delay: 0.3s; }
    .enterprise-header .nav-links.active li:nth-child(7) { animation-delay: 0.35s; }
    .enterprise-header .nav-links.active li:nth-child(8) { animation-delay: 0.4s; }

    @keyframes menuItemFadeIn {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Premium Nav Link Styling */
    .main-header.enterprise-header .nav-links.active .nav-link,
    .enterprise-header .nav-links.active .nav-link {
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        padding: 18px 20px !important;
        margin-bottom: 8px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em;
        border-radius: 16px !important;
        background: #ffffff !important;
        color: #1e293b !important;
        text-decoration: none !important;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 
                    0 4px 12px rgba(0, 0, 0, 0.03) !important;
        border: 1px solid rgba(0, 0, 0, 0.04) !important;
        position: relative;
        overflow: hidden;
        width: 100% !important;
    }

    .enterprise-header .nav-links.active .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #F59E0B;
        transform: scaleY(0);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 0 4px 4px 0;
    }

    .enterprise-header .nav-links.active .nav-link:hover {
        background: #fffbeb;
        border-color: rgba(245, 158, 11, 0.15);
        transform: translateX(4px);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
    }

    .enterprise-header .nav-links.active .nav-link:hover::before {
        transform: scaleY(1);
    }

    .enterprise-header .nav-links.active .nav-link:active {
        transform: translateX(4px) scale(0.98);
    }

    .enterprise-header .nav-links.active .nav-link.active {
        background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
        border-color: rgba(245, 158, 11, 0.25);
        color: #92400e;
    }

    .enterprise-header .nav-links.active .nav-link.active::before {
        transform: scaleY(1);
    }

    /* Icon Styling */
    .enterprise-header .nav-links.active .nav-link i:first-child {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
        border-radius: 14px;
        color: #b45309;
        font-size: 1.15rem;
        flex-shrink: 0;
        transition: all 0.25s ease;
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    }

    .enterprise-header .nav-links.active .nav-link:hover i:first-child {
        background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 100%);
        color: #ffffff;
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }

    .enterprise-header .nav-links.active .nav-link.active i:first-child {
        background: linear-gradient(135deg, #F59E0B 0%, #d97706 100%);
        color: #ffffff;
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    }

    .enterprise-header .nav-links.active .nav-link span {
        display: block !important;
        flex: 1;
    }

    .enterprise-header .nav-links.active .nav-arrow {
        display: none !important;
    }

    /* Hide Mega Menu on Mobile */
    .enterprise-header .nav-links.active .mega-menu {
        display: none !important;
    }

    /* Backdrop overlay when menu is open */
    .enterprise-header.menu-open::after {
        display: none; /* Full-screen menu doesn't need overlay */
    }

    /* Keep header actions visible for close button */
    .enterprise-header.menu-open .nav-actions {
        opacity: 1;
        pointer-events: auto;
        position: relative;
        z-index: 10001;
    }

    /* Mobile Menu Actions Section (Login/Get Started) */
    .enterprise-header .nav-links.active .mobile-menu-actions-li {
        margin-top: auto;
        padding: 20px 16px 32px;
        border-top: none;
        background: linear-gradient(180deg, transparent 0%, rgba(245, 158, 11, 0.03) 100%);
    }

    .enterprise-header .nav-links.active .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 700;
        border-radius: 14px;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions a span {
        display: inline !important;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions .btn-ghost {
        background: #ffffff;
        color: #374151;
        border: 2px solid #e5e7eb;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions .btn-ghost:hover {
        border-color: #F59E0B;
        color: #F59E0B;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions .btn-primary {
        background: linear-gradient(135deg, #F59E0B 0%, #fbbf24 100%);
        color: #1f2937;
        border: none;
        box-shadow: 0 6px 24px rgba(245, 158, 11, 0.35);
    }

    .enterprise-header .nav-links.active .mobile-menu-actions .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(245, 158, 11, 0.45);
    }

    /* Premium Scrollbar */
    .enterprise-header .nav-links.active::-webkit-scrollbar {
        width: 6px;
    }
    .enterprise-header .nav-links.active::-webkit-scrollbar-thumb {
        background: rgba(245, 158, 11, 0.3);
        border-radius: 10px;
    }
    .enterprise-header .nav-links.active::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Mobile Menu Close Button - Floating */
    .mobile-menu-close {
        position: fixed;
        top: 16px;
        right: 16px;
        z-index: 10002;
        width: 48px;
        height: 48px;
        display: none;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        cursor: pointer;
        transition: all 0.25s ease;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .mobile-menu-close:hover {
        background: #fef3c7;
        border-color: #F59E0B;
        transform: rotate(90deg);
    }

    .mobile-menu-close i {
        font-size: 1.25rem;
        color: #374151;
    }

    /* Show close button when menu is open */
    body.menu-open .mobile-menu-close {
        display: flex;
    }
}

/* Extra small screens optimization */
@media (max-width: 480px) {
    .enterprise-header .nav-links.active .nav-link {
        padding: 16px 16px;
        font-size: 1rem;
    }

    .enterprise-header .nav-links.active .nav-link i:first-child {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .enterprise-header .nav-links.active .mobile-menu-actions a {
        padding: 14px 20px;
    }
}

/* Mobile Menu Header (Branding in mobile menu) */
.mobile-menu-header-li {
    display: none !important; /* Hidden on desktop */
}

@media (max-width: 992px) {
    .enterprise-header .nav-links.active .mobile-menu-header-li {
        display: block !important;
        padding: 20px 16px 24px !important;
        margin-bottom: 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        animation: none !important;
        opacity: 1 !important;
    }

    .mobile-menu-header {
        text-align: center;
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }

    .mobile-menu-brand img {
        height: 40px;
        width: auto;
        max-width: 160px;
        object-fit: contain;
    }

    .mobile-menu-tagline {
        margin: 0;
        font-size: 0.8rem;
        color: #6b7280;
        font-weight: 500;
        letter-spacing: -0.01em;
    }
}
/* ===================================
   MEGA MENU - ENTERPRISE
   =================================== */
.mega-menu {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100vw;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border-top: 3px solid #F59E0B;
    padding: 2rem 0;
    pointer-events: none;
}

.nav-item-mega:hover .mega-menu,
.nav-item-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu > .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mega-content {
    display: flex;
    gap: 2rem;
}

.mega-columns {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.mega-col h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-col h3 i {
    color: #F59E0B;
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li {
    margin-bottom: 0.5rem;
}

.mega-col ul li a {
    color: #4B5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: block;
    padding: 0.25rem 0;
}

.mega-col ul li a:hover {
    color: #F59E0B;
    transform: translateX(2px);
}

.mega-promo {
    flex: 1;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
}

.promo-card img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
}

.promo-tag {
    background: #F59E0B;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-content h4 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: #111827;
}

.promo-content p {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

/* Mobile Adjustments for Mega Menu */
@media (max-width: 992px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: none;
        padding: 0;
        width: 100%;
        display: none; /* Hidden by default, toggled via JS or CSS */
        background: #f9fafb;
        margin-top: 1rem;
        border-radius: 8px;
        pointer-events: auto;
    }
    
    .mega-menu > .container {
        padding: 0;
    }
    
    .nav-item-mega.active .mega-menu {
        display: block;
    }

    .mega-content {
        flex-direction: column;
        padding: 1rem;
    }

    .mega-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mega-promo {
        display: none;
    }
}

