* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  overflow: hidden;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #30303b;
  background: linear-gradient(120deg, #eeeaff 0%, #f8efff 45%, #e9f8ff 100%);
}

body.sidebar-open {
  overflow: hidden;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 98px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eee9f8;
  backdrop-filter: blur(14px);
}

.header-mobile-toggle {
  display: none;
}

.header-logo {
  width: 250px;
  flex-shrink: 0;
}

.header-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #713cff, #d44bff);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(116, 70, 255, 0.25);
}

.logo-text {
  color: #11111a;
  font-size: 21px;
  font-weight: 700;
}

.logo-text span {
  color: #7356ff;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav-item {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border-radius: 24px;
  color: #6f5cff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  background: #f1edff;
  overflow: hidden;
  transition:
    width 0.25s ease,
    padding 0.25s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-nav-item i {
  flex-shrink: 0;
  font-size: 16px;
}

.header-nav-item span {
  display: none;
  white-space: nowrap;
}

.header-nav-item.expanded {
  width: auto;
  padding: 0 18px;
}

.header-nav-item.expanded span {
  display: inline;
}

.header-nav-item:hover {
  background: linear-gradient(135deg, #7857ff, #6a45ed);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(111, 77, 239, 0.25);
}

.header-nav-item.active {
  background: linear-gradient(135deg, #7857ff, #6a45ed);
  color: #ffffff;
  box-shadow: 0 7px 18px rgba(111, 77, 239, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search {
  width: 150px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 0;
  border-radius: 24px;
  background: #f7efff;
  color: #7157ee;
  transition:
    width 0.25s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

@media (min-width: 769px) {
  .header-search:focus-within {
    width: 225px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(111, 77, 239, 0.15);
  }
}

.header-search-toggle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.header-search-toggle i {
  font-size: 16px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #333333;
  font-family: inherit;
  font-size: 14px;
}

.header-search input::placeholder {
  color: #8d86a3;
}
.header-round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid #e4ddff;
  border-radius: 50%;
  background: #ffffff;
  color: #6957ef;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;
  cursor: pointer;
}
.header-round-button i {
  display: block;
  line-height: 1;
  margin: 0;
}
.header-login {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border: 1px solid #ddd4ff;
  border-radius: 22px;
  color: #6750e8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.header-register {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #e85cff, #9952ff);
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(183, 74, 255, 0.25);
}

.header-language {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid #ded8ff;
  border-radius: 20px;
  background: #faf9ff;
  color: #6857dd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.app-layout {
  display: flex;
  height: calc(100vh - 98px);
  overflow: hidden;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  height: calc(100vh - 98px);
  padding: 0 7px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.78),
    rgba(250, 246, 255, 0.84)
  );
  border-right: 1px solid #e8e1f8;
  overflow: hidden;
}

.sidebar-scroll {
  height: 100%;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d8d0f5 transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #d8d0f5;
  border-radius: 10px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #bdb2ef;
}
.sidebar-mobile-header {
  display: none;
}

.sidebar-section {
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(247, 243, 255, 0.9)
  );
  border: 1px solid rgba(231, 225, 247, 0.8);
}

.sidebar-section-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #3e3e48;
  font-size: 16px;
  font-weight: 700;
}

.sidebar-section-icon {
  color: #6d5cff;
  font-size: 11px;
}

.sidebar-menu {
  padding: 0 7px 7px;
}

.sidebar-item {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px;
  margin-bottom: 3px;
  border-radius: 7px;
  color: #3f3f48;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.sidebar-item:hover {
  background: #f1edff;
  color: #624cf0;
}

.sidebar-item.active {
  color: #6957ec;
  background: linear-gradient(135deg, #f0ebff, #e7e0ff);
  box-shadow: inset 3px 0 0 #755cff;
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #eeeaff;
  color: #6857ee;
  font-size: 16px;
}

.sidebar-icon i {
  font-size: 14px;
}

.sidebar-item.active .sidebar-icon {
  background: #ddd5ff;
}

.sidebar-item.active .sidebar-icon i {
  color: #6957ec;
}

.sidebar-text {
  flex: 1;
}

.sidebar-badge {
  padding: 3px 6px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 8px;
  font-weight: 700;
}

.sidebar-badge.hot {
  background: #ff6171;
}

.sidebar-badge.new {
  background: #ff6570;
}

.sidebar-group {
  margin-bottom: 3px;
}

.sidebar-group > .sidebar-item {
  cursor: pointer;
}

.sidebar-group-toggle {
  width: 100%;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.sidebar-arrow {
  color: #888;
  font-size: 10px;
  transition: transform 0.2s ease;
}

.sidebar-group-toggle.collapsed .sidebar-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  padding: 0 0 5px 50px;
}

.sidebar-submenu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 5px;
  color: #555563;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-submenu a::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #bdb6e9;
}

.sidebar-submenu a i {
  width: 15px;
  color: #aaa6d9;
  font-size: 11px;
}

.sidebar-submenu a:hover {
  color: #6b55ed;
}

.sidebar-link-arrow {
  color: #aaa;
  font-size: 10px;
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;

  background-color: #f7f7f7;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);

  background-size: 24px 24px;
}

.sidebar-overlay {
  display: none;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 1200px) {
  .header-logo {
    width: 200px;
  }

  .header-nav {
    gap: 6px;
  }

  .header-icon-item {
    display: none;
  }

  .header-search {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .header-search span {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-nav {
    display: none;
  }

  .header-logo {
    flex: 1;
    width: auto;
  }

  .sidebar {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .sidebar-scroll {
    flex: 1;
    min-height: 0;
    height: auto;
    padding: 0 0 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d8d0f5 transparent;
  }

  .sidebar-scroll::-webkit-scrollbar {
    width: 5px;
  }

  .sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar-scroll::-webkit-scrollbar-thumb {
    background: #d8d0f5;
    border-radius: 10px;
  }

  .sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #bdb2ef;
  }
  .top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #eee8f8;
    backdrop-filter: blur(16px);
  }

  .header-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-menu-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f3efff;
    color: #6957ec;
    font-size: 17px;
    cursor: pointer;
  }

  .header-logo {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
  }
  .header-user {
    gap: 4px;
  }

  .header-user-avatar {
    width: 40px;
    height: 40px;
  }

  .header-balance {
    height: 40px;
    padding: 0 9px;
    gap: 5px;
  }

  .header-balance-plus {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .header-user-menu {
    position: fixed;
    top: 58px;
    right: 10px;
    width: 220px;
  }
  .header-search {
    position: static;
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f7f4ff;
    box-shadow: none;
    overflow: visible;
  }

  .header-search-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .header-search-toggle i {
    font-size: 15px;
  }

  .header-search input {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    height: 0;
    padding: 0 18px 0 48px;
    border: 0;
    border-bottom: 1px solid #eee8f8;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(57, 45, 111, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition:
      height 0.25s ease,
      opacity 0.2s ease,
      transform 0.25s ease;
    z-index: 999;
  }

  .header-search.active input {
    height: 56px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .header-round-button {
    width: 40px;
    height: 40px;
    border: 0;
    background: #f7f4ff;
  }

  .header-login {
    height: 40px;
    padding: 0 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-register {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-language {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border: 0;
    background: #f7f4ff;
  }

  .header-language span {
    display: none;
  }

  .app-layout {
    display: block;
    height: 100vh;
    min-height: 0;
    padding-top: 64px;
    overflow: hidden;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1200;
    width: 300px;
    max-width: 84vw;
    height: 100vh;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow: hidden;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(250, 246, 255, 0.98)
    );
    box-shadow: 8px 0 30px rgba(43, 32, 88, 0.15);
    border-right: 1px solid #e8e1f8;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-mobile-header {
    height: 76px;
    min-height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eee8fa;
  }
  .sidebar-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .sidebar-mobile-logo .logo-icon {
    width: 40px;
    height: 40px;
  }

  .sidebar-mobile-logo .logo-text {
    font-size: 18px;
  }

  .sidebar-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #444;
    font-size: 18px;
    cursor: pointer;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    background: rgba(20, 18, 35, 0);
    pointer-events: none;
    transition: background 0.28s ease;
  }

  .sidebar-overlay.active {
    background: rgba(20, 18, 35, 0.55);
    pointer-events: auto;
  }

  .main-content {
    width: 100%;
    height: calc(100vh - 64px);
    min-height: 0;
    padding: 12px 12px 90px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    height: 68px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 5px 8px 7px;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eee8fa;
    box-shadow: 0 -5px 20px rgba(57, 45, 111, 0.08);
    backdrop-filter: blur(15px);
  }

  .mobile-bottom-item {
    height: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #96939f;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
  }

  .mobile-bottom-item i {
    font-size: 18px;
  }

  .mobile-bottom-item.active {
    color: #6855f3;
  }

  .mobile-bottom-center {
    position: relative;
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    color: #96939f;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
  }

  .mobile-bottom-center span {
    position: absolute;
    top: -23px;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #735cff, #6650ed);
    color: #ffffff;
    font-size: 21px;
    box-shadow: 0 7px 18px rgba(102, 80, 237, 0.3);
  }

  .mobile-bottom-center label {
    font-size: 10px;
    color: #96939f;
  }

  .sidebar-section {
    margin-bottom: 7px;
  }

  .sidebar-section-header {
    height: 48px;
  }

  .sidebar-item {
    min-height: 48px;
  }

  .sidebar-submenu a {
    min-height: 42px;
  }
}

@media (max-width: 430px) {
  .top-header {
    padding: 0 8px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-login {
    padding: 0 10px;
    font-size: 11px;
  }

  .header-register {
    padding: 0 11px;
    font-size: 11px;
  }

  .header-search,
  .header-round-button,
  .header-language,
  .mobile-menu-button {
    width: 38px;
    height: 38px;
  }

  .sidebar {
    width: 300px;
    max-width: 88vw;
  }

  .mobile-bottom-nav {
    height: 66px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .mobile-bottom-item {
    font-size: 9px;
  }

  .mobile-bottom-item i {
    font-size: 17px;
  }

  .mobile-bottom-center {
    font-size: 9px;
  }
}
.header-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-user-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #735cff, #6650ed);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(102, 80, 237, 0.22);
}

.header-balance {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid #e3dcff;
  border-radius: 22px;
  background: #faf8ff;
  color: #6955ed;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.header-balance > i:first-child {
  font-size: 13px;
}

.header-balance span {
  white-space: nowrap;
}

.header-balance-plus {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #6955ed;
  color: #ffffff;
  font-size: 9px;
}

.header-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  padding: 14px 14px 13px;
  border: 1px solid #e9e4f5;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(70, 54, 145, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 1300;
}

.header-user.active .header-user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-user-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 28px;
  width: 14px;
  height: 14px;
  border-left: 1px solid #e9e4f5;
  border-top: 1px solid #e9e4f5;
  background: #ffffff;
  transform: rotate(45deg);
}

.header-user-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 14px;
}

.header-user-large-avatar {
  width: 70px;
  height: 70px;
  margin-top: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 5px solid #e8e3ff;
  border-radius: 50%;
  background: #f0edff;
  color: #50446f;
  font-size: 28px;
}

.header-user-large-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.header-user-name {
  max-width: 280px;
  margin-top: 12px;
  overflow: hidden;
  color: #302d38;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-id {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 8px 0 11px;
  border-radius: 15px;
  background: linear-gradient(90deg, #edf3ff, #f1ecff);
  color: #3d3a46;
  font-size: 11px;
}

.header-user-id > span {
  color: #25232c;
  font-weight: 700;
}

.header-user-id strong {
  font-weight: 700;
}

.header-copy-id {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9994a7;
  cursor: pointer;
}

.header-copy-id i {
  font-size: 11px;
}

.header-user-menu-divider {
  height: 1px;
  margin: 5px 0 13px;
  background: #f0edf6;
}

.header-user-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 8px;
}

.header-user-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #726d80;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.header-user-grid a:hover {
  color: #6955ed;
}

