/* Account page. Builds on style.css tokens and classes. */

.account h2 { margin-bottom: 16px; }
.google-button { min-height: 44px; display: flex; justify-content: center; margin-bottom: 8px; }

.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.profile p { margin: 0; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-email { color: var(--muted); text-align: start; }

.secondary-button {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.secondary-button:hover { border-color: var(--accent); }

.link-danger {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: none;
  color: var(--error);
  font: inherit;
  cursor: pointer;
}
.link-danger:hover { text-decoration: underline; }

.account-message { text-align: center; color: var(--muted); }
.account-message.error { color: var(--error); }

.clerk-mount { display: flex; justify-content: center; margin: 8px 0 16px; }
.clerk-mount:empty { display: none; }
[data-view="signed-out"] .note { text-align: center; }

/* Membership */
.membership h2 { margin-bottom: 8px; }
.membership .status { font-weight: 700; margin: 0 0 4px; }
.membership .buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.membership .buy .primary-button { margin: 0; font-size: 16px; }
.membership .buy .secondary-button { margin: 0; }
.plans .price { font-size: 28px; font-weight: 700; color: var(--text); margin: 4px 0; }
.plans .is-featured { outline: 2px solid var(--accent); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: start; }
.compare thead th { color: var(--muted); font-weight: 600; }
.primary-button {
  display: block; width: 100%; margin-top: 16px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-align: center; cursor: pointer;
}
.primary-button:hover { text-decoration: none; filter: brightness(1.05); }
.primary-button:disabled { opacity: 0.5; cursor: default; }
.link-plain { color: var(--accent); }
