/* ============================================================
   iSpeed — public UI stylesheet (vanilla CSS, no build step)
   Design tokens first, then base, components, screens, responsive.
   ============================================================ */

:root {
  /* Brand palette */
  --c-primary: #0B1F3A;      /* dark navy — headers, navbar */
  --c-accent: #FF6B2C;       /* orange — buttons, highlights */
  --c-accent-dark: #E5551A;
  --c-accent-soft: #FFF1EA;
  --c-bg: #F5F7FA;           /* page background */
  --c-surface: #FFFFFF;      /* cards */
  --c-text: #17233B;
  --c-muted: #5B6B84;
  --c-border: #E3E8F0;
  --c-success: #16A34A;
  --c-success-soft: #EAF7EF;
  --c-warning: #D97706;
  --c-warning-soft: #FDF3E3;
  --c-danger: #DC2626;
  --c-danger-soft: #FDECEC;
  --c-info: #2563EB;
  --c-info-soft: #EAF0FE;
  --c-purple: #7C3AED;
  --c-purple-soft: #F1EAFE;
  --c-gray: #64748B;
  --c-gray-soft: #EEF1F5;

  /* Spacing scale: 4 / 8 / 12 / 16 / 24 / 32 */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;

  /* Radii */
  --r-card: 12px;
  --r-btn: 10px;
  --r-input: 10px;
  --r-badge: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(11, 31, 58, 0.06), 0 1px 3px rgba(11, 31, 58, 0.08);
  --sh-2: 0 4px 14px rgba(11, 31, 58, 0.10);
  --sh-bar: 0 -2px 12px rgba(11, 31, 58, 0.08);

  /* Layout */
  --col: 480px;
  --tabbar-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: 1.25; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p  { margin: 0 0 var(--sp-3); }
a  { color: var(--c-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }

.small { font-size: 13px; }
.muted { color: var(--c-muted); }
.center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.stack > * + * { margin-top: var(--sp-3); }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::placeholder { color: #9AA7BC; }

/* ---------- app shell ---------- */
.screen {
  max-width: var(--col);
  margin: 0 auto;
  padding: var(--sp-4);
  padding-bottom: calc(var(--sp-5) + env(safe-area-inset-bottom));
}
body.has-tabbar .screen { padding-bottom: calc(var(--tabbar-h) + var(--sp-5) + env(safe-area-inset-bottom)); }

.foot {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--sp-4) var(--sp-5);
  color: var(--c-muted);
  font-size: 13px;
}
body.has-tabbar .foot { padding-bottom: calc(var(--tabbar-h) + var(--sp-5) + env(safe-area-inset-bottom)); }
.foot p { margin: 0 0 var(--sp-1); }

/* Top bar */
.topbar {
  background: var(--c-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--sh-1);
}
.topbar-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; display: block; }
.brand b { color: var(--c-accent); font-weight: 800; }
.brand .tagline { display: none; }

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(255, 255, 255, 0.12);
  color: #CFE0FF;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-badge);
  white-space: nowrap;
}

/* Bottom tab bar */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--col);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: var(--sh-bar);
  display: flex;
  z-index: 40;
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  padding-top: var(--sp-1);
}
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a:hover { text-decoration: none; color: var(--c-primary); }
.tabbar a.active { color: var(--c-accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--c-accent-dark); }

.btn-secondary {
  background: var(--c-surface);
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--c-primary); }

.btn-ghost { background: transparent; color: var(--c-primary); }
.btn-ghost:hover:not(:disabled) { background: rgba(11, 31, 58, 0.06); }

