:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #dbe4ee;
    --surface: #ffffff;
    --surface-soft: #f6f8fb;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --brand-soft: #ccfbf1;
    --navy: #111827;
    --danger: #b91c1c;
    --danger-soft: #fee2e2;
    --success: #047857;
    --success-soft: #d1fae5;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-soft);
    font-family: Tahoma, Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; margin-bottom: .55rem; }
h2 { line-height: 1.3; }
small { color: var(--muted); }

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: .65rem 1.05rem;
    font-weight: 800;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.button-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.button-small { min-height: 36px; padding: .45rem .8rem; font-size: .9rem; }
.button-large { min-height: 54px; padding: .85rem 1.35rem; font-size: 1.05rem; }

.brand-mark {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(145deg, #14b8a6, var(--brand));
    border-radius: 14px;
    box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .12);
    font-size: 1.3rem;
    font-weight: 900;
}
.brand-mark-large { width: 66px; height: 66px; border-radius: 20px; font-size: 2rem; }
.eyebrow { margin-bottom: .35rem; color: var(--brand); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 15%, rgba(20, 184, 166, .20), transparent 30%),
        linear-gradient(145deg, #0f172a 0 36%, #eef2f7 36% 100%);
}
.auth-shell { width: min(100% - 28px, 560px); min-height: 100vh; margin: auto; display: grid; place-items: center; padding: 36px 0; }
.install-shell { width: min(100% - 28px, 930px); }
.auth-card { width: 100%; padding: clamp(24px, 5vw, 46px); background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.7); border-radius: 28px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.auth-brand h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); margin-bottom: .25rem; }
.auth-brand p:last-child { margin-bottom: 0; color: var(--muted); }
.auth-brand-centered { justify-content: center; text-align: center; flex-direction: column; }
.stack-form { display: grid; gap: 1rem; }
.stack-form label { display: grid; gap: .45rem; color: #334155; font-weight: 800; }
.stack-form input, .stack-form select, .country-switcher select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    padding: .75rem .9rem;
    outline: none;
    background: #fff;
    color: var(--ink);
}
.stack-form input:focus, .stack-form select:focus, .country-switcher select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 118, 110, .11); }
.install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.install-grid h2 { margin: 1rem 0 0; font-size: 1.2rem; }
.span-two { grid-column: 1 / -1; }
.confirm-box { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: center; padding: .85rem 1rem; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 13px; }
.confirm-box input { width: 20px; min-height: 20px; flex: 0 0 auto; accent-color: var(--brand); }
.alert, .safety-note { margin-bottom: 1.2rem; padding: .9rem 1rem; border-radius: 13px; font-weight: 700; }
.alert-error { color: var(--danger); background: var(--danger-soft); border: 1px solid #fecaca; }
.alert-success { color: var(--success); background: var(--success-soft); border: 1px solid #a7f3d0; }
.alert-info { color: #075985; background: #e0f2fe; border: 1px solid #bae6fd; }
.safety-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.quiet-link { display: block; margin-top: 1.25rem; text-align: center; color: var(--muted); font-weight: 700; }

.public-header, .admin-header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 max(20px, calc((100vw - 1180px) / 2));
}
.public-header { background: #fff; border-bottom: 1px solid var(--line); }
.public-brand, .admin-brand { display: flex; align-items: center; gap: .75rem; }
.public-brand strong, .admin-brand strong { display: block; font-size: 1.35rem; }
.public-main { min-height: calc(100vh - 78px); padding: clamp(42px, 8vw, 110px) 20px; background: linear-gradient(150deg, #f8fafc, #ecfeff); }
.foundation-hero { max-width: 980px; margin: auto; text-align: center; }
.foundation-hero > p:not(.eyebrow) { max-width: 720px; margin: 0 auto 2rem; color: var(--muted); font-size: 1.08rem; }
.country-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; text-align: right; }
.country-card { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(15,23,42,.06); }
.country-card h2 { margin: 0 0 .1rem; font-size: 1.25rem; }
.country-card p { margin: 0; color: var(--muted); }
.country-flag { font-size: 2rem; }
.country-card .status-pill { margin-right: auto; }

.admin-page { background: #f2f5f8; }
.admin-header { color: #fff; background: var(--navy); }
.admin-brand small, .admin-user small { display: block; color: #94a3b8; }
.admin-user { display: flex; align-items: center; gap: 1rem; text-align: left; }
.admin-user .button-ghost { color: #fff; background: transparent; border-color: #475569; }
.admin-main { width: min(100% - 32px, 1180px); margin: auto; padding: 34px 0 70px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.25rem; }
.dashboard-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.country-switcher { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .55rem; width: min(100%, 320px); }
.country-switcher label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .85rem; font-weight: 800; }
.country-switcher label:first-child { grid-column: 1 / -1; margin-bottom: -.2rem; }
.country-switcher select { min-height: 44px; }
.isolation-banner { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; margin-bottom: 1rem; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; }
.isolation-banner p { margin: 0; color: #047857; }
.status-dot { width: 12px; height: 12px; flex: 0 0 auto; background: #10b981; border-radius: 999px; box-shadow: 0 0 0 6px rgba(16,185,129,.14); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card, .panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 8px 28px rgba(15,23,42,.05); }
.stat-card { display: grid; gap: .2rem; padding: 1.25rem; }
.stat-card span { color: var(--muted); font-weight: 800; }
.stat-card strong { font-size: 2.2rem; line-height: 1.2; }
.panel { margin-top: 1rem; padding: 1.25rem; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-heading h2, .next-panel h2 { margin-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; width: max-content; padding: .35rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.status-ready { color: var(--success); background: var(--success-soft); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .9rem .75rem; text-align: right; border-bottom: 1px solid #edf2f7; white-space: nowrap; }
th { color: var(--muted); font-size: .8rem; }
td small { display: block; }
tbody tr:last-child td { border-bottom: 0; }
.next-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: linear-gradient(135deg, #0f172a, #134e4a); color: #fff; }
.next-panel p:last-child { margin-bottom: 0; color: #cbd5e1; }
.next-panel .eyebrow { color: #5eead4; }
.phase-number { color: rgba(255,255,255,.15); font-size: 4rem; font-weight: 900; line-height: 1; }
.admin-footer { padding: 1.3rem 20px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 820px) {
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-heading { align-items: stretch; flex-direction: column; }
    .country-switcher { width: 100%; }
}

@media (max-width: 620px) {
    .install-grid, .country-grid { grid-template-columns: 1fr; }
    .span-two { grid-column: auto; }
    .auth-page { background: linear-gradient(165deg, #0f172a 0 18%, #eef2f7 18% 100%); }
    .auth-shell { width: min(100% - 18px, 560px); padding: 14px 0; }
    .auth-card { padding: 23px 18px; border-radius: 22px; }
    .auth-brand { align-items: flex-start; }
    .public-header, .admin-header { min-height: 70px; padding: 0 14px; }
    .admin-brand small, .admin-user > span { display: none; }
    .admin-main { width: min(100% - 20px, 1180px); padding-top: 22px; }
    .stat-grid { grid-template-columns: 1fr 1fr; gap: .65rem; }
    .stat-card { padding: 1rem; }
    .stat-card strong { font-size: 1.75rem; }
    .panel { padding: 1rem; border-radius: 17px; }
    .next-panel { align-items: flex-start; }
    .phase-number { font-size: 2.8rem; }
}

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

/* Tow customer request flow 0.3.0 */
[hidden] { display: none !important; }
.request-page { min-height: 100vh; background: #eef4f5; }
.request-header { position: sticky; z-index: 900; top: 0; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.request-header small { display: block; margin-top: -.2rem; }
.header-request-link { padding: .55rem .85rem; color: #fff; background: var(--brand); border-radius: 11px; font-weight: 800; }
.header-public-nav { display: flex; align-items: center; gap: 1rem; font-size: .9rem; font-weight: 800; }
.live-service { display: inline-flex; align-items: center; gap: .55rem; color: #334155; font-size: .88rem; font-weight: 800; }
.live-service i { width: 9px; height: 9px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 5px rgba(16,185,129,.14); }
.request-main { min-height: calc(100vh - 78px); padding: clamp(28px, 5vw, 60px) 18px 70px; background: radial-gradient(circle at 15% 3%, rgba(20,184,166,.14), transparent 28%), linear-gradient(180deg, #f8fbfb, #eef3f6); }
.request-intro { width: min(100%, 820px); margin: 0 auto 22px; text-align: center; }
.request-intro h1 { max-width: 760px; margin-inline: auto; font-size: clamp(2rem, 6vw, 3.6rem); }
.request-intro > p:not(.eyebrow) { max-width: 640px; margin: 0 auto 1rem; color: var(--muted); font-size: 1.04rem; }
.quick-services { margin: 1.35rem 0 1rem; text-align: right; }
.quick-services h2 { margin: 0 0 .7rem; font-size: 1.16rem; }
.quick-services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; }
.quick-service { display: flex; min-height: 90px; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: .55rem .4rem; color: var(--ink); background: #fff; border: 1px solid #dbe4ee; border-radius: 16px; box-shadow: 0 5px 16px rgba(15, 23, 42, .045); text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.quick-service:hover { border-color: #5eead4; transform: translateY(-2px); }
.quick-service.is-selected { background: #ecfdf5; border: 2px solid var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, .09); }
.quick-service-icon { display: grid; width: 38px; height: 38px; place-items: center; background: #f0fdfa; border-radius: 12px; font-size: 1.45rem; line-height: 1; }
.quick-service-label { font-size: .85rem; font-weight: 800; line-height: 1.35; }
.quick-services-hint { margin: .7rem 0 0; color: var(--muted); font-size: .81rem; }
.safety-strip { display: flex; align-items: center; justify-content: center; gap: .65rem; width: max-content; max-width: 100%; margin: 1rem auto 0; padding: .65rem .9rem; color: #854d0e; background: #fef9c3; border: 1px solid #fde68a; border-radius: 14px; text-align: right; }
.safety-strip p { margin: 0; font-size: .88rem; }
.request-shell { width: min(100%, 760px); margin: auto; }
.request-alert { position: sticky; z-index: 800; top: 88px; margin-bottom: 12px; padding: .9rem 1rem; border-radius: 15px; font-weight: 800; box-shadow: 0 12px 32px rgba(15,23,42,.14); }
.request-alert.is-error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.request-alert.is-success { color: #065f46; background: #d1fae5; border: 1px solid #a7f3d0; }
.request-step { margin-bottom: 14px; padding: clamp(20px, 4vw, 30px); background: #fff; border: 1px solid #dce6ea; border-radius: 24px; box-shadow: 0 14px 44px rgba(15,23,42,.07); scroll-margin-top: 92px; }
.request-shell { scroll-margin-top: 92px; }
.request-step.is-active { border-color: #99f6e4; }
.step-heading { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.2rem; }
.step-number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; background: var(--brand); border-radius: 12px; font-weight: 900; box-shadow: 0 8px 22px rgba(15,118,110,.22); }
.step-heading h2 { margin: 0 0 .2rem; font-size: clamp(1.2rem, 4vw, 1.5rem); }
.step-heading p { margin: 0; color: var(--muted); font-size: .92rem; }
.button-full { width: 100%; }
.button-location { width: 100%; min-height: 68px; color: #fff; background: linear-gradient(135deg, #0f766e, #0d9488); border-radius: 18px; font-size: 1.13rem; box-shadow: 0 13px 28px rgba(15,118,110,.22); }
.button-location:disabled, .button-primary:disabled { cursor: wait; opacity: .75; transform: none; }
.button-icon { font-size: 1.75rem; line-height: 1; }
.location-progress { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: 1rem; color: var(--brand); font-weight: 800; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(15,118,110,.2); border-top-color: var(--brand); border-radius: 50%; animation: tow-spin .8s linear infinite; }
.spinner-light { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes tow-spin { to { transform: rotate(360deg); } }
.location-confirmation { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.1rem 0 .65rem; padding: .8rem 1rem; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; }
.location-confirmation strong, .location-confirmation small { display: block; }
.location-confirmation small { margin-top: .1rem; }
.text-button { padding: .3rem; color: var(--brand); background: transparent; border: 0; font-weight: 900; white-space: nowrap; }
.request-map { width: 100%; height: 300px; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 18px; background: #e2e8f0; }
.drivers-map { height: 340px; margin-bottom: 1rem; }
.map-help { margin: .55rem .2rem 0; color: var(--muted); font-size: .82rem; }
.tow-map-icon-wrap { background: transparent !important; border: 0 !important; }
.tow-map-icon { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; color: #fff; background: var(--brand); border: 4px solid #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(15,23,42,.28); font-weight: 900; }
.pickup-icon { background: #2563eb; }
.driver-icon { width: 38px; height: 38px; background: #111827; }
.leaflet-popup-content { direction: rtl; text-align: right; font-family: Tahoma, Arial, sans-serif; }
.service-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.service-option { display: flex; min-height: 96px; align-items: center; gap: .8rem; padding: .9rem; color: var(--ink); background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 17px; text-align: right; transition: border-color .15s, background .15s, transform .15s; }
.service-option:hover { transform: translateY(-1px); border-color: #99f6e4; }
.service-option.is-selected { background: #ecfdf5; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.09); }
.service-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; background: #fff; border: 1px solid #dbe4ee; border-radius: 13px; font-size: 1.35rem; }
.service-option strong, .service-option small { display: block; }
.service-option strong { margin-bottom: .15rem; }
.service-option small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.customer-form { display: grid; gap: .9rem; }
.field-label, .customer-form label > span { color: #334155; font-weight: 800; }
.field-label b { color: #b91c1c; font-size: .75rem; }
.phone-field { display: flex; direction: ltr; overflow: hidden; min-height: 58px; border: 1px solid #cbd5e1; border-radius: 15px; background: #fff; }
.phone-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.11); }
.phone-field span { display: flex; align-items: center; padding: 0 1rem; color: #334155; background: #f1f5f9; border-right: 1px solid #cbd5e1; font-weight: 900; }
.phone-field input { width: 100%; min-width: 0; padding: .8rem 1rem; border: 0; outline: 0; direction: ltr; text-align: left; font-size: 1.08rem; }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.compact-grid label { display: grid; gap: .4rem; }
.compact-grid small { font-weight: 500; }
.compact-grid input, .compact-grid select { width: 100%; min-height: 52px; padding: .7rem .8rem; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 13px; outline: 0; }
.compact-grid input:focus, .compact-grid select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,118,110,.1); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.driver-results { display: grid; gap: .75rem; margin: 1rem 0; }
.driver-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .85rem; padding: 1rem; border: 1px solid #dbe4ee; border-radius: 17px; background: #fff; }
.driver-card:hover { border-color: #99f6e4; box-shadow: 0 8px 22px rgba(15,23,42,.06); }
.driver-rank { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: #111827; border-radius: 12px; font-weight: 900; }
.driver-info h3 { margin: .15rem 0 0; font-size: 1.05rem; }
.driver-info > p { margin: 0; color: var(--muted); font-size: .86rem; }
.verified-badge { color: #047857; font-size: .72rem; font-weight: 900; }
.best-rated-badge { display: inline-block; margin-inline-start: .4rem; padding: .16rem .38rem; color: #92400e; background: #fef3c7; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.driver-rating { margin-top: .3rem; color: #a16207; font-size: .8rem; font-weight: 900; }
.driver-meta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; color: #334155; font-size: .82rem; font-weight: 800; }
.rating-verification-note { margin: .75rem 0; padding: .7rem .8rem; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; font-size: .78rem; line-height: 1.6; }
.choose-driver { min-width: 86px; }
.empty-results { padding: 2rem 1rem; text-align: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 18px; }
.empty-results span, .empty-results strong { display: block; }
.empty-results span { margin-bottom: .5rem; font-size: 2.5rem; }
.empty-results p { max-width: 470px; margin: .4rem auto 0; color: var(--muted); }
.success-step { padding-block: clamp(30px, 6vw, 52px); text-align: center; border-color: #6ee7b7; }
.success-check { display: grid; width: 72px; height: 72px; place-items: center; margin: 0 auto 1rem; color: #fff; background: #10b981; border-radius: 50%; box-shadow: 0 12px 28px rgba(16,185,129,.28); font-size: 2.2rem; font-weight: 900; }
.success-step > p:not(.eyebrow):not(.fine-print) { color: var(--muted); }
.request-code-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; padding: .9rem 1rem; background: #f1f5f9; border: 1px dashed #94a3b8; border-radius: 14px; }
.request-code-box span { color: var(--muted); }
.request-code-box strong { direction: ltr; font-size: 1.15rem; letter-spacing: .04em; }
.button-whatsapp { margin-bottom: .7rem; color: #fff; background: #16a34a; }
.button-whatsapp:hover { background: #15803d; }
.fine-print { margin: .8rem 0 0; color: var(--muted); font-size: .8rem; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1.2rem; width: min(100%, 760px); margin: 1.2rem auto 0; color: #475569; font-size: .82rem; font-weight: 800; }
.trust-row span::first-letter { color: #059669; }
.no-commission-note { width: min(100%, 760px); margin: .7rem auto 0; color: var(--muted); text-align: center; font-size: .76rem; line-height: 1.6; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem max(18px, calc((100vw - 760px) / 2)); color: var(--muted); background: #fff; border-top: 1px solid var(--line); font-size: .82rem; }
.public-footer a { font-weight: 800; }
.tracking-main { min-height: calc(100vh - 78px); }
.tracking-card { border-color: #99f6e4; }
.tracking-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tracking-title h1 { margin-bottom: .2rem; font-size: clamp(1.65rem, 6vw, 2.5rem); }
.tracking-title p { margin: 0; direction: ltr; color: var(--muted); text-align: right; font-weight: 900; }
.tracking-pulse { width: 16px; height: 16px; flex: 0 0 auto; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 0 rgba(16,185,129,.4); animation: tracking-pulse 1.8s infinite; }
.tracking-pulse.is-stopped { background: #94a3b8; animation: none; }
@keyframes tracking-pulse { 70% { box-shadow: 0 0 0 14px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
.tracking-summary { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; }
.tracking-summary > div { padding: .8rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 13px; }
.tracking-summary span, .tracking-summary strong { display: block; }
.tracking-summary span { color: var(--muted); font-size: .78rem; }
.tracking-map { height: 390px; }
.tracking-driver { margin-bottom: .9rem; }
.tracking-refresh { color: var(--muted); text-align: center; font-size: .78rem; }
.invalid-check { background: #ef4444; }
.review-card textarea { width: 100%; min-height: 100px; padding: .8rem; resize: vertical; border: 1px solid #cbd5e1; border-radius: 13px; font: inherit; }
.star-rating { display: flex; direction: ltr; flex-direction: row-reverse; justify-content: center; gap: .3rem; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { color: #cbd5e1; cursor: pointer; font-size: 2.4rem; line-height: 1; transition: color .15s, transform .15s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f59e0b; transform: translateY(-1px); }

/* Admin navigation and request screens */
.admin-nav { display: flex; align-items: center; gap: .3rem; margin-inline: auto; }
.admin-nav a { padding: .5rem .75rem; color: #cbd5e1; border-radius: 10px; font-weight: 800; }
.admin-nav a:hover { color: #fff; background: #273449; }
.status-new, .status-matching { color: #075985; background: #e0f2fe; }
.status-driver_assigned, .status-en_route, .status-arrived, .status-in_service, .status-active { color: #92400e; background: #fef3c7; }
.status-completed { color: #047857; background: #d1fae5; }
.status-cancelled, .status-no_driver { color: #b91c1c; background: #fee2e2; }
.request-list-actions { display: flex; gap: .45rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.detail-card { padding: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 15px; }
.detail-card > span { display: block; margin-bottom: .25rem; color: var(--muted); font-size: .78rem; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.button-whatsapp-admin { color: #fff; background: #16a34a; }
.button-danger { color: #fff; background: #dc2626; }
.button-danger:hover { background: #b91c1c; }
.review-admin-list { display: grid; gap: .8rem; }
.review-admin-card { padding: 1rem; border: 1px solid #e2e8f0; border-radius: 15px; background: #fff; }
.review-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.review-admin-head strong, .review-admin-head span { display: block; }
.review-admin-head strong { color: #f59e0b; letter-spacing: .08em; }
.review-admin-card > p { margin: .75rem 0; color: #334155; }
.review-admin-card > small { display: block; color: var(--muted); }
.review-moderation-form { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .9rem; }
.review-moderation-form input { min-width: 220px; flex: 1 1 280px; padding: .65rem .75rem; border: 1px solid #cbd5e1; border-radius: 10px; }
.status-pending { color: #92400e; background: #fef3c7; }
.status-approved { color: #047857; background: #d1fae5; }
.status-rejected { color: #b91c1c; background: #fee2e2; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: 1rem; color: #854d0e; background: #fef9c3; border: 1px solid #fde68a; border-radius: 15px; }

/* Helpful, crawlable service content follows the emergency request form. */
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 1rem; }
.seo-section { width: min(100%, 1020px); margin: 2.5rem auto 0; scroll-margin-top: 100px; }
.seo-section h2 { margin-bottom: .7rem; font-size: clamp(1.5rem, 3.2vw, 2rem); }
.seo-section > p:not(.eyebrow), .section-lead { max-width: 78ch; color: #475569; }
.seo-section-soft { padding: clamp(20px, 4vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.25rem; }
.seo-card { padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.seo-card > span { font-size: 1.6rem; }
.seo-card h3 { margin: .5rem 0; font-size: 1.1rem; }
.seo-card p { margin-bottom: 0; color: #475569; }
.seo-card-link { display: inline-block; margin-top: .8rem; color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.seo-steps { display: grid; gap: .7rem; padding: 0 1.35rem 0 0; color: #334155; }
.seo-steps li { padding-inline-start: .3rem; }
.seo-faq { display: grid; gap: .6rem; margin: 1.2rem 0; }
.seo-faq details { padding: .8rem 1rem; background: #f8fafc; border: 1px solid var(--line); border-radius: 13px; }
.seo-faq summary { cursor: pointer; font-weight: 800; }
.seo-faq details p { margin: .7rem 0 0; color: #475569; }
.seo-section .button { margin-top: .35rem; }
:focus-visible { outline: 3px solid #0d9488; outline-offset: 3px; }

/* Tow editorial and driver service pages */
.editor-form { max-width: 850px; }
.editor-form textarea, .stack-form textarea { width: 100%; min-height: 110px; padding: .8rem .9rem; font: inherit; border: 1px solid #cbd5e1; border-radius: 13px; resize: vertical; }
.editor-form textarea[name="body"] { min-height: 370px; }
.editor-form .detail-actions { margin-top: .8rem; }
.editor-actions { display: flex; align-items: center; gap: .4rem; }
.editor-actions input { width: 165px; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1rem; margin-top: 1.5rem; }
.media-card { display: grid; gap: .3rem; padding: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.media-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 9px; }
.media-card strong { overflow-wrap: anywhere; }
.driver-services-list { display: grid; gap: .55rem; }
.driver-service-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: 11px; }
.driver-service-item small { display: block; }
.blog-main { width: min(100% - 32px, 1080px); min-height: 65vh; margin: 2.5rem auto 5rem; }
.blog-heading { max-width: 760px; margin-bottom: 2rem; }
.blog-heading > p:last-child { color: var(--muted); }
.blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.blog-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.blog-card img { display: block; width: 100%; height: 195px; object-fit: cover; }
.blog-card-text { padding: 1.2rem; }
.blog-card h2 { margin: .45rem 0; font-size: 1.12rem; }
.blog-card p { color: #475569; font-size: .92rem; }
.blog-card span { color: var(--brand); font-weight: 800; }
.blog-pages { display: flex; gap: 1rem; margin-top: 1.5rem; }
.blog-breadcrumb { margin-bottom: 1.25rem; color: var(--muted); }
.blog-article { max-width: 790px; margin: auto; padding: clamp(20px,4vw,42px); background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.blog-article h1 { margin-top: .45rem; }
.blog-article figure { margin: 1.3rem 0; }
.blog-article figure img { display: block; width: 100%; height: auto; border-radius: 16px; }
.article-body figcaption { margin-top: .45rem; color: var(--muted); font-size: .85rem; }
.blog-intro { color: #475569; font-size: 1.08rem; }
.article-body { line-height: 1.95; color: #273449; }
.article-body h2, .article-body h3 { margin: 1.6rem 0 .65rem; color: var(--ink); }
.article-cta { margin-top: 2.2rem; padding: 1.2rem; border: 1px solid #99f6e4; border-radius: 16px; background: #ecfdf5; }

@media (max-width: 700px) {
    .quick-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
    .quick-service { min-height: 80px; padding: .45rem .25rem; border-radius: 13px; }
    .quick-service-label { font-size: .78rem; }
    .quick-service-icon { width: 34px; height: 34px; font-size: 1.3rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .header-public-nav { gap: .6rem; }
    .driver-service-item { align-items: flex-start; flex-direction: column; }
    .seo-grid { grid-template-columns: 1fr; }
    .seo-section { margin-top: 2rem; }
    .request-main { padding: 22px 10px 48px; }
    .request-intro { padding-inline: 8px; }
    .request-intro h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
    .request-step { padding: 18px 15px; border-radius: 20px; }
    .request-map { height: 260px; }
    .drivers-map { height: 300px; }
    .service-options { grid-template-columns: 1fr; }
    .service-option { min-height: 80px; }
    .compact-grid { grid-template-columns: 1fr; }
    .driver-card { grid-template-columns: auto minmax(0, 1fr); }
    .driver-card .choose-driver { grid-column: 1 / -1; width: 100%; }
    .detail-grid { grid-template-columns: 1fr; }
    .admin-nav { order: 3; width: 100%; justify-content: center; }
    .admin-header { flex-wrap: wrap; padding-block: 8px; }
}

@media (max-width: 430px) {
    .request-header small { display: none; }
    .live-service { font-size: .76rem; }
    .safety-strip { align-items: flex-start; }
    .step-heading { gap: .7rem; }
    .step-number { width: 34px; height: 34px; }
    .location-confirmation { align-items: flex-start; }
    .trust-row { display: grid; grid-template-columns: 1fr 1fr; text-align: center; }
}
/* Reusable editorial layout: each site changes the theme variables and brand only. */
.admin-main:has(.article-editor) { width:min(100% - 32px,1580px); }
.article-editor { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px, 340px); align-items:start; gap:24px; direction:rtl; }
.editor-top { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:32px 0 24px; }
.editor-top h1 { margin:0; font-size:clamp(1.6rem,3vw,2.25rem); }
.editor-top p { color:var(--muted); }
.editor-top-actions { display:flex; flex-wrap:wrap; gap:12px; }
.editor-card { min-width:0; padding:clamp(20px,2.4vw,34px); background:#fff; border:1px solid var(--line); border-radius:23px; box-shadow:0 12px 26px rgba(15,23,42,.045); }
.editor-card h2 { font-size:1.32rem; margin:0 0 22px; }
.editor-card h3 { margin:12px 0; }
.editor-main-card > label,.editor-inner > label,.editor-media > label,.publish-sidebar > label { display:block; margin:0 0 18px; font-weight:750; }
.editor-card label small { color:var(--muted); font-weight:450; }
.editor-card input:not([type=file]),.editor-card select,.editor-card textarea { width:100%; margin-top:8px; padding:.88rem 1rem; border:1px solid #d1ddea; border-radius:12px; color:var(--ink); background:#fff; font:inherit; }
.editor-card textarea { line-height:1.8; resize:vertical; }
.editor-hint { background:#effefd; border:1px solid #95ebeb; border-radius:12px; padding:12px 15px; margin-bottom:24px; }
.slug-input { display:flex; direction:ltr; align-items:center; border:1px solid #d1ddea; border-radius:12px; background:#f8fafc; overflow:hidden; margin-top:8px; }
.slug-input span { white-space:nowrap; padding:0 12px; color:#64748b; font-size:.83rem; }
.slug-input input { border:0!important; margin:0!important; border-radius:0!important; min-width:0; direction:ltr; }
.editor-more, .seo-sidebar details { border:1px solid #d9e5ef; border-radius:12px; padding:13px 15px; margin:0 0 20px; }
.editor-more summary,.seo-sidebar summary { cursor:pointer; font-weight:750; color:var(--brand); }
.editor-inner { padding-top:16px; }
.editor-tools { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0; }
.editor-tools button { background:#e0f2fe; border:0; border-radius:9px; padding:7px 10px; cursor:pointer; font:inherit; color:#07537a; }
.editor-media { border-top:1px solid var(--line); padding-top:24px; margin-top:24px; }
.editor-sidebar { display:grid; gap:22px; }
.seo-sidebar p,.seo-sidebar small { color:var(--muted); }
.seo-check-list { padding-inline-start:16px; line-height:1.65; }
.seo-pass { color:#126c4d; }.seo-pending { color:#98560e; }
.media-search { display:flex; gap:10px; margin:24px 0; }.media-search input { flex:1; border:1px solid var(--line); border-radius:10px; padding:12px; }
.inline-form { display:inline; }
@media(max-width:860px){.article-editor { grid-template-columns:1fr; }.editor-top { flex-direction:column; align-items:stretch; }.editor-top-actions { order:2; }.editor-sidebar { grid-template-columns:1fr; }}
@media(max-width:480px){.editor-top-actions .button { flex:1; text-align:center; }.slug-input span { font-size:.7rem; padding:0 5px; }}
