.mg-unified-header{
  position:sticky;
  top:0;
  z-index:3000;
  width:100%;
  min-height:64px;
  border-bottom:1px solid rgba(207,219,234,.82);
  background:rgba(248,251,255,.94);
  backdrop-filter:blur(18px);
  box-shadow:0 10px 30px rgba(15,23,42,.035);
}

.mg-unified-header .mg-header-inner{
  width:100%;
  max-width:none;
  min-height:64px;
  margin:0;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.mg-unified-header .mg-header-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.mg-unified-header .mg-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#071225;
  text-decoration:none;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.065em;
  line-height:1;
  white-space:nowrap;
}

.mg-unified-header .mg-brand img{
  display:block;
  width:154px;
  max-width:100%;
  height:auto;
}

.mg-unified-header .mg-brand img + span{
  display:none;
}

.mg-unified-header .mg-header-page-controls{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:12px;
}

.mg-unified-header .mg-header-page-control{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:0 13px;
  border:1px solid #d8e4f4;
  border-radius:999px;
  background:#fff;
  color:#071225;
  font:900 12px/1 inherit;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(15,23,42,.06);
}

.mg-unified-header .mg-header-page-control.is-primary,
.mg-unified-header .mg-header-page-control[data-state="playing"]{
  background:#071225;
  border-color:#071225;
  color:#fff;
}

.mg-unified-header .mg-header-page-control[data-state="completed"]{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}

.mg-unified-header .mg-header-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:max-content;
}

.mg-unified-header .mg-header-create,
.mg-unified-header .mg-header-icon,
.mg-unified-header .mg-cart-header-button{
  width:46px;
  height:46px;
  min-width:46px;
  border:1px solid #d6e2f1;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:#071225;
  display:grid;
  place-items:center;
  position:relative;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
  cursor:pointer;
}

.mg-unified-header .mg-header-create{
  text-decoration:none;
  font-size:25px;
  font-weight:900;
  line-height:1;
  color:#1455d9;
}

.mg-unified-header .mg-header-pricing-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border:1px solid #d6e2f1;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  color:#071225;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
}

.mg-unified-header .mg-header-pricing-link:hover{
  border-color:#b9d1fb;
  background:#eff6ff;
  color:#1455d9;
}

.mg-unified-header .mg-header-create:hover,
.mg-unified-header .mg-header-icon:hover,
.mg-unified-header .mg-cart-header-button:hover{
  border-color:#b9d1fb;
  background:#eff6ff;
  color:#1455d9;
}

.mg-unified-header .mg-header-signal{
  position:relative;
  display:inline-flex;
}

.mg-unified-header .mg-header-icon svg,
.mg-unified-header .mg-cart-header-button svg{
  width:21px;
  height:21px;
}

.mg-unified-header .mg-header-badge,
.mg-unified-header .mg-cart-header-badge{
  position:absolute;
  right:-5px;
  top:-6px;
  min-width:19px;
  height:19px;
  border-radius:999px;
  background:#2563eb;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:9px;
  font-weight:950;
  border:2px solid #fff;
}

.mg-unified-header .mg-account-menu{
  position:relative;
  display:inline-flex;
}

.mg-unified-header .mg-account-trigger{
  height:46px;
  min-width:148px;
  padding:0 11px;
  border:1px solid #d6e2f1;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:#071225;
  display:inline-flex;
  align-items:center;
  gap:10px;
  box-shadow:0 12px 26px rgba(15,23,42,.055);
  cursor:pointer;
}

.mg-unified-header .mg-account-trigger:hover{
  border-color:#b9d1fb;
  background:#eff6ff;
}

.mg-unified-header .mg-avatar{
  width:32px;
  height:32px;
  border:1px solid #bfd2f4;
  border-radius:12px;
  background:#f8fbff;
  color:#071225;
  display:grid;
  place-items:center;
  font-size:13px;
  font-weight:900;
  line-height:1;
  flex:0 0 auto;
}

.mg-unified-header .mg-account-copy{
  display:grid;
  gap:1px;
  text-align:left;
  min-width:0;
  line-height:1.05;
}

.mg-unified-header .mg-account-name{
  font-size:15px;
  font-weight:850;
  letter-spacing:-.025em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:120px;
}

.mg-unified-header .mg-account-role{
  font-size:10px;
  font-weight:950;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#7a8aa3;
  white-space:nowrap;
}

.mg-unified-header .mg-account-caret{
  color:#7a8aa3;
  font-size:14px;
  margin-left:2px;
}

