.account-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0 96px;
}

.account-history-hero {
  position: relative;
  padding: clamp(26px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .15);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 12%, rgba(72, 203, 167, .2), transparent 34%),
    linear-gradient(135deg, #f9fffd 0%, #eefaf6 55%, #e7f7f2 100%);
  box-shadow: 0 22px 56px rgba(21, 70, 58, .09), inset 0 1px 0 rgba(255,255,255,.9);
}

.account-history-copy { max-width: 760px; }
.account-history-copy h1 { margin: 10px 0 12px; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.03; letter-spacing: -.045em; }
.account-history-copy > p:last-child { max-width: 690px; margin: 0; color: var(--color-muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.7; }
.account-history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 5vw, 46px); }

.account-history-card {
  min-width: 0;
  min-height: 270px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 24px;
  color: var(--color-text);
  background: rgba(255,255,255,.68);
  box-shadow: 0 14px 34px rgba(21,70,58,.075), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  text-decoration: none;
}
.account-history-card.is-active { transition: transform 280ms cubic-bezier(.22,1,.36,1), box-shadow 280ms ease, border-color 280ms ease; }
.account-history-card.is-active:hover { transform: translateY(-4px); border-color: rgba(15,118,110,.28); box-shadow: 0 20px 42px rgba(21,70,58,.13), inset 0 1px 0 #fff; }
.account-history-card.is-active:focus-visible { outline: 3px solid rgba(15,118,110,.2); outline-offset: 3px; }
.account-history-card.is-upcoming { background: rgba(246,250,249,.62); }
.account-history-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-history-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, #0f766e, #159579); box-shadow: 0 10px 24px rgba(15,118,110,.2); font-size: 1.15rem; font-weight: 850; }
.account-history-card.is-upcoming .account-history-mark { color: #557067; background: #e7efec; box-shadow: none; }
.account-history-status { padding: 7px 10px; border-radius: 999px; color: #08705c; background: #e3f7ef; font-size: .72rem; font-weight: 800; }
.account-history-card.is-upcoming .account-history-status { color: #63736e; background: #edf1ef; }
.account-history-kicker { color: #0f766e; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.account-history-card h2 { margin: 7px 0 9px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.account-history-card p { margin: 0; color: var(--color-muted); line-height: 1.65; }
.account-history-action { color: #0f6b5d; font-weight: 800; }
.account-history-action span { display: inline-block; margin-left: 4px; transition: transform 220ms ease; }
.account-history-card:hover .account-history-action span { transform: translateX(4px); }
.account-history-note { color: #70817b; font-size: .86rem; font-weight: 700; }

.account-profile-card { width: min(100%, 760px); margin: 28px auto 0; }
.account-profile-card h2 { margin-top: 8px; font-size: clamp(2rem, 4vw, 3.2rem); }

@media (max-width: 720px) {
  .account-layout { width: min(100% - 24px, 1180px); padding-top: 24px; }
  .account-history-hero { padding: 24px 18px; border-radius: 25px; }
  .account-history-grid { grid-template-columns: 1fr; }
  .account-history-card { min-height: 240px; padding: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-history-card.is-active, .account-history-action span { transition: none; }
}
