/* Fatafut Delivery — shared styles (mobile-first) */
:root {
  --brand: #ff5a1f;
  --brand-dark: #e2440c;
  --brand-soft: #fff1ea;
  --ink: #14171f;
  --ink-2: #4a5160;
  --muted: #8a91a0;
  --line: #e8eaef;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #12a150;
  --ok-soft: #e7f7ee;
  --warn: #c98800;
  --warn-soft: #fff6dd;
  --bad: #d92d20;
  --bad-soft: #fdecea;
  --info: #2563eb;
  --info-soft: #eaf1ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,23,31,.05), 0 4px 16px rgba(20,23,31,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.rtl { font-family: "Noto Nastaliq Urdu", "Plus Jakarta Sans", sans-serif; line-height: 2; }
body.rtl input, body.rtl textarea, body.rtl .ltr { direction: ltr; text-align: left; font-family: "Plus Jakarta Sans", sans-serif; }
a { color: var(--brand-dark); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.center { text-align: center; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.brand-tag { font-size: .7rem; font-weight: 700; background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 99px; }
.topnav { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: .9rem; }
.topnav a { color: var(--ink-2); }
.lang-switch { border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; }

.container { max-width: 760px; margin: 0 auto; padding: 18px 16px 110px; }
.role-admin .container { max-width: 1200px; padding-bottom: 40px; }
.container.with-sidebar { margin-left: 240px; max-width: none; }

/* Cards & layout */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 720px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 420px) { .grid-2.stack-sm { grid-template-columns: 1fr; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.stack > * + * { margin-top: 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* Forms */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink-2); }
.field { margin-bottom: 14px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  font: inherit; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.input-group { display: flex; gap: 8px; }
.input-group > input { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 12px 18px; border-radius: 11px; font: inherit; font-weight: 700; background: var(--brand); color: #fff;
  transition: background .15s, transform .05s; text-align: center;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 20px; font-size: 1.05rem; border-radius: 13px; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 9px; }
.btn-dark { background: var(--ink); } .btn-dark:hover { background: #000; }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #0d8a44; }
.btn-bad { background: var(--bad); } .btn-bad:hover { background: #b42318; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg); }
.inline { display: inline; }

/* Choice chips (vehicle / payment) */
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .9rem; background: #fff; text-align: center;
}
.choice span em { font-style: normal; font-size: 1.4rem; }
.choice span small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }

/* Alerts & badges */
.alert { padding: 12px 14px; border-radius: 11px; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
.alert-success { background: var(--ok-soft); color: #0b6b36; }
.alert-error { background: var(--bad-soft); color: #9f1d14; }
.alert-info { background: var(--info-soft); color: #1d4ed8; }
.alert-warn { background: var(--warn-soft); color: #8a5d00; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-pending { background: var(--warn-soft); color: #8a5d00; }
.badge-accepted, .badge-at_pickup { background: var(--info-soft); color: #1d4ed8; }
.badge-picked_up { background: #f1eaff; color: #6d28d9; }
.badge-delivered, .badge-approved, .badge-active, .badge-paid, .badge-resolved { background: var(--ok-soft); color: #0b6b36; }
.badge-cancelled, .badge-rejected, .badge-blocked, .badge-refunded { background: var(--bad-soft); color: #9f1d14; }
.badge-unpaid, .badge-open { background: var(--warn-soft); color: #8a5d00; }
.badge-online { background: var(--ok-soft); color: #0b6b36; } .badge-offline { background: var(--line); color: var(--ink-2); }

/* Hero / landing */
.hero { background: linear-gradient(135deg, #ff5a1f 0%, #ff8a3d 100%); color: #fff; border-radius: 22px; padding: 30px 22px; margin-bottom: 18px; position: relative; overflow: hidden; }
.hero h1 { font-size: 1.9rem; font-weight: 800; }
.hero p { opacity: .95; font-size: 1.02rem; }
.hero .btn { background: #fff; color: var(--brand-dark); }
.hero .btn-dark { background: var(--ink); color: #fff; }
.hero::after { content: none; position: absolute; right: -10px; bottom: -20px; font-size: 130px; opacity: .18; transform: rotate(-12deg); }
.steps { counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.step-num { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 0 0 2px; }

/* Stats */
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.stat .value { font-size: 1.55rem; font-weight: 800; margin-top: 2px; }
.stat .sub { font-size: .8rem; color: var(--muted); }

/* Lists */
.list-item { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-circle { flex: 0 0 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.2rem; }
.route { position: relative; padding-left: 22px; }
.rtl .route { padding-left: 0; padding-right: 22px; }
.route .pt { position: relative; margin-bottom: 10px; }
.route .pt::before { content: ""; position: absolute; left: -19px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.rtl .route .pt::before { left: auto; right: -19px; }
.route .pt.drop::before { background: var(--ink); border-radius: 2px; }
.route .pt + .pt::after { content: ""; position: absolute; left: -15px; top: -16px; height: 20px; border-left: 2px dashed var(--line); }
.rtl .route .pt + .pt::after { left: auto; right: -15px; }
.route .lbl { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* Tables (admin) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; background: #fafbfc; }
tr:hover td { background: #fcfcfd; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 150px; padding: 9px 11px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-tabs a { padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.pill-tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Map */
.map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); z-index: 1; }
.map-lg { height: 420px; } .map-xl { height: calc(100vh - 160px); min-height: 420px; }
.map-picker-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* Fare box */
.fare-box { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.fare-box .big { font-size: 1.8rem; font-weight: 800; }
.fare-line { display: flex; justify-content: space-between; font-size: .9rem; opacity: .85; padding: 2px 0; }

/* OTP */
.otp-display { font-size: 2.4rem; font-weight: 800; letter-spacing: .4em; text-align: center; background: var(--brand-soft); color: var(--brand-dark); border-radius: 14px; padding: 12px 0 12px .4em; font-family: "Plus Jakarta Sans", monospace; direction: ltr; }
.otp-input { font-size: 1.8rem !important; letter-spacing: .5em; text-align: center !important; font-weight: 800; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .9rem; }
.rtl .timeline li { padding: 0 22px 14px 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.rtl .timeline li::before { left: auto; right: 0; }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 18px; bottom: 0; border-left: 2px solid var(--line); }
.rtl .timeline li::after { left: auto; right: 4px; }
.timeline li:last-child::after { display: none; }

/* Progress tracker */
.progress { display: flex; gap: 6px; margin: 10px 0 4px; }
.progress span { flex: 1; height: 6px; border-radius: 9px; background: var(--line); }
.progress span.on { background: var(--brand); }

/* Online toggle */
.toggle-online { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius); color: #fff; background: #50586a; }
.toggle-online.on { background: var(--ok); }
.toggle-online .btn { background: #fff; color: var(--ink); }

/* Photos */
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.4rem; font-weight: 800; color: var(--brand-dark); flex: 0 0 54px; }

/* Stars */
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.stars input { display: none; }
.stars label { font-size: 2.2rem; color: var(--line); cursor: pointer; margin: 0; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #f5b301; }

/* Bottom tab bar (customer & driver) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: space-around;
  background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; color: var(--ink-2); padding: 4px 10px; }
.tabbar a span { font-size: 1.25rem; line-height: 1.3; }
.tabbar .tab-cta span { background: var(--brand); color: #fff; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 4px 12px rgba(255,90,31,.4); }

/* Admin sidebar */
.sidebar { position: fixed; top: 55px; left: 0; bottom: 0; width: 230px; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; overflow-y: auto; z-index: 40; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.side-link:hover { background: var(--bg); }
.side-link.active { background: var(--brand-soft); color: var(--brand-dark); }
.side-link .count { margin-left: auto; background: var(--bad); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; }
@media (max-width: 900px) {
  .sidebar { position: static; width: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; gap: 4px; }
  .side-link { white-space: nowrap; }
  .container.with-sidebar { margin-left: auto; }
}

/* Auth pages */
.auth-box { max-width: 420px; margin: 20px auto; }
.auth-box .card { padding: 24px; }

/* Bars (reports) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.bars .bar { flex: 1; background: var(--brand); border-radius: 6px 6px 0 0; min-height: 2px; position: relative; }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .72rem; padding: 3px 7px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; }
.bar-labels { display: flex; gap: 6px; font-size: .65rem; color: var(--muted); }
.bar-labels span { flex: 1; text-align: center; overflow: hidden; }

.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .big-emoji { font-size: 2.6rem; }
.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.rtl .list-item .title, .rtl .route b, .rtl h1, .rtl h2 { unicode-bidi: plaintext; }

/* Google Maps overlays */
.gpin { position: absolute; transform: translate(-50%, -92%); font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); user-select: none; white-space: nowrap; }
.glabel { position: absolute; transform: translate(-50%, -100%); background: #fff; color: var(--ink); font: 700 12px "Plus Jakarta Sans", sans-serif; padding: 3px 8px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.25); white-space: nowrap; pointer-events: none; }
.map-error { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; background: var(--bg); color: var(--ink-2); font-size: .9rem; font-weight: 600; }
.gm-style .gm-style-iw-c { font-family: "Plus Jakarta Sans", sans-serif; }

/* Address chooser */
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.saved-addr { margin: 0; cursor: pointer; }
.saved-addr input { position: absolute; opacity: 0; pointer-events: none; }
.saved-addr > span { position: relative; height: 100%; display: flex; flex-direction: column; gap: 3px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 500; }
.saved-addr span b { font-size: .95rem; }
.saved-addr span small { color: var(--ink-2); font-size: .85rem; line-height: 1.4; }
.saved-addr span em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); }
.saved-addr input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(255,90,31,.08); }

.saved-addr .tick { display: none; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: .75rem; place-items: center; }
.rtl .saved-addr .tick { right: auto; left: 10px; }
.saved-addr input:checked + span .tick { display: grid; }
.add-new-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 12px; border: 1.5px dashed var(--brand); border-radius: 12px; color: var(--brand-dark); font-weight: 700; cursor: pointer; background: #fff; }
.add-new-btn[hidden] { display: none; }
.add-new-btn input { position: absolute; opacity: 0; pointer-events: none; }
.add-new-btn:hover { background: var(--brand-soft); }
.link-btn { border: 0; background: none; color: var(--brand-dark); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; padding: 0; }
.addr-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.addr-tabs button { border: 0; background: transparent; padding: 10px; border-radius: 9px; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.addr-tabs button.active { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.save-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.save-row input[type=text] { flex: 1; min-width: 150px; padding: 9px 11px; }
.addr-typed { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--warn); background: var(--warn-soft); padding: 1px 8px; border-radius: 99px; }
.chips .area-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.area-field select { font-weight: 600; }
.assign-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .assign-grid { grid-template-columns: 1fr; } }
.addr-card { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 120px; }
.addr-card-name { display: flex; align-items: center; gap: 6px; }
.addr-card-name input { border: 1px solid transparent; padding: 3px 6px; font-weight: 800; font-size: .98rem; width: 100%; border-radius: 7px; }
.addr-card-name input:hover, .addr-card-name input:focus { border-color: var(--line); }
.fare-rule { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; opacity: .85; }

/* Booking wizard */
.wizard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.wizard-steps button { display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 12px; padding: 10px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); box-shadow: var(--shadow); cursor: pointer; text-align: start; }
.wizard-steps button b { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: .8rem; }
.wizard-steps button.active { color: var(--brand-dark); box-shadow: 0 0 0 2px var(--brand); }
.wizard-steps button.active b { background: var(--brand); color: #fff; }
.wizard-steps button.done b { background: var(--ok); color: #fff; }
.wizard-steps button.done b::after { content: ""; }
@media (max-width: 380px) { .wizard-steps button span { font-size: .72rem; } }
.route-summary .lbl a { text-transform: none; font-weight: 700; }
.tabbar a { flex: 1; }
.tabbar a.on { color: var(--brand-dark); }
/* Without JavaScript (or if it fails) the booking stays one long form */
body:not(.wiz-on) .wizard-steps, body:not(.wiz-on) [data-next], body:not(.wiz-on) [data-back], body:not(.wiz-on) .route-summary { display: none !important; }
body:not(.wiz-on) .wiz-pane + .wiz-pane { margin-top: 16px; }

/* ---------- Line icons (blue) ---------- */
:root { --icon: #1d4ed8; --icon-2: #2563eb; --icon-soft: #e8efff; }
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; color: var(--icon); flex-shrink: 0; }
.btn .ic { color: inherit; }
.btn-ghost .ic, .link-btn .ic { color: var(--icon); }
.alert .ic, .badge .ic, .addr-typed .ic { color: inherit; }
.ic-star { color: #f5a400 !important; fill: #f5a400; }
.stars-show { display: inline-flex; gap: 2px; }
.h-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--icon-soft); margin-inline-end: 10px; vertical-align: middle; }
.h-ic .ic { width: 20px; height: 20px; }
h1 .h-ic { width: 42px; height: 42px; } h1 .h-ic .ic { width: 24px; height: 24px; }
h2 .h-ic, h3 .h-ic { vertical-align: -10px; }
.brand-mark { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.brand-mark .ic { color: #fff; width: 18px; height: 18px; fill: #fff; }
.big-emoji { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 22px; background: var(--icon-soft); }
.big-emoji .ic { width: 36px; height: 36px; }
.big-emoji.bad { background: var(--bad-soft); } .big-emoji.bad .ic { color: var(--bad); }
.icon-circle { background: var(--icon-soft); }
.icon-circle .ic { width: 22px; height: 22px; }
.choice span em .ic { width: 30px; height: 30px; }
.choice input:checked + span em .ic { color: var(--icon); }
.saved-addr span b .ic, .addr-card-name .ic { width: 18px; height: 18px; }
.saved-addr span em .ic { width: 13px; height: 13px; color: var(--muted); }
.saved-addr .tick .ic { color: #fff; width: 13px; height: 13px; }
.addr-tabs button .ic { color: inherit; }
.addr-tabs button.active .ic { color: var(--icon); }
.fare-rule .ic { color: #93b4ff; }
.side-link .ic { width: 19px; height: 19px; color: var(--icon); }
.side-link.active .ic { color: var(--icon); }
.side-link.active { background: var(--icon-soft); color: var(--icon); }

/* Bottom tab bar: blue icons, raised blue Send button */
.tabbar a { color: #64748b; }
.tabbar a span { display: grid; place-items: center; height: 28px; }
.tabbar a span .ic { width: 23px; height: 23px; color: var(--icon-2); opacity: .8; }
.tabbar a.on span .ic { opacity: 1; }
.tabbar a.on { color: var(--icon); }
.tabbar a.on span .ic, .tabbar a:hover span .ic { color: var(--icon); }
.tabbar .tab-cta span { background: linear-gradient(135deg, #2563eb, #1d4ed8); width: 50px; height: 50px; border-radius: 16px; margin-top: -24px; box-shadow: 0 6px 16px rgba(29,78,216,.4); }
.tabbar .tab-cta span .ic { color: #fff !important; width: 26px; height: 26px; stroke-width: 2.5; }
.tabbar .tab-cta { color: var(--icon); font-weight: 800; }

/* Map pins */
.gpin { font-size: 0; }
.gpin-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #1d4ed8; box-shadow: 0 3px 8px rgba(0,0,0,.3); border: 2px solid #fff; }
.gpin-ic svg { width: 18px; height: 18px; color: #fff; transform: rotate(45deg); }
.map-legend { gap: 14px; } .map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .gpin-ic { width: 24px; height: 24px; } .map-legend .gpin-ic .ic { width: 13px; height: 13px; color: #fff; transform: rotate(45deg); }

/* ---------- Notification bell ---------- */
.bell-wrap { position: relative; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.bell .ic { width: 21px; height: 21px; }
.bell.has-new .ic { animation: bell-swing 1.2s ease-in-out 1; transform-origin: 50% 10%; }
@keyframes bell-swing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.bell-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: .7rem; line-height: 19px; text-align: center; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.bell-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: -8px; width: min(360px, calc(100vw - 20px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15,23,42,.18); z-index: 60; overflow: hidden; font-weight: 400; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.link-btn { background: none; border: 0; color: var(--icon); font-weight: 600; cursor: pointer; font-size: .85rem; padding: 0; }
.bell-push { display: flex; gap: 10px; align-items: center; padding: 10px 14px; background: var(--icon-soft); font-size: .84rem; color: var(--ink-2); }
.bell-push span { flex: 1; }
.bell-list { max-height: min(60vh, 420px); overflow-y: auto; }
.bell-empty { padding: 22px 14px; text-align: center; margin: 0; }
.bell-item { display: flex; gap: 11px; padding: 11px 14px; border-bottom: 1px solid #f1f3f6; color: var(--ink); text-decoration: none; }
.bell-item:hover { background: #f8fafc; }
.bell-item.unread { background: #f3f7ff; }
.bell-item.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--icon); margin-inline-start: 6px; vertical-align: middle; }
.bi-ic, .notif-ic, .toast-ic { width: 36px; height: 36px; border-radius: 11px; background: var(--icon-soft); display: grid; place-items: center; flex-shrink: 0; }
.bi-txt, .notif-txt { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; }
.bi-txt strong, .notif-txt strong { font-size: .9rem; }
.bi-txt span, .notif-txt span { color: var(--ink-2); overflow-wrap: anywhere; }
.bi-txt small { color: var(--muted); font-size: .75rem; }
.bell-all { display: block; text-align: center; padding: 11px; font-weight: 700; color: var(--icon) !important; }

/* Full list page */
.notif-list { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.notif a { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.notif.unread a { background: #f3f7ff; }
.push-card { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.push-row { display: flex; gap: 12px; align-items: center; }
.push-row p { margin: 2px 0 0; }
.push-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--icon-soft); display: grid; place-items: center; }
.push-ic .ic { width: 22px; height: 22px; }
.push-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.push-actions form.inline { display: inline; margin: 0; }

/* Toasts */
.toasts { position: fixed; top: 70px; inset-inline-end: 12px; z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--icon); border-radius: 14px; padding: 11px 13px; box-shadow: 0 12px 30px rgba(15,23,42,.18); color: var(--ink); text-decoration: none; transform: translateY(-14px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.show { transform: none; opacity: 1; }
.toast span:last-child { display: flex; flex-direction: column; font-size: .86rem; }
.toast small { color: var(--ink-2); }

/* ---------- Install / allow-notifications bottom sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 300; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); opacity: 0; transition: opacity .3s ease; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(15,23,42,.25); transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.9,.25,1.05); }
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: #d7dbe2; margin: 2px auto 14px; }
.sheet-app { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sheet-app img { border-radius: 14px; box-shadow: 0 4px 14px rgba(29,78,216,.35); }
.sheet-app div { display: flex; flex-direction: column; }
.sheet-app small { color: var(--muted); }
.sheet h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.sheet p { margin: 0 0 12px; color: var(--ink-2); }
.sheet-btns { display: grid; gap: 8px; margin-top: 8px; }
.sheet.rtl { direction: rtl; }
.ios-steps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.ios-steps li { display: flex; gap: 10px; align-items: center; background: #f6f8fc; border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.step-ic { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
@media (min-width: 700px) { .sheet { bottom: 24px; border-radius: 24px; } }
@media (max-width: 600px) { .bell-panel { position: fixed; top: 62px; left: 10px; right: 10px; inset-inline-end: 10px; width: auto; } }

.brand-logo { width: 34px; height: 34px; border-radius: 9px; display: block; }
.sheet-app img { box-shadow: 0 4px 14px rgba(0,0,0,.18); }

/* ---------- Cash collection (rider) ---------- */
.cash-alert { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #fff4c2, #ffe27a); border: 2px solid #f5b800; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; box-shadow: 0 6px 18px rgba(245,184,0,.25); }
.cash-alert > div { display: flex; flex-direction: column; line-height: 1.25; }
.cash-alert span { font-weight: 700; color: #6b4a00; text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
.cash-alert b { font-size: 1.7rem; font-weight: 800; color: #1a1300; }
.cash-alert small { color: #6b4a00; margin-top: 2px; }
.cash-alert-sm { padding: 10px 12px; box-shadow: none; margin-bottom: 12px; }
.cash-alert-sm b { font-size: 1.35rem; }
.cash-ic { width: 46px; height: 46px; border-radius: 13px; background: #1a1300; display: grid; place-items: center; flex-shrink: 0; }
.cash-ic .ic { color: #ffd84d; width: 24px; height: 24px; }
#cashAlert { animation: cash-pulse 1.6s ease-in-out 2; }
@keyframes cash-pulse { 50% { transform: scale(1.02); box-shadow: 0 8px 26px rgba(245,184,0,.5); } }
.cash-pill { display: inline-flex; gap: 4px; align-items: center; background: #ffe27a; color: #1a1300; font-weight: 800; border-radius: 99px; padding: 2px 9px; }
.cash-pill .ic { color: #1a1300; }
.cash-check { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-weight: 600; }
.cash-check input { width: 20px; height: 20px; }

/* Popup */
.modal-wrap { position: fixed; inset: 0; z-index: 400; background: rgba(15,23,42,.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; animation: fade-in .2s ease; }
.modal-wrap[hidden] { display: none; }
.modal-box { background: #fff; width: 100%; max-width: 420px; border-radius: 22px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; animation: pop-up .28s cubic-bezier(.2,.9,.25,1.1); }
@media (min-width: 600px) { .modal-wrap { align-items: center; } }
.modal-box h3 { margin: 10px 0 4px; font-size: 1.25rem; }
.modal-ic { width: 60px; height: 60px; border-radius: 18px; background: #1a1300; display: inline-grid; place-items: center; }
.modal-ic .ic { color: #ffd84d; width: 30px; height: 30px; }
.modal-ic.warn { background: var(--bad); }
.modal-ic.warn .ic { color: #fff; }
.modal-amount { font-size: 2.2rem; font-weight: 800; margin: 4px 0; }
.modal-btns { display: grid; gap: 10px; margin-top: 14px; }
.btn-ok .ic, .btn-dark .ic { color: inherit; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-up { from { transform: translateY(40px); opacity: 0; } }

/* Rider wallet */
.wallet-card { background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #3b82f6); color: #fff; border-radius: 20px; padding: 18px; margin-bottom: 14px; box-shadow: 0 10px 30px rgba(29,78,216,.3); }
.wallet-card .ic { color: #fff; }
.wallet-card small { opacity: .85; }
.wallet-amount { font-size: 2.3rem; font-weight: 800; margin: 4px 0 12px; }
.wallet-btn { background: #fff; color: #1d4ed8; }
.wallet-btn .ic { color: #1d4ed8; }
.wallet-btn:hover { background: #eef3ff; }
.wallet-note { display: block; text-align: center; margin-top: 6px; }
.money-row { margin-bottom: 14px; }
.stat-cash.due { background: #fff8d6; border: 2px solid #f5b800; }
.seg-choice { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-choice label { cursor: pointer; }
.seg-choice input { position: absolute; opacity: 0; pointer-events: none; }
.seg-choice span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; }
.seg-choice input:checked + span { border-color: var(--icon); background: var(--icon-soft); color: var(--icon); }
.acc-fields[hidden] { display: none; }

/* Admin: rider cash & wallet */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs a { padding: 9px 14px; border-radius: 10px 10px 0 0; color: var(--ink-2); font-weight: 600; border-bottom: 2.5px solid transparent; }
.tabs a.on { color: var(--icon); border-bottom-color: var(--icon); background: #fff; }
.tabs .count { background: #ef4444; color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; margin-inline-start: 4px; }
.cash-total { font-size: 1.4rem; font-weight: 800; color: var(--bad); text-align: end; line-height: 1.1; }
.cash-total small { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.cash-total.blue { color: var(--icon); }
.card.focus { outline: 2.5px solid var(--icon); }
.row-hl { background: #fffbea; }
a.stat { color: inherit; display: block; text-decoration: none; }
.cash-check[hidden] { display: none; }

/* ---------- Business COD ---------- */
.cod-card { border: 2px solid #f5b800; background: #fffdf3; }
.cod-toggle { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.cod-toggle input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; }
.cod-toggle span { display: flex; flex-direction: column; }
.cod-toggle small { color: var(--ink-2); font-weight: 400; }
#codBox { margin-top: 14px; }
#codBox[hidden], #payChoices[hidden] { display: none; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; font-weight: 700; }
.cod-lines { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.35); }
.cod-lines .total { font-size: 1.05rem; }
.cod-split { font-weight: 700 !important; color: #1a1300 !important; }
.code-box { display: flex; gap: 14px; align-items: center; background: #0f172a; color: #fff; border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.code-box .ic { color: #ffd84d; width: 26px; height: 26px; }
.code-box b { font-size: 1.9rem; letter-spacing: .3em; font-family: ui-monospace, monospace; color: #ffd84d; }
.code-box small { display: block; opacity: .8; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.track-head { text-align: center; margin: 6px 0 14px; }
.track-head small { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.track-head h1 { margin: 2px 0; }

/* Customer code */
.code-add { background: var(--icon-soft); border-radius: 14px; padding: 12px; margin: 0 0 14px; }
.code-add > label { font-weight: 700; display: block; margin-bottom: 6px; }
.code-add input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.code-res { margin-top: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; border: 1.5px solid var(--ok); }
.code-res.bad { border-color: var(--bad); color: var(--bad); }
.code-person { display: flex; flex-direction: column; margin-bottom: 10px; color: var(--ink); }
.code-person small { color: var(--ink-2); }
.saved-addr .linked { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); margin-inline-start: 4px; vertical-align: middle; }
.saved-addr .linked .ic { color: #fff; width: 11px; height: 11px; }
form.inline { display: inline; margin: 0; }
.fee-payer { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--icon-soft); font-size: .9rem; }
.fee-card { border: 2px solid var(--icon-soft); }
#feeHow[hidden], #feeDeduct[hidden] { display: none; }
.fee-methods { display: grid; gap: 8px; margin-top: 6px; }
.fee-methods label { cursor: pointer; }
.fee-methods input { position: absolute; opacity: 0; pointer-events: none; }
.fee-methods span { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; background: #fff; }
.fee-methods span small { color: var(--muted); font-weight: 500; }
.fee-methods input:checked + span { border-color: var(--icon); background: var(--icon-soft); color: var(--icon); }

/* Sent / Received */
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef1f6; padding: 5px; border-radius: 14px; margin-bottom: 14px; }
.seg-tabs a { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.seg-tabs a.on { background: #fff; color: var(--icon); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.seg-tabs .count { background: #ef4444; color: #fff; border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.icon-circle.in { background: #e7f7ee; }
.icon-circle.in .ic { color: var(--ok); }
.incoming-card { border: 2px solid #bfe8cf; }

/* Collapsible sections (customer code, promo code) — closed until the arrow is tapped */
.fold { border-radius: 14px; }
.fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; padding: 4px 0; user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary span { flex: 1; }
.fold .chev { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.12); transition: transform .2s ease; }
.fold[open] .chev { transform: rotate(180deg); }
.fold .fold-body { margin-top: 10px; animation: fade-in .2s ease; }
.code-add.fold { padding: 10px 12px; }
.promo-fold { background: #f6f8fc; padding: 10px 12px; }
#payCard:has(> .promo-fold:first-child) { padding: 14px; }

/* Online payment with admin check */
.pay-steps h3 { display: flex; gap: 8px; align-items: center; margin-top: 0; }
.step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--icon); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.pay-accounts { white-space: pre-wrap; font-family: inherit; background: #f6f8fc; border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; margin: 0 0 8px; font-weight: 600; direction: ltr; text-align: left; }
.pay-ref { margin-top: 10px; padding: 10px 12px; background: #f6f8fc; border-radius: 12px; }
.proof-thumb { display: block; max-width: 220px; max-height: 300px; margin-top: 10px; border-radius: 12px; border: 1px solid var(--line); }
.badge-verifying { background: #fff4d6; color: #8a5a00; }
.code-cell { letter-spacing: .08em; }

/* ---------- Mistakes & missing fields ---------- */
.has-error input:not([type=radio]):not([type=checkbox]), .has-error select, .has-error textarea,
input.has-error, select.has-error, textarea.has-error { border-color: #dc2626 !important; background: #fff5f5 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important; }
.choices.has-error, .seg-choice.has-error, .fee-methods.has-error, .cash-check.has-error, .cod-toggle.has-error, [data-addr].has-error { outline: 2px solid #dc2626; outline-offset: 4px; border-radius: 14px; }
.field-error { display: block; color: #b91c1c; font-size: .85rem; font-weight: 600; margin-top: 6px; line-height: 1.35; flex-basis: 100%; }
.input-group.has-error { flex-wrap: wrap; }
.shake { animation: ft-shake .45s ease; }
@keyframes ft-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ft-alerts { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 500; width: min(480px, calc(100vw - 20px)); pointer-events: none; }
.ft-alert { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(15,23,42,.25); transform: translateY(-20px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.ft-alert.show { transform: none; opacity: 1; }
.ft-alert.bad { background: #dc2626; }
.ft-alert.ok { background: #16a34a; }
.ft-alert-ic { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.ft-alert-msg { flex: 1; line-height: 1.4; }
.ft-alert button { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.confirm-card { border: 2px solid #16a34a; background: #f3fcf6; } .confirm-card .big { font-size: 1.6rem; font-weight: 800; }
.dispute-card { border: 2px solid #dc2626; } .confirm-hint { display: block; text-decoration: none; margin-bottom: 14px; }

/* ===== Fatafut apps (Mart · Food · Send · Ride) — sirf mobile, customers ===== */
.ff-apps{display:none}
@media (max-width:720px){
  .ff-apps{display:flex;gap:8px;padding:10px 12px 4px;padding-top:max(10px,env(safe-area-inset-top));overflow-x:auto;scrollbar-width:none;background:linear-gradient(135deg,#1d4ed8,#2563eb)}
  .ff-apps::-webkit-scrollbar{display:none}
  .ff-app{flex:1 0 68px;min-width:68px;max-width:92px;aspect-ratio:1/1;border-radius:18px;background:rgba(255,255,255,.94);display:flex;flex-direction:column;align-items:center;justify-content:center;text-decoration:none;color:#111;box-shadow:0 6px 14px rgba(0,0,0,.14)}
  .ff-app:active{transform:scale(.95)}
  .ff-app i{font-style:normal;font-size:21px;line-height:1;margin-bottom:2px}
  .ff-app small{font-size:9.5px;font-weight:700;opacity:.65;line-height:1.1}
  .ff-app b{font-size:14.5px;font-weight:800;line-height:1.1}
  .ff-mart b{color:#15803d}.ff-food b{color:#e11d48}.ff-send b{color:#ea580c}.ff-ride b{color:#0284c7}
  .ff-app.on{background:#ffd60a;box-shadow:0 0 0 3px rgba(255,255,255,.9),0 8px 18px rgba(0,0,0,.2)}
  .ff-app.on b{color:#3b2f00}
}
@media (max-width:720px){.ff-app{flex:1 0 60px;min-width:60px}.ff-app b{font-size:13.5px}.ff-medi b{color:#1556e6}.ff-apps{gap:7px}}
