.header_right_content_down {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 8px;
  justify-content: flex-end !important;
  margin-left: auto;
}

.header_new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.header_right_content {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.logo_content {
  flex: 0 0 auto;
}

#header-auth-buttons {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#header-auth-buttons .btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header_right_content_down > a[data-toggle="modal"],
.header_right_content_down > .Languages__dropdown,
.header_right_content_down > .header-user-profile,
.header_right_content_down > .header-logged-actions {
  flex-shrink: 0;
}

body.is-logged-in .header_right_content_down > a[data-toggle="modal"] {
  display: none !important;
}

body.is-logged-in .header_new {
  background: #2d5245;
}

.header-logged-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 22px;
  background: #f3ea29;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.header-action-btn i {
  font-size: 14px;
}

.header-action-btn:hover {
  opacity: 0.92;
  color: #111;
  transform: translateY(-1px);
}

.header-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 22px;
  background: #007a53;
  color: #f3ea29;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(243, 234, 41, 0.35);
}

.header-balance-pill i {
  font-size: 13px;
  color: #f3ea29;
}

.header-balance-pill__amount {
  letter-spacing: 0.2px;
}

.header-action-btn i {
  font-size: 14px;
}

.header-user-profile {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
  flex-shrink: 0;
}

.header-user-profile__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #007a53;
  border: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 22px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 220px;
  min-height: 36px;
}

.header-user-profile__toggle:hover {
  background: #006847;
}

.header-user-profile__user-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.header-user-profile__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}

.header-user-profile__chevron {
  font-size: 11px;
  opacity: 0.9;
  flex-shrink: 0;
}

.header-user-profile__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #005c45;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  overflow: hidden;
  padding: 6px 0;
}

.header-user-profile.is-open .header-user-profile__menu {
  display: block;
}

.header-user-profile__nav {
  display: flex;
  flex-direction: column;
}

.header-user-profile__link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s ease;
}

.header-user-profile__link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
  color: #c8e650;
  flex-shrink: 0;
}

.header-user-profile__link span {
  flex: 1;
  line-height: 1.2;
}

.header-user-profile__link:hover {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
}

.header-user-profile__link:hover i {
  color: #f3ea29;
}

.header-user-profile__logout {
  margin-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#header-auth-buttons.is-hidden {
  display: none !important;
}

.header-search-btn {
  width: 45px !important;
  height: 36px !important;
  min-width: 45px;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #009369 !important;
  border-radius: 6px !important;
  color: #fff !important;
}

.header-search-icon {
  font-size: 16px;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .header-action-btn span {
    display: none;
  }

  .header-action-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
  }
}

@media (max-width: 768px) {
  .header-logged-actions {
    gap: 6px;
  }

  .header-user-profile__name {
    max-width: 72px;
    font-size: 12px;
  }
}
