/* CockpitPay app – design system. Light by default, dark with the system setting or when chosen (html[data-theme]). */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f9fafb; --ink: #0f172a; --ink-2: #334155; --mute: #64748b; --faint: #94a3b8;
  --line: #e5e7eb; --line-2: #eef0f3;
  --brand: #1d4ed8; --brand-2: #1e40af; --brand-soft: #eff4ff; --brand-ink: #ffffff; --navy: #0b1f3a;
  --ok: #047857; --ok-soft: #ecfdf5; --bad: #b91c1c; --bad-soft: #fef2f2; --warn: #a16207; --warn-soft: #fffbeb; --info: #0369a1; --info-soft: #f0f9ff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111827; --surface-2: #0f172a; --ink: #e5e7eb; --ink-2: #cbd5e1; --mute: #94a3b8; --faint: #64748b;
    --line: #1f2937; --line-2: #18212f; --brand: #60a5fa; --brand-2: #93c5fd; --brand-soft: #172554; --brand-ink: #0b1120; --navy: #e5e7eb;
    --ok: #34d399; --ok-soft: #052e22; --bad: #f87171; --bad-soft: #3b0d0d; --warn: #fbbf24; --warn-soft: #2d2205; --info: #38bdf8; --info-soft: #082f49;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1120; --surface: #111827; --surface-2: #0f172a; --ink: #e5e7eb; --ink-2: #cbd5e1; --mute: #94a3b8; --faint: #64748b;
  --line: #1f2937; --line-2: #18212f; --brand: #60a5fa; --brand-2: #93c5fd; --brand-soft: #172554; --brand-ink: #0b1120; --navy: #e5e7eb;
  --ok: #34d399; --ok-soft: #052e22; --bad: #f87171; --bad-soft: #3b0d0d; --warn: #fbbf24; --warn-soft: #2d2205; --info: #38bdf8; --info-soft: #082f49;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.011em; }
h1 { font-size: 1.55rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 620; }
h3 { font-size: .98rem; font-weight: 620; }
p { margin: 0; }
small, .small { font-size: .8rem; }
.mute { color: var(--mute); }
.num, td.n { font-variant-numeric: tabular-nums; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--surface) 247px, var(--line) 247px, var(--line) 248px, transparent 248px); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); padding: 4px 8px 14px; text-decoration: none !important; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #1d4ed8, #0b1f3a); display: grid; place-items: center; color: #fff; flex: none; }
.logo svg { width: 18px; height: 18px; stroke: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 520; text-decoration: none; }
.nav a:hover { background: var(--surface-2); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side .foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.who .email { font-size: .82rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding: 28px 36px 60px; }
.page { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--mute); margin-top: 4px; }
.topbar { display: none; }
.tabbar { display: none; }

