:root {
  --bg: #eef5ff;
  --panel: #ffffff;
  --line: #d5e2f5;
  --text: #0f1b2f;
  --muted: #56627b;
  --accent: #0d69c5;
  --accent-strong: #0954a0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, #dae9ff 0, transparent 34%),
    radial-gradient(circle at 82% 80%, #e8f3ff 0, transparent 40%),
    var(--bg);
}

.subscription-page {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  gap: 16px;
}

.page-header {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.account-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.store-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.store-link:hover {
  text-decoration: underline;
}

.legal-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.legal-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

button.secondary {
  background: #eaf2ff;
  color: #16365c;
}

button.secondary:hover {
  background: #dce9ff;
}

button.ghost {
  background: #f4f7fc;
  color: #22344e;
}

button.ghost:hover {
  background: #e8eef8;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.page-status {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 24px);
}

.card h2 {
  margin: 0;
  font-size: 24px;
}

.status-copy {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.meta-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.billing-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.billing-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-copy {
  display: grid;
  gap: 3px;
}

.billing-main {
  font-weight: 700;
  font-size: 14px;
}

.billing-sub {
  color: var(--muted);
  font-size: 13px;
}

.billing-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.billing-link:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .page-header {
    flex-direction: column;
  }

  .header-actions {
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
  }
}