.btn-danger { background: var(--c-danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-danger-soft { background: var(--c-danger-soft); color: var(--c-danger); }
.btn-danger-soft:hover:not(:disabled) { background: #FBDBDB; }

.btn-sm { font-size: 13px; padding: 8px 12px; }
.btn-lg { font-size: 17px; padding: 15px 24px; width: 100%; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: none;
  border-radius: var(--r-btn);
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn .ic { width: 20px; height: 20px; }

/* ---------- icons ---------- */
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.ic-lg { width: 24px; height: 24px; }
.ic-xl { width: 34px; height: 34px; }

/* ---------- cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-1);
  padding: var(--sp-4);
}
.card + .card { margin-top: var(--sp-3); }
.card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin-bottom: var(--sp-3);
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-badge);
  white-space: nowrap;
}
.badge .ic { width: 13px; height: 13px; }
.badge-posted    { background: var(--c-info-soft);   color: var(--c-info); }
.badge-accepted  { background: var(--c-accent-soft); color: var(--c-accent-dark); }
.badge-progress  { background: var(--c-purple-soft); color: var(--c-purple); }
.badge-completed { background: var(--c-success-soft); color: var(--c-success); }
.badge-cancelled { background: var(--c-gray-soft);   color: var(--c-gray); }
.badge-pending   { background: var(--c-warning-soft); color: var(--c-warning); }
.badge-verified  { background: var(--c-success-soft); color: var(--c-success); }
.badge-rejected  { background: var(--c-danger-soft);  color: var(--c-danger); }

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}
.trust-pill .ic { color: var(--c-success); }

/* ---------- forms ---------- */
.field { margin-bottom: var(--sp-4); }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .req { color: var(--c-danger); font-weight: 700; }
.field .hint { font-size: 12.5px; color: var(--c-muted); margin: 4px 0 0; }

.input, textarea.input, select.input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* ≥16px prevents iOS zoom */
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  padding: 11px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6B84' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18);
}
.input.invalid { border-color: var(--c-danger); }
.input[readonly] { background: var(--c-gray-soft); color: var(--c-muted); }

.field-error {
  display: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-danger);
  margin: 5px 0 0;
}
.field-error.show { display: block; }

.form-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }

.check-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-input);
  background: var(--c-surface);
  cursor: pointer;
  font-weight: 500;
}
.check-row input { width: 18px; height: 18px; accent-color: var(--c-accent); }

