.account-hero.account-identity-header {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  padding: 24px 26px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: linear-gradient(110deg, rgba(34, 2, 14, 0.74), rgba(75, 7, 28, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 48px rgba(8, 0, 3, 0.14);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.account-identity-header .hero-copy .eyebrow {
  margin-bottom: 10px;
  padding: 7px 11px;
  color: #ffdbe4;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.account-identity-header .hero-copy h1 {
  max-width: none;
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.account-identity-header .hero-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.55;
}

.account-identity-shortcut {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.account-identity-shortcut:hover {
  border-color: rgba(255, 188, 204, 0.5);
  background: rgba(219, 23, 71, 0.16);
  transform: translateY(-1px);
}

.account-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(145deg, #e31547, #7f0928);
  color: #fff;
  font: 900 15px/1 Arial, sans-serif;
  box-shadow: 0 10px 24px rgba(113, 3, 34, 0.32);
}

.account-identity-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.account-identity-copy small,
.account-identity-copy strong,
.account-identity-copy > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity-copy small {
  color: rgba(255, 255, 255, 0.56);
  font: 700 10px/1.2 Arial, sans-serif;
  text-transform: uppercase;
}

.account-identity-copy strong {
  color: #fff;
  font: 800 14px/1.25 Arial, sans-serif;
}

.account-identity-copy > span {
  color: rgba(255, 255, 255, 0.68);
  font: 12px/1.25 Arial, sans-serif;
}

.account-profile-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 0, 3, 0.2);
  color: #fff;
  font: 800 12px/1 Arial, sans-serif;
}

.admin-panel-link[hidden] {
  display: none !important;
}

.admin-panel-slot {
  display: contents;
}

.admin-panel-slot[hidden] {
  display: none !important;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 30px;
}

.account-overview-stat {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.account-overview-stat span {
  color: rgba(255, 255, 255, 0.7);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-overview-stat strong {
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.account-overview-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 30px;
}

.account-overview-block {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.account-overview-block h4 {
  margin: 0 0 8px;
  color: #fff;
  font-family: "Times New Roman", serif;
  font-size: 25px;
}

.account-overview-block > p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.account-overview-block-spaced {
  margin-top: 24px;
}

.account-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-quick-action,
.auth-method-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 2, 7, 0.26);
  color: #fff !important;
  font: 800 13px/1 Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.account-quick-action:hover,
.auth-method-action:hover {
  border-color: rgba(219, 23, 71, 0.55);
  background: rgba(219, 23, 71, 0.24);
  color: #fff !important;
}

.account-latest-order {
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid rgba(219, 23, 71, 0.34);
  border-radius: 18px;
  background: linear-gradient(110deg, rgba(219, 23, 71, 0.16), rgba(255, 255, 255, 0.035));
}

.account-latest-order strong,
.account-latest-order span {
  display: block;
}

.account-latest-order strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 16px;
}

.account-latest-order span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.auth-method-list {
  display: grid;
  gap: 12px;
}

.auth-method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 18px;
  background: rgba(12, 2, 7, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.auth-method-provider {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-provider-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.auth-provider-logo img {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-method-copy strong,
.auth-method-copy span {
  display: block;
}

.auth-method-copy strong {
  margin-bottom: 4px;
  color: #fff;
  font: 800 14px/1.2 Arial, sans-serif;
}

.auth-method-copy span {
  color: rgba(255, 255, 255, 0.68);
  font: 12px/1.45 Arial, sans-serif;
}

.auth-method-action {
  min-height: 40px;
  white-space: nowrap;
}

.auth-method-action[disabled] {
  cursor: default;
  opacity: 0.58;
}

.password-setup-panel[hidden],
#passwordChangePanel[hidden] {
  display: none !important;
}

.password-setup-panel {
  display: grid;
  gap: 14px;
}

.password-setup-panel h4,
.password-setup-panel p {
  margin: 0;
}

.password-setup-label {
  width: max-content;
  padding: 7px 11px;
  border: 1px solid rgba(219, 23, 71, 0.38);
  border-radius: 999px;
  background: rgba(219, 23, 71, 0.16);
  color: #f4a6bd;
  font: 800 11px/1 Arial, sans-serif;
  text-transform: uppercase;
}

.password-setup-provider {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(8, 5, 7, 0.32);
}

.password-setup-provider > span:last-child,
.password-setup-provider strong,
.password-setup-provider small {
  min-width: 0;
  display: block;
}

.password-setup-provider strong {
  margin-bottom: 4px;
  color: #fff;
  font: 800 13px/1.2 Arial, sans-serif;
}

.password-setup-provider small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  font: 12px/1.45 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.password-setup-status {
  padding: 12px 14px;
  border-left: 2px solid #db1747;
  color: rgba(255, 255, 255, 0.76) !important;
  font: 12px/1.55 Arial, sans-serif;
}

@media (max-width: 1050px) {
  .account-hero.account-identity-header {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  }

  .account-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .account-hero.account-identity-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .account-overview-columns {
    grid-template-columns: 1fr;
  }

  .account-overview-columns {
    gap: 24px;
  }

  .account-overview-stat {
    min-height: 102px;
  }
}

@media (max-width: 440px) {
  .account-hero.account-identity-header {
    padding: 18px;
    border-radius: 24px;
  }

  .account-identity-header .hero-copy h1 {
    font-size: 32px;
  }

  .account-identity-shortcut {
    grid-template-columns: 46px minmax(0, 1fr);
    border-radius: 24px;
  }

  .account-avatar {
    width: 46px;
    height: 46px;
  }

  .account-profile-pill {
    display: none;
  }

  .account-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .account-overview-stat {
    min-height: 96px;
    padding: 14px;
    border-radius: 18px;
  }

  .account-overview-stat strong {
    font-size: 28px;
  }

  .auth-method-row {
    gap: 10px;
  }

  .auth-method-action {
    min-width: 104px;
  }
}
