.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.support-nav,
.mobile-account-nav {
  position: relative;
}

.support-nav-toggle,
.mobile-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #24324a;
  cursor: pointer;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-nav-toggle:hover,
.support-nav.is-open .support-nav-toggle,
.mobile-account-toggle:hover,
.mobile-account-nav.is-open .mobile-account-toggle {
  border-color: #b9c9ed;
  background: #eef3ff;
  box-shadow: 0 6px 18px rgba(35, 87, 217, 0.1);
}

.support-nav-toggle:focus-visible,
.mobile-account-toggle:focus-visible {
  outline: 3px solid rgba(35, 87, 217, 0.18);
  outline-offset: 2px;
}

.support-nav-trigger-icon,
.mobile-account-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: linear-gradient(135deg, #0b2b57, #315fc5);
  color: #fff;
}

.support-nav-trigger-icon svg,
.mobile-account-icon svg {
  width: 17px;
  height: 17px;
}

.support-nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.support-nav.is-open .support-nav-chevron {
  transform: rotate(180deg);
}

.support-nav-dropdown,
.mobile-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #dce4ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 35, 70, 0.18);
  z-index: 100;
}

.support-nav-dropdown[hidden],
.mobile-account-dropdown[hidden] {
  display: none;
}

.support-nav-dropdown::before,
.mobile-account-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 31px;
  width: 12px;
  height: 12px;
  border-top: 1px solid #dce4ef;
  border-left: 1px solid #dce4ef;
  background: #fff;
  transform: rotate(45deg);
}

.support-nav-head,
.mobile-account-head {
  position: relative;
  padding: 8px 9px 12px;
  border-bottom: 1px solid #edf0f5;
}

.support-nav-head strong,
.mobile-account-head strong {
  display: block;
  color: #172033;
  font-size: 0.95rem;
}

.support-nav-head small,
.mobile-account-head small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.75;
}

.support-nav-list,
.mobile-account-list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
}

.support-nav-item,
.mobile-account-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #172033;
  text-align: right;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.support-nav-item:hover,
.support-nav-item:focus-visible,
.mobile-account-item:hover,
.mobile-account-item:focus-visible {
  border-color: #dfe6f2;
  background: #f8faff;
  outline: 0;
  transform: translateY(-1px);
}

.support-nav-platform-icon,
.mobile-account-item-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf3ff;
  color: #1746b5;
  box-shadow: 0 6px 16px rgba(17, 39, 78, 0.08);
}

.support-nav-platform-icon {
  color: #fff;
  box-shadow: 0 6px 16px rgba(17, 39, 78, 0.12);
}

.support-nav-platform-icon svg,
.mobile-account-item-icon svg {
  width: 22px;
  height: 22px;
}

.support-nav-item.telegram .support-nav-platform-icon {
  background: #229ed9;
}

.support-nav-item.whatsapp .support-nav-platform-icon {
  background: #25d366;
}

.support-nav-item.bale .support-nav-platform-icon {
  background: #0d74d8;
}

.support-nav-item.soroush .support-nav-platform-icon {
  background: #f28b2a;
}

.support-nav-item.instagram .support-nav-platform-icon {
  background: linear-gradient(135deg, #7c3aed, #d63384, #f59e0b);
}

.support-nav-item.phone .support-nav-platform-icon {
  background: #0b2b57;
}

.support-nav-copy,
.mobile-account-copy {
  min-width: 0;
}

.support-nav-copy strong,
.mobile-account-copy strong {
  display: block;
  font-size: 0.88rem;
}

.support-nav-copy small,
.mobile-account-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #667085;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-nav-copy small {
  direction: ltr;
  text-align: right;
}

.support-nav-copy small:empty {
  display: none;
}

.support-nav-arrow,
.mobile-account-arrow {
  color: #98a2b3;
  font-size: 1rem;
}

.support-nav-empty {
  padding: 14px;
  color: #667085;
  text-align: center;
  font-size: 0.82rem;
}

.user-menu {
  min-width: 0;
}

.user-menu > span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-nav {
  display: none;
}

.mobile-account-toggle {
  justify-content: center;
  padding: 6px;
}

.mobile-account-toggle-label {
  display: none;
}

.mobile-account-dropdown {
  width: 280px;
}

.mobile-account-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-list form {
  margin: 0;
}

.mobile-account-item.is-logout {
  color: #b42318;
}

.mobile-account-item.is-logout .mobile-account-item-icon {
  background: #fff1f0;
  color: #b42318;
}

@media (max-width: 720px) {
  .topbar {
    height: 64px;
    min-height: 64px;
    gap: 8px;
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100vw - 176px);
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
  }

  .support-nav-toggle,
  .mobile-account-toggle,
  #pwaTopInstallButton {
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 6px;
    border-radius: 12px;
  }

  .support-nav-trigger-icon,
  .mobile-account-icon {
    width: 28px;
    height: 28px;
  }

  .support-nav-toggle-label,
  .support-nav-chevron {
    display: none;
  }

  .user-menu {
    display: none;
  }

  .mobile-account-nav {
    display: block;
  }

  .support-nav-dropdown,
  .mobile-account-dropdown {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border-radius: 17px;
    box-shadow: 0 20px 50px rgba(15, 35, 70, 0.22);
  }

  .support-nav-dropdown::before,
  .mobile-account-dropdown::before {
    display: none;
  }

  .mobile-account-item,
  .support-nav-item {
    min-height: 56px;
  }
}

@media (max-width: 390px) {
  .topbar {
    gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .brand {
    max-width: calc(100vw - 164px);
    font-size: 0.92rem;
  }

  .topbar-actions {
    gap: 4px;
  }

  .support-nav-toggle,
  .mobile-account-toggle,
  #pwaTopInstallButton {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}