/* Visual grid pickers (size class, vehicles, role) */
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); }
.pick-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: var(--sp-3) var(--sp-1);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-btn);
  background: var(--c-surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pick .ic { width: 26px; height: 26px; color: var(--c-muted); }
.pick:hover { border-color: var(--c-primary); }
.pick.on {
  border-color: var(--c-accent);
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
}
.pick.on .ic { color: var(--c-accent-dark); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick small { font-weight: 500; color: var(--c-muted); font-size: 11px; }

/* Role cards (register step 1) */
.role-card {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-card);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  width: 100%;
  font: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.role-card:hover { border-color: var(--c-accent); box-shadow: var(--sh-2); text-decoration: none; }
.role-card .ic-wrap {
  flex: none;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-btn);
  background: var(--c-accent-soft);
  color: var(--c-accent-dark);
}
.role-card .ic-wrap .ic { width: 26px; height: 26px; }
.role-card h3 { margin: 0 0 2px; }
.role-card p { margin: 0; font-size: 13.5px; color: var(--c-muted); }

/* ---------- banners ---------- */
.banner {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-card);
  font-size: 14px;
  margin-bottom: var(--sp-4);
}
.banner .ic { flex: none; margin-top: 2px; }
.banner-info    { background: var(--c-info-soft);    color: #1E40AF; }
.banner-info .ic { color: var(--c-info); }
.banner-success { background: var(--c-success-soft); color: #14532D; }
.banner-success .ic { color: var(--c-success); }
.banner-warning { background: var(--c-warning-soft); color: #7C4A03; }
.banner-warning .ic { color: var(--c-warning); }
.banner-danger  { background: var(--c-danger-soft);  color: #7F1D1D; }
.banner-danger .ic { color: var(--c-danger); }
.banner p { margin: 0; }
.banner strong { font-weight: 700; }

/* ---------- route display (pickup -> dropoff) ---------- */
.route { display: flex; flex-direction: column; }
.route-stop { display: flex; align-items: flex-start; gap: var(--sp-2); }
.route-stop .dot {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  border: 2.5px solid var(--c-accent);
  background: var(--c-surface);
}
.route-stop .dot.b { border-color: var(--c-success); }
.route-line { width: 2px; height: 14px; background: var(--c-border); margin-left: 4px; }
.route-stop span.txt { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- job cards ---------- */
.job-card {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}
.job-card:hover { text-decoration: none; box-shadow: var(--sh-2); border-color: #CBD5E1; }
.jc-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.jc-price { font-size: 17px; font-weight: 800; color: var(--c-primary); white-space: nowrap; }
.jc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-3);
  font-size: 13px;
  color: var(--c-muted);
}
.jc-meta .ic { width: 14px; height: 14px; vertical-align: -2px; }
.jc-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }

.size-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--c-gray-soft);
  color: var(--c-gray);
  border-radius: var(--r-badge);
  padding: 2px 9px;
}
.size-chip .ic { width: 13px; height: 13px; }

/* Filter chips */
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.chip {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-badge);
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip.on { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- stars ---------- */
.stars { display: inline-flex; gap: 2px; color: #F59E0B; }
.stars .ic { width: 17px; height: 17px; }
.stars .off { color: #D6DEE9; }
.stars-input .star {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: #CBD5E1;
  border-radius: 4px;
}
.stars-input .star.on { color: #F59E0B; }
.stars-input .star:hover { transform: scale(1.12); }
.stars-input .star .ic { width: 30px; height: 30px; display: block; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex;
  gap: var(--sp-3);
  position: relative;
  padding-bottom: var(--sp-4);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 2px;
  width: 2px;
  background: var(--c-border);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-gray-soft);
  color: var(--c-muted);
  z-index: 1;
}
.tl-dot .ic { width: 13px; height: 13px; }
.timeline li.done .tl-dot { background: var(--c-success); color: #fff; }
.timeline li.now .tl-dot { background: var(--c-accent); color: #fff; box-shadow: 0 0 0 4px var(--c-accent-soft); }
.tl-body strong { display: block; font-size: 15px; }
.timeline li:not(.done):not(.now) .tl-body strong { color: var(--c-muted); font-weight: 500; }
.tl-body .small { margin: 1px 0 0; }

/* ---------- contact card ---------- */
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--c-accent-soft);
  border: 1px solid #FFD9C4;
  border-radius: var(--r-card);
  padding: var(--sp-3) var(--sp-4);
}
.contact-card .av {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
}
.contact-card .cc-info { flex: 1; min-width: 0; }
.contact-card .cc-name { font-weight: 700; font-size: 15px; }
.contact-card .cc-sub { font-size: 13px; color: var(--c-muted); }
.contact-card a.tel { font-weight: 700; }

/* ---------- empty states ---------- */
.empty {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--c-muted);
}
.empty .ic-xl { width: 44px; height: 44px; color: #B9C4D6; margin-bottom: var(--sp-3); }
.empty h3 { color: var(--c-text); }
.empty p { font-size: 14px; max-width: 300px; margin: 0 auto var(--sp-4); }

/* ---------- toasts ---------- */
.toasts {
  position: fixed;
  top: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--sp-4));
  max-width: calc(var(--col) - var(--sp-4));
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--c-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
  animation: toast-in 0.25s ease;
}
.toast .ic { flex: none; }
.toast-success .ic { color: #4ADE80; }
.toast-error .ic { color: #FCA5A5; }
.toast.leaving { opacity: 0; transform: translateY(-6px); transition: all 0.25s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 90;
  padding: var(--sp-3);
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--c-surface);
  border-radius: 16px 16px var(--r-card) var(--r-card);
  box-shadow: var(--sh-2);
  width: 100%;
  max-width: 440px;
  max-height: 85vh;
  overflow: auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  animation: sheet-up 0.2s ease;
}
@keyframes sheet-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal h3 { padding-right: var(--sp-5); }
.modal-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.modal-actions .btn { flex: 1; }
.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  color: var(--c-muted);
}
.modal-wrap { position: relative; }

/* ---------- skeleton ---------- */
.skeleton { pointer-events: none; }
.sk-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #E9EEF4 25%, #F4F7FA 50%, #E9EEF4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  margin-bottom: var(--sp-2);
}
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }
.sk-line.w30 { width: 30%; }
.sk-tall { height: 90px; border-radius: var(--r-card); }
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ---------- landing ---------- */
.hero {
  background: linear-gradient(160deg, var(--c-primary) 0%, #12305C 100%);
  color: #fff;
  border-radius: 16px;
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  box-shadow: var(--sh-2);
}
.hero .logo-mark { width: 64px; height: 64px; margin: 0 auto var(--sp-3); display: block; }
.hero h1 { font-size: 28px; color: #fff; }
.hero .sub { color: #C6D4EA; font-size: 15.5px; max-width: 340px; margin: 0 auto var(--sp-5); }
.hero .dual { display: flex; flex-direction: column; gap: var(--sp-2); }
.hero .btn-primary { background: var(--c-accent); }
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-secondary:hover:not(:disabled) { border-color: #fff; background: rgba(255,255,255,0.18); }
.hero .test-note {
  margin-top: var(--sp-4);
  font-size: 12px;
  color: #8FA6C9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(255,255,255,0.3);
  border-radius: var(--r-badge);
  padding: 4px 12px;
}

.section-title { text-align: center; margin: var(--sp-6) 0 var(--sp-4); }
.steps { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.step-card { text-align: center; padding: var(--sp-4); }
.step-num {
  width: 30px; height: 30px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card .ic { width: 30px; height: 30px; color: var(--c-accent-dark); margin-bottom: var(--sp-2); }
.step-card p { font-size: 13.5px; color: var(--c-muted); margin: 0; }

.trust-list { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---------- docs upload ---------- */
.doc-field { border: 1.5px dashed var(--c-border); box-shadow: none; }
.doc-field .doc-head { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.doc-field .doc-head .ic { color: var(--c-muted); margin-top: 3px; }
.doc-field .req {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-danger);
  background: var(--c-danger-soft);
  padding: 1px 8px;
  border-radius: var(--r-badge);
  margin-left: 6px;
}
.doc-field .opt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-muted);
  background: var(--c-gray-soft);
  padding: 1px 8px;
  border-radius: var(--r-badge);
  margin-left: 6px;
}
.doc-status { margin: var(--sp-2) 0 0; font-weight: 600; }
.doc-status.ok { color: var(--c-success); }

/* ---------- lock screen (unverified supplier) ---------- */
.lock-screen { text-align: center; padding: var(--sp-5) var(--sp-4); }
.lock-screen .ic-xl { width: 46px; height: 46px; color: var(--c-warning); margin-bottom: var(--sp-3); }

/* ---------- admin ---------- */
.tabs {
  display: flex;
  gap: var(--sp-1);
  background: var(--c-gray-soft);
  border-radius: var(--r-btn);
  padding: 4px;
  margin-bottom: var(--sp-4);
}
.tabs button {
  flex: 1;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
}
.tabs button.on { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--sh-1); }

.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.kpi { padding: var(--sp-4) var(--sp-3); text-align: center; }
.kpi .kpi-val { font-size: 24px; font-weight: 800; color: var(--c-primary); letter-spacing: -0.02em; }
.kpi .kpi-label { font-size: 12px; color: var(--c-muted); font-weight: 600; margin-top: 2px; }
.kpi.accent .kpi-val { color: var(--c-accent-dark); }

 dl.info-list { margin: 0; }
.info-list dt { font-size: 12px; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--sp-3); }
.info-list dd { margin: 2px 0 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- misc ---------- */
.page-head { margin-bottom: var(--sp-4); }
.page-head h1 { margin-bottom: 4px; }
.page-head .lead { color: var(--c-muted); font-size: 14.5px; margin: 0; }

.price-big { font-size: 26px; font-weight: 800; color: var(--c-primary); letter-spacing: -0.02em; }

.divider { height: 1px; background: var(--c-border); margin: var(--sp-4) 0; border: none; }

.avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-gray-soft);
  color: var(--c-primary);
  font-weight: 800;
  font-size: 14px;
  flex: none;
}

.rating-item { padding: var(--sp-3) var(--sp-4); }
.rating-item .ri-head { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: 4px; }
.rating-item .ri-name { font-weight: 700; font-size: 14px; }
.rating-item p { margin: 0; font-size: 14px; }
.rating-item .small { margin-top: 4px; }

/* ---------- responsive ---------- */
@media (min-width: 420px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero .dual { flex-direction: row; justify-content: center; }
  .hero .dual .btn { flex: 1; }
}
@media (max-width: 380px) {
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 23px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .btn:active { transform: none; }
}
