:root {
  --ink: #15171a;
  --ink-2: #3a3f46;
  --muted: #6b7280;
  --line: #e4e2dc;
  --paper: #faf8f3;
  --card: #ffffff;
  --hivis: #ffc629;
  --hivis-deep: #e6a800;
  --signal: #e8452c;
  --ok: #1f8a4c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 23, 26, .06), 0 8px 24px rgba(21, 23, 26, .06);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--hivis);
  display: grid; place-items: center; font-weight: 900; font-size: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 13px 22px; border-radius: 10px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-hivis { background: var(--hivis); color: var(--ink); border-color: var(--ink); }
.btn-hivis:hover { background: var(--hivis-deep); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(21, 23, 26, .06); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 17px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 9px 16px; font-size: 15px; color: #fff; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 900; margin: 20px 0 18px; }
.hero h1 mark { background: linear-gradient(transparent 58%, var(--hivis) 58%); color: inherit; padding: 0 2px; }
.hero .lede { font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } .hero { padding-top: 48px; } }

/* Sticker mockup */
.sticker-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.dash {
  position: absolute; inset: 40px 0 0; border-radius: 28px;
  background: repeating-linear-gradient(135deg, #2a2d32 0 14px, #24272b 14px 28px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06);
}
.sticker {
  position: relative; width: 250px; background: var(--hivis); border-radius: 20px; padding: 18px;
  border: 3px solid var(--ink); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); transform: rotate(-4deg);
}
.sticker-top { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.sticker-qr { background: #fff; border-radius: 10px; padding: 12px; margin: 12px 0; border: 2px solid var(--ink); }
.sticker-qr svg { width: 100%; height: auto; }
.sticker-cta { font-weight: 900; font-size: 19px; line-height: 1.1; text-transform: uppercase; }
.sticker-sub { font-family: var(--mono); font-size: 11px; margin-top: 6px; }
.ticket-float {
  position: absolute; right: -6px; bottom: 24px; width: 170px; background: #fff; border-radius: 6px; padding: 12px 12px 14px;
  font-family: var(--mono); font-size: 10px; color: var(--ink-2); border-top: 6px solid var(--signal);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3); transform: rotate(7deg);
}
.ticket-float b { display: block; font-size: 11px; color: var(--ink); margin-bottom: 6px; letter-spacing: .06em; }
.ticket-float .row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.ticket-float .paid {
  margin-top: 8px; display: inline-block; border: 2px solid var(--ok); color: var(--ok);
  font-weight: 800; padding: 2px 8px; border-radius: 4px; transform: rotate(-6deg); letter-spacing: .1em;
}
@media (max-width: 480px) { .ticket-float { right: 0; width: 150px; } .sticker { width: 220px; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 900; margin-top: 12px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.band-dark { background: var(--ink); color: #fff; }
.band-dark .section-head p, .band-dark .kicker { color: #b9bec6; }
.band-white { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #1f2226; border: 1px solid #2e3237; border-radius: var(--radius); padding: 28px; }
.step-num { font-family: var(--mono); font-weight: 700; color: var(--hivis); font-size: 14px; }
.step h3 { font-size: 22px; margin: 14px 0 10px; }
.step p { color: #c4c8ce; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.industry .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--hivis); display: grid; place-items: center; border: 2px solid var(--ink); }
.industry .icon svg { width: 24px; height: 24px; }
.industry h3 { font-size: 18px; margin: 16px 0 6px; }
.industry p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .industries { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.feature:nth-child(odd) { border-right: 1px solid var(--line); }
.feature:nth-child(even) { padding-left: 28px; }
.feature .check { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--hivis); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); }
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { padding: 24px 0; border-right: none; }
  .feature:nth-child(odd) { border-right: none; }
}

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; }
.plan { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px; }
.plan.featured { background: var(--hivis); }
.plan h3 { font-size: 20px; }
.plan .price { font-size: 46px; font-weight: 900; margin: 14px 0 2px; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; }
.plan li { padding: 8px 0; border-bottom: 1px dashed rgba(21, 23, 26, .2); font-size: 15px; }
.plan li::before { content: "→ "; font-weight: 800; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: 12px; }

/* CTA */
.cta-band { background: var(--hivis); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; max-width: 620px; }

footer { padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; margin-left: 18px; }

/* ---------- Forms / auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .brand { color: #fff; }
.auth-side .brand-mark { background: var(--hivis); color: var(--ink); }
.auth-side h2 { font-size: 36px; font-weight: 900; max-width: 420px; }
.auth-side p { color: #b9bec6; margin-top: 14px; max-width: 420px; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 32px; font-weight: 900; }
.auth-card .sub { color: var(--ink-2); margin: 8px 0 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #ece9e1; border-radius: 10px; padding: 4px; margin-bottom: 26px; }
.tabs button { font: inherit; font-weight: 700; border: 0; background: transparent; padding: 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-side { display: none; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-weight: 500; color: var(--muted); }
.input, textarea.input {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid #d6d3cb; background: var(--card); color: var(--ink); outline: none;
}
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 198, 41, .55); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 72px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2);
  background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--paper); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 15px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fdecea; color: #9b2b1c; border: 1px solid #f5c2bb; }
.alert-ok { background: #e7f5ec; color: #17673a; border: 1px solid #b9e0c8; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Submit (driver) ---------- */
.driver { max-width: 520px; margin: 0 auto; padding: 18px 16px 48px; }
.driver-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.driver h1 { font-size: 30px; font-weight: 900; }
.driver .sub { color: var(--ink-2); margin: 6px 0 20px; }

.drop {
  display: grid; place-items: center; text-align: center; gap: 10px;
  border: 2.5px dashed var(--ink); border-radius: var(--radius); background: var(--card);
  padding: 34px 18px; cursor: pointer; margin-bottom: 18px;
}
.drop b { font-size: 19px; }
.drop span { color: var(--muted); font-size: 14px; }
.preview { position: relative; margin-bottom: 18px; display: none; }
.preview.show { display: block; }
.preview img { width: 100%; border-radius: var(--radius); border: 2px solid var(--ink); max-height: 420px; object-fit: contain; background: #111; }
.preview .retake { position: absolute; top: 10px; right: 10px; padding: 8px 12px; font-size: 14px; background: #fff; color: var(--ink); }

.done { text-align: center; padding: 40px 8px; display: none; }
.done.show { display: block; }
.done .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 22px; font-size: 42px; font-weight: 900; }
.done .ref { display: inline-block; font-family: var(--mono); font-weight: 700; background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 14px; margin: 16px 0; }
.collapse-toggle { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink-2); padding: 4px 0 14px; cursor: pointer; text-decoration: underline; }

/* ---------- Card step (login.html) ---------- */
.steps-dots { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.steps-dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--line); }
.steps-dots span.on { background: var(--ink); }
.steps-dots b { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 600; }
.card-mount { min-height: 120px; margin-bottom: 18px; }
.card-loading { display: block; color: var(--muted); font-size: 14px; padding: 20px 0; }
.fee-note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--hivis); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 14px; color: var(--ink-2); }
.fee-note b { color: var(--ink); }
.fee-note ul { margin: 8px 0 0; padding-left: 18px; }
.fee-note li { margin: 4px 0; }

/* Pricing period toggle */
.billing-toggle { display: inline-flex; background: #ece9e1; border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.billing-toggle button { font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; padding: 9px 16px; border-radius: 8px; cursor: pointer; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.billing-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.billing-toggle .save { font-family: var(--mono); font-size: 11px; background: var(--hivis); color: var(--ink); padding: 2px 6px; border-radius: 4px; }
.price-note { font-size: 14px; color: var(--muted); }

/* ---------- Submit: photo guidance ---------- */
.tips { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--hivis); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; color: var(--ink-2); }
.tips b { color: var(--ink); }
.tips ol { margin: 8px 0 0; padding-left: 20px; }
.tips li { margin: 5px 0; }
.tips strong { color: var(--ink); }

/* Corner brackets suggesting "fit the whole ticket in frame" */
.frame-guide { position: relative; width: 74px; height: 92px; display: grid; place-items: center; }
.frame-guide::before, .frame-guide::after, .frame-guide span::before, .frame-guide span::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink);
}
.frame-guide::before { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 4px; }
.frame-guide::after { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 4px; }
.frame-guide span::before { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 4px; }
.frame-guide span::after { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 4px; }
.frame-guide span {
  position: absolute; inset: 10px 14px; border-radius: 3px; background: var(--hivis);
  border-top: 6px solid var(--signal);
  background-image: repeating-linear-gradient(transparent 0 7px, rgba(21, 23, 26, .35) 7px 9px);
  background-origin: content-box; padding: 6px 7px;
}