/* sidebar v2 (3/12/2026) */
.side .brand { padding: 4px 8px 16px; }
.new-btn { height: 40px; margin: 0 2px 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .14); }
.nav-label { padding: 18px 10px 6px; color: var(--faint); font-size: .7rem; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.nav a .ext { width: 14px; height: 14px; margin-left: auto; color: var(--faint); }
.user { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.user .who-t { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.user .email { max-width: 100%; overflow: hidden; color: var(--ink); font-size: .82rem; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.avatar.grad { background: linear-gradient(135deg, #1d4ed8, #0b1f3a); color: #fff; text-decoration: none !important; }
.icon-btn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--mute); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.lang-sel { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--mute); }
.lang-sel svg.i { width: 16px; height: 16px; }
.lang-sel select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 540; cursor: pointer; outline: none; }
.prefs .lang-sel { max-width: 260px; }

/* dashboard v2 */
.welcome { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; overflow: hidden; padding: 30px 32px; border-radius: 18px; color: #fff; background: radial-gradient(620px 280px at 100% 0%, rgba(96, 165, 250, .45), transparent 62%), linear-gradient(135deg, #1d4ed8 0%, #0b1f3a 100%); box-shadow: 0 24px 50px -28px rgba(29, 78, 216, .7); }
.welcome h1 { color: #fff; font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; }
.welcome .meta-line { display: flex; align-items: center; gap: 7px; margin-top: 6px; color: #bfdbfe; font-size: .9rem; font-weight: 520; }
.welcome .meta-line svg.i { width: 16px; height: 16px; }
.welcome .msg { max-width: 560px; margin-top: 14px; color: #e0e7ff; font-size: .98rem; line-height: 1.55; }
.welcome .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn.white { background: #fff; color: #0b1f3a; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5); }
.btn.white:hover { background: #eaf1ff; }
.btn.glass { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, .16); }
.next-card { min-width: 230px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .08); }
.next-card small { color: #bfdbfe; font-size: .72rem; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.next-card b { display: block; margin-top: 6px; color: #fff; font-size: 1.35rem; letter-spacing: -.02em; }
.next-card span { color: #cbd5e1; font-size: .85rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
.kpi .ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.kpi.bad .ic { background: var(--bad-soft); color: var(--bad); }
.kpi.ok .ic { background: var(--ok-soft); color: var(--ok); }
.kpi .label { color: var(--mute); font-size: .84rem; font-weight: 540; }
.kpi .value { margin-top: 2px; font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi.bad .value { color: var(--bad); }
.kpi.ok .value { color: var(--ok); }
.kpi .sub { margin-top: 1px; color: var(--mute); font-size: .8rem; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; transition: background .12s; }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--surface-2); }
.mtile { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); line-height: 1.15; }
.mtile b { color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.mtile span { color: var(--mute); font-size: .72rem; }
.list-row .main-t { flex: 1; min-width: 0; }
.list-row .main-t b { display: block; font-size: .95rem; }
.list-row .main-t span { color: var(--mute); font-size: .82rem; }
.list-row .amt { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.list-row .amt.bad { color: var(--bad); }
.list-row .amt.ok { color: var(--ok); font-weight: 560; }
.list-row .chev { width: 18px; height: 18px; color: var(--faint); }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--line-2); font-size: .86rem; font-weight: 560; }
.prog { height: 6px; margin-bottom: 6px; overflow: hidden; border-radius: 99px; background: var(--line-2); }
.prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.todo:nth-child(2) { border-top: 0; }
.todo .tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--line); border-radius: 50%; color: var(--mute); font-size: .82rem; font-weight: 700; }
.todo .tick svg.i { width: 15px; height: 15px; stroke-width: 2.6; }
.todo.done .tick { border-color: var(--ok); background: var(--ok); color: #fff; }
.todo .t { flex: 1; min-width: 0; }
.todo b { display: block; font-size: .95rem; }
.todo.done b { color: var(--mute); text-decoration: line-through; }
.todo .t span { color: var(--mute); font-size: .85rem; }
.guest-card { display: flex; align-items: center; gap: 16px; }
.guest-card .ic, .air-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.guest-card .t { flex: 1; }
.side-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; }
.prof-head { display: flex; align-items: center; gap: 12px; }
.prof-head b { display: block; }
.prof-head span { color: var(--mute); font-size: .85rem; }
.kvlist div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .86rem; }
.kvlist span { color: var(--mute); }
.kvlist b { font-weight: 600; text-align: right; }
.pro-card { border-color: transparent; background: linear-gradient(160deg, var(--brand-soft), var(--surface) 75%); }
.ticks { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: .88rem; }
.ticks svg.i { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); stroke-width: 2.4; }
.links-list a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: .9rem; text-decoration: none !important; }
.links-list a:first-child { border-top: 0; padding-top: 0; }
.links-list a:hover { color: var(--brand); }
.links-list a > svg.i:first-child { width: 18px; height: 18px; color: var(--brand); }
.links-list a span { flex: 1; }
.links-list .chev { width: 16px; height: 16px; color: var(--faint); }

/* ---------------------------------------------------------------- components */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-body { padding: 18px 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-state { grid-template-columns: minmax(160px, 220px) 1fr auto; align-items: end; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; background: var(--brand); color: var(--brand-ink); text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--brand-2); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--surface); color: var(--bad); border-color: var(--line); }
.btn.sm { height: 32px; padding: 0 12px; font-size: .85rem; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 1rem; }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .84rem; font-weight: 560; color: var(--ink-2); }
.field small { color: var(--mute); }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
textarea.input { height: auto; min-height: 140px; padding: 10px 12px; font-family: var(--mono); font-size: .84rem; line-height: 1.45; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
select.input.sm { height: 32px; font-size: .84rem; padding: 0 8px; width: auto; }
.check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.stat { padding: 16px 18px; }
.stat .label { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .84rem; font-weight: 540; }
.stat .value { font-size: 1.6rem; font-weight: 680; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--mute); font-size: .8rem; margin-top: 2px; }
.stat.ok .value { color: var(--ok); }
.stat.bad .value { color: var(--bad); }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; color: var(--ink-2); }
.notice svg { margin-top: 2px; }
.notice.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.notice.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.notice.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.notice.info { background: var(--info-soft); border-color: transparent; color: var(--info); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); font-weight: 620; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td .sub { display: block; color: var(--mute); font-size: .78rem; margin-top: 2px; }
tr.expand td { background: var(--surface-2); padding: 12px 20px 16px; }
tr.expand ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .86rem; }
tr.expand li { margin: 3px 0; }
tr.expand li.note { color: var(--mute); }

