.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    max-width: 1400px;
  }
  .header__logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #181c22;
  }
  .header__logo img {
    width: 140px;
    height: 26px;
  }
  .header__logo-icon {
    background: #00bcd4;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 4px 0 2px;
    padding: 0 6px;
    display: inline-block;
  }
  .header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .header__nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
  }
  .header__nav-link {
    color: #181c22;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    line-height: 20px;
    display: flex;
  }
  .header__nav-link:hover,
  .header__nav-link:focus {
    color: #00bcd4;
    text-decoration: none;
    background-color: #F5F6FB;
  }

  .header__nav-item-icon svg {
    fill: #060A07;
  }

  .header__nav-item-icon-wishlist-path {
    stroke: #555;
    stroke-width: 2px; /* Increased thickness to 2px */
  }
  

  .header__icon-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
  }
  .header__icon-btn {
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: filter 0.2s;
  }
  .header__icon-btn:hover,
  .header__icon-btn:focus {
    filter: brightness(0.8);
  }
  .header__icon-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #2196f3;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px 6px;
    font-weight: 700;
  }
  .header__auth {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: 1.5rem;
  }
  .header__btn {
    border: 1px solid #b3c6d6;
    background: #fff;
    color: #181c22;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  .header__btn:hover,
  .header__btn:focus {
    background: #e3f7fa;
    color: #00bcd4;
    border: 1px solid #00bcd4;
    text-decoration: none;
  }
  .header__btn--primary {
    background: #007c91;
    color: #fff;
    border: none;
  }
  .header__btn--primary:hover,
  .header__btn--primary:focus {
    background: #006578;
    color: #fff;
    transform: translateY(-1px);
  }
  
  .header__nav-item--buy-credits {
    margin-left: 0.5rem;
  } 

  /* Language Switcher Styles */
  .language-switcher {
    position: relative;
    display: inline-block;
  }
.header .language-switcher__button {
   color: #181c22;
 }
 
  .language-switcher__button {
    /* background: #fff; */
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
    background: #ffffff14;
  }

  .language-switcher__button:hover,
  .language-switcher__button:focus {
    color: #00bcd4;
    background-color: #F5F6FB;
  }

  .language-switcher__current {
    font-weight: 400;
    font-size: 16px;
  }

  .language-switcher__arrow {
    transition: transform 0.2s;
  }

  .language-switcher__button:hover .language-switcher__arrow {
    transform: rotate(180deg);
  }

  .language-switcher__menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    margin-top: 8px;
    overflow: hidden;
  }

  .language-switcher__menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .language-switcher__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #181c22;
    text-decoration: none !important;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    /* overflow: hidden; */
  }

  .language-switcher__option:last-child {
    border-bottom: none;
  }

  .language-switcher__option:hover,
  .language-switcher__option:focus {
    /* background-color: #F5F6FB; */
    color: #0097a7;
  }

  .language-switcher__option--active {
    background-color: #ececec;
    /* color: #7a7a7a; */
    font-weight: 600;
  }

  .language-switcher__flag {
    font-size: 1.2rem;
  }

  .language-switcher__name {
    font-size: 0.9rem;
    font-weight: 500;
  } 

  /* Popular Requests Section */
  .popular-requests {
    margin-top: 24px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .popular-requests__label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }

  .popular-requests__label svg {
    color: #FFD700;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
    animation: trendingStar 3s ease-in-out infinite;
  }

  @keyframes trendingStar {
    0%, 100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
    50% {
      transform: scale(1.2) rotate(10deg);
      opacity: 0.8;
    }
  }

  .popular-requests__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .popular-requests__tag {
    background: #f5f5f5;
    color: #333;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
  }

  .popular-requests__tag:hover,
  .popular-requests__tag:focus {
    background: #e0e0e0;
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .popular-requests__tag:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  } 

  /* User Menu Styles */
  .header__nav-item--user-menu {
    position: relative;
  }

  .header__nav-cabinet {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav-cabinet:hover {
    background: #f0f0f0;
    transform: scale(1.05);
  }

  .header__avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
  }

  .header__nav-cabinet:hover .header__avatar {
    border-color: #00bcd4;
  }

  /* User Menu Dropdown */
  .user-menu__dropdown {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
    border: none;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .user-menu__dropdown.show {
    transform: translateX(0);
  }

  /* User Menu Header */
  .user-menu__header {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
  }

  .user-menu__avatar {
    flex-shrink: 0;
    margin-right: 12px;
  }

  .user-menu__avatar img,
  .user-menu__avatar svg {
    border-radius: 50%;
    object-fit: cover;
  }

  .user-menu__info {
    flex: 1;
    min-width: 0;
  }

  .user-menu__greeting {
    font-weight: 600;
    font-size: 14px;
    color: #181c22;
    margin-bottom: 2px;
  }

  .user-menu__user-id {
    font-size: 12px;
    color: #666;
  }

  .user-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s;
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .user-menu__close:hover {
    background: #f0f0f0;
    color: #333;
  }

  /* User Menu Section */
  .user-menu__section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  .user-menu__section-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .user-menu__plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 13px;
  }

  .user-menu__plan-label {
    color: #666;
    min-width: 80px;
  }

  .user-menu__plan-value {
    color: #333;
    flex: 1;
    margin: 0 8px;
  }

  .user-menu__plan-action {
    color: #00bcd4;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
    white-space: nowrap;
  }

  .user-menu__plan-action:hover {
    color: #008a98;
    text-decoration: underline;
  }

  /* User Menu Navigation */
  .user-menu__nav {
    padding: 8px 0;
  }

  .user-menu__nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
  }

  .user-menu__nav-item:hover {
    background: #f8f9fa;
    color: #00bcd4;
  }

  .user-menu__nav-item svg {
    margin-right: 12px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
  }

  /* Theme toggle icon visibility */
  .theme-icon-when-dark,
  .theme-icon-when-light {
    display: none;
  }

  html:not([data-theme]) .theme-icon-when-light,
  html[data-theme="light"] .theme-icon-when-light {
    display: block;
  }

  html[data-theme="dark"] .theme-icon-when-dark {
    display: block;
  }

  .user-menu__nav-item span {
    display: flex;
    align-items: center;
    line-height: 20px;
  }

  .user-menu__nav-item--admin {
    color: #ff6b35;
  }

  .user-menu__nav-item--admin:hover {
    background: #fff5f2;
    color: #e55a2b;
  }

  .user-menu__nav-item--logout {
    color: #dc3545;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
  }

  .user-menu__nav-item--logout:hover {
    background: #fdf2f2;
    color: #c62828;
  }

  /* User Menu Overlay */
  .user-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 999;
  }

  .user-menu__overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Styles - Full Screen Slide Menu */
  @media (max-width: 768px) {
    .user-menu__dropdown {
      display: block;
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      max-width: 100vw;
      height: 100vh;
      background: #fff;
      border-radius: 0;
      opacity: 0;
      visibility: hidden;
      transform: translateX(100%);
      transition: all 0.3s ease;
      box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
      overflow-y: auto;
      z-index: 1000;
    }

    .user-menu__dropdown.show {
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }

    .user-menu__header {
      padding: 20px 16px 16px;
    }

    .user-menu__section {
      padding: 20px 16px;
    }

    .user-menu__nav-item {
      padding: 16px 20px;
      font-size: 16px;
    }
  }

  /* Prevent body scroll when menu is open */
  body.user-menu-open {
    overflow: hidden;
  }

  /* Header Responsive Styles */
  @media (max-width: 1024px) {
    .header__nav-item--buy-credits {
      display: none;
    }
  }

  @media (max-width: 768px) {
    .header__container {
      padding: 0 16px;
      height: 60px;
    }

    .header__logo img {
      width: 130px;
      height: 24px;
    }

    .header__nav-list {
      gap: 0.3rem;
    }

    .header__nav-link {
      padding: 6px 10px;
      font-size: 0.85rem;
    }

    .header__icon-group {
      gap: 0.5rem;
      margin-left: 0.8rem;
    }

    /* Hide all nav items except user menu button on mobile */
    .header__nav-item:not(.header__nav-item--user-menu),
    .header__nav-item-icon:not(.header__nav-item--user-menu),
    .header__nav-item--buy-credits,
    .header__nav-item-icon-cart,
    .header__nav-item-icon-wishlist,
    .header__nav-item-language {
      display: none !important;
    }

    /* Keep logo and user menu button visible */
    .header__logo {
      display: block;
    }

    .header__nav-item--user-menu {
      display: block !important;
    }

    .language-switcher__button {
      padding: 6px 10px;
      font-size: 0.85rem;
    }

    .header__nav-cabinet {
      width: 36px !important;
      height: 36px !important;
    }
  }

  @media (max-width: 480px) {
    .header__container {
      padding: 0 12px;
      height: 56px;
    }

    .header__logo img {
      width: 120px;
      height: 22px;
    }

    .header__icon-group {
      gap: 0.5rem;
      margin-left: 0.75rem;
    }

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

    .header__icon-badge {
      top: -4px;
      right: -6px;
      width: 16px;
      height: 16px;
      font-size: 10px;
    }
  }

  /* Animation improvements */
  .user-menu__nav-item,
  .user-menu__plan-action,
  .header__nav-cabinet {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Focus states for accessibility */
  .header__nav-cabinet:focus,
  .user-menu__nav-item:focus,
  .user-menu__plan-action:focus,
  .user-menu__close:focus {
    outline: 2px solid #00bcd4;
    outline-offset: 2px;
  }

  /* High contrast mode improvements */
  @media (prefers-contrast: high) {
    .user-menu__dropdown {
      border: 2px solid #000;
    }
    
    .user-menu__nav-item {
      border-bottom: 1px solid #ccc;
    }
  }

  /* Reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    .user-menu__dropdown,
    .user-menu__overlay,
    .user-menu__nav-item,
    .header__nav-cabinet {
      transition: none;
    }
  }

  