/* 2FAS Pass Business dashboard: the look of 2fas.com (Montserrat headings, Roboto text, 20px cards,
   pill buttons) with the 2FAS Pass blue. Light by default, dark when the system asks for it. */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f8f9fc; --line: #e3e7f0;
  --text: #1c1d24; --text-2: #5b6170; --text-3: #8a90a0;
  --brand: #214ce8; --brand-hover: #1a3ec4; --brand-soft: #214ce81a;
  --red: #ed1c24; --ok: #0b8a3e; --ok-soft: #0b8a3e1a; --warn: #b65c00; --warn-soft: #f4832726;
  --danger: #cc2229; --danger-soft: #cc22291a;
  --shadow: 0 10px 40px #1c1d2414;
  --radius: 20px; --radius-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f13; --surface: #17181d; --surface-2: #1f2027; --line: #2a2c35;
    --text: #f2f3f7; --text-2: #b4b8c4; --text-3: #7d8292;
    --brand: #4d72ff; --brand-hover: #6a88ff; --brand-soft: #4d72ff26;
    --ok: #32c46a; --ok-soft: #32c46a26; --warn: #f48327; --warn-soft: #f4832726;
    --danger: #ff5a5f; --danger-soft: #ff5a5f26;
    --shadow: 0 10px 40px #00000059;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.55 Roboto, -apple-system, system-ui, sans-serif; }
h1, h2, h3, .brand, .btn, label, .price { font-family: Montserrat, -apple-system, system-ui, sans-serif; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; }

/* Frame */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); line-height: 1; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a, .nav button { color: var(--text-2); font: 500 14px Montserrat, sans-serif; padding: 8px 12px; border-radius: 100px; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav form { margin: 0; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.auth { max-width: 440px; margin: 56px auto; }
.auth .brand { justify-content: center; margin-bottom: 24px; font-size: 20px; }

/* Forms */
form { margin: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 600; font-size: 13px; color: var(--text); }
.hint { font-size: 13px; color: var(--text-3); }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font: 400 15px Roboto, sans-serif; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 14px Roboto, sans-serif; color: var(--text-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.error { color: var(--danger); font-size: 13px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }
.alert.danger { background: var(--danger-soft); color: var(--danger); }
.alert.info { background: var(--brand-soft); color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 100px;
  border: 1px solid transparent; background: var(--brand); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--brand-hover); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; flex-wrap: wrap; }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--line); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { padding: 8px 16px; border-radius: 100px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.toggle input:checked + label { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px #1c1d241a; }
.save { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 100px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 600; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { text-align: center; max-width: 110px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }
.regions { display: grid; gap: 10px; }
.region { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface-2); }
.region input { width: 18px; height: 18px; accent-color: var(--brand); }
.region.off { opacity: .55; cursor: not-allowed; }
.region .tag { margin-left: auto; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.price { font-size: 30px; font-weight: 700; }
.strike { text-decoration: line-through; color: var(--text-3); font-size: 14px; }

/* Organisation */
.tag { display: inline-block; padding: 3px 10px; border-radius: 100px; font: 600 12px Montserrat, sans-serif; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.tag.active { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag.past_due { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.suspended, .tag.canceled { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.pending { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
dl.facts dt { color: var(--text-3); }
dl.facts dd { margin: 0; min-width: 0; }
.org-card { display: block; color: inherit; transition: transform .12s ease, border-color .12s ease; }
.org-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--brand); }
.org-card .title { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; margin-bottom: 14px; }
.qr { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; line-height: 0; }
.qr svg { width: 240px; height: 240px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 24px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline .field { margin: 0; flex: 1; min-width: 160px; }
footer { color: var(--text-3); font-size: 13px; text-align: center; padding: 24px 0 40px; }
