/* TwinLove69 - Header Component Styles */
/* Compatible with global style.css variables */

:root {
    --primary-orange: #FF6C00;
    --primary-dark: #0D0D0D;
    --primary-dark-light: #1A1A1A;
    --secondary-dark: #2D2D2D;
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;
    --text-gray: #999999;
    --border-radius: 4px;
    --transition: all 0.2s ease;
  }
  
  /* Ensure header inherits global font and is isolated */
  .main-header {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Prevent dashboard styles from affecting header */
  body .main-header,
  body .main-header * {
    box-sizing: border-box !important;
  }
  
  /* === Top Bar === */
  /* Strong isolation for top bar */
  body .main-header .top-bar,
  .main-header .top-bar,
  .top-bar {
    background: var(--primary-dark) !important;
    padding: 4px 0 !important;
    border-bottom: 1px solid rgba(255, 108, 0, 0.2) !important;
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
    width: 100% !important;
    display: block !important;
  }
  
  .top-bar-left,
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .age-badge,
  .trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.2;
  }
  
  .age-badge {
    color: var(--primary-orange);
    background: rgba(255, 108, 0, 0.1);
    border-color: rgba(255, 108, 0, 0.3);
  }
  
  .age-badge:hover {
    background: rgba(255, 108, 0, 0.15);
  }
  
  .trust-badge {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
  }
  
  .contact-info {
    font-size: 0.75rem;
    color: var(--text-gray);
  }
  
  .contact-info strong {
    color: var(--primary-orange);
  }
  
  .social-label {
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-right: 8px;
  }
  
  .social-icons-container {
    display: flex;
    gap: 8px;
  }
  
  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 108, 0, 0.1);
    border: 1px solid rgba(255, 108, 0, 0.3);
    border-radius: 3px;
    color: var(--primary-orange);
    font-size: 0.75rem;
    text-decoration: none;
  }
  
  .social-icon:hover {
    background: var(--primary-orange);
    color: var(--text-light);
  }
  
  /* === Main Navbar === */
  /* High specificity to override style.css global .navbar */
  body .main-header .main-navbar,
  body .main-navbar,
  .main-header .main-navbar,
  .main-navbar.navbar,
  .main-navbar {
    background: var(--primary-dark-light) !important;
    border-bottom: 2px solid var(--primary-orange) !important;
    padding: 6px 0 !important;
    min-height: 60px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }
  
  body .main-navbar.scrolled,
  .main-navbar.scrolled {
    padding: 4px 0 !important;
    min-height: 56px !important;
  }
  
  /* === Logo === */
  /* Override style.css .navbar-brand */
  body .main-header .navbar-brand,
  body .main-navbar .navbar-brand,
  .main-header .navbar-brand,
  .main-navbar .navbar-brand {
    text-decoration: none !important;
    margin-right: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    font-size: initial !important;
    font-weight: initial !important;
    color: inherit !important;
  }
  
  .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .logo-icon {
    font-size: 1.4rem;
    color: var(--primary-orange);
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  
  .logo-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  
  .logo-sub {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
    letter-spacing: 0.5px;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: #FFA500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
  }
  
  /* === Search === */
  .search-container {
    width: 100%;
  }
  
  .search-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 108, 0, 0.3);
    border-radius: 4px;
    padding: 3px;
  }
  
  .search-input-group:focus-within {
    border-color: var(--primary-orange);
  }
  
  .search-icon {
    color: var(--text-gray);
    padding: 0 8px;
    font-size: 0.85rem;
  }
  
  .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 6px 0;
    font-size: 0.85rem;
    outline: none;
    line-height: 1.2;
  }
  
  .search-input::placeholder {
    color: var(--text-gray);
  }
  
  .search-btn {
    background: var(--primary-orange);
    border: none;
    border-radius: 3px;
    width: 28px;
    height: 28px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
  }
  
  .search-btn:hover {
    background: #E35F00;
  }
  
  /* === Custom Toggler (Mobile) === */
  .custom-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: transparent;
    z-index: 1001;
  }
  
  .toggler-bar {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary-orange);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 108, 0, 0.5);
  }
  
  .toggler-bar:nth-child(1) { top: 0; }
  .toggler-bar:nth-child(2) { top: 11px; width: 80%; }
  .toggler-bar:nth-child(3) { top: 22px; }
  
  .custom-toggler:not(.collapsed) .toggler-bar:nth-child(1),
  .custom-toggler:not(.collapsed) .toggler-bar:nth-child(3) {
    top: 11px;
  }
  
  .custom-toggler:not(.collapsed) .toggler-bar:nth-child(1) {
    transform: rotate(135deg);
  }
  
  .custom-toggler:not(.collapsed) .toggler-bar:nth-child(2) {
    opacity: 0;
  }
  
  .custom-toggler:not(.collapsed) .toggler-bar:nth-child(3) {
    transform: rotate(-135deg);
  }
  
  /* === Nav Links === */
  /* Override style.css .nav-link */
  body .main-header .navbar-nav,
  body .main-navbar .navbar-nav,
  .main-header .navbar-nav,
  .main-navbar .navbar-nav {
    gap: 0.5rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  
  body .main-header .navbar-nav .nav-item,
  body .main-navbar .navbar-nav .nav-item,
  .main-header .navbar-nav .nav-item,
  .main-navbar .navbar-nav .nav-item {
    margin: 0 0.25rem !important;
  }
  
  body .main-header .navbar-nav .nav-link,
  body .main-navbar .navbar-nav .nav-link,
  .main-header .navbar-nav .nav-link,
  .main-navbar .navbar-nav .nav-link,
  .main-header .nav-link,
  .main-navbar .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }
  
  .nav-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
  }
  
  .nav-badge {
    background: rgba(255, 108, 0, 0.2);
    color: var(--primary-orange);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    font-weight: 600;
  }
  
  /* Override style.css .nav-link:hover and .nav-link.active */
  body .main-header .navbar-nav .nav-link:hover,
  body .main-header .navbar-nav .nav-link.active,
  body .main-navbar .navbar-nav .nav-link:hover,
  body .main-navbar .navbar-nav .nav-link.active,
  .main-header .navbar-nav .nav-link:hover,
  .main-header .navbar-nav .nav-link.active,
  .main-navbar .navbar-nav .nav-link:hover,
  .main-navbar .navbar-nav .nav-link.active,
  .main-header .nav-link:hover,
  .main-header .nav-link.active,
  .main-navbar .nav-link:hover,
  .main-navbar .nav-link.active {
    color: var(--primary-orange) !important;
    background: rgba(255, 108, 0, 0.1) !important;
    font-weight: 500 !important;
  }
  
  .dropdown-arrow {
    font-size: 0.7rem;
    transition: var(--transition);
  }
  
  .navbar-nav .nav-link.show .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  /* Protect navbar collapse, search, and dropdowns */
  body .main-header .navbar-collapse,
  body .main-navbar .navbar-collapse,
  .main-header .navbar-collapse,
  .main-navbar .navbar-collapse {
    display: flex !important;
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    align-items: center !important;
  }

  body .main-header .search-container,
  body .main-navbar .search-container,
  .main-header .search-container,
  .main-navbar .search-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  body .main-header .user-dropdown,
  body .main-navbar .user-dropdown,
  .main-header .user-dropdown,
  .main-navbar .user-dropdown {
    display: flex !important;
    align-items: center !important;
  }
  
  /* Protect container inside header */
  body .main-header .container,
  body .main-header .container-fluid,
  .main-header .container,
  .main-header .container-fluid {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* === Dropdowns === */
  .dropdown-menu-dark {
    background: rgba(13, 13, 13, 0.98);
    border: 1px solid rgba(255, 108, 0, 0.3);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    padding: 0.75rem 0;
    margin-top: 8px;
    backdrop-filter: blur(10px);
  }
  
  .dropdown-menu-dark .dropdown-item {
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
  }
  
  .dropdown-menu-dark .dropdown-item:hover {
    background: rgba(255, 108, 0, 0.2);
    color: var(--primary-orange);
    transform: translateX(3px);
  }
  
  .dropdown-divider {
    border-color: rgba(255, 108, 0, 0.2) !important;
  }
  
  .dropdown-header {
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 108, 0, 0.2);
  }
  
  /* === Mega Menu (Locations) === */
  .mega-menu {
    width: calc(100vw - 2rem) !important;
    max-width: 1100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0 0 8px 8px;
    padding: 0.75rem 0.5rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 108, 0, 0.3);
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1050;
  }
  
  /* Prevent horizontal overflow */
  .mega-dropdown {
    position: static;
  }
  
  @media (min-width: 992px) {
    .mega-dropdown {
      position: relative;
    }
  }
  
  /* Mobile dropdown fixes */
  @media (max-width: 991px) {
    .mega-dropdown .dropdown-toggle::after {
      display: inline-block;
      margin-left: 0.5em;
      vertical-align: 0.255em;
      content: "";
      border-top: 0.3em solid;
      border-right: 0.3em solid transparent;
      border-bottom: 0;
      border-left: 0.3em solid transparent;
      transition: transform 0.2s ease;
    }
    
    .mega-dropdown .dropdown-toggle[aria-expanded="true"]::after {
      transform: rotate(180deg);
    }
    
    .mega-dropdown .dropdown-menu {
      display: none;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    
    .mega-dropdown .dropdown-menu.show {
      display: block;
      opacity: 1;
    }
  }
  
  .mega-menu .container-fluid {
    max-width: 100%;
    padding: 0 0.5rem;
    margin: 0;
  }
  
  .mega-menu .row {
    margin: 0;
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0;
  }
  
  .mega-menu .col-lg-3 {
    padding: 0 0.5rem;
    max-width: 25%;
    flex: 0 0 25%;
  }
  
  .mega-menu-section h6 {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
  }
  
  .mega-menu-section {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
    min-width: 0;
    width: 100%;
  }
  
  .mega-menu-section::-webkit-scrollbar {
    width: 4px;
  }
  
  .mega-menu-section::-webkit-scrollbar-track {
    background: rgba(255, 108, 0, 0.1);
    border-radius: 2px;
  }
  
  .mega-menu-section::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 2px;
  }
  
  .mega-menu-section .dropdown-item {
    margin-bottom: 0.2rem;
    padding: 0.4rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    width: 100%;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .mega-menu-section .dropdown-item:hover {
    background: rgba(255, 108, 0, 0.1);
    color: var(--text-light);
  }
  
  .mega-menu-section .dropdown-item i {
    flex-shrink: 0;
    width: 16px;
    font-size: 0.85rem;
  }
  
  .mega-menu-section .dropdown-item .location-count {
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .mega-menu-section .dropdown-item small {
    display: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    font-size: 0.7rem;
  }
  
  .mega-menu-section .dropdown-item > span:not(.location-count) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    display: block;
  }
  
  /* Ensure mega menu doesn't overflow viewport */
  body {
    overflow-x: hidden;
  }
  
  .mega-menu * {
    box-sizing: border-box;
  }
  
  .location-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
  }
  
  .location-count.premium {
    background: rgba(255, 165, 0, 0.3);
    color: var(--text-light);
  }
  
  /* === Auth Buttons === */
  .auth-buttons {
    gap: 0.75rem;
  }
  
  .btn-login,
  .btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
  }
  
  .btn-login {
    background: rgba(255, 108, 0, 0.15) !important;
    border: 2px solid var(--primary-orange) !important;
    color: var(--primary-orange) !important;
    box-shadow: 0 2px 8px rgba(255, 108, 0, 0.3);
  }
  
  .btn-login:hover {
    background: rgba(255, 108, 0, 0.25) !important;
    color: #FF8533 !important;
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.4);
    transform: translateY(-1px);
  }
  
  .btn-register {
    background: var(--primary-orange) !important;
    border: 2px solid var(--primary-orange) !important;
    color: var(--text-light) !important;
    box-shadow: 0 2px 8px rgba(255, 108, 0, 0.4);
  }
  
  .btn-register:hover {
    background: #E35F00 !important;
    border-color: #E35F00 !important;
    box-shadow: 0 4px 12px rgba(255, 108, 0, 0.5);
    transform: translateY(-1px);
  }
  
  /* === Notifications & User Dropdown === */
  .notification-bell {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
  }
  
  .notification-bell:hover {
    color: var(--primary-orange);
    background: rgba(255, 108, 0, 0.1);
    transform: scale(1.1);
  }
  
  .notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: bold;
    z-index: 2;
  }
  
  .user-menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 108, 0, 0.1);
    border: 1px solid rgba(255, 108, 0, 0.3);
    color: var(--text-light) !important;
    text-decoration: none;
    min-width: 0;
  }
  
  .user-menu-link .dropdown-arrow {
    flex-shrink: 0;
    margin-left: auto;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }
  
  .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .user-status {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--primary-dark);
    background: #28a745;
    z-index: 2;
  }
  
  .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 120px;
    overflow: hidden;
    flex: 1;
  }
  
  .user-name {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.2;
  }
  
  .user-role {
    color: var(--primary-orange) !important;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 1.2;
  }
  
  /* Mobile user dropdown visibility */
  @media (max-width: 991px) {
    .user-info {
      display: flex !important;
      max-width: 150px;
      margin-left: 0.5rem;
    }
    
    .user-menu-link {
      background: rgba(255, 108, 0, 0.15) !important;
      border: 2px solid rgba(255, 108, 0, 0.4) !important;
      padding: 0.5rem 0.75rem;
    }
    
    .user-name {
      color: var(--text-light) !important;
      font-size: 0.85rem;
      font-weight: 700;
    }
    
    .user-role {
      color: var(--primary-orange) !important;
      font-size: 0.75rem;
      font-weight: 600;
    }
  }
  
  /* === Responsive === */
  @media (min-width: 1400px) {
    .mega-menu {
      max-width: 1200px !important;
    }
  }
  
  @media (max-width: 1199px) {
    .desktop-search { max-width: 350px; }
    .mega-menu {
      max-width: 95vw !important;
    }
  }
  
  @media (max-width: 991px) {
    .desktop-search { display: none !important; }
    .mobile-search { display: block; }
    .navbar-collapse {
      background: rgba(13, 13, 13, 0.98);
      margin-top: 15px;
      padding: 1.5rem;
      border-radius: 8px;
      border: 1px solid rgba(255, 108, 0, 0.3);
      backdrop-filter: blur(10px);
    }
    .auth-buttons, .user-dropdown { width: 100%; }
    .btn-login, .btn-register { 
      width: 100%; 
      justify-content: center;
      margin-bottom: 0.5rem;
      font-size: 0.85rem;
      padding: 0.6rem 1.25rem;
    }
    
    /* Ensure buttons are visible on mobile */
    .btn-login {
      background: rgba(255, 108, 0, 0.2) !important;
      border-width: 2px !important;
    }
    
    .btn-register {
      background: var(--primary-orange) !important;
      border-color: var(--primary-orange) !important;
    }
    
    /* Prevent dropdown from closing navbar */
    .mega-dropdown .dropdown-toggle {
      pointer-events: auto;
    }
    
    .mega-dropdown .dropdown-menu {
      position: static !important;
      float: none !important;
      margin-top: 0.5rem;
    }
    
    /* User dropdown mobile visibility */
    .user-dropdown {
      width: 100%;
      margin-top: 0.5rem;
    }
    
    .user-menu-link {
      width: 100%;
      justify-content: flex-start;
      background: rgba(255, 108, 0, 0.2) !important;
      border: 2px solid rgba(255, 108, 0, 0.5) !important;
      padding: 0.75rem 1rem !important;
    }
    
    .user-info {
      display: flex !important;
      flex-direction: column;
      align-items: flex-start;
      margin-left: 0.75rem;
      max-width: none;
      flex: 1;
    }
    
    .user-name {
      color: var(--text-light) !important;
      font-size: 0.9rem !important;
      font-weight: 700 !important;
      display: block !important;
      white-space: nowrap;
      overflow: visible;
      text-overflow: clip;
    }
    
    .user-role {
      color: var(--primary-orange) !important;
      font-size: 0.8rem !important;
      font-weight: 600 !important;
      display: block !important;
      margin-top: 2px;
    }
    
    .user-menu-link .dropdown-arrow {
      margin-left: auto;
      color: var(--primary-orange) !important;
      font-size: 0.9rem;
    }
    .mega-menu {
      position: static !important;
      width: 100% !important;
      max-width: 100% !important;
      transform: none !important;
      border-radius: 0 0 8px 8px;
      margin-top: 0.5rem;
      max-height: 65vh;
      padding: 0.75rem 0.5rem;
      left: auto !important;
    }
    
    .mega-menu .col-lg-3 {
      margin-bottom: 1rem;
      max-width: 100%;
      flex: 0 0 100%;
      padding: 0 0.5rem;
    }
    
    .mega-menu-section {
      max-height: 200px;
    }
  }
  
  @media (max-width: 767px) {
    .user-info {
      max-width: 80px;
    }
    
    .user-name {
      font-size: 0.8rem;
    }
    
    .mega-menu {
      max-height: 55vh;
      padding: 0.5rem 0.25rem;
      left: auto !important;
    }
    
    .mega-menu-section {
      max-height: 180px;
    }
    
    .mega-menu .col-lg-3 {
      padding: 0 0.25rem;
      margin-bottom: 0.75rem;
    }
    
    .mega-menu-section h6 {
      font-size: 0.8rem;
      margin-bottom: 0.5rem;
    }
    
    .mega-menu-section .dropdown-item {
      padding: 0.35rem 0.4rem;
      font-size: 0.8rem;
    }
    .top-bar { display: none; }
    .logo-main { font-size: 1.1rem; }
    .logo-sub { font-size: 1.3rem; }
  }
  
  /* === Accessibility & Polish === */
  .navbar-nav .nav-link:focus,
  .btn-login:focus,
  .btn-register:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
  }
  
  .main-navbar .container-fluid {
    /* Ensures alignment with body .container-fluid.px-4 */
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }