.header_user_notif.header-account {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 0;
  position: relative;
  top: 15px;
  padding: 0;
  list-style: none;
}

.header_user_notif.header-account li:first-child,
.header_user_notif.header-account li.user_setting {
  margin: 0;
}

.header-account__guest {
  display: flex !important;
  align-items: center;
  gap: 9px;
}

.header-account__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid #17637a;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.header-account__button--login {
  background: #17637a;
  color: #fff !important;
}

.header-account__button--login:hover {
  transform: translateY(-1px);
  background: #104d61;
  border-color: #104d61;
  color: #fff;
}

.header-account__button--register {
  background: #fff;
  color: #14566a !important;
}

.header-account__button--register:hover {
  background: #edf5f8;
  color: #104d61;
}

.header-account__button:focus-visible,
.header-account__toggle:focus-visible,
.header-account__links a:focus-visible {
  outline: 3px solid #d59b37;
  outline-offset: 3px;
}

.header_user_notif.header-account li.user_setting {
  position: relative;
}

.header_user_notif.header-account .header-account__toggle {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 5px;
  border: 1px solid rgba(23, 99, 122, 0.18);
  border-radius: 28px;
  background: #fff;
  color: #18364a;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.header_user_notif.header-account .header-account__toggle:hover,
.header_user_notif.header-account .header-account__toggle[aria-expanded="true"] {
  border-color: #17637a;
  box-shadow: 0 4px 14px rgba(24, 54, 74, 0.12);
  color: #18364a;
}

.header_user_notif.header-account .header-account__avatar {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid #e3eef1;
  border-radius: 50%;
  object-fit: cover;
}

.header-account__identity {
  display: grid;
  gap: 1px;
  text-align: left;
}

.header_user_notif.header-account .header-account__identity strong {
  color: #18364a;
  font-size: 0.88rem;
  line-height: 1.2;
}

.header_user_notif.header-account .header-account__identity span {
  color: #617583;
  font-size: 0.72rem;
  line-height: 1.2;
}

.header-account__chevron {
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 3px;
  transform: rotate(45deg);
  border-right: 2px solid #617583;
  border-bottom: 2px solid #617583;
}

.header_user_notif.header-account li.user_setting .dropdown-menu.header-account__menu.show {
  right: 0;
  left: auto !important;
  width: min(320px, calc(100vw - 24px));
  margin: 12px 0 0 !important;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #e3ebef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 54, 74, 0.18);
}

.header_user_notif.header-account li.user_setting .dropdown-menu.header-account__menu.show::before {
  display: none;
}

.header-account__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid #e7eef1;
}

.header-account__profile .header-account__avatar {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-color: #edf5f8;
}

.header-account__profile > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.header-account__profile strong {
  overflow: hidden;
  color: #18364a;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account__profile span {
  overflow: hidden;
  color: #617583 !important;
  font-size: 0.78rem !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account__links {
  display: grid;
  gap: 3px;
  padding-top: 8px;
}

.header_user_notif.header-account .header-account__links a.dropdown-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: #294354;
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.header_user_notif.header-account .header-account__links a.dropdown-item:hover,
.header_user_notif.header-account .header-account__links a.dropdown-item:focus {
  padding-left: 10px;
  background: #edf5f8;
  color: #14566a;
}

@media (max-width: 767px) {
  .header_user_notif.header-account { min-height: 42px; top: 18px; }
  .header-account__guest { gap: 6px; }
  .header-account__button { min-height: 38px; padding: 0 10px; font-size: 0.8rem; }
  .header-account__identity { display: none; }
  .header_user_notif.header-account .header-account__toggle { min-height: 42px; padding-right: 8px; }
  .header-account__chevron { margin-left: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .header-account__button,
  .header-account__toggle,
  .header-account__links a.dropdown-item { transition: none; }
}
