/* রিকশা বন্ধু — design system */

:root {
  --cream: #fff7e8;
  --paper: #fffdf6;
  --ink: #17211c;
  --ink-soft: #3c463f;
  --muted: #6f6a5c;
  --line: #eadfc9;
  --line-strong: #dccbaa;
  --green: #0e5c46;
  --green-2: #14795b;
  --green-soft: #e2f0e8;
  --green-glow: rgba(20, 121, 91, 0.18);
  --red: #d7263d;
  --red-soft: #fde9eb;
  --yellow: #f4b81d;
  --yellow-soft: #fff2cc;
  --blue: #2360a8;
  --blue-soft: #e7f0fb;
  --shadow-sm: 0 2px 6px rgba(70, 52, 20, 0.06);
  --shadow: 0 14px 34px -18px rgba(58, 42, 12, 0.35);
  --shadow-lg: 0 28px 60px -30px rgba(40, 30, 8, 0.45);
  --radius: 18px;
  --radius-lg: 26px;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', system-ui, sans-serif;
  --display: 'Baloo Da 2', 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', system-ui, sans-serif;
  --tabbar-h: 66px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(244, 184, 29, 0.16), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(215, 38, 61, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(14, 92, 70, 0.07), transparent 40%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-narrow { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.tiny { font-size: 0.78rem; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 247, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(234, 223, 201, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--green);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(244, 184, 29, 0.55);
  flex: none;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand small {
  display: block;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-top: 1px;
}

.nav-links {
  display: none;
  gap: 0.3rem;
  margin-inline-start: auto;
  align-items: center;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { background: rgba(14, 92, 70, 0.07); text-decoration: none; }
.nav-links a.active { background: var(--green-soft); color: var(--green); font-weight: 600; }
.topbar .btn { margin-inline-start: auto; }
.nav-links + .btn { margin-inline-start: 0; }

@media (min-width: 880px) {
  .nav-links { display: flex; margin-inline-start: auto; }
  .topbar .btn { margin-inline-start: 0; }
}

/* -------------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary {
  background: var(--green);
  color: #fffaf0;
  box-shadow: 0 12px 24px -14px rgba(14, 92, 70, 0.8);
}
.btn-primary:hover { background: var(--green-2); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(215, 38, 61, 0.75);
}
.btn-yellow { background: var(--yellow); color: #241c00; }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.7); border-color: var(--green); color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-sm { min-height: 38px; padding: 0.4rem 0.9rem; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-icon { width: 46px; padding: 0; border-radius: 14px; }

/* --------------------------------------------------------------------- layout */

main { padding-bottom: 2rem; }

.section { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head p { margin: 0.2rem 0 0; color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-2); }

/* ----------------------------------------------------------------------- hero */

.hero { padding-block: clamp(1.4rem, 4vw, 3.2rem) clamp(2rem, 4vw, 3rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; }
}

.hero h1 { margin-bottom: 0.6rem; }
.hero h1 .hl {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.06em;
  height: 0.32em;
  background: var(--yellow);
  border-radius: 999px;
  opacity: 0.5;
  z-index: -1;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--ink-soft); max-width: 34rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px dashed var(--line-strong);
}
.hero-stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--green);
}
.hero-stat span { font-size: 0.82rem; color: var(--muted); }

.hero-art {
  position: relative;
  isolation: isolate;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 6% 4% 2% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 184, 29, 0.4), rgba(244, 184, 29, 0) 68%);
  z-index: -1;
}
.hero-art img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 30px 40px rgba(80, 55, 10, 0.12));
}
.hero-art .art-note {
  position: absolute;
  left: 4%;
  bottom: 5%;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 82%;
}
.hero-art .art-note .dot-live { flex: none; }

@media (min-width: 900px) {
  .hero-art { padding-block: 1.2rem; }
}

/* ---------------------------------------------------------------------- cards */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: clamp(1.1rem, 2.4vw, 1.7rem); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------- search panel */

.search-panel {
  padding: clamp(1rem, 2.4vw, 1.5rem);
  position: relative;
  z-index: 5;
}
.search-tabs {
  display: flex;
  gap: 0.3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.28rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.search-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  background: transparent;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.search-tabs button svg { width: 18px; height: 18px; }
.search-tabs button[aria-selected="true"] {
  background: var(--paper);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 760px) {
  .search-row.area-row { grid-template-columns: 1fr 1fr 1.2fr auto; align-items: end; }
}

.gps-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
}
.gps-box .gps-text { flex: 1; min-width: 190px; }
.gps-box strong { display: block; }
.gps-box small { color: var(--muted); }