.mg-unified-header .mg-account-actions{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  width:318px;
  max-height:calc(100vh - 84px);
  overflow:auto;
  padding:10px;
  border:1px solid #d8e4f4;
  border-radius:18px;
  background:#fff;
  box-shadow:0 24px 60px rgba(15,23,42,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  pointer-events:none;
  transition:.16s ease;
  z-index:3010;
}

.mg-unified-header .mg-account-trigger[aria-expanded="true"]+.mg-account-actions,
.mg-unified-header .mg-account-menu.is-open .mg-account-actions,
.mg-unified-header .mg-account-menu:hover .mg-account-actions,
.mg-unified-header .mg-account-menu:focus-within .mg-account-actions{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  pointer-events:auto;
}

.mg-unified-header .mg-account-tabs{
  display:block;
}

.mg-unified-header .mg-account-tab-radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.mg-unified-header .mg-account-tab-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:4px;
  border:1px solid #e3ebf5;
  border-radius:14px;
  background:#f8fbff;
  margin-bottom:8px;
}

.mg-unified-header .mg-account-tab{
  min-height:34px;
  border-radius:11px;
  display:grid;
  place-items:center;
  color:#60718a;
  font-size:12px;
  font-weight:950;
  letter-spacing:.02em;
  cursor:pointer;
  user-select:none;
}

.mg-unified-header #mg-account-tab-customer:checked ~ .mg-account-tab-list label[for="mg-account-tab-customer"],
.mg-unified-header #mg-account-tab-merchant:checked ~ .mg-account-tab-list label[for="mg-account-tab-merchant"]{
  background:#071225;
  color:#fff;
  box-shadow:0 10px 22px rgba(15,23,42,.12);
}

.mg-unified-header .mg-account-tab-panels{
  min-height:0;
}

.mg-unified-header .mg-account-tab-panel{
  display:none;
  gap:2px;
}

.mg-unified-header #mg-account-tab-customer:checked ~ .mg-account-tab-panels .mg-account-customer-panel,
.mg-unified-header #mg-account-tab-merchant:checked ~ .mg-account-tab-panels .mg-account-merchant-panel{
  display:grid;
}

.mg-unified-header .mg-account-action{
  min-height:38px;
  padding:0 10px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#122039;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:850;
  width:100%;
  cursor:pointer;
}

.mg-unified-header .mg-account-action:hover{
  background:#eff6ff;
  color:#1455d9;
}

.mg-unified-header .mg-account-index{
  width:24px;
  height:24px;
  border-radius:8px;
  background:#f1f5fb;
  color:#60718a;
  display:grid;
  place-items:center;
  font-size:10px;
  font-weight:950;
  flex:0 0 auto;
}

.mg-unified-header .mg-account-menu-foot{
  display:grid;
  gap:2px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #e3ebf5;
}

.mg-unified-header .mg-account-logout{
  color:#b42318;
}

.mg-unified-header .mg-account-merchant-upgrade{
  padding:14px;
  border:1px solid #c8d8ff;
  border-radius:16px;
  background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 48%,#f7fbff 100%);
  color:#071225;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.82);
}

.mg-unified-header .mg-account-upgrade-kicker{
  display:inline-flex;
  margin-bottom:7px;
  color:#1455d9;
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.mg-unified-header .mg-account-merchant-upgrade strong{
  display:block;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.04em;
}

.mg-unified-header .mg-account-merchant-upgrade p{
  margin:6px 0 12px;
  color:#60718a;
  font-size:12px;
  line-height:1.45;
  font-weight:750;
}

.mg-unified-header .mg-account-upgrade-cta{
  min-height:38px;
  padding:0 12px;
  border-radius:12px;
  background:#071225;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-size:12px;
  font-weight:950;
  width:100%;
}

.mg-unified-header .mg-account-upgrade-cta:hover{
  background:#1455d9;
  color:#fff;
}

@media(max-width:760px){
  .mg-unified-header{min-height:60px}
  .mg-unified-header .mg-header-inner{min-height:60px;padding:0 12px;gap:10px}
  .mg-unified-header .mg-brand{font-size:20px}
  .mg-unified-header .mg-brand img{width:132px}
  .mg-unified-header .mg-header-page-controls{display:none}
  .mg-unified-header .mg-header-actions{gap:6px}
  .mg-unified-header .mg-account-menu{display:none!important}
  .mg-unified-header .mg-header-create,
  .mg-unified-header .mg-header-icon,
  .mg-unified-header .mg-cart-header-button{width:42px;height:42px;min-width:42px;border-radius:14px}
  .mg-unified-header .mg-header-pricing-link{min-height:38px;padding:0 11px;border-radius:12px;font-size:12px}
}
