.ie-um-avatar-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; color: #e53935; font: 700 13px/1 Poppins, Helvetica, sans-serif;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); vertical-align: middle;
}
@media (min-width: 992px) {
  .header-middle.col-sm-7 { width: calc(100% - 535px) !important; max-width: 680px; }
}
.ie-um-toggle .header-account-label { display: inline-block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.header-account .dropdown-menu.ie-um {
  width: 300px; max-width: 92vw; padding: 8px; margin-top: 10px;
  border: 1px solid #eee3e2; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(31, 36, 48, .16); background: #fff;
  font-family: Poppins, Helvetica, sans-serif;
}
.header-account .dropdown-menu.ie-um > li > a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #1f2430; font-size: 14px; font-weight: 500; line-height: 1.3; white-space: normal; background: none;
}
.header-account .dropdown-menu.ie-um > li > a:hover,
.header-account .dropdown-menu.ie-um > li > a:focus { background: #fdf3f2; color: #c62828; }
.header-account .dropdown-menu.ie-um > li > a > .fa { width: 18px; text-align: center; font-size: 15px; color: #8a8f99; margin: 0; }
.header-account .dropdown-menu.ie-um > li > a:hover > .fa { color: #e53935; }
.header-account .dropdown-menu.ie-um > li > a > span { flex: 1; }
.header-account .dropdown-menu.ie-um .divider { margin: 6px 4px; background: #f1e8e7; }

.ie-um-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; margin: 0 0 6px; border-bottom: 1px solid #f1e8e7; cursor: default; }
.ie-um-avatar {
  flex: 0 0 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e53935, #d81b60); color: #fff; font-size: 18px; font-weight: 700;
}
.ie-um-who { min-width: 0; display: flex; flex-direction: column; }
.ie-um-who strong { font-size: 15px; font-weight: 700; color: #1f2430; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-um-who small { font-size: 12px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-account .dropdown-menu.ie-um > li > a.ie-um-primary { background: #fdf3f2; color: #c62828; font-weight: 600; margin-bottom: 2px; }
.header-account .dropdown-menu.ie-um > li > a.ie-um-primary > .fa { color: #e53935; }
.header-account .dropdown-menu.ie-um > li > a.ie-um-primary:hover { background: #e53935; color: #fff; }
.header-account .dropdown-menu.ie-um > li > a.ie-um-primary:hover > .fa { color: #fff; }
.ie-um-count {
  font-style: normal; min-width: 24px; padding: 2px 8px; border-radius: 999px; text-align: center;
  background: #e53935; color: #fff; font-size: 12px; font-weight: 700;
}
.ie-um-primary:hover .ie-um-count { background: #fff; color: #c62828; }

.ie-um-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: default; }
.ie-um-row > .fa { width: 18px; text-align: center; font-size: 15px; color: #8a8f99; }
.ie-um-row-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; font-weight: 500; color: #1f2430; line-height: 1.3; }
.ie-um-row-text small { font-size: 12px; color: #6b7280; font-weight: 400; }
.header-account .dropdown-menu.ie-um > li > a.ie-um-logout { color: #6b7280; }

.ie-switch { position: relative; display: inline-block; width: 44px; height: 26px; margin: 0; flex: 0 0 44px; cursor: pointer; }
.ie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.ie-switch-track {
  position: absolute; inset: 0; border-radius: 999px; background: #d5d7dd; transition: background .2s ease;
}
.ie-switch-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.ie-switch .checkbox-wrapper { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; background: none; border: 0; }
.ie-switch .checkbox-wrapper::before, .ie-switch .checkbox-wrapper::after { display: none !important; }
.ie-switch input { -webkit-appearance: none; appearance: none; }
.ie-switch.is-on .ie-switch-track, .ie-switch:has(input:checked) .ie-switch-track { background: #22a35a; }
.ie-switch.is-on .ie-switch-track::after, .ie-switch:has(input:checked) .ie-switch-track::after { transform: translateX(18px); }
.ie-switch:has(input:focus-visible) .ie-switch-track { box-shadow: 0 0 0 3px rgba(229, 57, 53, .3); }

#ie-um-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100000; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 999px; background: #1f2430; color: #fff;
  font: 500 14px/1.3 Poppins, Helvetica, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: 92vw; text-align: center;
}
#ie-um-toast.is-show { opacity: 1; transform: translate(-50%, 0); }