/* Account header only. Keep separate from account cards and sidebar. */
html.direct-brand .topbar {
  position:sticky; top:0; z-index:30; display:flex; align-items:center;
  gap:20px; height:78px; padding:0 30px; box-sizing:border-box;
  background:#0e0e10f5; border-bottom:1px solid #ffffff0d;
  backdrop-filter:blur(18px);
}
html.direct-brand .topbar .brand {
  position:relative; display:flex; align-items:center; flex:0 0 170px;
  width:170px; height:100%; min-width:0; padding:10px 0; margin:0;
}
html.direct-brand .topbar .brand .logo {
  display:flex; align-items:center; width:148px; height:56px; max-width:100%;
  line-height:1; overflow:hidden;
}
html.direct-brand .topbar .brand .directeo-header-wordmark {
  display:block; position:static; width:148px; height:56px;
  max-width:100%; max-height:56px; object-fit:contain; border-radius:0;
}
.topbar .toplinks {display:flex; align-items:center; gap:20px; min-width:0; font-size:12px; color:#a5a5a5}
.topbar .top-right {margin-left:auto; display:flex; align-items:center; gap:12px; flex-shrink:0}
.topbar .balance {display:none}
.topbar .credit-btn,.topbar .plans-btn,#user-pop .credit-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  min-height:37px; padding:9px 16px; border:1px solid #ffffff20;
  border-radius:24px; background:#222325; color:#eeeef3; font-size:11px;
  white-space:nowrap;
}
.topbar .credit-btn {border-color:#7C5CFF45}
.topbar .credit-btn:hover,.topbar .plans-btn:hover,#user-pop .credit-btn:hover {background:#2b2735;border-color:#7C5CFF70}
.topbar .icon,#user-pop .icon {
  width:18px; height:18px; flex:none; fill:none; stroke:currentColor;
  stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round;
}
.topbar .avatar,#user-pop .avatar {
  display:grid; place-items:center; flex:none; width:38px; height:38px;
  margin:0; padding:2px; border:0; border-radius:50%;
  background:linear-gradient(140deg,#7C5CFF,#4dd0ff); overflow:hidden;
}
.topbar .avatar span,#user-pop .avatar span {
  display:grid; place-items:center; width:100%; height:100%; border-radius:50%;
  background:#232323; color:#eeeef3; font-size:11px;
}
.topbar .avatar img,#user-pop .avatar img {display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.account .avatar{overflow:hidden}
.account .avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
#user-pop {
  position:fixed; z-index:100; top:72px; right:26px;
  width:300px; max-width:calc(100vw - 24px); box-sizing:border-box;
  padding:20px; border:1px solid #ffffff1a; border-radius:23px;
  background:radial-gradient(120% 120% at 30% 10%,#1a1a1a,#0f0f10 60%,#0b0b0c);
  color:#eeeef3; box-shadow:0 20px 70px #000a;
}
#user-pop[hidden] {display:none}
#user-pop .user-head {display:flex;align-items:center;gap:12px;margin-bottom:18px}
#user-pop .user-head b {font-size:14px}
#user-pop .user-head small {display:block;font-size:10px;color:#999}
#user-pop .credit-panel {background:#202022;padding:16px;border-radius:16px}
#user-pop .credit-line {display:flex;justify-content:space-between;font-size:12px}
#user-pop .credit-line b {color:#fff}
#user-pop .meter {height:18px;margin:16px 0 12px;overflow:hidden;border-radius:7px;background:#303034;border:1px solid #ffffff0a}
#user-pop .meter span {display:block;width:0;height:100%;border-radius:6px;background:linear-gradient(100deg,#9466df,#c7a2fb 48%,#99dfed)}
#user-pop .credit-panel p {font-size:10px;color:#919191}
#user-pop .credit-btn {width:100%;margin-top:6px}
#user-pop .user-item {display:flex;align-items:center;gap:10px;width:100%;padding:12px 4px;text-align:left;font-size:12px;color:#bcbcbc;border:0;border-radius:6px;background:none}
#user-pop .user-item:hover {background:#ffffff08;color:white}
#user-pop #account-signout {border-top:1px solid #ffffff10;margin-top:8px}
#profile-status {font-size:11px;color:#7C5CFF}
@media(max-width:1000px) {
  html.direct-brand .topbar {padding:0 18px;gap:12px}
  html.direct-brand .topbar .brand {flex-basis:148px;width:148px}
  .topbar .top-right {gap:8px}
}
@media(max-width:850px) {
  html.direct-brand .topbar {height:auto;min-height:78px;padding:10px 18px;flex-wrap:wrap;gap:8px}
  html.direct-brand .topbar .brand {height:56px;padding:0}
  html.direct-brand .topbar .toplinks.category-bellows {order:3;flex:0 0 100%;width:100%;margin:0}
  #user-pop {top:70px;right:12px}
}
@media(max-width:430px) {
  html.direct-brand .topbar {padding:8px 12px}
  html.direct-brand .topbar .brand {flex-basis:118px;width:118px}
  html.direct-brand .topbar .brand .logo {width:118px}
  .topbar .top-right {gap:6px}
  .topbar .credit-btn,.topbar .plans-btn {padding:8px;font-size:10px}
  .topbar .credit-btn .icon,.topbar .plans-btn .icon {display:none}
}

html body [data-topup][hidden]{display:none!important}
