:root {
  /* ValetMaster: navy + gold */
  --bg: #f3f5f9; --card: #ffffff; --ink: #0f1a2e; --muted: #5b667a; --line: #dfe4ec;
  --brand: #0f2747; --brand-ink: #ffffff; --gold: #e3b341; --accent: #e3b341; --danger: #c0392b; --ok: #1e8e3e;
  --chip-req: #fde7c2; --chip-way: #dbeafe; --chip-ready: #d6f5df; --chip-park: #eceff3; --chip-pend: #f3e8ff;
  --wa-bg: #efeae2; --wa-out: #d9fdd3; --wa-in: #ffffff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1120; --card: #121b2e; --ink: #e8edf5; --muted: #98a3b8; --line: #243149;
    --brand: #e3b341; --brand-ink: #1a1300; --chip-req: #4a3a12; --chip-way: #1c3250; --chip-ready: #183d25; --chip-park: #242a31; --chip-pend: #33244a;
    --wa-bg: #0b141a; --wa-out: #005c4b; --wa-in: #202c33; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1180px; }
h1 { font-size: 1.35rem; margin: 0 0 4px; } h2 { font-size: 1.05rem; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
button, .btn { appearance: none; border: 0; border-radius: 10px; padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button.secondary, .btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.warn { background: var(--accent); color: #1a1300; }
button.danger { background: var(--danger); }
button.block, .btn.block { width: 100%; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
label { display: block; font-size: .85rem; color: var(--muted); margin: 10px 0 4px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--chip-park); }
.chip.requested { background: var(--chip-req); } .chip.on_the_way { background: var(--chip-way); } .chip.ready { background: var(--chip-ready); }
.chip.pending { background: var(--chip-pend); } .chip.delivered { opacity: .6; }
.big { font-size: 2.4rem; font-weight: 800; letter-spacing: .06em; }
.plate { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .05em; }
.err { color: var(--danger); font-size: .9rem; min-height: 1.2em; }
.okmsg { color: var(--ok); }
.qr { display: block; width: 240px; max-width: 100%; margin: 10px auto; background: #fff; padding: 8px; border-radius: 12px; }
.steps { display: flex; gap: 4px; margin: 12px 0; }
.steps div { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps div.on { background: var(--brand); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 8px 14px; white-space: nowrap; }
.tabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.hidden { display: none !important; }
.ticket-tile { border-left: 5px solid var(--line); }
.ticket-tile.requested { border-left-color: var(--accent); } .ticket-tile.on_the_way { border-left-color: #3b82f6; }
.ticket-tile.ready { border-left-color: var(--ok); } .ticket-tile.pending { border-left-color: #8b5cf6; }
.banner { padding: 10px 14px; border-radius: 10px; background: var(--chip-req); margin-bottom: 14px; font-size: .9rem; }
/* WhatsApp simulator */
.wa { background: var(--wa-bg); border-radius: var(--radius); padding: 12px; height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.bubble { max-width: 82%; padding: 7px 10px; border-radius: 9px; white-space: pre-wrap; word-wrap: break-word; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.out { align-self: flex-start; background: var(--wa-in); }
.bubble.in { align-self: flex-end; background: var(--wa-out); }
.bubble .meta { font-size: .7rem; color: var(--muted); margin-top: 3px; }
.bubble img { width: 200px; border-radius: 6px; display: block; background: #fff; }
.bubble .wabtns { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.bubble .wabtns button { background: transparent; color: #0a7cff; border: 1px solid var(--line); padding: 6px; font-size: .85rem; }
.bubble.blocked { opacity: .55; border: 1px dashed var(--danger); }
.chatlist button { width: 100%; justify-content: flex-start; margin-bottom: 6px; }
@media (max-width: 720px) { .wa { height: 420px; } }
@media print { .noprint { display: none !important; } body { background: #fff; } }

/* Brand bar */
.brandbar { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.brandbar img { width: 36px; height: 36px; }
.brandbar .word { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brandbar .word b { color: var(--gold); font-weight: 800; }
.brandbar .tag { color: var(--muted); font-size: .8rem; margin-left: auto; }
.powered { text-align: center; color: var(--muted); font-size: .8rem; margin: 18px 0 8px; }
.powered b { color: var(--ink); }
/* Landing */
.hero { background: #0f2747; color: #fff; border-radius: 20px; padding: 28px 22px; margin-bottom: 14px; }
.hero h1 { font-size: 1.9rem; line-height: 1.15; margin: 10px 0 8px; }
.hero h1 b { color: #e3b341; }
.hero p { color: #c9d3e6; margin: 0 0 18px; }
.hero .btn { background: #e3b341; color: #1a1300; }
.hero .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.steps3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.steps3 .card { margin: 0; }
.steps3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #1a1300; font-weight: 800; margin-bottom: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.thumbs.big img { width: 100px; height: 100px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--chip-park); }
.pill.gold { background: var(--gold); color: #1a1300; }
.pill.live { background: #d6f5df; color: #0b5a23; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.live { background: #183d25; color: #9be7b0; } }
.inline-form { display: flex; gap: 6px; width: 100%; margin-top: 6px; }
.inline-form input { flex: 1; }
.map { width: 100%; height: 220px; border: 0; border-radius: 12px; margin-top: 10px; background: var(--line); }
.stars button { font-size: 1.05rem; }
dialog.photo { border: 0; border-radius: 14px; padding: 0; max-width: 94vw; background: #000; }
dialog.photo img { display: block; max-width: 94vw; max-height: 86vh; }
dialog.photo::backdrop { background: rgba(0,0,0,.7); }
