.account-body {
  min-height: 100vh;
}

.account-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
  animation: rise 0.55s ease both;
}

.account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.account-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.2;
  padding-bottom: 0.06em;
  text-decoration: none;
  background: linear-gradient(120deg, var(--magenta), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.account-top-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.account-email {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--zinc-500);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-ghost {
  appearance: none;
  border: 1px solid var(--zinc-200);
  background: var(--white);
  color: var(--zinc-800);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--purple);
}

.account-hero {
  margin-bottom: 1.75rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-500);
}

.account-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--zinc-950);
}

.account-hero .lede {
  margin: 0.55rem 0 0;
  max-width: 36rem;
}

.account-hero .ok,
.account-hero .error {
  margin-top: 0.85rem;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.4rem 1.45rem;
  display: grid;
  gap: 0.85rem;
  align-content: start;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: rgba(124, 0, 214, 0.28);
  transform: translateY(-1px);
}

.product-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-500);
}

.product-card h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.product-blurb {
  margin: 0.4rem 0 0;
  color: var(--zinc-500);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-pill {
  margin: 0;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--zinc-200);
  background: var(--zinc-100);
  color: var(--zinc-800);
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill[data-state="active"] {
  color: var(--mint);
  background: rgba(0, 200, 117, 0.1);
  border-color: rgba(0, 200, 117, 0.35);
}

.status-pill[data-state="trialing"] {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
}

.status-pill[data-state="eligible"] {
  color: var(--blue, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.28);
}

.status-pill[data-state="inactive"] {
  color: var(--zinc-800);
}

.status-pill[data-state="loading"] {
  color: var(--zinc-500);
}

.product-plan {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--zinc-950);
}

.product-actions {
  display: grid;
  gap: 0.75rem;
}

.product-actions[hidden],
.product-actions[hidden] * {
  display: none !important;
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
}

.billing-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--zinc-500);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.billing-toggle-btn:hover {
  color: var(--zinc-800);
}

.billing-toggle-btn.is-active {
  background: var(--white);
  color: var(--zinc-950);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.price-block {
  display: grid;
  gap: 0.2rem;
}

.price-amount {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--zinc-950);
}

.price-suffix {
  margin-left: 0.15rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--zinc-500);
}

.price-save {
  margin: 0;
  min-height: 1.15em;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.15;
  color: transparent;
}

.price-save.is-visible {
  color: var(--mint);
}

.btn-inert,
.btn-inert:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.btn-inert:hover,
.btn-inert:disabled:hover {
  transform: none;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
  width: 100%;
  margin-top: 0;
}

.product-note {
  margin: 0;
  min-height: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--zinc-500);
}

.account-foot {
  margin: 1.75rem 0 0;
  color: var(--zinc-500);
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .account-email {
    max-width: 140px;
  }
}