.confirm { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px; margin-bottom: 18px; font-size: 15px; cursor: pointer; }
.confirm input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--ink); }

.retake-box { background: #fff7e0; border: 1.5px solid var(--hivis-deep); border-radius: 12px; padding: 16px; margin-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.retake-box b { color: var(--ink); font-size: 17px; }
.retake-box ul { margin: 8px 0; padding-left: 20px; }
.retake-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.retake-actions .btn { padding: 11px 18px; font-size: 15px; }

.match-line { color: var(--ink-2); margin-bottom: 16px; }

/* Submit page: English / Español switch */
.lang-toggle { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.lang-toggle:hover { background: var(--hivis); }

/* Submit page: new-customer pitch when the plate isn't registered */
.done .big-check.warn { background: var(--hivis); color: var(--ink); border: 3px solid var(--ink); }
.pitch { text-align: left; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px 20px; margin: 8px 0 22px; }
.pitch b { display: block; font-size: 20px; font-weight: 900; line-height: 1.2; }
.pitch p { color: #c4c8ce; margin: 8px 0 18px; }
.pitch .btn { margin-top: 10px; }
.pitch #pitch-share { background: transparent; color: #fff; border-color: #fff; }
.pitch .pitch-note { color: var(--hivis); font-size: 14px; margin: 10px 0 0; }
.pitch .pitch-learn { display: inline-block; margin-top: 14px; color: #fff; font-weight: 700; font-size: 15px; }

/* Submit page: typed-details fallback */
.typed { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 18px 16px 8px; margin-bottom: 18px; }
.typed > b { font-size: 18px; }
.typed > p { color: var(--ink-2); margin: 4px 0 14px; }
.typed-row { display: grid; grid-template-columns: 1fr 84px; gap: 10px; }
.typed .collapse-toggle { display: block; margin: 12px auto 4px; }

/* Brand mark (inline SVG logo) */
.brand-mark { background: none !important; }
.brand-mark svg { width: 100%; height: 100%; display: block; }

/* Login: forgot-password link under the password field */
.forgot-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.forgot-link:hover { color: var(--ink); }

/* ---------- Dashboard ---------- */
.dash-body { background: var(--paper); }
.dash-main { padding: 28px 20px 64px; }
.dash-panel { padding: 0; } /* landing styles pad every <section> */
.dash-company { font-weight: 700; color: var(--ink-2); }
.dash-logout { padding: 8px 14px; font-size: 14px; color: var(--ink) !important; }
.setup { background: var(--hivis); border: 2px solid var(--ink); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.setup b { font-size: 17px; }
.setup ol { margin: 8px 0 0; padding-left: 22px; }
.setup li { margin: 4px 0; }
.dash-tabs { display: flex; gap: 4px; background: #ece9e1; border-radius: 12px; padding: 4px; margin-bottom: 20px; overflow-x: auto; }
.dash-tabs button { flex: 1; font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink-2); padding: 10px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.dash-tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.dash-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.dash-card-head h2 { font-size: 20px; font-weight: 800; }
.muted { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.empty { color: var(--muted); padding: 18px 0 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat span { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat b { font-size: 26px; font-weight: 900; }
.table-wrap { overflow-x: auto; }
.ticket-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ticket-table th { text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ticket-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ticket-table tr:last-child td { border-bottom: 0; }
.sub-line { display: block; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill-pay { background: #fff1c9; color: #7a5600; }
.pill-paid { background: #e7f5ec; color: #17673a; }
.pill-fail { background: #fdecea; color: #9b2b1c; }
.pill-wait { background: #ece9e1; color: var(--ink-2); }
.link-btn { font: inherit; font-weight: 700; font-size: 14px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-btn.danger { color: #9b2b1c; }
.cell-action { text-align: right; }
.plate-form { display: grid; grid-template-columns: 1.2fr 84px 1.2fr auto; gap: 10px; align-items: end; }
.plate-form .field, .sticker-form .field { margin-bottom: 0; }
.plate-list, .request-list { list-style: none; padding: 0; margin: 0; }
.plate-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plate-list li:last-child { border-bottom: 0; }
.request-list li { color: var(--muted); font-size: 14px; padding: 6px 0; }
.card-line, .plan-line { font-weight: 700; font-size: 17px; margin: 4px 0 6px; }
.period-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.period-choice label { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.period-choice label:has(input:checked) { border-color: var(--ink); background: #fffbea; }
.period-choice input { margin-top: 3px; accent-color: var(--ink); }
.period-choice b { display: block; color: var(--ink); font-size: 16px; }
.plan-estimate { font-weight: 800; margin: 4px 0 8px; }
.sticker-form { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px 12px; align-items: end; margin-bottom: 12px; }
.sticker-form .s-wide { grid-column: span 2; }
.sticker-form .btn { grid-column: 1 / -1; justify-self: start; }
.narrow-form { max-width: 420px; }

/* ---------- Admin ---------- */
.admin-signin { max-width: 460px; margin: 24px auto; }
.admin-code { font-family: var(--mono); font-size: 24px; letter-spacing: .3em; }
.admin-stats { grid-template-columns: repeat(4, 1fr); }
.admin-filters { display: flex; gap: 10px; margin-bottom: 12px; }
.admin-filters select { width: auto; flex: 0 0 auto; }
.admin-company { border-top: 1px solid var(--line); }
.admin-company summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; }
.admin-company summary::-webkit-details-marker { display: none; }
.admin-company summary:hover .admin-company-name { text-decoration: underline; }
.admin-company-name { font-weight: 800; }
.admin-company-name::before { content: "▸"; display: inline-block; width: 1em; color: var(--muted); }
.admin-company[open] .admin-company-name::before { content: "▾"; }
.admin-company-meta { display: grid; grid-template-columns: auto auto; column-gap: 14px; text-align: right; font-size: 14px; font-weight: 600; flex-shrink: 0; }
.admin-company-meta .sub-line { grid-column: 1 / -1; }
.admin-company[open] { padding-bottom: 14px; }
.admin-vehicles { margin-bottom: 8px; }
.photo-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.photo-dialog::backdrop { background: rgba(21, 23, 26, .6); }
.photo-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.photo-dialog-head h2 { font-size: 20px; font-weight: 800; font-family: var(--mono); }
.photo-dialog img { display: block; width: 100%; max-height: calc(100vh - 220px); object-fit: contain; background: var(--paper); border-radius: 10px; cursor: zoom-in; }
.photo-dialog .sub-line { margin-top: 8px; }
.admin-head-actions { display: flex; align-items: baseline; gap: 12px; }
.admin-small-btn { padding: 8px 14px; font-size: 14px; }
.tab-count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--signal); color: #fff; font-size: 12px; font-weight: 800; }
.admin-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-top: 4px; }
.admin-note { font-size: 14px; color: #7a5600; background: #fff1c9; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }
.btn-danger { background: #9b2b1c; border-color: #9b2b1c; color: #fff; }
.btn-danger:hover { background: #7f2216; }
.edit-dialog { width: min(640px, calc(100vw - 32px)); }
.edit-message { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.edit-fields .wide { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .stat b { font-size: 20px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-filters { flex-direction: column; }
  .admin-filters select { width: 100%; }
  .admin-company summary { flex-direction: column; gap: 6px; }
  .admin-company-meta { text-align: left; justify-content: start; }
  .edit-fields { grid-template-columns: 1fr; }
  .admin-head-actions { flex-direction: column-reverse; align-items: flex-end; gap: 4px; }
  .plate-form { grid-template-columns: 1fr 84px; }
  .plate-form .btn { grid-column: 1 / -1; }
  .period-choice { grid-template-columns: 1fr; }
  .sticker-form { grid-template-columns: 1fr 84px; }
  .sticker-form .s-wide, .sticker-form .field:nth-child(2) { grid-column: 1 / -1; }
  /* Ticket table becomes stacked cards */
  .ticket-table thead { display: none; }
  .ticket-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  /* label in column 1, value lines stacked and right-aligned in column 2 */
  .ticket-table td { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .ticket-table td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 3; text-align: left; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .ticket-table td > * { grid-column: 2; justify-self: end; }
  .ticket-table .cell-action { display: block; }
  .ticket-table .cell-action::before { content: none; }
}

/* Logo on dark panels: the mark's own dark square needs an outline to read */
.auth-side .brand-mark, .pitch .brand-mark { border-radius: 8px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .28); }

/* ---------- Service Agreement checkbox (claim, sign-up, dashboard) ---------- */
.terms-box { background: var(--card); border: 1.5px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.terms-box > b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.terms-box ul, .terms-prompt ul { margin: 6px 0 12px; padding-left: 20px; }
.terms-box li, .terms-prompt li { margin: 5px 0; }
.terms-prompt p { margin: 6px 0 4px; }
.terms-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.terms-check input { flex: none; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); }
.code-input { font-family: var(--mono); font-size: 26px; letter-spacing: .4em; text-align: center; }
