:root {
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --dark: #0a0a0a;
  --muted: #64748b;
  --bg: #f8fafc;
  --surface: #fff;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;
  --radius: 18px;
  --shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--dark);
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
}
.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav-links a {
  font-weight: 650;
  color: #334155;
}
.nav-links a:hover {
  color: var(--primary);
}
.btn {
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
}
.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-soft {
  background: #fff1f2;
  color: #b91c1c;
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-warning {
  background: var(--warning);
  color: #111827;
}
.btn-info {
  background: var(--info);
  color: #fff;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-block {
  width: 100%;
}
.hero {
  padding: 84px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 800;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.02;
  margin: 18px 0;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-card,
.card {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 26px;
}
.route {
  display: grid;
  gap: 18px;
}
.route-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 5px;
  background: var(--primary);
  box-shadow: 0 0 0 5px #fee2e2;
}
.section {
  padding: 66px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 34px;
}
.section-title h2 {
  font-size: 2rem;
  margin: 0 0 10px;
}
.section-title p {
  color: var(--muted);
  margin: 0;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  padding: 24px;
}
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff1f2;
  color: var(--primary);
  font-size: 1.3rem;
}
.service-card h3 {
  margin: 18px 0 8px;
}
.service-card p {
  color: var(--muted);
  line-height: 1.6;
}
.page-head {
  padding: 48px 0 24px;
}
.page-head h1 {
  font-size: 2.25rem;
  margin: 0 0 8px;
}
.page-head p {
  color: var(--muted);
}
.form-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 750;
}
.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 13px 14px;
  background: #fff;
  font: inherit;
  outline: none;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px #fee2e2;
}
.textarea {
  min-height: 105px;
  resize: vertical;
}
.notice {
  padding: 14px 16px;
  border-radius: 13px;
  margin: 14px 0;
}
.notice-info {
  background: #e0f2fe;
  color: #075985;
}
.notice-error {
  background: #fee2e2;
  color: #991b1b;
}
.notice-success {
  background: #dcfce7;
  color: #166534;
}
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--dark);
  color: white;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin-bottom: 30px;
}
.side-nav {
  display: grid;
  gap: 8px;
}
.side-nav a,
.side-nav button {
  width: 100%;
  border: 0;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.side-nav a.active,
.side-nav a:hover,
.side-nav button:hover {
  background: #1f2937;
  color: #fff;
}
.main {
  padding: 28px;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  padding: 20px;
}
.stat small {
  color: var(--muted);
  font-weight: 700;
}
.stat strong {
  display: block;
  font-size: 1.9rem;
  margin-top: 8px;
}
.table-wrap {
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.status-pending {
  background: #e2e8f0;
  color: #334155;
}
.status-assigned {
  background: #fef3c7;
  color: #92400e;
}
.status-accepted {
  background: #cffafe;
  color: #155e75;
}
.status-picked-up {
  background: #dbeafe;
  color: #1e40af;
}
.status-out-for-delivery {
  background: #ede9fe;
  color: #5b21b6;
}
.status-delivered {
  background: #dcfce7;
  color: #166534;
}
.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}
.order-card {
  padding: 22px;
  margin-bottom: 16px;
}
.order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.muted {
  color: var(--muted);
}
.footer {
  padding: 32px 0;
  color: var(--muted);
  text-align: center;
}
.loading {
  opacity: 0.65;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 640px) {
  .form-grid,
  .stats,
  .order-meta {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 52px;
  }
  .main {
    padding: 18px;
  }
  .container {
    width: min(100% - 22px, 1120px);
  }
}


/* =============================
   Hatod V3 visual enhancements
   ============================= */
.btn-lg { padding: 14px 22px; font-size: 1rem; }
.btn-light { background: #fff; color: var(--dark); }
.mobile-menu-button { display: none; background: none; border: 0; font-size: 1.8rem; }
.hero-v3 { overflow: hidden; background: radial-gradient(circle at 80% 20%, #fee2e2 0, transparent 34%); }
.hero-copy { position: relative; z-index: 2; }
.hero-visual { padding: 22px; min-height: 430px; position: relative; overflow: hidden; background: linear-gradient(145deg, #fff, #fff1f2); }
.delivery-illustration { position: relative; height: 290px; border-radius: 24px; background: linear-gradient(135deg, #f1f5f9, #fff); border: 1px solid #e2e8f0; overflow: hidden; }
.delivery-illustration::before,.delivery-illustration::after { content:""; position:absolute; width:260px; height:16px; background:#e2e8f0; transform:rotate(-25deg); top:90px; left:-20px; border-radius:999px; }
.delivery-illustration::after { top:200px; left:100px; transform:rotate(20deg); }
.map-dot { position:absolute; width:20px; height:20px; border-radius:50%; background:var(--primary); border:5px solid #fff; box-shadow:0 6px 20px rgba(249,115,22,.35); z-index:3; }
.map-dot-a { left:52px; top:56px; }
.map-dot-b { right:62px; bottom:62px; background:var(--success); }
.route-line { position:absolute; left:70px; top:76px; width:260px; border-top:4px dashed var(--primary); transform:rotate(25deg); transform-origin:left center; z-index:2; }
.rider-bubble { position:absolute; left:48%; top:44%; width:82px; height:82px; display:grid; place-items:center; border-radius:24px; background:var(--dark); color:#fff; font-size:2.4rem; box-shadow:0 18px 40px rgba(15,23,42,.22); z-index:4; }
.live-card { position:absolute; left:30px; right:30px; bottom:24px; padding:18px; background:#fff; border-radius:18px; box-shadow:var(--shadow); }
.live-card > div:first-child { display:flex; justify-content:space-between; gap:12px; }
.live-pill { color:#166534; background:#dcfce7; border-radius:999px; padding:4px 8px; font-size:.72rem; font-weight:800; }
.progress-line { height:8px; background:#e2e8f0; border-radius:999px; overflow:hidden; margin-top:12px; }
.progress-line span { display:block; width:72%; height:100%; background:linear-gradient(90deg,var(--primary),#fb923c); }
.trust-row { display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.trust-row div { display:grid; gap:2px; }
.trust-row span { color:var(--muted); font-size:.86rem; }
.grid-5 { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.section-soft { background:#fff1f2; }
.steps-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.step-card { position:relative; background:#fff; border:1px solid #fed7aa; border-radius:var(--radius); padding:26px; box-shadow:0 10px 28px rgba(124,45,18,.06); }
.step-card > span { position:absolute; top:16px; right:18px; font-weight:800; color:#fdba74; }
.step-card i { font-size:1.7rem; color:var(--primary); }
.step-card h3 { margin:18px 0 8px; }
.step-card p { color:var(--muted); line-height:1.6; }
.cta-banner { display:flex; justify-content:space-between; align-items:center; gap:24px; background:linear-gradient(135deg,var(--primary),#fb923c); color:#fff; padding:38px; border-radius:28px; box-shadow:0 24px 55px rgba(249,115,22,.24); }
.cta-banner h2 { margin:10px 0; font-size:2rem; }
.cta-banner p { margin:0; opacity:.9; }
.eyebrow-light { background:rgba(255,255,255,.16); color:#fff; }
.footer-v3 { background:#0f172a; color:#cbd5e1; padding:52px 0 22px; text-align:left; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:30px; }
.footer-grid > div { display:grid; gap:10px; align-content:start; }
.footer-grid a:hover { color:#fff; }
.footer-brand { color:#fff; }
.footer-bottom { border-top:1px solid #334155; padding-top:20px; margin-top:32px; text-align:center; }
.stats-v3 { grid-template-columns:repeat(5,minmax(150px,1fr)); }
.stats-v3 .stat { display:flex; align-items:center; gap:14px; }
.stat-icon { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; font-size:1.25rem; }
.stat-icon.orange { background:#fee2e2; color:#b91c1c; }
.stat-icon.amber { background:#fef3c7; color:#b45309; }
.stat-icon.blue { background:#dbeafe; color:#1d4ed8; }
.stat-icon.green { background:#dcfce7; color:#15803d; }
.stat-icon.purple { background:#f3e8ff; color:#7e22ce; }
.dashboard-section { padding:24px; }
.section-row { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:12px; }
.section-row h2 { margin:0 0 4px; }
.live-indicator { display:inline-flex; align-items:center; gap:8px; font-size:.85rem; color:#166534; background:#dcfce7; padding:7px 10px; border-radius:999px; }
.live-indicator span { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px rgba(34,197,94,.15); }
.dash-head h1 { margin:10px 0 4px; }
.side-nav a { display:flex; align-items:center; gap:10px; }

@media (max-width: 1100px) {
  .grid-5 { grid-template-columns:repeat(3,1fr); }
  .stats-v3 { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 820px) {
  .mobile-menu-button { display:block; }
  .nav-links { display:none; position:absolute; top:72px; left:16px; right:16px; background:#fff; padding:18px; border-radius:18px; box-shadow:var(--shadow); flex-direction:column; align-items:stretch; }
  .menu-open .nav-links { display:flex; }
  .hero-grid { grid-template-columns:1fr; }
  .grid-5,.steps-grid { grid-template-columns:1fr 1fr; }
  .cta-banner { flex-direction:column; align-items:flex-start; }
  .footer-grid { grid-template-columns:1fr; }
  .stats-v3 { grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-5,.steps-grid,.stats-v3 { grid-template-columns:1fr; }
  .hero { padding-top:56px; }
  .hero h1 { font-size:2.5rem; }
  .hero-visual { min-height:380px; }
  .trust-row { gap:18px; }
}

/* Booking V3 */
.booking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 24px;
  align-items: start;
}
.booking-card { padding: 0; overflow: hidden; }
.booking-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  background: #fff1f2;
}
.booking-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: .82rem;
  font-weight: 700;
}
.booking-step-indicator span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e5e7eb;
  color: #6b7280;
}
.booking-step-indicator.active { color: #f97316; }
.booking-step-indicator.active span,
.booking-step-indicator.done span { background: #f97316; color: white; }
.booking-panel { display: none; padding: 28px; }
.booking-panel.active { display: block; }
.booking-panel h2 { margin: 0 0 8px; }
.booking-panel > p { margin: 0 0 22px; color: #64748b; }
.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.booking-summary { position: sticky; top: 90px; padding: 24px; }
.summary-list { display: grid; gap: 14px; margin-top: 18px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.summary-row span:first-child { color: #64748b; }
.summary-total { font-size: 1.35rem; font-weight: 800; color: #f97316; }
.review-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.review-item strong { display: block; margin-bottom: 3px; }
.review-item span { color: #475569; word-break: break-word; }
@media (max-width: 900px) {
  .booking-shell { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .booking-step-indicator { flex-direction: column; text-align: center; font-size: .72rem; }
}

/* Settings module */
.settings-layout {
  display: grid;
  gap: 22px;
  max-width: 980px;
}
.settings-card {
  padding: 28px;
}
.settings-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.settings-heading h2 {
  margin: 0 0 5px;
}
.settings-heading p {
  margin: 0;
}
.settings-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 1.25rem;
}
.settings-icon.orange {
  color: #b91c1c;
  background: #fee2e2;
}
.field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 700;
}
.field small {
  font-weight: 400;
}
.field-full {
  grid-column: 1 / -1;
}
.fare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.money-input {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  overflow: hidden;
  background: white;
}
.money-input span {
  display: grid;
  place-items: center;
  height: 100%;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  color: #64748b;
}
.money-input .input {
  border: 0;
  border-radius: 0;
}
.settings-note {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 14px;
  line-height: 1.55;
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 30px;
}
@media (max-width: 720px) {
  .fare-grid {
    grid-template-columns: 1fr;
  }
  .settings-actions {
    flex-direction: column-reverse;
  }
  .settings-actions .btn {
    width: 100%;
  }
}

/* Admin authentication module */
.sidebar {
  display: flex;
  flex-direction: column;
}

.side-nav {
  flex: 1;
}

.sidebar-account {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 10px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-account strong,
.sidebar-account small {
  display: block;
}

.sidebar-account small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.72rem;
}

.sidebar-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: var(--primary, #f97316);
  font-weight: 800;
}

.sidebar-logout {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
}

.admin-login-page {
  min-height: 100vh;
  background: #f8fafc;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 1.05fr) minmax(420px, 0.95fr);
}

.admin-login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.28), transparent 34%),
    linear-gradient(145deg, #111827 0%, #0f172a 100%);
  color: #fff;
}

.admin-login-brand {
  color: #fff;
}

.admin-login-copy {
  max-width: 610px;
  margin: 70px 0;
}

.admin-login-copy h1 {
  max-width: 580px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.02;
}

.admin-login-copy p {
  max-width: 560px;
  color: #cbd5e1;
  font-size: 1.04rem;
  line-height: 1.8;
}

.admin-login-features {
  display: grid;
  gap: 14px;
}

.admin-login-features div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e2e8f0;
}

.admin-login-features i {
  color: #fb923c;
  font-size: 1.15rem;
}

.admin-login-form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.admin-login-card {
  width: min(100%, 470px);
  padding: clamp(28px, 5vw, 46px);
}

.admin-login-card h2 {
  margin: 8px 0 8px;
  font-size: 2rem;
}

.admin-login-card > .muted {
  margin-bottom: 28px;
}

.admin-login-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 18px;
  background: #fff2e8;
  color: #f97316;
  font-size: 1.55rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #94a3b8;
  transform: translateY(-50%);
}

.input-with-icon .input {
  padding-left: 43px;
}

.admin-login-button {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.admin-back-link {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
  color: #64748b;
  font-size: 0.88rem;
  text-decoration: none;
}

.admin-back-link:hover {
  color: #f97316;
}

@media (max-width: 900px) {
  .admin-login-shell {
    grid-template-columns: 1fr;
  }

  .admin-login-brand-panel {
    display: none;
  }

  .admin-login-form-panel {
    min-height: 100vh;
  }
}

/* Dashboard statistics grid */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

/* Common dashboard card */

.stat-card {
  min-width: 0;
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 23px;
}

.stat-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}

.stat-value {
  max-width: 100%;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Rider earnings card */

.stat-card-rider {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f0fdf4 100%
  );
}

.stat-icon-rider {
  color: #16a34a;
  background: #dcfce7;
}

.stat-card-rider .stat-value {
  color: #15803d;
}

/* Responsive */

@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

#topupsSection {
  margin-top: 24px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-danger {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.rider-panel {
  margin-top: 24px;
}

.rider-panel.card {
  padding: 24px;
}

.topup-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 768px) {
  .topup-form {
    grid-template-columns: 1fr;
  }
}

.report-group {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(
    5,
    minmax(0, 1fr)
  );
  gap: 16px;
}

.report-card {
  min-width: 0;
  padding: 20px;
}

.report-card small {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-weight: 700;
}

.report-card strong {
  display: block;
  color: #0f172a;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reports-two-column {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 20px;
  margin-top: 28px;
}

.report-table-card {
  margin-top: 28px;
  padding: 24px;
}

@media (max-width: 1100px) {
  .report-grid {
    grid-template-columns: repeat(
      3,
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 800px) {
  .report-grid,
  .reports-two-column {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 560px) {
  .report-grid,
  .reports-two-column {
    grid-template-columns: 1fr;
  }
}

.dash-actions{
display:flex;
align-items:center;
gap:15px;
}

.notification-wrapper{
position:relative;
}

.notification-button{

width:48px;
height:48px;

border:none;

border-radius:12px;

background:#fff;

cursor:pointer;

font-size:22px;

box-shadow:0 8px 20px rgba(0,0,0,.08);

position:relative;

}

.notification-badge{

position:absolute;

top:-6px;

right:-6px;

background:#ef4444;

color:#fff;

border-radius:50%;

padding:3px 8px;

font-size:12px;

font-weight:bold;

display:none;

}

.notification-dropdown{

display:none;

position:absolute;

top:58px;

right:0;

width:360px;

background:#fff;

border-radius:16px;

box-shadow:0 15px 35px rgba(0,0,0,.15);

overflow:hidden;

z-index:9999;

}

.notification-dropdown.show{

display:block;

}

.notification-header{

display:flex;

justify-content:space-between;

padding:15px;

font-weight:bold;

border-bottom:1px solid #eee;

}

.notification-item{

padding:14px;

border-bottom:1px solid #eee;

cursor:pointer;

}

.notification-item:hover{

background:#f5f5f5;

}

.notification-title{

font-weight:700;

}

.notification-message{

font-size:13px;

color:#666;

margin-top:4px;

}

.notification-date{

font-size:12px;

color:#999;

margin-top:5px;

}

.notification-unread{

background:#fff8ef;

}

.notification-empty{

padding:30px;

text-align:center;

color:#888;

}

.link-button{

background:none;

border:none;

color:#ff7a00;

cursor:pointer;

font-weight:600;

}

.notification-list {
  max-height: 420px;
  overflow-y: auto;
}

#notificationList {
  max-height: 420px;
  overflow-y: auto;
}

.notification-item {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-badge {
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.orders-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 12px;
  margin: 18px 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
}

.search-field i {
  color: #64748b;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.filter-select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  font: inherit;
}

.btn-light {
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.btn-light:hover {
  background: #e2e8f0;
}

@media (max-width: 760px) {
  .orders-toolbar {
    grid-template-columns: 1fr;
  }
}

.gps-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gps-panel-head h2 {
  margin: 0;
}

.gps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gps-details {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0, 1fr)
  );
  gap: 12px;
  margin-top: 16px;
}

.gps-details > div {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.gps-details small,
.gps-details strong {
  display: block;
}

.gps-details strong {
  margin-top: 5px;
}

@media (max-width: 700px) {
  .gps-details {
    grid-template-columns: 1fr;
  }
}

#adminLiveMap {
  width: 100%;
  height: 440px;
  margin-top: 18px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
}

.live-rider-popup {
  min-width: 190px;
}

.live-rider-popup strong {
  display: block;
  margin-bottom: 4px;
}

.live-rider-popup small {
  display: block;
  margin-top: 4px;
  color: #64748b;
}

@media (max-width: 700px) {
  #adminLiveMap {
    height: 350px;
  }
}

.booking-map-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  background: #ffffff;
}

.booking-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.booking-map-head h3 {
  margin: 0;
}

.map-mode-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

#bookingMap {
  width: 100%;
  height: 420px;
  margin-top: 16px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
}

.coordinate-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.coordinate-preview > div {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.coordinate-preview small,
.coordinate-preview strong {
  display: block;
}

.coordinate-preview strong {
  margin-top: 5px;
}

@media (max-width: 700px) {
  #bookingMap {
    height: 340px;
  }

  .coordinate-preview {
    grid-template-columns: 1fr;
  }
}

.fare-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.fare-preview > div {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.fare-preview small,
.fare-preview strong {
  display: block;
}

.fare-preview strong {
  margin-top: 5px;
  font-size: 20px;
}

@media (max-width: 700px) {
  .fare-preview {
    grid-template-columns: 1fr;
  }
}

.booking-success {
  text-align: center;
}

.tracking-number-box {
  margin: 14px 0;
  padding: 16px;
  border: 2px dashed #f59e0b;
  border-radius: 14px;
  background: #fffbeb;
}

.tracking-number-box strong {
  font-size: 24px;
  letter-spacing: 1px;
}

.booking-success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.booking-success-details > div {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.booking-success-details small,
.booking-success-details strong {
  display: block;
}

.booking-success-details strong {
  margin-top: 5px;
}

.booking-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 700px) {
  .booking-success-details {
    grid-template-columns: 1fr;
  }

  .booking-success-actions .btn {
    width: 100%;
  }
}

.address-search {
  position: relative;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;

  display: none;
  max-height: 260px;
  overflow-y: auto;

  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.address-suggestions.show {
  display: block;
}

.address-item {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.address-item:last-child {
  border-bottom: 0;
}

.address-item:hover,
.address-item:focus {
  background: #fff1f2;
  outline: none;
}

.address-item strong,
.address-item small {
  display: block;
}

.address-item small {
  margin-top: 3px;
  color: #64748b;
}

.address-search-loading,
.address-search-empty {
  padding: 12px 14px;
  color: #64748b;
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.btn-danger {
  border: 0;
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

/* =========================================================
   SPRINT B — RIDER NAVIGATION AND LAUNCH INFO
========================================================= */

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rider-quick-actions,
.rider-order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.rider-quick-actions .btn,
.rider-order-status-actions .btn {
  min-height: 40px;
}

.launch-info-strip {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.launch-info-strip > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid
    rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background:
    rgba(255, 255, 255, 0.78);
}

.launch-info-strip i {
  margin-top: 2px;
  font-size: 18px;
}

.launch-info-strip span,
.launch-info-strip small,
.launch-info-strip strong,
.launch-info-strip a {
  display: block;
}

.launch-info-strip small {
  margin-bottom: 3px;
  color: #64748b;
}

.launch-info-strip strong,
.launch-info-strip a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .launch-info-strip {
    grid-template-columns: 1fr;
  }

  .rider-quick-actions .btn,
  .rider-order-status-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   SPRINT C — ADMIN LIVE OPERATIONS
========================================================= */

.live-operations-section {
  overflow: visible;
}

.live-operations-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.operations-counter-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.operations-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #f8fafc;
}

.operations-counter small,
.operations-counter strong {
  display: block;
}

.operations-counter small {
  color: #64748b;
}

.operations-counter strong {
  margin-top: 3px;
  font-size: 24px;
}

.operations-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #94a3b8;
}

.operations-dot.available {
  background: #16a34a;
  box-shadow:
    0 0 0 5px
    rgba(22, 163, 74, 0.13);
}

.operations-dot.busy {
  background: #f59e0b;
  box-shadow:
    0 0 0 5px
    rgba(245, 158, 11, 0.13);
}

.operations-dot.offline {
  background: #94a3b8;
}

.operations-dot.pending {
  background: #2563eb;
  box-shadow:
    0 0 0 5px
    rgba(37, 99, 235, 0.13);
}

.operations-map-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(280px, 0.75fr);
  gap: 18px;
  margin-top: 18px;
}

.operations-map-panel {
  min-width: 0;
}

.operations-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.operations-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.legend-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-marker.rider-available {
  background: #16a34a;
}

.legend-marker.rider-busy {
  background: #f59e0b;
}

.legend-marker.order-pending {
  background: #2563eb;
  border-radius: 3px;
}

#adminLiveMap {
  width: 100%;
  height: 520px;
  margin-top: 0;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
}

.operations-rider-list-panel {
  min-width: 0;
  height: 558px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
}

.operations-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e2e8f0;
}

.operations-panel-head h3 {
  margin: 0;
}

.live-operations-rider-list {
  height: calc(100% - 62px);
  overflow-y: auto;
  padding-top: 10px;
}

.operations-rider-item {
  width: 100%;
  display: grid;
  grid-template-columns:
    auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  border: 0;
  border-bottom:
    1px solid #eef2f7;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.operations-rider-item:hover {
  background: #f8fafc;
}

.operations-rider-main,
.operations-rider-meta {
  min-width: 0;
}

.operations-rider-main strong,
.operations-rider-main small,
.operations-rider-meta strong,
.operations-rider-meta small {
  display: block;
}

.operations-rider-main strong,
.operations-rider-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-rider-main small,
.operations-rider-meta small {
  color: #64748b;
}

.operations-rider-meta {
  text-align: right;
}

.operations-div-icon {
  border: 0 !important;
  background: transparent !important;
}

.operations-map-marker {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  box-shadow:
    0 7px 18px
    rgba(15, 23, 42, 0.3);
  font-size: 17px;
}

.operations-map-marker.rider-available {
  background: #16a34a;
}

.operations-map-marker.rider-busy {
  background: #f59e0b;
}

.operations-map-marker.order-pending {
  background: #2563eb;
  border-radius: 11px;
}

.operations-popup-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.operations-availability-badge {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.operations-availability-badge.available {
  background: #dcfce7;
  color: #166534;
}

.operations-availability-badge.busy {
  background: #fef3c7;
  color: #92400e;
}

.operations-availability-badge.offline {
  background: #e2e8f0;
  color: #475569;
}

.operations-availability-badge.pending {
  background: #dbeafe;
  color: #1d4ed8;
}

.operations-popup-order {
  display: grid;
  gap: 2px;
  margin: 9px 0;
  padding: 9px;
  border-radius: 10px;
  background: #f8fafc;
}

.operations-popup-order small,
.operations-popup-order strong,
.operations-popup-order span {
  display: block;
}

.operations-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.pending-order-popup,
.live-rider-popup {
  min-width: 220px;
}

@media (max-width: 1050px) {
  .operations-counter-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .operations-map-layout {
    grid-template-columns: 1fr;
  }

  .operations-rider-list-panel {
    height: auto;
    max-height: 440px;
  }

  .live-operations-rider-list {
    max-height: 350px;
  }
}

@media (max-width: 700px) {
  .operations-counter-grid {
    grid-template-columns: 1fr;
  }

  #adminLiveMap {
    height: 390px;
  }

  .live-operations-actions {
    justify-content: flex-start;
  }
}


/* =========================================================
   SPRINT D — SMART ADDRESS SEARCH + AUTO PIN
========================================================= */

.address-field-help {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.address-selection-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.address-selection-status.neutral {
  background: #f1f5f9;
  color: #475569;
}

.address-selection-status.loading,
.address-selection-status.info {
  background: #dbeafe;
  color: #1d4ed8;
}

.address-selection-status.success {
  background: #dcfce7;
  color: #166534;
}

.address-selection-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.address-suggestions {
  z-index: 10050;
}

.address-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
}

.address-item-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: #fff1f2;
  color: #ea580c;
}

.address-item-content {
  min-width: 0;
}

.address-item-content strong,
.address-item-content small {
  display: block;
}

.address-item-content strong {
  color: #0f172a;
}

.address-item-content small {
  margin-top: 4px;
  line-height: 1.4;
  color: #64748b;
}

.address-search-loading,
.address-search-empty,
.address-search-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 14px;
  color: #64748b;
}

.address-search-error {
  color: #b91c1c;
}

.address-search-spinner {
  display: inline-block;
  animation: addressSpinner 0.9s linear infinite;
}

@keyframes addressSpinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .address-suggestions {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-height: 48vh;
    border-radius: 16px;
  }

  .address-selection-status {
    width: 100%;
    border-radius: 10px;
  }
}


/* =========================================================
   SPRINT D1 — HATOD LOCAL PLACES ENGINE
========================================================= */

.address-selection-status.verified {
  background: #ede9fe;
  color: #6d28d9;
}

.verified-place-result {
  background:
    linear-gradient(
      90deg,
      rgba(237, 233, 254, 0.46),
      rgba(255, 255, 255, 1)
    );
}

.verified-place-result:hover,
.verified-place-result:focus {
  background: #f5f3ff;
}

.verified-place-result .address-item-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.address-result-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.verified-place-badge,
.external-place-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.verified-place-badge {
  background: #ede9fe;
  color: #6d28d9;
}

.external-place-badge {
  background: #e2e8f0;
  color: #475569;
}

.verified-landmark {
  color: #7c3aed !important;
}

.places-stats-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.places-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(330px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.places-list-card,
.place-editor-card {
  padding: 18px;
}

.place-editor-card {
  position: sticky;
  top: 18px;
}

.places-toolbar {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(160px, 220px);
  gap: 10px;
  margin: 16px 0;
}

.places-admin-list {
  display: grid;
  gap: 10px;
}

.place-admin-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}

.place-admin-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.place-admin-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.place-admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.place-active-badge {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.place-active-badge.active {
  background: #dcfce7;
  color: #166534;
}

.place-active-badge.inactive {
  background: #e2e8f0;
  color: #475569;
}

.place-active-field {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
}

.place-map-help {
  display: grid;
  gap: 3px;
  margin: 16px 0 9px;
}

#placeEditorMap {
  width: 100%;
  height: 330px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  overflow: hidden;
  background: #e2e8f0;
}

.place-form-result {
  margin-top: 12px;
}

@media (max-width: 1050px) {
  .places-layout {
    grid-template-columns: 1fr;
  }

  .place-editor-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .places-stats-grid,
  .places-toolbar {
    grid-template-columns: 1fr;
  }

  .place-admin-item {
    display: grid;
  }

  .place-admin-actions {
    justify-content: flex-start;
  }

  .place-admin-actions .btn {
    flex: 1 1 auto;
  }
}

/* Hatod red, white and black brand polish */
:root { --brand-black:#0a0a0a; --brand-red:#dc2626; --brand-red-dark:#991b1b; }
.topbar,.sidebar{border-color:#fecaca}.brand-mark{background:linear-gradient(135deg,var(--brand-red),var(--brand-red-dark));box-shadow:0 8px 20px rgba(220,38,38,.24)}
.btn{transition:transform .15s ease,box-shadow .15s ease,background .15s ease}.btn:hover{transform:translateY(-1px)}
.btn-primary{box-shadow:0 8px 18px rgba(220,38,38,.18)}
.order-detail-box{margin-top:14px;padding:14px;border:1px solid #fecaca;background:#fff7f7;border-radius:14px}.order-detail-box p{margin:6px 0;white-space:pre-wrap}.receipt-link{display:inline-flex;margin-top:8px;font-weight:800;color:var(--primary)}
.loading-skeleton{animation:pulse 1.2s infinite;background:#f1f5f9;border-radius:10px;min-height:48px}@keyframes pulse{50%{opacity:.55}}

/* D2.8 Hatod logo and motorcycle map marker */
.brand-mark {
  width: 48px;
  height: 48px;
  padding: 3px;
  overflow: hidden;
  background: #0a0a0a;
  border: 2px solid #dc2626;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.22);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.hatod-rider-map-marker {
  position: relative;
  width: 58px;
  height: 64px;
  transform-origin: 50% 90%;
  animation: hatodMarkerFloat 2.1s ease-in-out infinite;
}
.hatod-rider-map-marker img {
  width: 58px;
  height: 64px;
  display: block;
  filter: saturate(1.05);
}
.rider-map-status-dot {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.hatod-rider-map-marker.rider-busy .rider-map-status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}
.hatod-rider-map-marker.rider-live .rider-map-status-dot {
  background: #22c55e;
  animation: hatodLivePulse 1.5s ease-out infinite;
}
@keyframes hatodLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  75%,100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
}
@keyframes hatodMarkerFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hatod-rider-map-marker,
  .hatod-rider-map-marker.rider-live .rider-map-status-dot { animation: none; }
}


/* Sprint D2.11 — distance visibility and lightweight UI */
.order-distance-line,
.rider-distance-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}
.order-distance-line i,
.rider-distance-value i {
  font-size: 15px;
}


/* =========================================================
   RC2 FINAL OFFICIAL RED LOGO BRANDING
========================================================= */
.brand-mark {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #d90000;
  border: 2px solid #ff4a4a;
  box-shadow: 0 8px 22px rgba(185, 0, 0, 0.30);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #d90000;
}
.sidebar .brand-mark {
  background: #d90000;
  border-color: #ff5b5b;
  box-shadow: 0 8px 22px rgba(255, 0, 0, 0.24);
}
@media (max-width: 700px) {
  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
  }
}


/* =========================================================
   D2.16 — RIDER ETA
========================================================= */

.rider-eta-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 14px;
  background: rgba(254, 242, 242, 0.78);
}

.rider-eta-card.unavailable {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.rider-eta-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 11px;
  background: #dc2626;
  color: #ffffff;
  font-size: 17px;
}

.rider-eta-card.unavailable .rider-eta-icon {
  background: #64748b;
}

.rider-eta-card span,
.rider-eta-card small,
.rider-eta-card strong {
  display: block;
}

.rider-eta-card strong {
  margin-top: 2px;
  color: #111827;
  font-size: 18px;
}

.rider-eta-note {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}


/* =========================================================
   RC3 — ORDER CHAT
========================================================= */

.order-chat-card,
.order-chat-details {
  margin-top: 18px;
}

.order-chat-details {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.order-chat-details summary {
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 800;
  color: #991b1b;
  background: #fef2f2;
}

.order-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 170px;
  max-height: 330px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.order-chat-messages.compact {
  margin: 12px;
  min-height: 130px;
  max-height: 260px;
}

.order-chat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.order-chat-bubble.mine {
  align-self: flex-end;
  background: #dc2626;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.order-chat-bubble.theirs {
  align-self: flex-start;
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.order-chat-bubble strong,
.order-chat-bubble p,
.order-chat-bubble small {
  display: block;
}

.order-chat-bubble p {
  margin: 4px 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.order-chat-bubble small {
  opacity: 0.78;
  font-size: 10px;
}

.order-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 10px;
}

.order-chat-card .order-chat-form {
  margin-top: 12px;
}

.order-chat-details .order-chat-form {
  padding: 0 12px 12px;
}

.rider-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 10px;
}

@media (max-width: 700px) {
  .order-chat-form {
    grid-template-columns: 1fr;
  }

  .order-chat-bubble {
    max-width: 92%;
  }
}


/* =========================================================
   RC3.2 — ADMIN CHAT + DISPATCH STATUS
========================================================= */

.admin-chat-modal[hidden] {
  display: none;
}

.admin-chat-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 18px;
}

.admin-chat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(3px);
}

.admin-chat-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 86vh;
  padding: 18px;
  overflow: hidden;
}

.admin-chat-dialog .order-chat-messages {
  max-height: 62vh;
}

.admin-dispatch-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 9px 12px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 999px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
}

.admin-dispatch-mode-badge strong {
  color: #7f1d1d;
}


/* =========================================================
   RC3.4 — ALWAYS-OPEN RIDER CHAT + MESSAGE ALERT
========================================================= */

.order-chat-always-open {
  display: block;
}

.order-chat-fixed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  font-weight: 800;
  color: #991b1b;
  background: #fef2f2;
  border-bottom: 1px solid rgba(220, 38, 38, 0.12);
}

.rider-chat-message-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  animation: hatodChatPulse 1.5s infinite;
}

.rider-chat-message-badge[hidden] {
  display: none;
}

.rider-chat-toast {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 30000;
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border: 0;
  border-radius: 15px;
  background: #111827;
  color: #ffffff;
  text-align: left;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.rider-chat-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.rider-chat-toast > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  background: #dc2626;
  font-size: 18px;
}

.rider-chat-toast span,
.rider-chat-toast strong,
.rider-chat-toast small {
  display: block;
}

.rider-chat-toast small {
  margin-top: 3px;
  color: #e5e7eb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes hatodChatPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(220, 38, 38, 0);
  }
}

@media (max-width: 700px) {
  .rider-chat-toast {
    right: 12px;
    top: 12px;
    width: calc(100vw - 24px);
  }
}

.rider-profile-panel { margin-bottom: 20px; }
.rider-profile-panel .topup-form { align-items: end; }
@media (max-width: 720px) {
  .rider-profile-panel .topup-form { grid-template-columns: 1fr; }
}

/* RC4 delivery completion */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,23,42,.58);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-card {
  width: min(560px,100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.timeline-item {
  border-left: 3px solid #dc2626;
  padding: 0 0 16px 14px;
  margin-left: 6px;
}
.timeline-item strong,
.timeline-item small {
  display: block;
}
.timeline-item small {
  color: #64748b;
  margin-top: 3px;
}


/* RC5 separated Admin pages */
.admin-dispatch-mode-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.admin-dispatch-mode-panel label { min-width:220px; }
.hatod-rider-map-marker { background:transparent; border:0; }
.hatod-rider-marker-shell {
  width:44px;height:44px;border-radius:50%;
  background:#e11d2e;border:3px solid #fff;
  display:grid;place-items:center;
  box-shadow:0 5px 16px rgba(15,23,42,.35);
}
.hatod-rider-marker-shell img { width:30px;height:30px;object-fit:contain; }

.admin-page-dashboard #withdrawalsSection,
.admin-page-dashboard #topupsSection { display:none!important; }

.admin-page-live .stats-grid,
.admin-page-live #ordersSection,
.admin-page-live #withdrawalsSection,
.admin-page-live #topupsSection { display:none!important; }

.admin-page-orders .stats-grid,
.admin-page-orders #liveOperationsSection,
.admin-page-orders #withdrawalsSection,
.admin-page-orders #topupsSection { display:none!important; }

.admin-page-withdrawals .stats-grid,
.admin-page-withdrawals #liveOperationsSection,
.admin-page-withdrawals #ordersSection,
.admin-page-withdrawals #topupsSection { display:none!important; }

.admin-page-topups .stats-grid,
.admin-page-topups #liveOperationsSection,
.admin-page-topups #ordersSection,
.admin-page-topups #withdrawalsSection { display:none!important; }

/* Rider profile is now managed by Admin */
#riderProfileSection { display:none!important; }

/* RC5 separated Rider pages */
.rider-page-dashboard #riderWithdrawRequestSection,
.rider-page-dashboard #riderWithdrawalHistorySection,
.rider-page-dashboard #riderTopupRequestSection,
.rider-page-dashboard #riderTopupHistorySection,
.rider-page-dashboard #riderDeliveryHistorySection { display:none!important; }

.rider-page-withdraw .stats,
.rider-page-withdraw #riderGpsSection,
.rider-page-withdraw #riderWithdrawalHistorySection,
.rider-page-withdraw #riderTopupRequestSection,
.rider-page-withdraw #riderTopupHistorySection,
.rider-page-withdraw #riderCurrentDeliveriesSection,
.rider-page-withdraw #riderDeliveryHistorySection { display:none!important; }

.rider-page-withdrawal-history .stats,
.rider-page-withdrawal-history #riderGpsSection,
.rider-page-withdrawal-history #riderWithdrawRequestSection,
.rider-page-withdrawal-history #riderTopupRequestSection,
.rider-page-withdrawal-history #riderTopupHistorySection,
.rider-page-withdrawal-history #riderCurrentDeliveriesSection,
.rider-page-withdrawal-history #riderDeliveryHistorySection { display:none!important; }

.rider-page-topup .stats,
.rider-page-topup #riderGpsSection,
.rider-page-topup #riderWithdrawRequestSection,
.rider-page-topup #riderWithdrawalHistorySection,
.rider-page-topup #riderTopupHistorySection,
.rider-page-topup #riderCurrentDeliveriesSection,
.rider-page-topup #riderDeliveryHistorySection { display:none!important; }

.rider-page-topup-history .stats,
.rider-page-topup-history #riderGpsSection,
.rider-page-topup-history #riderWithdrawRequestSection,
.rider-page-topup-history #riderWithdrawalHistorySection,
.rider-page-topup-history #riderTopupRequestSection,
.rider-page-topup-history #riderCurrentDeliveriesSection,
.rider-page-topup-history #riderDeliveryHistorySection { display:none!important; }

.rider-page-history .stats,
.rider-page-history #riderGpsSection,
.rider-page-history #riderWithdrawRequestSection,
.rider-page-history #riderWithdrawalHistorySection,
.rider-page-history #riderTopupRequestSection,
.rider-page-history #riderTopupHistorySection,
.rider-page-history #riderCurrentDeliveriesSection { display:none!important; }

@media (max-width:720px){
  .admin-dispatch-mode-panel{align-items:stretch;flex-direction:column;}
  .admin-dispatch-mode-panel label{min-width:0;}
}

/* RC5.1 navigation/layout fixes */
.sidebar{overflow-y:auto}.side-nav{display:flex;flex-direction:column;gap:6px}.side-nav a,.side-nav button{width:100%;box-sizing:border-box}.admin-page-riders .main{min-width:0}.admin-page-riders .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-page-riders .table-wrap{overflow:auto}@media(max-width:720px){.admin-page-riders .settings-grid{grid-template-columns:1fr}}


/* RC5.2 consolidated admin fixes */
.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.admin-data-table th,
.admin-data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #dbe3ee;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}
.admin-data-table th {
  color: #52627a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hatod-rider-map-image {
  filter: drop-shadow(0 5px 8px rgba(15,23,42,.35));
}
@media (max-width: 900px) {
  .admin-data-table { min-width: 820px; }
}


/* RC5.5 unified Admin dashboard */
.admin-page-dashboard #liveOperationsSection,
.admin-page-dashboard #ordersSection {
  display: block !important;
}

.admin-page-dashboard #liveOperationsSection {
  margin-top: 18px;
}

.admin-page-dashboard #ordersSection {
  margin-top: 18px;
}

.admin-dashboard-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.admin-dashboard-section-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--border, #dbe3ef);
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

.admin-dashboard-section-nav a:hover {
  border-color: #ef4444;
  color: #dc2626;
}

html { scroll-behavior: smooth; }

.notification-item{padding:10px 12px;border-bottom:1px solid #e5e7eb}
.notification-item p{margin:4px 0;font-size:12px;color:#475569}
.notification-item small{color:#94a3b8}
.assignment-offer-card{max-width:520px}
.assignment-offer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}

.nav-count{
  margin-left:auto;
  min-width:20px;
  height:20px;
  padding:0 6px;
  display:inline-grid;
  place-items:center;
  border-radius:999px;
  background:#ef233c;
  color:#fff;
  font-size:11px;
  font-weight:800;
}
.payment-admin-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.withdraw-earnings-summary h2{font-size:32px;margin:6px 0}
.report-download-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.report-download-controls .input{width:auto;min-width:170px}

/* RC2.5 notification stabilization */
.notification-link{display:block;width:100%;text-align:left;background:#fff;border:0;cursor:pointer;font:inherit;color:inherit}
.notification-link:hover{background:#f8fafc}


.admin-order-details-dialog{
  position:relative;
  z-index:2;
  width:min(980px,calc(100vw - 30px));
  max-height:92vh;
  overflow:auto;
  margin:4vh auto;
}

.admin-order-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}

.admin-order-detail-card,
.admin-order-route-box,
.admin-order-evidence-box{
  border:1px solid #dbe3ef;
  border-radius:12px;
  padding:14px;
  background:#fff;
}

.admin-order-detail-card{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.admin-order-detail-card small,
.admin-order-detail-card span{
  color:#64748b;
}

.admin-order-route-box p,
.admin-order-proof-details p{
  margin:7px 0;
}

.admin-order-evidence-box{
  margin-top:12px;
}

.admin-order-evidence-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}

.evidence-missing{
  display:inline-flex;
  padding:7px 10px;
  border-radius:8px;
  background:#f1f5f9;
  color:#64748b;
  font-size:12px;
}

.admin-order-chat-section{
  margin:18px 0;
  padding-top:16px;
  border-top:1px solid #e2e8f0;
}

.admin-order-chat-form{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.admin-order-chat-message{
  max-width:78%;
  margin:8px 0;
  padding:10px 12px;
  border-radius:12px;
  background:#f1f5f9;
}

.admin-order-chat-message.role-customer{
  margin-right:auto;
}

.admin-order-chat-message.role-rider{
  margin-left:auto;
  background:#fee2e2;
}

.admin-order-chat-message.role-admin{
  margin-left:auto;
  background:#dbeafe;
}

.admin-order-chat-message > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.admin-order-chat-message p{
  margin:6px 0 0;
}

.admin-order-timeline{
  margin-top:12px;
}

.admin-order-timeline-item{
  display:flex;
  gap:12px;
  padding:0 0 16px;
}

.admin-order-timeline-dot{
  width:12px;
  height:12px;
  margin-top:5px;
  flex:0 0 12px;
  border-radius:50%;
  background:#ef233c;
  box-shadow:0 0 0 4px #fee2e2;
}

.admin-order-timeline-item p{
  margin:4px 0;
}

@media(max-width:800px){
  .admin-order-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .admin-order-detail-grid{
    grid-template-columns:1fr;
  }

  .admin-order-chat-form{
    flex-direction:column;
  }

  .admin-order-chat-message{
    max-width:92%;
  }
}

.nav-count[hidden]{
  display:none !important;
}


/* RC3.0 — polished pending pickup marker */
.hatod-pending-pickup-leaflet-icon{
  background:transparent !important;
  border:0 !important;
}

.hatod-pending-pickup-marker{
  position:relative;
  width:58px;
  height:66px;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  pointer-events:auto;
}

.pending-pickup-pulse{
  position:absolute;
  left:50%;
  bottom:5px;
  width:28px;
  height:12px;
  transform:translateX(-50%);
  border-radius:50%;
  background:rgba(37,99,235,.24);
  box-shadow:0 0 0 0 rgba(37,99,235,.34);
  animation:hatodPickupPulse 1.8s ease-out infinite;
}

.pending-pickup-pin{
  position:relative;
  z-index:2;
  width:44px;
  height:50px;
  filter:drop-shadow(0 8px 9px rgba(15,23,42,.28));
  transform-origin:50% 100%;
  animation:hatodPickupFloat 2.2s ease-in-out infinite;
}

.pending-pickup-pin svg{
  width:100%;
  height:100%;
  overflow:visible;
}

.pending-pickup-pin svg > path:first-child{
  fill:#2563eb;
  stroke:#ffffff;
  stroke-width:1.35;
}

.pending-pickup-box{
  fill:#ffffff;
  stroke:none;
}

.pending-pickup-label{
  position:absolute;
  z-index:3;
  top:38px;
  left:50%;
  transform:translateX(-50%);
  min-width:48px;
  padding:3px 7px;
  border:2px solid #ffffff;
  border-radius:999px;
  background:#0f172a;
  color:#ffffff;
  font-size:9px;
  line-height:1;
  font-weight:900;
  letter-spacing:.65px;
  text-align:center;
  box-shadow:0 5px 11px rgba(15,23,42,.22);
}

@keyframes hatodPickupPulse{
  0%{
    opacity:.9;
    transform:translateX(-50%) scale(.72);
    box-shadow:0 0 0 0 rgba(37,99,235,.35);
  }
  75%{
    opacity:.12;
    transform:translateX(-50%) scale(1.28);
    box-shadow:0 0 0 13px rgba(37,99,235,0);
  }
  100%{
    opacity:0;
    transform:translateX(-50%) scale(1.34);
  }
}

@keyframes hatodPickupFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-3px)}
}

.hatod-pending-pickup-popup-shell .leaflet-popup-content-wrapper{
  border-radius:14px;
  box-shadow:0 16px 35px rgba(15,23,42,.19);
}

.hatod-pending-pickup-popup-shell .leaflet-popup-content{
  margin:14px 15px;
  min-width:250px;
}

.pending-pickup-popup-head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:10px;
}

.pending-pickup-popup-head strong{
  color:#0f172a;
  font-size:14px;
}

.pending-pickup-popup-badge{
  width:max-content;
  padding:4px 8px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.35px;
}

.pending-pickup-popup p{
  margin:5px 0;
  color:#334155;
  font-size:12px;
  line-height:1.45;
}

.pending-pickup-popup-meta{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid #e2e8f0;
  color:#0f172a;
  font-size:12px;
  font-weight:800;
}

.pending-pickup-popup-action{
  width:100%;
  margin-top:10px;
  padding:8px 10px;
  border:0;
  border-radius:9px;
  background:#ef233c;
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.pending-pickup-popup-action:hover{
  background:#d90429;
}

.legend-marker.order-pending{
  width:14px;
  height:14px;
  border-radius:50% 50% 50% 0;
  background:#2563eb;
  transform:rotate(-45deg);
  box-shadow:0 0 0 3px #dbeafe;
}

@media (prefers-reduced-motion:reduce){
  .pending-pickup-pulse,
  .pending-pickup-pin{
    animation:none !important;
  }
}