.header-menu-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.header-user-grid a:hover .header-menu-icon {
  transform: translateY(-2px);
}

.header-menu-icon.blue {
  border-color: #c8e4ff;
  background: #eff8ff;
  color: #198de5;
}

.header-menu-icon.purple {
  border-color: #d9d0ff;
  background: #f4f1ff;
  color: #6955ed;
}

.header-menu-icon.cyan {
  border-color: #ccebe8;
  background: #effaf9;
  color: #13a395;
}

.header-menu-icon.green {
  border-color: #cdeedb;
  background: #effbf4;
  color: #16ad6a;
}

.header-menu-icon.red {
  border-color: #ffd0d0;
  background: #fff4f4;
  color: #ff4a4a;
}

.header-menu-icon.orange {
  border-color: #ffdec5;
  background: #fff7f0;
  color: #ff792e;
}

.header-menu-icon.indigo {
  border-color: #d4d0ff;
  background: #f3f1ff;
  color: #6257ef;
}

.header-logout-form {
  margin: 0;
}

.header-logout {
  width: 100%;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff3b3f, #ff2d55);
  color: #ffffff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(255, 55, 75, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.header-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 55, 75, 0.24);
}

.header-logout i {
  font-size: 13px;
}

@media (max-width: 768px) {
  .header-user {
    gap: 4px;
  }

  .header-user-avatar {
    width: 40px;
    height: 40px;
  }

  .header-balance {
    height: 40px;
    padding: 0 9px;
    gap: 5px;
  }

  .header-balance-plus {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .header-user-menu {
    position: fixed;
    top: 58px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 340px;
    padding: 14px 14px 13px;
  }

  .header-user-menu::before {
    right: 23px;
  }
}

@media (max-width: 430px) {
  .header-user-menu {
    right: 8px;
    width: calc(100vw - 16px);
  }

  .header-user-grid {
    gap: 12px 5px;
  }
}
