/* Account, checkout and team pages. Loaded after pricing.css, before skin.css. */

/* Forms */
.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 13px;
  font: 16px var(--f-ui);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #c4c7c5;
  border-radius: 10px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid #ceead6; border-color: #188038; }
.field .help { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field.invalid input { border-color: var(--bad); }
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; font-weight: 600; }
.form-ok { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #0d652d; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Auth card */
.auth { max-width: 440px; margin: 48px auto 80px; }
.auth h1 { margin: 0 0 10px; font-size: 56px; }
.auth .sub { margin: 0 0 22px; color: var(--muted); }
.auth .card-pad { padding: 26px; border-radius: var(--r-card); background: #fff; box-shadow: var(--lift); }
.auth .swap { margin: 18px 0 0; text-align: center; font-size: 15px; }
.banner { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-node); background: var(--ok-soft); color: #0d652d; font-weight: 600; }

/* Dashboard pages (account, team) */
.dash { padding-top: 40px; padding-bottom: 80px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.dash-head h1 { margin: 0; font-size: 60px; }
.dash-head p { margin: 8px 0 0; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.box { padding: 22px; border-radius: var(--r-card); background: #fff; box-shadow: var(--lift); margin-bottom: 24px; }
.box h2 { margin: 0 0 14px; font-size: 30px; }
.box h3 { margin: 0 0 8px; font: 700 15px var(--f-ui); letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { padding: 16px 18px; border-radius: var(--r-node); background: #fff; box-shadow: var(--lift); }
.stat b { display: block; font: 800 40px/1 var(--f-display); font-stretch: 75%; }
.stat span { color: var(--muted); font-size: 13px; }
.kv { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); }
.kv li:last-child { border-bottom: 0; }
.kv li > span:first-child { color: var(--muted); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; padding: 10px 12px; font: 13px var(--f-mono); border: 1.5px solid #c4c7c5; border-radius: 10px; background: var(--soft); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 11px 10px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: middle; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .who b { display: block; }
.tbl .who span { color: var(--muted); font-size: 13px; }
.mini-bar { width: 110px; height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.mini-bar > span { display: block; height: 100%; background: #188038; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.admin { background: #e8f0fe; color: #174ea6; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: 600 13px var(--f-ui); padding: 4px 6px; border-radius: 6px; }
.icon-btn:hover { color: var(--bad); background: var(--bad-soft); }
.empty { color: var(--muted); font-size: 14px; margin: 0; }

/* Seat stepper (pricing + team) */
.stepper { display: inline-flex; align-items: center; border: 2px solid #188038; border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 38px; height: 38px; border: 0; background: none; font: 700 20px var(--f-ui); color: #0d652d; cursor: pointer; }
.stepper button:hover { background: #f3faf5; }
.stepper input { width: 56px; height: 38px; border: 0; text-align: center; font: 700 17px var(--f-ui); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seat-pick { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.seat-pick .total { font-size: 14px; color: var(--muted); }
.seat-pick .total b { color: var(--ink); }

/* Test-mode payment sheet: the layout of a hosted card checkout, in house type. */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 140px); }
.pay-summary { padding: 48px 48px 48px 0; }
.pay-form { padding: 48px 0 48px 48px; border-left: 1px solid var(--hair); }
.pay-summary .for { color: var(--muted); font-weight: 600; margin: 0 0 4px; }
.pay-summary .big { font: 800 64px/1 var(--f-display); font-stretch: 75%; letter-spacing: -0.02em; margin: 0 0 24px; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.pay-line small { display: block; color: var(--muted); font-size: 13px; }
.pay-total { display: flex; justify-content: space-between; padding: 14px 0; font-weight: 700; }
.testmode { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 3px 10px; border-radius: 6px; background: #ffde92; color: #5a3d00; font: 700 12px var(--f-ui); letter-spacing: 0.04em; text-transform: uppercase; }
.cardbox { border: 1.5px solid #c4c7c5; border-radius: 10px; overflow: hidden; background: #fff; }
.cardbox input { width: 100%; border: 0; padding: 12px 13px; font: 16px var(--f-ui); background: transparent; }
.cardbox input:focus { outline: 0; background: #f8fbf9; }
.cardbox .split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1.5px solid #e1e3e1; }
.cardbox .split input + input { border-left: 1.5px solid #e1e3e1; }
.cardbox.invalid { border-color: var(--bad); }
.card-num { position: relative; }
.card-num .brand { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 11px var(--f-ui); text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.testcards { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: #fff8e6; font-size: 13px; }
.testcards p { margin: 0 0 6px; font-weight: 700; }
.testcards button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 3px 0; font: 13px var(--f-ui); color: var(--ink); cursor: pointer; }
.testcards button code { font-size: 12px; }
.paybtn { width: 100%; margin-top: 18px; }
.secure { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

@media (max-width: 900px) {
  .auth h1, .dash-head h1 { font-size: 42px; }
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .pay { grid-template-columns: 1fr; min-height: 0; }
  .pay-summary { padding: 28px 0 8px; }
  .pay-summary .big { font-size: 48px; }
  .pay-form { padding: 20px 0 48px; border-left: 0; border-top: 1px solid var(--hair); }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

/* Landing: team plan band, quieter than the closing CTA */
.cta-band.teams-band { background: #e8f0fe; margin-bottom: 18px; }
.cta-band.teams-band p { margin: 10px 0 0; max-width: 34em; color: var(--muted); }
