.account-shell {
  min-height: 70vh;
  padding: 2rem 1.5rem 5rem;
  background: #f9fafb;
}

.account-shell__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.account-shell__breadcrumb {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.5rem;
  color: #6b7280;
  font-size: .86rem;
}

.account-shell__breadcrumb a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.account-shell__breadcrumb a:hover { color: var(--brand-primary,#7a9b76); }
.account-shell__breadcrumb i { color: #c4c9c3; font-size: .65rem; }

.account-shell__heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.account-shell__heading-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  color: var(--brand-primary,#7a9b76);
  background: rgba(122,155,118,.12);
  font-size: 1.35rem;
}

.account-shell__heading h1 {
  margin: 0;
  color: var(--dark-gray,#2f3a2c);
  font-family: var(--font-heading),Georgia,serif;
  font-size: clamp(2.1rem,5vw,3.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.account-shell__heading p { margin: .45rem 0 0; color: #6b7280; }

.account-tabs {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.5rem;
  padding: .45rem;
  overflow-x: auto;
  border: 1px solid #e6ebe4;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38,53,37,.05);
}

.account-tabs__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 9rem;
  padding: .78rem 1.15rem;
  border-radius: .75rem;
  color: #687365;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s,color .15s,box-shadow .15s;
}

.account-tabs__link:hover { color: var(--brand-dark,#5d7659); background: #f4f8f2; }
.account-tabs__link.is-active { color: #fff; background: var(--brand-primary,#7a9b76); box-shadow: 0 6px 16px rgba(122,155,118,.28); }

.account-card {
  border: 1px solid #edf0ec;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(38,53,37,.07);
}

.account-profile { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1.25rem; padding: 1.75rem; }
.account-profile__avatar { width: 4.5rem; height: 4.5rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--brand-primary,#7a9b76); font-family: var(--font-heading),Georgia,serif; font-size: 1.65rem; font-weight: 700; }
.account-profile__copy h2 { margin: 0; color: var(--dark-gray,#2f3a2c); font-size: 1.45rem; }
.account-profile__copy p { margin: .35rem 0 0; color: #6b7280; overflow-wrap: anywhere; }
.account-profile__actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }

.account-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.1rem; border: 1px solid transparent; border-radius: .7rem; font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.account-button--primary { color: #fff; background: var(--brand-primary,#7a9b76); }
.account-button--primary:hover { color: #fff; background: var(--brand-dark,#5d7659); }
.account-button--secondary { color: var(--brand-deep,#4a5d47); border-color: #dce5d9; background: #f7faf6; }
.account-button--secondary:hover { background: var(--brand-bg,#e8f2ec); }

.account-state { padding: 3.5rem 1.5rem; text-align: center; }
.account-state__icon { width: 6rem; height: 6rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; border-radius: 50%; color: var(--brand-primary,#7a9b76); background: rgba(122,155,118,.09); font-size: 2.35rem; }
.account-state h2 { margin: 0; color: var(--dark-gray,#2f3a2c); font-family: var(--font-heading),Georgia,serif; font-size: 1.8rem; }
.account-state p { max-width: 32rem; margin: .65rem auto 1.35rem; color: #6b7280; line-height: 1.6; }

.account-orders__status { margin: 0; padding: 1rem 0; color: #6b7280; font-weight: 600; }
.account-orders__list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.account-order { padding: 1.4rem 1.5rem; transition: transform .18s,box-shadow .18s,border-color .18s; }
.account-order:hover { transform: translateY(-2px); border-color: rgba(122,155,118,.5); box-shadow: 0 18px 36px rgba(38,53,37,.1); }
.account-order__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.account-order__identity { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.account-order__icon { width: 2.9rem; height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: .8rem; color: var(--brand-primary,#7a9b76); background: rgba(122,155,118,.11); }
.account-order__label { margin: 0 0 .2rem; color: #8a9388; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-order__number { margin: 0; color: var(--dark-gray,#2f3a2c); font-size: 1.05rem; font-weight: 800; overflow-wrap: anywhere; }
.account-order__badge { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border-radius: 999px; color: #1e40af; background: #dbeafe; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.account-order__badge[data-status="completed"],.account-order__badge[data-status="fulfilled"],.account-order__badge[data-status="delivered"] { color: #065f46; background: #d1fae5; }
.account-order__badge[data-status="cancelled"] { color: #991b1b; background: #fee2e2; }
.account-order__badge[data-status="pending"],.account-order__badge[data-status="unfulfilled"] { color: #92400e; background: #fef3c7; }
.account-order__meta { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1rem 0 0 3.8rem; }
.account-order__meta div { min-width: 8rem; }
.account-order__meta dt { color: #8a9388; font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.account-order__meta dd { margin: .25rem 0 0; color: var(--dark-gray,#2f3a2c); font-weight: 700; }
.account-order__link { display:inline-flex; align-items:center; gap:.45rem; margin:1rem 0 0 3.8rem; color:var(--brand-dark,#5d7659); font-size:.86rem; font-weight:800; text-decoration:none; }
.account-order__link:hover { color:var(--brand-primary,#7a9b76); }

.account-detail { display:grid; gap:1.25rem; }
.account-detail__hero { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1.4rem 1.5rem; }
.account-detail__eyebrow { margin:0 0 .3rem; color:#8a9388; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.account-detail__number { margin:0; color:var(--dark-gray,#2f3a2c); font-size:1.35rem; font-weight:800; overflow-wrap:anywhere; }
.account-detail__date { margin:.35rem 0 0; color:#6b7280; font-size:.88rem; }
.account-detail__grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(18rem,.65fr); gap:1.25rem; align-items:start; }
.account-detail__stack { display:grid; gap:1.25rem; }
.account-detail__section { padding:1.4rem 1.5rem; }
.account-detail__section h2 { display:flex; align-items:center; gap:.55rem; margin:0 0 1rem; color:var(--dark-gray,#2f3a2c); font-size:1.1rem; }
.account-detail__section h2 i { color:var(--brand-primary,#7a9b76); }
.account-detail__items { display:grid; gap:.8rem; margin:0; padding:0; list-style:none; }
.account-detail__item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.4rem 1rem; padding:.9rem 0; border-bottom:1px solid #edf0ec; }
.account-detail__item:last-child { border-bottom:0; }
.account-detail__item a { color:var(--dark-gray,#2f3a2c); font-weight:750; text-decoration:none; }
.account-detail__item a:hover { color:var(--brand-primary,#7a9b76); }
.account-detail__item-meta { color:#7a8378; font-size:.82rem; }
.account-detail__item-total { grid-column:2; grid-row:1 / span 2; color:var(--dark-gray,#2f3a2c); font-weight:800; white-space:nowrap; }
.account-detail__totals { display:grid; gap:.7rem; margin:0; }
.account-detail__totals div { display:flex; justify-content:space-between; gap:1rem; color:#6b7280; }
.account-detail__totals dd { margin:0; color:var(--dark-gray,#2f3a2c); font-weight:700; }
.account-detail__totals .is-total { margin-top:.2rem; padding-top:.85rem; border-top:1px solid #e5e7eb; font-size:1.08rem; font-weight:800; }
.account-detail__totals .is-total dd { color:var(--brand-dark,#5d7659); font-size:1.25rem; }
.account-detail__address { color:#596157; line-height:1.65; }
.account-detail__address strong { display:block; color:var(--dark-gray,#2f3a2c); }
.account-detail__method { display:flex; align-items:flex-start; gap:.75rem; padding:.9rem; border-radius:.8rem; background:#f6f9f5; color:#596157; }
.account-detail__method i { margin-top:.2rem; color:var(--brand-primary,#7a9b76); }
.account-detail__method strong { display:block; color:var(--dark-gray,#2f3a2c); }
.account-detail__contact { margin:1rem 0 0; color:var(--dark-gray,#2f3a2c); font-weight:700; }
.account-detail__timeline { position:relative; display:grid; gap:1rem; margin:0; padding:0; list-style:none; }
.account-detail__timeline li { position:relative; padding-left:1.55rem; color:#6b7280; }
.account-detail__timeline li::before { content:""; position:absolute; top:.35rem; left:.1rem; width:.65rem; height:.65rem; border:2px solid var(--brand-primary,#7a9b76); border-radius:50%; background:#fff; }
.account-detail__timeline li:not(:last-child)::after { content:""; position:absolute; top:1rem; bottom:-1.1rem; left:.39rem; width:1px; background:#dce5d9; }
.account-detail__timeline strong { display:block; color:var(--dark-gray,#2f3a2c); }
.account-detail__tracking { display:grid; gap:.8rem; }
.account-detail__tracking-card { padding:.95rem; border:1px solid #dfe8dc; border-radius:.8rem; background:#f8fbf7; }
.account-detail__tracking-card strong { display:block; color:var(--dark-gray,#2f3a2c); }
.account-detail__tracking-card a { display:inline-flex; align-items:center; gap:.4rem; margin-top:.45rem; color:var(--brand-dark,#5d7659); font-weight:800; }
.account-detail__muted { margin:0; color:#7a8378; line-height:1.55; }

@media(max-width:44rem) {
  .account-shell { padding: 1.25rem 1rem 3.5rem; }
  .account-profile { grid-template-columns: auto 1fr; }
  .account-profile__actions { grid-column: 1 / -1; justify-content: stretch; }
  .account-profile__actions .account-button { flex: 1; }
  .account-order__top { align-items: flex-start; }
  .account-order__meta { margin-left: 0; }
  .account-order__link { margin-left:0; }
  .account-detail__grid { grid-template-columns:1fr; }
  .account-detail__hero { align-items:flex-start; flex-direction:column; }
}
