:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --card-border: #dfe5ef;
  --text: #1b2330;
  --muted: #5b6575;
  --accent: #1d64f2;
  --accent-gradient: linear-gradient(135deg, #1d64f2, #5283ff);
  --accent-soft: #ebf1ff;
  --danger-bg: #fdecee;
  --danger-border: #f5b8be;
  --danger-text: #a12b36;
  font-family: "Inter", "Segoe UI", Roboto, -apple-system, sans-serif;
  background-color: var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--accent);
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.account-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.account-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.account-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.account-header .lead {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 14px 28px rgba(27, 35, 48, 0.08);
  margin-bottom: 1.75rem;
}

.card.trial {
  background: linear-gradient(120deg, #ecf2ff, #f7f9ff);
  border-color: #d6e1ff;
  box-shadow: 0 16px 36px rgba(29, 100, 242, 0.12);
}

.trial-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #3755a5;
  font-size: 0.85rem;
}

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

.card-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.card-header .muted {
  margin: 0.35rem 0 0;
}

.muted {
  color: var(--muted);
}

.helper-text {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

.status-chip {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.status-chip.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.plan-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.plan-meta dt {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.plan-meta dd {
  margin: 0;
  font-size: 1.05rem;
  word-break: break-word;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 100, 242, 0.2);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.button.secondary {
  background: #edf2ff;
  color: var(--accent);
  border: 1px solid rgba(29, 100, 242, 0.28);
}

.hidden {
  display: none;
}

.monospace {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 14px 28px rgba(27, 35, 48, 0.15);
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .card {
    padding: 1.5rem;
  }

  .account-header-actions {
    justify-content: center;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .trial-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