.empty { text-align: center; padding: 44px 20px; color: var(--mute); }
.empty .art { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.empty .art svg { width: 26px; height: 26px; }
.empty h3 { margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* stepper */
.steps { display: flex; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; color: var(--mute); font-weight: 560; font-size: .9rem; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); font-size: .82rem; font-weight: 700; flex: none; }
.step.on { color: var(--ink); }
.step.on .n { border-color: var(--brand); color: var(--brand); }
.step.done .n { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step-line { flex: 1; height: 1.5px; background: var(--line); margin: 0 14px; min-width: 24px; }
.step-line.done { background: var(--brand); }

/* drop zone */
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 34px 20px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .art { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 12px; color: var(--brand); }
.drop .art svg { width: 22px; height: 22px; }
.drop b { display: block; font-size: 1rem; margin-bottom: 4px; }
.drop span { color: var(--mute); font-size: .86rem; }
.file-chip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.file-chip .art { width: 36px; height: 36px; border-radius: 9px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.file-chip .meta { min-width: 0; flex: 1; }
.file-chip .meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .meta span { color: var(--mute); font-size: .84rem; }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kv div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.kv b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kv span { color: var(--mute); font-size: .78rem; }

details.more > summary { cursor: pointer; color: var(--brand); font-weight: 560; font-size: .9rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 12px; }

.banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); flex-wrap: wrap; }
.banner .big { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.neutral { background: var(--brand-soft); color: var(--brand); }
.banner .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; flex: none; }
.banner .ico svg { width: 22px; height: 22px; }
.banner .txt { flex: 1; min-width: 200px; }
.banner p { color: inherit; opacity: .9; }


.locked { color: var(--mute); font-size: .82rem; display: inline-flex; align-items: center; gap: 6px; }
.tag { font-size: .72rem; color: var(--warn); margin-left: 6px; font-weight: 600; white-space: nowrap; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .art-side { background: radial-gradient(1200px 600px at 10% 10%, #1e3a8a 0%, #0b1f3a 55%, #050b18 100%); color: #e2e8f0; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth .art-side .brand { color: #fff; padding: 0; }
.auth .art-side h2 { color: #fff; font-size: 1.9rem; line-height: 1.2; max-width: 480px; }
.auth .art-side p { color: #cbd5e1; max-width: 460px; margin-top: 12px; }
.auth .art-side .points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.auth .art-side .points div { display: flex; gap: 10px; align-items: flex-start; color: #e2e8f0; }
.auth .art-side .points svg { color: #93c5fd; margin-top: 2px; }
.auth .art-side small { color: #94a3b8; }
.auth .form-side { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-card .brand { padding: 0; }
.code-boxes { display: flex; gap: 8px; }
.code-boxes input { width: 48px; height: 54px; text-align: center; font-size: 1.35rem; font-weight: 650; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: inherit; }
.code-boxes input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* toast & modal */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: #0b1f3a; color: #fff; padding: 11px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 40; padding: 20px; }
.modal { max-width: 560px; width: 100%; padding: 22px; display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow: auto; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--mute); padding: 60px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3, .g-main-side { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth .art-side { display: none; }
  .welcome { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .next-card { min-width: 0; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--mute); font-size: .7rem; text-decoration: none; }
  .tabbar a.on { color: var(--brand); }
  .main { padding: 18px 16px 90px; }
  .g2, .g-state { grid-template-columns: 1fr; }
  .page-head > .btn, .page-head > .row { width: 100%; }
  .file-chip .meta b { white-space: normal; }
  h1 { font-size: 1.3rem; }
  .steps .step .t { display: none; }
  th, td { padding: 10px; }
  .hide-sm { display: none; }
  .code-boxes input { width: 42px; height: 50px; }
  .banner .big { font-size: 1.25rem; }
  .toasts { left: 16px; right: 16px; bottom: 80px; }
  .welcome { padding: 22px 20px; border-radius: 16px; }
  .welcome h1 { font-size: 1.45rem; }
  .welcome .actions .btn { flex: 1 1 100%; height: auto; min-height: 46px; padding: 10px 16px; white-space: normal; text-align: center; }
  .next-card { display: none; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { flex-direction: column; gap: 8px; padding: 12px; }
  .kpi .ic { width: 32px; height: 32px; border-radius: 9px; }
  .kpi .ic svg.i { width: 16px; height: 16px; }
  .kpi .label { font-size: .72rem; line-height: 1.25; }
  .kpi .value { font-size: 1.05rem; }
  .kpi .sub { display: none; }
  .list-row { gap: 12px; padding: 12px 14px; }
  .list-row .badge, .list-row .chev { display: none; }
  .guest-card { flex-wrap: wrap; }
  .guest-card .btn { width: 100%; }
}
@media print {
  .side, .topbar, .tabbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- theme selector */
.foot-prefs { display: flex; flex-direction: column; gap: 8px; }
.foot-prefs .theme-sel { display: grid; grid-template-columns: repeat(3, 1fr); }
.foot-prefs .theme-sel button { width: auto; }
.theme-sel { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.theme-sel button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--faint); cursor: pointer; }
.theme-sel button:hover { color: var(--ink); }
.theme-sel button[aria-checked="true"] { background: var(--brand-soft); color: var(--brand); }
.theme-sel svg.i { width: 16px; height: 16px; }
.theme-sel.wide button { display: inline-flex; gap: 7px; width: auto; height: 34px; padding: 0 12px; font: 560 .86rem/1 var(--font); }
.pref-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* ---------------------------------------------------------------- plan */
.payback { grid-template-columns: minmax(0, 1fr) minmax(300px, 410px); align-items: stretch; }
.payback > div:first-child { display: flex; flex-direction: column; justify-content: center; }
.payback .eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #bfdbfe; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.payback .eyebrow svg.i { width: 16px; height: 16px; }
.payback .live { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(52, 211, 153, .16); color: #6ee7b7; font-size: .74rem; letter-spacing: .02em; text-transform: none; }
.payback .live .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.pb-title { margin-top: 10px; color: #fff; font-size: 1.6rem; font-weight: 720; letter-spacing: -.025em; line-height: 1.2; }
.pb-bars { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 20px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .07); }
.pb-row { display: flex; flex-direction: column; gap: 7px; }
.pb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.pb-top span { display: flex; flex-direction: column; color: #e0e7ff; font-size: .86rem; font-weight: 560; line-height: 1.3; }
.pb-top small { color: #93a8d6; font-size: .74rem; font-weight: 500; }
.pb-top b { color: #fff; font-size: 1.02rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-track { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.pb-track i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.pb-track i.gain { background: linear-gradient(90deg, #10b981, #6ee7b7); box-shadow: 0 0 16px rgba(52, 211, 153, .45); }
.pb-track i.cost { background: linear-gradient(90deg, #60a5fa, #bfdbfe); }
.pb-track i.cost2 { background: rgba(191, 219, 254, .4); }
.pb-cap { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); color: #a7f3d0; font-size: .86rem; font-weight: 620; }
.pb-cap svg.i { width: 17px; height: 17px; }
.pb-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pb-list li { display: flex; gap: 9px; color: #e0e7ff; font-size: .9rem; }
.pb-list svg.i { width: 17px; height: 17px; margin-top: 2px; color: #6ee7b7; stroke-width: 2.4; }

.bill-wrap { display: flex; justify-content: center; }
.bill { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.bill .knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--brand); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--brand) 70%, transparent); transition: transform .28s cubic-bezier(.3, .7, .2, 1); }
.bill[data-v="year"] .knob { transform: translateX(100%); }
.bill button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 156px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--mute); font: 640 .92rem/1 var(--font); cursor: pointer; transition: color .2s; }
.bill button[aria-checked="true"] { color: var(--brand-ink); }
.bill .chip { padding: 3px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .74rem; font-weight: 720; transition: background-color .2s, color .2s; }
.bill button[aria-checked="true"] .chip { background: rgba(255, 255, 255, .22); color: var(--brand-ink); }

.plans2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.pcard.pro { border: 1.5px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface) 45%); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--brand) 70%, transparent); }
.pcard .reco { position: absolute; top: -12px; right: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .74rem; font-weight: 700; }
.pcard .reco svg.i { width: 14px; height: 14px; }
.pcard .pc-head h2 { font-size: 1.1rem; }
.pcard .desc { margin-top: -8px; color: var(--mute); font-size: .9rem; }
.pprice { display: flex; align-items: baseline; gap: 8px; }
.pprice .amount { font-size: 2.7rem; font-weight: 760; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pprice .per { color: var(--mute); font-size: .92rem; }
.price-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 30px; margin-top: -4px; color: var(--mute); font-size: .86rem; }
.price-line s { color: var(--faint); }
.price-line .save { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 680; }
.price-line .save svg.i { width: 15px; height: 15px; stroke-width: 2.6; }
.price-line .to-year { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 640; text-align: left; cursor: pointer; }
.price-line .to-year:hover { text-decoration: underline; }
.price-line.pop { animation: pop .35s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.btn.current { color: var(--mute); cursor: default; }
.btn.current:hover { background: var(--surface); }
.feats { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); list-style: none; }
.feats li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink-2); font-size: .9rem; }
.feats svg.i { width: 17px; height: 17px; margin-top: 2px; color: var(--ok); stroke-width: 2.4; }
.feats li.no, .feats li.no svg.i { color: var(--faint); }
.trust { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mute); font-size: .84rem; text-align: center; }
.trust svg.i { width: 16px; height: 16px; color: var(--ok); }
.pfaq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pfaq h3 { margin-bottom: 6px; }
.incl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; }
.incl > div { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: .88rem; font-weight: 560; }
.incl .ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }

/* dashboard: it pays for itself */
.pay-note { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: .84rem; font-weight: 600; line-height: 1.4; }
.pay-note svg.i { width: 17px; height: 17px; margin-top: 1px; }
.pc-from { margin-top: -4px; color: var(--mute); font-size: .78rem; text-align: center; }
/* result: the lock card says what the difference is worth */
.lock-pay { display: flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--mute); font-size: .84rem; font-weight: 600; }
.lock-card.pays .lock-pay { color: var(--ok); }
.lock-pay svg.i { width: 16px; height: 16px; }

@media (max-width: 1000px) {
  .payback { grid-template-columns: minmax(0, 1fr); }
  .pfaq { grid-template-columns: minmax(0, 1fr); }
  .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pb-title { font-size: 1.3rem; }
  .pb-bars { padding: 16px; }
  .bill-wrap { display: block; }
  .bill button { min-width: 0; padding: 0 12px; }
  .plans2 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pcard { padding: 22px 20px; }
  .pcard.pro { order: -1; }
  .pprice .amount { font-size: 2.3rem; }
  .incl { grid-template-columns: minmax(0, 1fr); padding: 12px 16px 16px; }
}

/* ---------------------------------------------------------------- propose an airline */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 16px; align-items: start; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; font: inherit; line-height: 1.45; resize: vertical; }
.pp-foot { align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pp-foot p { flex: 1 1 260px; margin: 0; }
.pp-done { align-items: flex-start; padding: 32px 28px; }
.pp-ok { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.pp-ok svg.i { width: 28px; height: 28px; }
.pp-grid .side-card .todo { padding: 10px 0; }
@media (max-width: 1000px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }
/* Sidebar card of a visitor without an account: the sign-in button goes on its own line. */
.user.guest { flex-wrap: wrap; }
.user.guest .btn { flex: 1 1 100%; }
