.account-page {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(26px, 4vw, 56px) var(--gutter) clamp(72px, 8vw, 120px);
  background:
    radial-gradient(circle at 86% 8%, rgba(210, 224, 217, .58), transparent 30%),
    radial-gradient(circle at 9% 36%, rgba(223, 230, 239, .78), transparent 32%),
    linear-gradient(180deg, #f5f8fa 0%, #edf3f8 100%);
}
.account-page__container { width: min(1440px, 100%); margin: 0 auto; }
.account-scenario-banner {
  display: flex; align-items: center; gap: 12px; min-height: 42px; margin-bottom: 18px; padding: 8px 14px;
  border: 1px solid rgba(17, 17, 17, .13); border-radius: 13px; background: rgba(255,255,255,.58); box-shadow: var(--glass-inset);
  color: var(--color-muted); font-size: 12px;
}
.account-scenario-banner > span { padding: 4px 7px; border-radius: 6px; background: #17201c; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.account-scenario-banner strong { color: var(--color-text); font-size: 12px; }
.account-scenario-banner small { margin-left: auto; font-size: 11px; }
.account-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-sidebar {
  position: sticky; top: calc(var(--header-height) + 18px); min-height: 620px; padding: 16px;
  border: 1px solid var(--glass-border); border-radius: 24px; background: rgba(255,255,255,.7); box-shadow: var(--glass-shadow), var(--glass-inset);
}
.account-profile-card { display: flex; gap: 12px; align-items: center; padding: 8px 8px 20px; border-bottom: 1px solid var(--color-border-subtle); }
.account-profile-card__avatar { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: #111111; color: #fff; font-weight: 760; font-size: 13px; letter-spacing: .04em; }
.account-profile-card div { min-width: 0; display: grid; }
.account-profile-card small { font-size: 11px; }
.account-profile-card strong { font-size: 16px; }
.account-profile-card span:last-child { overflow: hidden; color: var(--color-muted); font-size: 12px; text-overflow: ellipsis; }
.account-sidebar__nav { display: grid; gap: 5px; margin-top: 14px; }
.account-sidebar__link {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; min-height: 46px; padding: 0 12px;
  border: 0; border-radius: 12px; background: transparent; color: #35423b; text-align: left; transition: var(--transition);
}
.account-sidebar__link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.account-sidebar__link span { font-weight: 650; font-size: 13px; }
.account-sidebar__link small { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.account-sidebar__link:hover:not(:disabled), .account-sidebar__link.is-active { background: #1e392d; color: white; }
.account-sidebar__link.is-preview:not(.is-active) { opacity: .62; }
.account-sidebar__link:disabled { cursor: default; }
.account-sidebar__footer { margin-top: 246px; padding: 16px 10px 4px; border-top: 1px solid var(--color-border-subtle); }
.account-sidebar__footer span { display: block; color: var(--color-muted); font-size: 11px; }
.account-sidebar__footer a { color: var(--color-text); font-size: 12px; font-weight: 700; }
.account-main { min-width: 0; }
.account-page-header { display: flex; justify-content: space-between; gap: 28px; align-items: end; padding: 18px 4px 32px; }
.account-page-header h1, .account-detail-header h1 { font-size: clamp(38px, 4vw, 58px); }
.account-page-header p { max-width: 680px; margin-top: 12px; font-size: 16px; }
.account-page-header__trust { display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid rgba(38,104,72,.13); border-radius: 99px; background: rgba(235,249,241,.76); color: #286848; font-size: 11px; font-weight: 700; white-space: nowrap; }
.account-page-header__trust span { font-size: 10px; }
.account-section { margin-bottom: 22px; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--glass-border); border-radius: 24px; background: rgba(255,255,255,.7); box-shadow: var(--glass-shadow), var(--glass-inset); }
.account-section--muted { background: rgba(255,255,255,.48); box-shadow: var(--shadow-card); }
.account-section__heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.account-section__heading span, .account-detail-section__heading span, .account-side-card > span, .account-status-hero__intro span { color: var(--color-muted); font-size: 10px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.account-section__heading h2, .account-detail-section__heading h2 { margin-top: 3px; font-size: clamp(23px, 2.4vw, 32px); }
.account-section__heading > strong { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8efeb; font-size: 13px; }
.account-order-list { display: grid; gap: 12px; }
.account-order-card { padding: 18px; border: 1px solid rgba(53,72,63,.11); border-radius: 18px; background: rgba(255,255,255,.76); }
.account-order-card__topline, .account-order-card__meta, .account-order-card__summary, .account-order-part__heading, .account-detail-section__heading, .account-detail-header__title { display: flex; justify-content: space-between; gap: 18px; }
.account-order-card__topline > div { display: grid; }
.account-order-card__topline small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.account-order-card__topline strong { font-size: 18px; }
.account-order-card__status, .account-status-pill, .account-neutral-pill { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e6eefb; color: #315b96; font-size: 10px; font-weight: 760; }
.account-order-card__status.is-complete, .account-status-pill--complete { background: #eeeeee; color: #222222; }
.account-order-card__meta { justify-content: flex-start; flex-wrap: wrap; margin: 13px 0 16px; color: var(--color-muted); font-size: 12px; }
.account-order-card__meta span:not(:last-child)::after { content: "·"; margin-left: 18px; color: #a0aaa5; }
.account-order-card__meta strong { margin-left: auto; color: var(--color-text); font-size: 13px; }
.account-order-card__summary { align-items: center; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--color-border-subtle); }
.account-order-card__summary strong { font-size: 14px; }
.account-order-card__summary p { margin-top: 3px; font-size: 12px; }
.account-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border: 1px solid #111111; border-radius: 11px; background: #111111; color: #fff; font-size: 12px; font-weight: 720; }
.account-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-button--secondary { border-color: rgba(43,66,55,.16); background: rgba(255,255,255,.75); color: var(--color-text); }
.account-button--full { width: 100%; }
.account-progress { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 28px 0 0; list-style: none; }
.account-progress::before { content: ""; position: absolute; top: 14px; left: 7%; right: 7%; height: 2px; background: #d9e2de; }
.account-progress__step { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.account-progress__marker { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #d4ddd9; border-radius: 50%; background: #f7faf9; color: #84928b; font-size: 10px; font-weight: 800; }
.account-progress__label { color: #7a8881; font-size: 10px; font-weight: 650; line-height: 1.2; }
.account-progress__step.is-complete .account-progress__marker { border-color: #386e50; background: #386e50; color: white; }
.account-progress__step.is-complete .account-progress__label { color: #355444; }
.account-progress__step.is-active .account-progress__marker { border-color: #386e50; background: #e9f3ed; color: #255f40; box-shadow: 0 0 0 5px rgba(56,110,80,.08); }
.account-progress__step.is-active .account-progress__label { color: #111111; font-weight: 800; }
.account-progress--compact { max-width: 760px; margin-top: 14px; }
.account-progress--compact::before { top: 10px; }
.account-progress--compact .account-progress__marker { width: 22px; height: 22px; border-width: 1.5px; font-size: 8px; }
.account-progress--compact .account-progress__label { font-size: 9px; }
.account-detail-header { padding: 10px 4px 22px; }
.account-back-link { display: inline-flex; margin-bottom: 22px; color: var(--color-muted); font-size: 12px; font-weight: 700; }
.account-detail-header__title { align-items: start; }
.account-detail-header__title p { max-width: 650px; margin-top: 10px; }
.account-copy-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--color-border-subtle); border-radius: 10px; background: rgba(255,255,255,.65); color: var(--color-muted); font-size: 10px; font-weight: 700; }
.account-copy-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-detail-meta { display: flex; gap: 34px; margin-top: 22px; }
.account-detail-meta div { display: grid; gap: 3px; }
.account-detail-meta dt { color: var(--color-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.account-detail-meta dd { font-size: 13px; font-weight: 700; }
.account-status-hero { padding: clamp(22px, 3vw, 32px); border: 1px solid rgba(46,85,65,.14); border-radius: 24px; background: linear-gradient(135deg, rgba(233,244,237,.95), rgba(255,255,255,.74)); box-shadow: var(--glass-shadow), var(--glass-inset); }
.account-status-hero.is-complete { background: linear-gradient(135deg, rgba(231,246,236,.95), rgba(255,255,255,.74)); }
.account-status-hero__intro { display: flex; gap: 16px; align-items: center; }
.account-status-hero__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; background: #111111; color: #fff; font-size: 20px; }
.account-status-hero__icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-status-hero__intro h2 { margin-top: 3px; font-size: clamp(25px, 2.8vw, 38px); }
.account-status-hero__intro p { margin-top: 6px; font-size: 12px; }
.account-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; margin-top: 18px; align-items: start; }
.account-detail-grid__main, .account-detail-grid__side { display: grid; gap: 18px; }
.account-detail-section, .account-side-card { padding: clamp(18px, 2vw, 25px); border: 1px solid var(--glass-border); border-radius: 22px; background: rgba(255,255,255,.7); box-shadow: var(--shadow-card), var(--glass-inset); }
.account-detail-section__heading { align-items: end; margin-bottom: 18px; }
.account-neutral-pill { background: #edf1f3; color: #68736e; }
.account-order-parts { display: grid; gap: 10px; }
.account-order-part { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--color-border-subtle); border-radius: 16px; background: rgba(251,253,254,.78); }
.account-order-part__image { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 13px; color: rgba(30,45,38,.6); font-family: Georgia, serif; font-size: 20px; }
.account-order-part__image--blue { background: linear-gradient(145deg, #dce9ee, #cad8df); }
.account-order-part__image--gold { background: linear-gradient(145deg, #e8dfd0, #d6c6ad); }
.account-order-part__image--neutral { background: linear-gradient(145deg, #e9ecea, #d7ded9); }
.account-order-part__image--complete { background: linear-gradient(145deg, #eeeeee, #d6d6d6); }
.account-order-part__heading { align-items: start; }
.account-order-part__heading h3 { font-size: 16px; letter-spacing: -.02em; }
.account-order-part__heading p { margin-top: 3px; font-size: 11px; }
.account-status-pill--blue { background: #e5effc; color: #2c609f; }
.account-status-pill--gold { background: #f7eddc; color: #90641f; }
.account-status-pill--neutral { background: #edf0ef; color: #64716a; }
.account-order-part__message { margin-top: 9px; font-size: 12px; }
.account-order-part__progress { height: 5px; margin: 12px 0 7px; overflow: hidden; border-radius: 999px; background: #e3e9e6; }
.account-order-part__progress span { display: block; height: 100%; border-radius: inherit; background: #3c7254; }
.account-order-part__body > small { font-size: 10px; }
.account-side-card { box-shadow: var(--shadow-card); }
.account-side-card--action { border-color: rgba(43,105,72,.15); background: rgba(235,247,239,.78); }
.account-side-card h3, .account-side-card > strong { display: block; margin-top: 5px; font-size: 18px; }
.account-side-card p { margin-top: 8px; font-size: 12px; }
.account-side-card__pending { margin-top: 14px; padding: 10px; border-radius: 10px; background: #f0f3f2; color: var(--color-muted); font-size: 10px; }
.account-text-link { display: inline-flex; gap: 6px; margin-top: 14px; color: #295f43; font-size: 11px; font-weight: 750; }
.account-support-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin: 14px 0 16px; }
.account-support-row > svg { width: 26px; height: 26px; fill: none; stroke: #333333; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.account-support-row strong { font-size: 12px; }
.account-support-row p { margin-top: 2px; font-size: 10px; }
.account-timeline { position: relative; display: grid; gap: 0; list-style: none; }
.account-timeline::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 1px; background: #d9e1dd; }
.account-timeline__item { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 13px; padding-bottom: 20px; }
.account-timeline__item:last-child { padding-bottom: 0; }
.account-timeline__marker { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 3px; border: 3px solid #fff; border-radius: 50%; background: #9eaaa4; box-shadow: 0 0 0 1px #d8e0dc; }
.account-timeline__item.is-active .account-timeline__marker { background: #3c7254; box-shadow: 0 0 0 3px rgba(60,114,84,.12); }
.account-timeline__item div { display: grid; }
.account-timeline__item small { font-size: 9px; }
.account-timeline__item strong { margin-top: 3px; font-size: 12px; }
.account-timeline__item p { margin-top: 3px; font-size: 11px; }
.account-empty-state { display: grid; justify-items: center; min-height: 520px; align-content: center; text-align: center; }
.account-empty-state > span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #e7efea; }
.account-empty-state svg { width: 30px; height: 30px; fill: none; stroke: #333333; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-empty-state h1 { margin-top: 18px; font-size: 38px; }
.account-empty-state p { margin: 8px 0 20px; }

@media (max-width: 1080px) {
  .account-layout { grid-template-columns: 220px minmax(0,1fr); }
  .account-detail-grid { grid-template-columns: 1fr; }
  .account-detail-grid__side { grid-template-columns: repeat(3, 1fr); }
  .account-sidebar__footer { margin-top: 180px; }
}
@media (max-width: 820px) {
  .account-page { padding-inline: 16px; }
  .account-scenario-banner small { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; min-height: auto; }
  .account-profile-card, .account-sidebar__footer { display: none; }
  .account-sidebar__nav { display: flex; overflow-x: auto; margin: 0; }
  .account-sidebar__link { flex: 0 0 auto; grid-template-columns: 19px auto auto; }
  .account-page-header { align-items: start; flex-direction: column; }
  .account-detail-grid__side { grid-template-columns: 1fr; }
  .account-progress__label { font-size: 8px; }
}
@media (max-width: 620px) {
  .account-page-header h1, .account-detail-header h1 { font-size: 36px; }
  .account-page-header__trust { white-space: normal; }
  .account-order-card__summary, .account-detail-header__title { align-items: stretch; flex-direction: column; }
  .account-button { width: 100%; }
  .account-detail-meta { gap: 16px; justify-content: space-between; }
  .account-status-hero__intro { align-items: start; }
  .account-progress { grid-template-columns: repeat(6, minmax(48px,1fr)); overflow-x: auto; padding-bottom: 8px; }
  .account-progress::before { left: 28px; right: 28px; }
  .account-order-part { grid-template-columns: 54px minmax(0,1fr); padding: 11px; }
  .account-order-part__image { width: 54px; height: 54px; border-radius: 10px; font-size: 15px; }
  .account-order-part__heading { flex-direction: column; gap: 7px; }
}

/* Patch M3.1 — Reviews & Rewards account views */
.account-rewards-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.account-rewards-summary article,
.account-empty-inline,
.account-reward-grid article,
.account-review-list article {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
}
.account-rewards-summary article { padding: 22px; display: grid; gap: 4px; }
.account-rewards-summary span { color: #6d6d6d; font-size: 13px; }
.account-rewards-summary strong { font-size: 38px; line-height: 1; letter-spacing: -.045em; }
.account-rewards-summary small { color: #7a7a7a; }
.account-empty-inline { padding: 28px; }
.account-empty-inline strong { display: block; font-size: 18px; }
.account-empty-inline p { margin: 8px 0 0; color: #666; line-height: 1.55; }
.account-reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-reward-grid article { padding: 22px; }
.account-reward-grid article > span { color: #777; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.account-reward-grid h3 { margin: 8px 0; }
.account-reward-grid p { color: #666; min-height: 44px; }
.account-points-ledger { display: grid; border-top: 1px solid #e7e7e7; }
.account-points-ledger article { display: grid; grid-template-columns: 1fr auto 110px; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid #e7e7e7; }
.account-points-ledger article > div { display: grid; gap: 4px; }
.account-points-ledger span,
.account-points-ledger time { color: #747474; font-size: 13px; }
.account-points-ledger b { font-size: 18px; }
.account-points-ledger b.is-negative { color: #8f2d2d; }
.account-review-list { display: grid; gap: 12px; }
.account-review-list article { padding: 22px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.account-review-list article > div { min-width: 0; }
.account-review-list article span { color: #747474; font-size: 12px; }
.account-review-list h3 { margin: 5px 0 0; }
.account-review-list p { margin: 10px 0 0; color: #565656; line-height: 1.55; }
.account-review-list small { display: block; margin-top: 8px; color: #8f2d2d; }
.account-review-stars { margin-top: 8px; letter-spacing: .08em; }
.account-review-media { display: flex; gap: 8px; margin-top: 12px; }
.account-review-media img { width: 76px; height: 62px; object-fit: cover; border-radius: 9px; border: 1px solid #e7e7e7; }

@media (max-width: 900px) {
  .account-rewards-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-reward-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .account-rewards-summary { grid-template-columns: 1fr 1fr; }
  .account-points-ledger article { grid-template-columns: 1fr auto; }
  .account-points-ledger time { grid-column: 1 / -1; }
  .account-review-list article { align-items: stretch; flex-direction: column; }
}

/* Patch M3.1.1 — account access */
.account-access-page {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 64px var(--gutter);
  background: #fff;
}

.account-access-card {
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.08);
}

.account-access-card__intro {
  display: grid;
  gap: 12px;
}

.account-access-card__brand {
  width: fit-content;
  margin-bottom: 10px;
  color: #191919;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -.07em;
}

.account-access-card__intro h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 56px);
  line-height: .98;
  letter-spacing: -.055em;
}

.account-access-card__intro p {
  margin: 0;
  color: #626262;
  font-size: 16px;
  line-height: 1.55;
}

.account-auth-form {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.account-auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.account-auth-form label:not(.account-auth-form__consent) {
  display: grid;
  gap: 8px;
}

.account-auth-form label > span {
  font-size: 13px;
  font-weight: 700;
}

.account-auth-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
  color: #191919;
  font: inherit;
}

.account-auth-form input:focus {
  outline: 2px solid #292826;
  outline-offset: 2px;
}

.account-auth-form label small {
  color: #7a7a7a;
  font-size: 11px;
}

.account-auth-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5d5d5d;
  font-size: 13px;
  line-height: 1.45;
}

.account-auth-form__status {
  min-height: 20px;
  margin: -4px 0 0;
  color: #5d5d5d;
  font-size: 13px;
}

.account-auth-form button[disabled] {
  opacity: .55;
  cursor: wait;
}

.account-access-card__switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
  color: #696969;
  font-size: 14px;
}

.account-access-card__switch a {
  color: #292826;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .account-access-page { padding: 24px 16px; align-items: start; }
  .account-access-card { padding: 28px 22px; border-radius: 18px; }
  .account-auth-form__row { grid-template-columns: 1fr; }
  .account-access-card__switch { flex-direction: column; align-items: center; }
}