.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}
.filters-row .label { font-size: 0.82rem; color: var(--muted); margin-inline-end: 0.2rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.chip[aria-pressed="true"] {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
  font-weight: 600;
}
.chip-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 36px;
}
.chip-check input { width: 17px; height: 17px; accent-color: var(--green); }

.radius-select {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.radius-select select { min-height: 36px; padding: 0.2rem 1.9rem 0.2rem 0.6rem; }

/* -------------------------------------------------------------------- results */

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.6rem 0 0.9rem;
}
.results-head h2 { margin: 0; font-size: 1.35rem; }
.results-sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.results-tools { display: flex; gap: 0.5rem; align-items: center; }

.driver-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
@media (min-width: 700px) { .driver-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .driver-grid { grid-template-columns: repeat(3, 1fr); } }

.driver-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.driver-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.driver-card .dc-top { display: flex; gap: 0.75rem; align-items: flex-start; }

.avatar {
  width: 48px; height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green), var(--green-2));
  color: #fff8e9;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 2px rgba(244, 184, 29, 0.35);
  text-transform: none;
}
.avatar.red { background: linear-gradient(145deg, #a81b2e, var(--red)); }
.avatar.yellow { background: linear-gradient(145deg, #c98f00, var(--yellow)); color: #241c00; }

.dc-main { flex: 1; min-width: 0; }
.dc-name {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.dc-meta {
  color: var(--muted);
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.12rem;
}
.dc-meta svg { width: 14px; height: 14px; flex: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  white-space: nowrap;
  line-height: 1.6;
}
.badge svg { width: 12px; height: 12px; }
.badge.yellow { background: var(--yellow-soft); color: #7a5800; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.gray { background: #f1ece0; color: var(--muted); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }

.dc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.tag {
  font-size: 0.74rem;
  padding: 0.12rem 0.55rem;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.tag svg { width: 12px; height: 12px; }

.dc-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.7rem;
  margin-top: auto;
}
.dc-facts { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.dc-distance {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--green);
}
.dc-distance svg { width: 14px; height: 14px; }
.dc-seen { font-size: 0.73rem; color: var(--muted); }
.dc-seen .dot-live { margin-inline-end: 0.25rem; }

.dc-action { display: flex; flex-direction: column; gap: 0.35rem; align-items: stretch; }
.dc-action .btn { min-height: 42px; padding-inline: 0.95rem; font-size: 0.9rem; }
.phone-reveal {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--green-soft);
  border-radius: 10px;
  padding: 0.25rem 0.3rem 0.25rem 0.65rem;
}
.phone-reveal a { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--green); }
.phone-reveal button { border: 0; background: transparent; color: var(--green); cursor: pointer; padding: 0.3rem; display: grid; place-items: center; border-radius: 8px; }
.phone-reveal button:hover { background: rgba(14, 92, 70, 0.1); }
.phone-reveal svg { width: 16px; height: 16px; }

.dot-live {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 3px var(--green-glow);
  animation: pulse 2s infinite;
  vertical-align: middle;
}
.dot-live.off { background: #b3ab99; box-shadow: 0 0 0 3px rgba(140, 130, 110, 0.12); animation: none; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 121, 91, 0.35); }
  70% { box-shadow: 0 0 0 7px rgba(20, 121, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 121, 91, 0); }
}

/* ------------------------------------------------------------------- skeletons */

.skeleton-card {
  height: 168px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #f7f0e0 30%, #fffaf0 50%, #f7f0e0 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.empty-state {
  text-align: center;
  padding: 2.4rem 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 246, 0.7);
}
.empty-state svg { width: 62px; height: 62px; color: var(--line-strong); margin: 0 auto 0.8rem; }
.empty-state h3 { margin-bottom: 0.35rem; }
.empty-state p { color: var(--muted); max-width: 30rem; margin-inline: auto; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.1rem; }

/* ------------------------------------------------------------------------ map */

.map-shell {
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef1e6;
  box-shadow: var(--shadow);
}
#map { height: min(58vh, 480px); width: 100%; background: #eef1e6; }
.map-note {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.leaflet-popup-content { font-family: var(--font); margin: 0.7rem 0.9rem; }
.leaflet-popup-content b { font-family: var(--display); font-size: 1rem; }
.leaflet-popup-content .popup-area { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.4rem; }
.leaflet-popup-content .btn { min-height: 34px; padding: 0.25rem 0.7rem; font-size: 0.82rem; }
.leaflet-container { font-family: var(--font); }

/* ------------------------------------------------------------------- how / info */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  counter-reset: step;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.step-num {
  counter-increment: step;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--yellow-soft);
  color: #7a5800;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.step-num::before { content: counter(step, bengali); }
.step h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.safety-band {
  background: linear-gradient(120deg, #0c4e3b, #12694f);
  color: #f2f7ef;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.safety-band::after {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 26px solid rgba(244, 184, 29, 0.16);
  top: -90px; right: -70px;
}
.safety-band h2 { color: #fff; }
.safety-band p { color: rgba(242, 247, 239, 0.82); margin-bottom: 0; }
.safety-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; position: relative; z-index: 1; }
@media (min-width: 800px) { .safety-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.safety-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.safety-list li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; }
.safety-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--yellow); }

.cta-band {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  left: -40px; bottom: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: var(--yellow-soft);
  z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 0.3rem; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (min-width: 820px) {
  .cta-band { grid-template-columns: 1fr auto; }
}

/* --------------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2.2rem 0 calc(2rem + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-links { display: grid; gap: 0.45rem; align-content: start; }
.footer-links a { color: var(--ink-soft); }
.footer-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); font-size: 0.78rem; }

/* --------------------------------------------------------------------- tabbar */

.tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: rgba(255, 253, 246, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px -18px rgba(50, 35, 10, 0.4);
}
.tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-height: var(--tabbar-h);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--green); font-weight: 700; }
.tabbar a[aria-current="page"] svg { filter: drop-shadow(0 2px 4px rgba(14, 92, 70, 0.25)); }
@media (min-width: 880px) { .tabbar { display: none; } }
@media (max-width: 879px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 2rem; }
}

/* ---------------------------------------------------------------------- forms */

.field { margin-bottom: 1rem; }
.field label, .field-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.field .hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.field-row { display: grid; gap: 0.8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
  .field-row.three { grid-template-columns: repeat(3, 1fr); }
}

input[type="text"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: #fffefa;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { min-height: 92px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(20, 121, 91, 0.13);
}
input::placeholder, textarea::placeholder { color: #a49a86; }
input:disabled, select:disabled { background: #f4efe3; color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.1); }

.otp-row { display: flex; gap: 0.55rem; align-items: stretch; }
.otp-row input { flex: 1; min-width: 0; letter-spacing: 0.18em; font-weight: 600; }
.otp-row .btn { flex: 0 0 auto; white-space: nowrap; min-height: 48px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-inline-end: 2.4rem; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.choice-grid { display: grid; gap: 0.6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .choice-grid.two { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  cursor: pointer;
  background: #fffefa;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--green-2); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .choice-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--cream);
  display: grid; place-items: center;
  flex: none;
  color: var(--green);
}
.choice .choice-icon svg { width: 20px; height: 20px; }
.choice b { display: block; font-size: 0.94rem; }
.choice span { display: block; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.choice:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(20, 121, 91, 0.08);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  cursor: pointer;
  line-height: 1.55;
}
.check input { width: 19px; height: 19px; margin-top: 0.15rem; accent-color: var(--green); flex: none; }

.form-error {
  display: none;
  background: var(--red-soft);
  border: 1px solid rgba(215, 38, 61, 0.3);
  color: #8c1424;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.form-error.show { display: block; }
.form-success {
  background: var(--green-soft);
  border: 1px solid rgba(14, 92, 70, 0.25);
  color: var(--green);
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.page-head { padding-block: clamp(1.6rem, 4vw, 2.6rem) 1.2rem; }
.page-head p { color: var(--muted); max-width: 42rem; }

.form-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

/* ---------------------------------------------------------------- driver page */

.auth-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding-block: 2rem;
}
.auth-card { width: min(440px, 100%); padding: clamp(1.4rem, 3vw, 2rem); }
.auth-card .brand { justify-content: center; margin-bottom: 1rem; }
.auth-title { text-align: center; margin-bottom: 0.3rem; }
.auth-sub { text-align: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.demo-hint {
  margin-top: 1rem;
  background: var(--yellow-soft);
  border: 1px dashed #e0b64c;
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #6f5000;
}
.demo-hint code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.05rem 0.35rem;
  border-radius: 5px;
  direction: ltr;
  display: inline-block;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: clamp(1.5rem, 3vw, 2.2rem) 1rem;
}
.dash-greeting { display: flex; align-items: center; gap: 0.8rem; }
.dash-greeting .avatar { width: 54px; height: 54px; border-radius: 17px; font-size: 1.5rem; }
.dash-greeting h1 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: 0; }
.dash-greeting .sub { color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.dash-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.status-card {
  border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.status-card.is-online {
  background: linear-gradient(135deg, #0b4f3c 0%, #0f6a4f 60%, #14805f 100%);
  border-color: transparent;
  color: #f4faf5;
  box-shadow: 0 26px 50px -28px rgba(9, 75, 55, 0.75);
}
.status-card.is-online::after {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 30px solid rgba(244, 184, 29, 0.12);
  top: -130px; right: -110px;
  pointer-events: none;
}
.status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; flex-wrap: wrap; }
.status-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.is-online .status-label { color: rgba(244, 250, 245, 0.75); }
.status-title { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin: 0.5rem 0 0.2rem; line-height: 1.2; position: relative; z-index: 1; }
.status-sub { font-size: 0.9rem; color: var(--muted); max-width: 32rem; margin: 0; position: relative; z-index: 1; }
.is-online .status-sub { color: rgba(244, 250, 245, 0.8); }

.switch {
  position: relative;
  width: 96px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: #ded5c2;
  cursor: pointer;
  transition: background 0.2s ease;
  flex: none;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}
.switch::after {
  content: '';
  position: absolute;
  top: 5px; left: 5px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fffdf7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.switch[aria-checked="true"] { background: var(--yellow); }
.switch[aria-checked="true"]::after { transform: translateX(44px); background: #fff; }
.switch:focus-visible { outline: 3px solid rgba(244, 184, 29, 0.6); outline-offset: 3px; }
.switch:disabled { opacity: 0.6; cursor: wait; }

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 223, 201, 0.5);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}
.is-online .status-meta { border-color: rgba(255, 255, 255, 0.16); }
.status-meta div { display: flex; align-items: center; gap: 0.35rem; color: var(--muted); }
.is-online .status-meta div { color: rgba(244, 250, 245, 0.82); }
.status-meta svg { width: 14px; height: 14px; }

.status-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; position: relative; z-index: 1; }
.is-online .btn-outline { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.is-online .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.is-online .btn-yellow { box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.5); }

.banner {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem 0.95rem;
  border-radius: 13px;
  font-size: 0.86rem;
  margin-top: 0.9rem;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.banner.info { background: var(--blue-soft); color: #17457a; }
.banner.warn { background: var(--yellow-soft); color: #6f5000; }
.banner.danger { background: var(--red-soft); color: #8c1424; }
.banner.ok { background: var(--green-soft); color: var(--green); }
.is-online .banner.info { background: rgba(255, 255, 255, 0.13); color: #f4faf5; }

.dash-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}
@media (min-width: 860px) { .dash-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }

.mini-map-shell {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
#mini-map { height: 260px; background: #eef1e6; }
.mini-map-note {
  position: absolute;
  left: 0.7rem; bottom: 0.7rem;
  background: rgba(255, 253, 246, 0.95);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  z-index: 500;
}

.info-list { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
.info-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; }
.info-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.info-list b { font-weight: 600; }

.stat-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.stat-mini {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0.7rem 0.8rem;
}
.stat-mini b { display: block; font-family: var(--display); font-size: 1.25rem; line-height: 1.2; color: var(--green); }
.stat-mini span { font-size: 0.72rem; color: var(--muted); }

.sms-commands { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.sms-commands td { padding: 0.45rem 0.3rem; border-bottom: 1px dashed var(--line); vertical-align: top; }
.sms-commands td:first-child { width: 40%; }
.sms-commands code, .mono {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.05rem 0.4rem;
  border-radius: 6px;
  font-size: 0.84rem;
  direction: ltr;
  display: inline-block;
}

/* ---------------------------------------------------------------- help / faq */

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}
.help-toc a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  text-decoration: none;
  background: var(--paper);
}
.help-toc a:hover { border-color: var(--green); color: var(--green); }

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  margin-bottom: 0.55rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--green);
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '−'; }
.faq details[open] summary { background: var(--green-soft); }
.faq .faq-body { padding: 0.2rem 1rem 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.faq .faq-body p:last-child { margin-bottom: 0; }

.callout {
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--paper);
  padding: 1rem 1.1rem;
  font-size: 0.9rem;
}
.callout h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.green { background: var(--green-soft); border-color: rgba(14, 92, 70, 0.3); }
.callout.yellow { background: var(--yellow-soft); border-color: #e3c26d; }

/* --------------------------------------------------------------------- admin */

.admin-tabs {
  display: flex;
  gap: 0.3rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.2rem;
  overflow-x: auto;
}
.admin-tabs button {
  border: 0;
  background: transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }

.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.3rem; }
@media (min-width: 800px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.admin-stat b { display: block; font-family: var(--display); font-size: 1.65rem; line-height: 1.15; color: var(--green); }
.admin-stat span { font-size: 0.76rem; color: var(--muted); }

.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.9rem; }
.admin-toolbar input[type="search"] { flex: 1 1 220px; min-width: 0; }
.admin-toolbar select { width: auto; min-width: 140px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 760px; }
table.data th, table.data td { padding: 0.65rem 0.8rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: var(--cream); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 247, 232, 0.6); }
.table-name { font-weight: 600; }
.table-sub { font-size: 0.76rem; color: var(--muted); }
.row-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.row-actions .btn { min-height: 32px; padding: 0.15rem 0.6rem; font-size: 0.78rem; border-radius: 9px; }

.gateway-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gateway-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.chat {
  display: grid;
  gap: 0.6rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.2rem;
}
.bubble {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.in { background: var(--cream); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.bubble.out { background: var(--green); color: #f4faf5; border-bottom-right-radius: 4px; justify-self: end; }
.bubble .bubble-meta { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 0.25rem; }

.log-list { display: grid; gap: 0.45rem; }
.log-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  font-size: 0.83rem;
}
.log-item .log-icon {
  width: 28px; height: 28px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--cream);
  flex: none;
  color: var(--green);
}
.log-item .log-icon svg { width: 15px; height: 15px; }
.log-item time { margin-inline-start: auto; color: var(--muted); font-size: 0.72rem; white-space: nowrap; }

/* --------------------------------------------------------------------- toast */

.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  gap: 0.5rem;
  width: min(92vw, 420px);
  pointer-events: none;
}
@media (min-width: 880px) { .toast-host { bottom: 24px; } }
.toast {
  background: #1f2b24;
  color: #f7f4ea;
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-size: 0.86rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  pointer-events: auto;
}
.toast.error { background: #8c1424; }
.toast.ok { background: var(--green); }
.toast.warn { background: #7a5800; }
.toast svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------------- modals */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 28, 0.5);
  backdrop-filter: blur(3px);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  background: var(--paper);
  border-radius: var(--radius-lg);
  width: min(520px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.99); } }
.modal h2 { font-size: 1.3rem; }
.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }

/* --------------------------------------------------------------- misc / print */

.notice-strip {
  background: var(--yellow-soft);
  border: 1px solid #ecd18b;
  color: #6f5000;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.notice-strip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.divider { height: 1px; background: var(--line); margin: 1.4rem 0; border: 0; }

.loading-line {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.btn-outline .loading-line, .btn-ghost .loading-line { border-color: rgba(14, 92, 70, 0.3); border-top-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }

:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .tabbar, .site-footer, .toast-host { display: none !important; }
  body { background: #fff; }
}

/* ------------------------------------------------------------------- fare receipt */

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.receipt-recent { margin-top: 0.9rem; display: grid; gap: 0.55rem; }
.receipt-recent:not(:empty) { border-top: 1px dashed var(--line); padding-top: 0.85rem; }
.receipt-recent-title { font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.receipt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.receipt-item b { font-family: var(--display); color: var(--green); font-size: 1.05rem; }
.receipt-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-mini { display: flex; gap: 0.4rem; flex: none; }
.receipt-mini .btn { min-height: 32px; padding: 0.15rem 0.65rem; font-size: 0.76rem; border-radius: 9px; }

#print-root { display: none; }

@media print {
  main { display: none !important; }
  #print-root {
    display: block !important;
    width: 72mm;
    margin: 0 auto;
    color: #000;
    font-family: var(--font);
    font-size: 12px;
    line-height: 1.45;
  }
  #print-root h2 { font-size: 16px; margin: 0 0 2px; text-align: center; font-family: var(--display); }
  .pr-meta { text-align: center; font-size: 11px; }
  .pr-sep { border-top: 1px dashed #000; margin: 7px 0; }
  .pr-row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
  .pr-row.strong { font-weight: 700; font-size: 13px; }
  .pr-foot { text-align: center; margin-top: 8px; }
  @page { size: 80mm auto; margin: 4mm; }
}
