.account-overview-shell {
  display: grid;
  gap: 1.5rem;
}

.account-grid {
  align-items: start;
}

.account-grid > .account-card {
  align-self: start;
}

.account-overview-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(1.4rem, 3vw, 2.35rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #161616 0%, #2d2d2d 58%, #4b4038 100%);
  color: #fff;
  box-shadow: 0 22px 60px rgba(26, 24, 22, .15);
}

.account-overview-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 32px rgba(255,255,255,.035), 0 0 0 64px rgba(255,255,255,.02);
  pointer-events: none;
}

.account-overview-hero .eyebrow {
  color: rgba(255,255,255,.7);
}

.account-overview-hero h2 {
  max-width: 780px;
  margin: .35rem 0 .7rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.account-overview-hero > p:last-of-type {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
}

.account-overview-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.6rem;
}

.account-overview-stat {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(12px);
}

.account-overview-stat strong {
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -.025em;
}

.account-overview-stat small {
  color: rgba(255,255,255,.67);
  font-size: .78rem;
}

.account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 1rem;
}

.account-overview-card {
  min-width: 0;
  border: 1px solid rgba(33, 31, 29, .09);
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 38px rgba(26, 24, 22, .065);
}

.account-overview-card-inner {
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
}

.account-overview-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-overview-card-header h3,
.account-overview-section-heading h3 {
  margin: .2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -.02em;
}

.account-overview-card-header p,
.account-overview-section-heading p {
  margin: .35rem 0 0;
  color: #6f6a65;
  font-size: .9rem;
}

.account-overview-link {
  flex: none;
  color: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.account-overview-primary {
  grid-column: 1 / -1;
}

.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.account-order-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .6rem;
}

.account-order-reference {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #716a63;
}

.account-order-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -.025em;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  margin: .6rem 0 0;
  color: #706a64;
  font-size: .9rem;
}

.account-order-value {
  text-align: right;
  font-size: 1.25rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-order-preview {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.account-order-preview li {
  padding: .5rem .7rem;
  border-radius: 999px;
  background: #f4f1ed;
  color: #514c47;
  font-size: .82rem;
}

.account-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}

.account-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .32rem .62rem;
  border-radius: 999px;
  background: #eeeae5;
  color: #423d38;
  font-size: .74rem;
  font-weight: 800;
}

.account-status-pill.status-approved { background: #e4f3e8; color: #236334; }
.account-status-pill.status-created { background: #fff0cf; color: #7f5800; }
.account-status-pill.status-pending { background: #e8efff; color: #35578f; }
.account-status-pill.status-rejected,
.account-status-pill.status-cancelled { background: #f5e7e5; color: #8b3e37; }

.account-mini-list {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-mini-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.account-mini-media,
.account-product-media {
  position: relative;
  overflow: hidden;
  background: #f2efeb;
}

.account-mini-media {
  width: 58px;
  height: 68px;
  border-radius: 13px;
}

.account-mini-media img,
.account-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-mini-media-placeholder,
.account-product-media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #9a928a;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.account-mini-copy {
  min-width: 0;
}

.account-mini-copy strong,
.account-mini-copy a {
  display: block;
  overflow: hidden;
  color: #272421;
  font-weight: 750;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-mini-copy small {
  display: block;
  margin-top: .22rem;
  color: #77716b;
  font-size: .78rem;
}

.account-mini-price {
  color: #4a4540;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(33,31,29,.08);
}

.account-overview-section {
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
}

.account-overview-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.account-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.account-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(33,31,29,.08);
  border-radius: 18px;
  background: #fff;
}

.account-product-media {
  display: block;
  aspect-ratio: 4 / 5;
}

.account-product-body {
  padding: .8rem;
}

.account-product-body a {
  display: block;
  color: #2e2a27;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.25;
}

.account-product-body p {
  margin: .35rem 0 0;
  color: #716b65;
  font-size: .82rem;
}

.account-product-body strong {
  display: block;
  margin-top: .55rem;
  font-size: .92rem;
}

.account-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}

.account-benefit-card {
  padding: 1rem;
  border-radius: 18px;
  background: #f6f3ef;
}

.account-benefit-card strong {
  display: block;
  margin-bottom: .35rem;
}

.account-benefit-card p {
  margin: 0;
  color: #6f6963;
  font-size: .86rem;
}

.account-benefit-card a {
  display: inline-block;
  margin-top: .7rem;
  color: #292522;
  font-weight: 750;
  font-size: .84rem;
}

.account-coupon-code {
  display: inline-flex;
  margin-top: .55rem;
  padding: .42rem .62rem;
  border: 1px dashed rgba(33,31,29,.28);
  border-radius: 10px;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.account-empty {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border-radius: 16px;
  background: #f6f3ef;
  color: #635d57;
}

.account-empty strong {
  color: #2d2926;
}

.account-overview-skeleton {
  min-height: 112px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f4f1ed 25%, #faf8f5 50%, #f4f1ed 75%);
  background-size: 220% 100%;
  animation: account-overview-shimmer 1.4s linear infinite;
}

@keyframes account-overview-shimmer {
  to { background-position: -120% 0; }
}

.account-overview-error {
  padding: 1rem;
  border-radius: 16px;
  background: #f7ebe8;
  color: #7a3c35;
}

.account-overview-card[hidden],
.account-overview-section[hidden] {
  display: none !important;
}

@media (min-width: 64rem) {
  .account-grid > .account-card {
    position: sticky;
    top: 1rem;
  }
}

@media (max-width: 980px) {
  .account-overview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 640px) {
  .account-overview-shell {
    gap: 1rem;
  }

  .account-overview-hero,
  .account-overview-card {
    border-radius: 20px;
  }

  .account-overview-stats {
    gap: .55rem;
  }

  .account-overview-stat {
    min-height: 74px;
    padding: .75rem;
  }

  .account-overview-stat strong {
    font-size: 1.15rem;
  }

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

  .account-order-value {
    text-align: left;
  }

  .account-overview-card-header,
  .account-overview-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-mini-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .account-mini-media {
    width: 50px;
    height: 60px;
  }

  .account-mini-price {
    grid-column: 2;
  }

  .account-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
  }

  .account-product-body {
    padding: .68rem;
  }
}
