/* voyanix promo admin — the Questies token family on an internal surface.
   ink ground · Fraunces display · Raleway body · violet=primary, gold=money/live,
   teal=synced. The .offer-card block is a manual copy of the app's card styles
   (src/styles/global.css) so wizard previews render in their native skin — keep
   the two in sync when the app's card changes. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Raleway:wght@400;600;700;800&display=swap');

:root {
  --ink: #0e0c16; --surface: #181226; --violet: #9b30ff; --teal: #1a9391;
  --coral: #f26f63; --cream: #f3f0ff; --fog: #b9b3cf; --gold: #fec111;
  --line: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at top, rgba(155,48,255,0.12), transparent 55%), var(--ink); color: var(--cream); font-family: Raleway, system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }
h1 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.7rem; margin: 0.4em 0 0.2em; }
h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.15rem; margin: 1.6em 0 0.4em; }
a { color: var(--cream); }
.sub { color: var(--fog); font-size: 0.88rem; margin-top: 0; }
.sub a { color: var(--fog); }
code { font-size: 0.78rem; color: var(--fog); word-break: break-all; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.brand { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1rem; }
.brand-mark { color: var(--violet); }
.top nav { display: flex; gap: 4px; }
.top nav a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--fog); font-size: 0.85rem; font-weight: 600; }
.top nav a.is-active { color: var(--cream); background: rgba(155, 48, 255, 0.16); }
.top nav a:hover { color: var(--cream); }
.flash { max-width: 1080px; margin: 14px auto 0; padding: 9px 16px; border-radius: 12px; background: rgba(254, 193, 17, 0.1); border: 1px solid rgba(254, 193, 17, 0.35); color: var(--gold); font-size: 0.85rem; font-weight: 600; }
.foot { text-align: center; color: var(--fog); opacity: 0.7; font-size: 0.72rem; padding: 24px; }

.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.85rem; vertical-align: top; }
thead th { color: var(--fog); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-off td { opacity: 0.45; }

/* the booking calendar */
.cal th.row-surface { color: var(--fog); font-weight: 600; white-space: nowrap; }
.cal td { min-width: 108px; }
.cal .cell-open { color: var(--fog); opacity: 0.65; font-size: 0.78rem; }
.cal .cell-open span, .cal .cell-booked span { display: block; font-size: 0.68rem; opacity: 0.7; }
.cal .cell-booked { background: rgba(254, 193, 17, 0.07); border-left: 2px solid rgba(254, 193, 17, 0.5); }
.cal .cell-booked a { text-decoration: none; }
.cal .cell-booked b { color: var(--gold); }
/* an open sellable cell whose backfill pool is empty — a fired slot could come up blank */
.cal .cell-warn { color: var(--coral); opacity: 1; }
.cal .cell-warn span { color: var(--coral); opacity: 0.85; }
/* an order-reserved week (not yet a live flight) — hatched, distinct from solid booked */
.cal .cell-reserved { background-image: repeating-linear-gradient(45deg, rgba(155, 48, 255, 0.14) 0 6px, transparent 6px 12px); border-left: 2px dashed rgba(155, 48, 255, 0.6); }
.cal .cell-reserved a { text-decoration: none; }
.cal .cell-reserved b { color: var(--cream); }

.tag { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(155, 48, 255, 0.18); color: var(--cream); }
.tag-gold { background: rgba(254, 193, 17, 0.16); color: var(--gold); }

.btn { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: none; color: var(--cream); font-family: Raleway, sans-serif; font-size: 0.85rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: rgba(255, 255, 255, 0.3); }
.btn-primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 18px -6px rgba(155, 48, 255, 0.7); }
.btn-mini { padding: 4px 12px; font-size: 0.76rem; }
.btn-danger:hover { border-color: var(--coral); color: var(--coral); }
.actions { display: flex; gap: 10px; margin-top: 18px; }

.kpis { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.kpi { min-width: 150px; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--fog); font-size: 0.74rem; }

/* forms + wizard */
label { display: block; margin: 10px 0; font-size: 0.82rem; color: var(--fog); }
input, select, textarea { width: 100%; margin-top: 4px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--cream); font-family: Raleway, sans-serif; font-size: 0.9rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); }
input[readonly] { opacity: 0.6; }
label.check { display: flex; align-items: center; gap: 8px; }
label.check input { width: auto; margin: 0; }
label.check em { color: var(--fog); opacity: 0.7; font-style: normal; font-size: 0.74rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--fog); opacity: 0.85; font-size: 0.76rem; }
.errs { margin: 14px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(242, 111, 99, 0.5); background: rgba(242, 111, 99, 0.08); color: var(--cream); font-size: 0.85rem; }
.errs ul { margin: 6px 0 0 18px; padding: 0; }

.wiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .wiz-grid { grid-template-columns: 1fr; } .wiz-preview { order: -1; } }
fieldset.step { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 18px; margin: 0 0 16px; }
fieldset.step legend { font-family: Fraunces, Georgia, serif; font-weight: 600; padding: 0 8px; color: var(--cream); }
.rule-row { display: grid; grid-template-columns: 1fr 76px 1fr 34px; gap: 8px; margin: 8px 0; align-items: center; }
.rule-row button { border: none; background: none; color: var(--fog); cursor: pointer; font-size: 1rem; }
.rule-row button:hover { color: var(--coral); }

.wiz-preview { position: sticky; top: 20px; }
.preview-label { color: var(--fog); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; }
.preview-note { color: var(--fog); opacity: 0.8; font-size: 0.72rem; margin-top: 12px; }

/* the app's offer card — manual copy from src/styles/global.css; keep in sync */
.offer-card { position: relative; border-radius: 16px; padding: 16px 18px; background: var(--surface); border: 1.5px solid rgba(255, 255, 255, 0.12); }
.offer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.offer-chip { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(254, 193, 17, 0.12); color: var(--gold); }
.offer-headline { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.offer-body { color: var(--fog); font-size: 0.82rem; line-height: 1.45; margin-top: 6px; }
.offer-cta { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 700; font-size: 0.82rem; text-decoration: none; }

.cfg { max-width: 560px; }
.signin-wrap { max-width: 420px; margin: 8vh auto 0; text-align: center; }

/* orders (docs/AD-OPS.md batch 3) */
.dim { color: var(--fog); opacity: 0.7; font-size: 0.74rem; }
td .dim { display: block; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.chip { display: inline-block; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fog); white-space: nowrap; }
.chip.st-draft { color: var(--fog); }
.chip.st-sent { color: var(--teal); border-color: rgba(26, 147, 145, 0.5); }
.chip.st-live { color: var(--gold); border-color: rgba(254, 193, 17, 0.5); background: rgba(254, 193, 17, 0.08); }
.chip.st-makegood { color: var(--coral); border-color: rgba(242, 111, 99, 0.5); }
.chip.st-done { color: var(--cream); border-color: rgba(155, 48, 255, 0.5); background: rgba(155, 48, 255, 0.12); }
.chip.st-cancel { color: var(--fog); opacity: 0.6; text-decoration: line-through; }
.floor { font-size: 0.74rem; color: var(--fog); }
.floor-track { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 4px; }
.floor-fill { height: 100%; background: linear-gradient(90deg, var(--violet), var(--gold)); border-radius: 999px; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
.order-side { border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 18px; background: var(--surface); }
.actions-col { flex-direction: column; align-items: stretch; }
.actions-col form { display: block; }
.actions-col .btn { display: block; text-align: center; }
.timeline { list-style: none; padding: 0; margin: 8px 0; }
.timeline li { font-size: 0.8rem; padding: 4px 0; border-bottom: 1px solid var(--line); }

/* capacity (docs/AD-OPS.md batch 4) */
.cap-surface { margin: 22px 0; }
.cap-surface h2 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cap-avg { font-family: Raleway, sans-serif; font-size: 0.82rem; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; }
.list tr.is-current td { background: rgba(155, 48, 255, 0.06); }
td.warn { color: var(--coral); }

/* the public invoice */
.invoice { max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.inv-issuer { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; line-height: 1.4; }
.inv-meta { text-align: right; }
.inv-no { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; font-weight: 600; }
.paid-stamp { display: inline-block; margin-top: 8px; padding: 4px 14px; border: 2px solid var(--teal); color: var(--teal); border-radius: 8px; font-weight: 800; letter-spacing: 0.12em; transform: rotate(-4deg); }
.inv-billto { margin: 24px 0; font-size: 0.9rem; line-height: 1.5; }
.inv-lines { width: 100%; margin: 12px 0; border-collapse: collapse; }
.inv-lines th, .inv-lines td { border-bottom: 1px solid var(--line); padding: 12px 8px; font-size: 0.88rem; vertical-align: top; }
.inv-lines tfoot th { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; border-bottom: none; }
.inv-pay { margin: 20px 0; font-size: 0.9rem; }
.inv-foot { margin-top: 24px; font-size: 0.76rem; }
.print-bar { max-width: 640px; margin: 16px auto -8px; padding: 0 20px; box-sizing: border-box; text-align: right; }

/* print: black on white, no chrome */
@media print {
  .no-print, .top, .foot { display: none !important; }
  body, .invoice { background: #fff !important; color: #111 !important; border: none !important; }
  .invoice { max-width: 100%; padding: 0; }
  .inv-lines th, .inv-lines td, .timeline li { border-color: #ccc !important; }
  .dim, .inv-foot { color: #555 !important; }
  .paid-stamp { color: #0a7d5a !important; border-color: #0a7d5a !important; }
}
.signin-wrap #signin { display: flex; justify-content: center; margin-top: 22px; }
