/* Dough Tracker Web — additive web-only styles: auth screen, Plan &
 * Billing cards, upgrade modal, plus the small-screen stacking those
 * components and the v1 top bar need at ~390px. v1 views are styled by
 * styles.css and are not restyled here. */

/* ------------------------------ Auth screen ------------------------------ */

.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 16px;
  background: var(--bg);
}
.auth-screen.hidden { display: none !important; }
.auth-card { width: 100%; max-width: 380px; }
.auth-brand { margin-bottom: 8px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.auth-submit { margin-top: 4px; }
.auth-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.auth-link { border: none; padding: 4px 0; color: var(--blue); background: transparent; }
.auth-link:hover { background: transparent; text-decoration: underline; }

/* ------------------------------ Billing ------------------------------ */

.billing-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.billing-card {
  background: var(--grey-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.billing-card.is-current { border-color: var(--green); }
.billing-card-name { font-weight: 700; font-size: 15px; }
.billing-card-price { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.billing-features { margin: 0; padding-left: 18px; color: var(--grey); font-size: 13px; flex: 1; }
.billing-card .btn { margin-top: auto; }

/* ------------------------------ Upgrade modal ------------------------------ */

.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.upgrade-modal-card { width: 100%; max-width: 420px; }

/* ------------------------------ Small screens ------------------------------ */

@media (max-width: 760px) {
  .billing-cards { grid-template-columns: 1fr; }
  .auth-screen { padding: 24px 12px; }
  .topbar { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav-tab { white-space: nowrap; }
}
