/* =========================================================
   YükYolu — dizayn sistemi
   Asfalt + yol nişanı sarısı. Marşrut = yol xətti.
   ========================================================= */

:root {
  --asphalt: #1d262c;
  --asphalt-2: #2b363d;
  --asphalt-3: #3a474f;
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #1d262c;
  --ink-2: #57646c;
  --ink-3: #8a959b;
  --line: #dde2e0;
  --line-2: #c9d0cd;
  --signal: #f5b800;
  --signal-hover: #ffc824;
  --signal-soft: #fff4cc;
  --link: #1c5b9a;
  --ok: #17804e;
  --ok-soft: #e1f3e9;
  --info: #1f5d9e;
  --info-soft: #e5eef8;
  --danger: #b9382a;
  --danger-soft: #fbe8e5;
  --tg: #2aabee;
  --tg-hover: #1f99d9;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", var(--font);

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --container: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; padding-bottom: 56px; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
.h-sm { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.error-text { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--signal); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; box-shadow: 0 0 0 5px var(--asphalt); border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 780px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------------- Brend ---------------- */
.brand-mark { display: inline-flex; gap: 3px; align-items: center; width: 30px; height: 30px; padding: 0 5px; background: var(--signal); border-radius: 7px; flex: none; }
.brand-mark span { display: block; height: 4px; flex: 1; background: var(--asphalt); border-radius: 1px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-text { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; letter-spacing: .01em; }

/* ---------------- Header ---------------- */
.site-header { background: var(--asphalt); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.site-header .logo { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav > a, .nav-right > a:not(.btn) { color: #d9dfe2; text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: .95rem; }
.site-nav > a:hover, .nav-right > a:not(.btn):hover { color: #fff; background: var(--asphalt-2); }
.site-nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.bell-label { display: none; }
.bell .badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: var(--ink); font-size: .72rem; font-weight: 700; line-height: 18px; text-align: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.15; font-size: .9rem; max-width: 160px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-chip-text small { color: var(--ink-3); font-size: .75rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--asphalt-3); color: #fff; display: inline-grid; place-items: center; font-weight: 600; font-size: .9rem; flex: none; }
.site-header .avatar { background: var(--signal); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Düymələr ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-sm);
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); color: var(--ink); }
.btn-dark { background: var(--asphalt); color: #fff; }
.btn-dark:hover { background: var(--asphalt-2); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-hover); color: #fff; }
.btn-danger-ghost { background: transparent; border-color: transparent; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); }
.link-strong { font-weight: 600; color: var(--ink); }

/* ---------------- Kartlar ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h2 { font-size: 1.35rem; }

/* ---------------- Formalar ---------------- */
.form label { display: block; font-weight: 500; font-size: .95rem; }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; }
input[type=text], input:not([type]), input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], input[inputmode], select, textarea {
  display: block; width: 100%; min-height: 46px; padding: 10px 12px;
  font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s;
}
textarea { resize: vertical; min-height: 90px; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2357646c' d='M6 8 0 1.4 1.4 0 6 4.8 10.6 0 12 1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 3px var(--signal-soft), 0 0 0 4px var(--signal); }
.form small { display: block; color: var(--ink-2); font-weight: 400; margin-top: 5px; }
.optional { font-weight: 400; color: var(--ink-3); font-size: .85rem; margin-left: 4px; }
.field-error { display: block; color: var(--danger); font-weight: 500; font-size: .875rem; margin-top: 5px; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
legend { font-family: var(--font-cond); font-weight: 700; font-size: 1.2rem; padding: 0; margin-bottom: 12px; }
fieldset > * + * { margin-top: 14px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }

/* Rol seçimi */
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-option input { position: absolute; opacity: 0; pointer-events: none; }
.role-box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background-color .15s; color: var(--ink-2); }
.role-box b { color: var(--ink); font-family: var(--font-cond); font-size: 1.15rem; }
.role-box small { font-weight: 400; }
.role-box svg { color: var(--ink-3); margin-bottom: 4px; }
.role-option input:checked + .role-box { border-color: var(--asphalt); background: var(--signal-soft); box-shadow: inset 0 0 0 1px var(--asphalt); }
.role-option input:checked + .role-box svg { color: var(--asphalt); }
.role-option input:focus-visible + .role-box { outline: 3px solid var(--signal); outline-offset: 2px; }
.form:has(input[name=role][value=driver]:checked) .only-owner,
.form:has(input[name=role][value=owner]:checked) .only-driver { display: none; }

/* Çip seçimləri (bölgələr) */
.region-search { max-width: 280px; }
.region-group + .region-group { margin-top: 14px; }
.region-group-title { display: block; font-size: .85rem; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: .9rem; font-weight: 500; cursor: pointer; user-select: none; background: var(--surface); }
.chip-check span:hover { border-color: var(--ink-3); }
.chip-check input:checked + span { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.chip-check.hidden { display: none; }

/* Keçid (switch) */
.switch { display: inline-flex !important; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch-track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-2); position: relative; transition: background-color .2s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-track { background: var(--ok); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------------- Bildiriş qutuları ---------------- */
.flash-wrap { padding-top: 16px; }
.alert { padding: 13px 16px; border-radius: var(--r-sm); border-left: 4px solid; font-weight: 500; margin-bottom: 12px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-success { background: var(--ok-soft); border-color: var(--ok); color: #0e5434; }
.alert-error { background: var(--danger-soft); border-color: var(--danger); color: #7c2318; }
.alert-info { background: var(--info-soft); border-color: var(--info); color: #173f69; }
.alert a { color: inherit; font-weight: 600; }

/* ---------------- Status nişanları ---------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-open { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill-pending { background: var(--signal-soft); color: #7a5a00; border-color: transparent; }
.pill-accepted { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill-assigned { background: var(--info-soft); color: var(--info); border-color: transparent; }
.pill-rejected, .pill-withdrawn, .pill-completed { color: var(--ink-2); }
.pill-cancelled { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* =========================================================
   Marşrut — saytın imzası
   ========================================================= */
.route { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 14px; min-width: 0; }
.route-end { display: flex; flex-direction: column; min-width: 0; }
.route-end.to { text-align: right; }
.route-city { font-family: var(--font-cond); font-weight: 700; font-size: 1.3rem; line-height: 1.1; overflow-wrap: anywhere; }
.route-note { font-size: .85rem; color: var(--ink-2); }
.route-road { position: relative; height: 10px; background: var(--asphalt); border-radius: 5px; display: flex; align-items: center; padding: 0 3px; }
.route-lane { flex: 1; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--signal) 0 8px, transparent 8px 14px); }
.route-dot { width: 4px; height: 4px; border-radius: 50%; background: #fff; flex: none; }
.route-dot.end { background: var(--signal); width: 6px; height: 6px; }

.route-lg { gap: 20px; }
.route-lg .route-city { font-size: clamp(1.9rem, 5.5vw, 3.2rem); color: #fff; }
.route-lg .route-note { color: #b9c3c8; font-size: .95rem; margin-top: 4px; }
.route-lg .route-road { height: 18px; border-radius: 9px; background: var(--asphalt-3); }
.route-lg .route-lane { height: 3px; background: repeating-linear-gradient(90deg, var(--signal) 0 18px, transparent 18px 30px); }
.route-lg .route-dot { width: 8px; height: 8px; }
.route-lg .route-dot.end { width: 10px; height: 10px; }

/* ---------------- Elan kartları ---------------- */
.load-list { display: flex; flex-direction: column; gap: 12px; }
.load-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.load-card:hover { border-color: var(--ink-3); }
.load-card-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 18px 20px; color: inherit; text-decoration: none; }
.load-card-main { min-width: 0; }
.load-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; color: var(--ink-2); font-size: .92rem; }
.load-facts b { color: var(--ink); font-weight: 600; }
.load-card-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; min-width: 130px; border-left: 1px dashed var(--line-2); padding-left: 20px; }
.load-price { font-family: var(--font-cond); font-weight: 700; font-size: 1.45rem; line-height: 1.1; white-space: nowrap; }
.load-price.muted-price { font-size: 1.05rem; color: var(--ink-2); }
.load-date { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; background: var(--paper); padding: 4px 10px; border-radius: var(--r-sm); white-space: nowrap; }
.load-card-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 20px; border-top: 1px dashed var(--line); font-size: .875rem; }
.fresh { color: var(--ok); font-weight: 600; }

/* ---------------- Səhifə başlıqları ---------------- */
.page-head { padding-top: 32px; padding-bottom: 20px; }
.page-head h1 { margin-bottom: 4px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; margin-bottom: 12px; }
.back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--ink); }
.back-light { color: #b9c3c8; }
.back-light:hover { color: #fff; }
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.count { display: inline-block; min-width: 24px; padding: 0 7px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font: 600 .8rem/22px var(--font); text-align: center; vertical-align: middle; color: var(--ink-2); }

/* Tablar */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--ink-2); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); border-color: var(--signal); }
.tabs a.active .count { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }

/* Filtr paneli */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 18px; }
.filter-bar label { flex: 1 1 170px; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.filter-bar .btn { flex: none; min-height: 46px; }
.filter-bar.compact label { flex: 0 1 260px; }
.swap { flex: none; width: 40px; height: 46px; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: var(--r-sm); }
.swap:hover { background: var(--paper); color: var(--ink); }

/* Səhifələmə */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a, .pagination .gap { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--ink); }
.pagination a { border: 1px solid var(--line-2); background: var(--surface); }
.pagination a.current { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }

/* Boş vəziyyət */
.empty-state { text-align: center; padding: 40px 20px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { color: var(--ink-2); max-width: 420px; margin: 0 auto 18px; }
.empty-state.big { padding: 80px 20px; }
.empty-road { width: 140px; height: 12px; margin: 0 auto 20px; border-radius: 6px; background: var(--asphalt) repeating-linear-gradient(90deg, var(--signal) 0 10px, transparent 10px 18px) center / calc(100% - 20px) 2px no-repeat; }

/* =========================================================
   Ana səhifə
   ========================================================= */
.hero { background: var(--asphalt); color: #fff; position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.8vw, 4rem); line-height: 1.02; margin-bottom: 20px; letter-spacing: -.01em; }
.hero .lead { font-size: 1.12rem; color: #c9d1d5; max-width: 34em; margin-bottom: 28px; }
.hero-stats { margin-top: 24px; color: #9eabb2; font-size: .95rem; }
.hero-stats b { color: #fff; }
.hero-search { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.hero-search-title { font-family: var(--font-cond); font-weight: 700; font-size: 1.35rem; }
.hero-search label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.lane { position: absolute; left: 0; right: 0; bottom: 30px; height: 4px; background: repeating-linear-gradient(90deg, var(--signal) 0 46px, transparent 46px 86px); opacity: .9; animation: lane-in 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes lane-in { from { background-position: -600px 0; opacity: 0; } to { background-position: 0 0; opacity: .9; } }

.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 48px; padding-bottom: 48px; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 20px; }
.how-col h3 { font-size: 1.3rem; padding-bottom: 10px; border-bottom: 3px solid var(--signal); display: inline-block; }
.how-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0 0; }
.how-steps li { counter-increment: s; position: relative; padding: 0 0 20px 52px; color: var(--ink-2); }
.how-steps li b { display: block; color: var(--ink); font-size: 1.05rem; }
.how-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--asphalt); color: var(--signal); font: 700 1rem/34px var(--font-cond); text-align: center; }
.how-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 9px); }

.tg-showcase { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; padding-top: 56px; }
.tg-showcase-copy p { color: var(--ink-2); font-size: 1.05rem; max-width: 32em; margin-bottom: 22px; }
.phone { background: #e7ebe4; border: 8px solid var(--asphalt); border-radius: 28px; overflow: hidden; max-width: 340px; width: 100%; justify-self: center; }
.phone-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.2; }
.phone-bar small { display: block; color: var(--ink-3); }
.phone-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--signal) repeating-linear-gradient(90deg, var(--asphalt) 0 4px, transparent 4px 7px) center / 20px 3px no-repeat; }
.phone-chat { padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 360px; }
.bubble { background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 10px 12px 18px; font-size: .9rem; line-height: 1.45; position: relative; max-width: 92%; }
.bubble p { margin: 0 0 6px; }
.bubble-time { position: absolute; right: 10px; bottom: 4px; font-size: .7rem; color: var(--ink-3); }
.bubble-btn { display: block; max-width: 92%; text-align: center; background: rgba(255,255,255,.65); border-radius: 8px; padding: 8px; font-size: .88rem; font-weight: 600; color: var(--link); margin-bottom: 12px; }

.tg-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--asphalt); color: #fff; border-radius: var(--r); padding: 20px 22px; margin-top: 28px; }
.tg-callout p { color: #c9d1d5; margin: 2px 0 0; }

/* =========================================================
   Elan səhifəsi
   ========================================================= */
.load-hero { background: var(--asphalt); color: #fff; padding: 24px 0 30px; }
.load-hero .route { margin: 6px 0 18px; }
.load-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #9eabb2; font-size: .9rem; }
.load-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 24px; }
.load-side { position: sticky; top: 84px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0; }
.spec-grid > div { background: var(--surface); padding: 14px 16px; }
.spec-grid dt { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 1.05rem; }
.spec-grid dd.price { font-family: var(--font-cond); font-size: 1.35rem; }
.description { margin-top: 22px; }
.description p { white-space: normal; }

.action-card h2 { margin-bottom: 10px; }
.action-card .btn + .btn, .action-card form + form, .action-card .btn + form { margin-top: 10px; }
.selected-banner { background: var(--ok-soft); border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-direction: column; color: #0e5434; }
.selected-banner b { font-family: var(--font-cond); font-size: 1.3rem; }
.owner-card .label-sm { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.owner-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.owner-row b { display: block; }
.owner-row .small { display: block; }
.phone-btn { font-size: 1.05rem; letter-spacing: .02em; }

.app-list { list-style: none; margin: 0; padding: 0; }
.app-item { padding: 18px 0; border-top: 1px solid var(--line); }
.app-item:first-child { border-top: 0; padding-top: 4px; }
.app-accepted { background: var(--ok-soft); margin: 0 -24px; padding-left: 24px; padding-right: 24px; border-top-color: transparent; }
.app-rejected { opacity: .6; }
.app-head { display: flex; align-items: flex-start; gap: 12px; }
.app-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trust { font-size: .82rem; color: var(--ok); font-weight: 600; }
.app-offer { text-align: right; display: flex; flex-direction: column; }
.app-price { font-family: var(--font-cond); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }
.app-msg { margin: 10px 0 0 46px; padding: 10px 12px; background: var(--paper); border-radius: var(--r-sm); font-size: .95rem; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; }

/* Elan formu: marşrut */
.route-inputs { position: relative; display: flex; flex-direction: column; gap: 18px; }
.route-inputs::before { content: ""; position: absolute; left: 7px; top: 34px; bottom: 74px; width: 4px; border-radius: 2px; background: var(--asphalt) repeating-linear-gradient(180deg, var(--signal) 0 6px, transparent 6px 11px) center / 2px 100% no-repeat; }
.route-point { position: relative; padding-left: 32px; display: flex; flex-direction: column; gap: 10px; }
.route-pin { position: absolute; left: 1px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 4px solid var(--asphalt); }
.route-pin.end { background: var(--signal); }
.route-point .sub { font-size: .88rem; font-weight: 400; color: var(--ink-2); }

/* ---------------- Auth ---------------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 40px; }
.auth-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: var(--r); padding: 32px; }

/* ---------------- Profil / Telegram ---------------- */
.tg-card { border-left: 4px solid var(--tg); }
.tg-card.highlight { box-shadow: 0 0 0 3px rgba(42,171,238,.25); }
.tg-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.tg-card-head h2 { margin-bottom: 2px; }
.tg-logo { flex: none; }
.tg-steps { margin: 0 0 18px; padding-left: 22px; color: var(--ink-2); }
.tg-steps li { margin-bottom: 4px; }
.tg-status { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }

/* ---------------- Bildirişlər ---------------- */
.notif-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif a { display: flex; gap: 14px; padding: 16px 18px; color: inherit; text-decoration: none; }
.notif a:hover { background: var(--paper); }
.notif.unread a { background: #fffbea; }
.notif.unread a:hover { background: var(--signal-soft); }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--paper) center / 20px no-repeat; border: 1px solid var(--line); }
.notif-truck .notif-icon { background-color: var(--signal-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Cpath fill='%231d262c' d='M2 6h26v18H2zM30 12h9l7 7v5H30z'/%3E%3Ccircle cx='10' cy='26' r='4' fill='%231d262c'/%3E%3Ccircle cx='38' cy='26' r='4' fill='%231d262c'/%3E%3C/svg%3E"); }
.notif-check .notif-icon { background-color: var(--ok-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2317804e' d='m9 16.2-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.notif-inbox .notif-icon { background-color: var(--info-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231f5d9e' d='M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Zm0 12h-4a3 3 0 0 1-6 0H5V5h14v10Z'/%3E%3C/svg%3E"); }
.notif-x .notif-icon { background-color: var(--danger-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b9382a' d='M19 6.4 17.6 5 12 10.6 6.4 5 5 6.4 10.6 12 5 17.6 6.4 19 12 13.4 17.6 19 19 17.6 13.4 12z'/%3E%3C/svg%3E"); }
.notif-info .notif-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2357646c' d='M11 7h2v2h-2zm0 4h2v6h-2zm1-9a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16Z'/%3E%3C/svg%3E"); }
.notif-body { display: flex; flex-direction: column; min-width: 0; }
.notif-body span { color: var(--ink-2); font-size: .93rem; }
.notif-body time { color: var(--ink-3); font-size: .82rem; margin-top: 2px; }

/* ---------------- Admin ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; }
.stat-val { font-family: var(--font-cond); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.stat-label { color: var(--ink-2); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--ink-2); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-muted td { opacity: .55; }
form.inline { display: inline; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--ink-2); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 500; }
.code { background: var(--asphalt); color: #e8edf0; padding: 12px 14px; border-radius: var(--r-sm); overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all; }
.admin-tg { margin-bottom: 16px; }

/* ---------------- Quraşdırıcı ---------------- */
.install-page main, .install-page > main { padding: 40px 0 60px; }
.install-head { margin-bottom: 20px; }
.install-head .brand-mark { margin-bottom: 14px; width: 40px; height: 40px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.check-list .ok { color: var(--ok); font-weight: 500; }
.check-list .bad { color: var(--danger); font-weight: 600; }
.checks { margin-bottom: 16px; }
.steps-list li { margin-bottom: 14px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--asphalt); color: #c9d1d5; padding: 36px 0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px; align-items: start; }
.site-footer .logo { color: #fff; margin-bottom: 8px; }
.site-footer .muted { color: #9eabb2; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { color: #d9dfe2; text-decoration: none; }
.footer-nav a:hover { color: var(--signal); }

/* =========================================================
   Responsiv
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner, .tg-showcase, .how-grid, .load-layout { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 72px; }
  .load-side { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--asphalt); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; border-top: 1px solid var(--asphalt-3); gap: 2px; }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-right > a:not(.btn) { padding: 12px 8px; }
  .site-nav a.active { box-shadow: inset 3px 0 0 var(--signal); padding-left: 14px; }
  .nav-right { margin: 8px 0 0; flex-direction: column; align-items: stretch; border-top: 1px solid var(--asphalt-3); padding-top: 10px; }
  .nav-right .btn { min-height: 46px; }
  .bell-label { display: inline; }
  .bell .badge { position: static; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .card { padding: 18px; }
  .auth-card { padding: 22px 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .load-card-link { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .load-card-side { flex-direction: row; align-items: center; border-left: 0; padding-left: 0; border-top: 1px dashed var(--line-2); padding-top: 12px; min-width: 0; }
  .load-card-foot { padding: 10px 16px; }
  .route { gap: 10px; }
  .route-city { font-size: 1.18rem; }
  .route-lg { grid-template-columns: 1fr; gap: 8px; }
  .route-lg .route-end.to { text-align: left; }
  .route-lg .route-road { width: 70%; height: 12px; }
  .filter-bar label { flex-basis: 100%; }
  .filter-bar .swap { display: none; }
  .filter-bar .btn { width: 100%; }
  .role-picker { grid-template-columns: 1fr; }
  .app-msg { margin-left: 0; }
  .app-accepted { margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
  .app-actions { justify-content: stretch; }
  .app-actions > * { flex: 1; }
  .app-actions .btn { width: 100%; }
  .form-actions .btn { width: 100%; }
  .hero .btn-row .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}


/* =========================================================
   v2: reytinq, əlaqə, mesajlar, profil
   ========================================================= */
:root { --star: #f5a300; --wa: #1fa855; --wa-hover: #188f47; }

.pill-delivered { background: #efe7fb; color: #5b3a99; border-color: transparent; }

/* Ulduzlar */
.stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 1px; color: var(--line-2); white-space: nowrap; vertical-align: -1px; }
.stars::before { content: "★★★★★"; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); }
.stars-fill::before { content: "★★★★★"; }
.stars-md { font-size: 20px; }
.rating-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; flex-wrap: wrap; }
.rating-badge b { font-weight: 700; }
.rating-badge span:not(.stars):not(.stars-fill) { color: var(--ink-2); }
.rating-badge.none { color: var(--ink-3); font-size: .85rem; }

/* Zəng / WhatsApp */
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.card .contact-btns { margin-top: 8px; }
.btn-call { background: var(--asphalt); color: #fff; }
.btn-call:hover { background: var(--asphalt-2); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.owner-card .contact-btns .btn, .profile-side .contact-btns .btn { flex: 1 1 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; }
.badge-inline { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--signal); color: var(--ink); font-size: .75rem; font-weight: 700; line-height: 1; }
.site-nav .nav-msg { display: inline-flex; align-items: center; gap: 6px; }

/* Elan kartında təklif sayı */
.load-price.offers { font-size: 1.3rem; }
.load-price.offers small { font-family: var(--font); font-size: .85rem; font-weight: 500; color: var(--ink-2); }

/* Elan formu: qiymət qeydi */
.offer-note { background: var(--signal-soft); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; color: var(--ink-2); align-self: end; }
.offer-note b { color: var(--ink); }

/* Gediş mərhələləri */
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.progress li { position: relative; padding: 14px 12px 14px 44px; font-weight: 600; font-size: .92rem; color: var(--ink-3); }
.progress li + li { border-left: 1px solid var(--line); }
.progress li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.progress li.done { color: var(--ink); }
.progress li.done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9 16.2-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--ok); }
.progress li.current { color: var(--ink); background: var(--signal-soft); }
.progress li.current::before { border-color: var(--asphalt); background: var(--signal); }

/* Sürücü sətirləri */
.avatar-lg { width: 52px; height: 52px; font-size: 1.2rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 2rem; background: var(--signal); color: var(--ink); }
a.avatar { text-decoration: none; }
.driver-name { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.02rem; }
.driver-name:hover { text-decoration: underline; }
.driver-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.driver-row-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.selected-card { border-left: 4px solid var(--ok); }
.lowest { font-size: .78rem; font-weight: 700; color: var(--ok); }
.thumb-strip { display: flex; gap: 6px; margin: 12px 0 0 46px; }
.thumb-strip img { width: 76px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.app-who { gap: 3px; }

/* Rəylər */
.review { background: var(--paper); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 10px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review p { margin: 8px 0 0; }
.notice { border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; }
.notice-ok { background: var(--ok-soft); color: #0e5434; }

/* Ulduz seçimi (5→1 tərs sıra ilə, CSS hover üçün) */
.star-input legend { margin-bottom: 6px; }
.star-input-row { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; font-size: 38px; line-height: 1; color: var(--line-2); transition: color .1s, transform .1s; padding: 0 2px; }
.star-input label::before { content: "★"; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.star-input-label { order: -1; margin-left: 12px; font-weight: 600; color: var(--ink-2); min-width: 70px; }

/* Sürücünün təklif paneli */
.inline-offer { display: flex; gap: 8px; align-items: flex-end; margin: 8px 0 10px; }
.inline-offer label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }

/* ---------------- Sürücü profili ---------------- */
.profile-hero { background: var(--asphalt); color: #fff; padding: 32px 0; }
.profile-hero-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.profile-hero h1 { margin: 0 0 4px; }
.profile-hero-info { flex: 1; min-width: 220px; }
.profile-sub { color: #b9c3c8; margin-bottom: 10px; }
.score { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--asphalt-2); border-radius: var(--r); padding: 16px 26px; min-width: 170px; }
.score-val { font-family: var(--font-cond); font-weight: 700; font-size: 3rem; line-height: 1; color: #fff; }
.score-val.muted-score { color: #6f7d84; }
.score-sub { font-size: .85rem; color: #b9c3c8; }
.score .stars { color: var(--asphalt-3); }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; margin-top: 24px; }
.label-sm { display: block; font-size: .82rem; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.kv-tight { grid-template-columns: 120px 1fr; margin-bottom: 12px; }
.about { color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.03); }
.trip-list { list-style: none; margin: 0; padding: 0; }
.trip { padding: 16px 0; border-top: 1px solid var(--line); }
.trip:first-child { border-top: 0; padding-top: 4px; }
.trip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 4px; }
.trip-route { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.trip-route:hover { text-decoration: underline; }
.dist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.dist li { display: grid; grid-template-columns: 58px 1fr 28px; align-items: center; gap: 8px; }
.dist-bar { height: 8px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.dist-bar span { display: block; height: 100%; background: var(--star); border-radius: 4px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 14, 17, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r-sm); }
.lightbox-close, .lightbox-nav { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 16px; top: 50%; }
.lightbox-nav.next { right: 16px; top: 50%; }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.25); }

/* Profil: şəkil yükləmə */
.public-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.public-card p { margin-bottom: 6px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.photo-item { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--paper); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(29,38,44,.8); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.photo-del:hover { background: var(--danger); }
.upload-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.upload-drop { flex: 1 1 260px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px dashed var(--line-2); border-radius: var(--r); cursor: pointer; background: var(--paper); }
.upload-drop:hover, .upload-drop.has-files { border-color: var(--asphalt); }
.upload-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-drop:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.upload-drop small { display: block; color: var(--ink-2); font-weight: 400; }
.upload-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--asphalt); color: var(--signal); display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none; }
.upload-form .btn { align-self: center; }

/* ---------------- Mesajlar ---------------- */
.thread-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.thread + .thread { border-top: 1px solid var(--line); }
.thread a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit; text-decoration: none; }
.thread a:hover { background: var(--paper); }
.thread.unread a { background: #fffbea; }
.thread-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thread-top { display: flex; justify-content: space-between; gap: 10px; }
.thread-top time { color: var(--ink-3); font-size: .82rem; white-space: nowrap; }
.thread-route { font-size: .85rem; color: var(--ink-2); }
.thread-last { color: var(--ink-2); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.unread .thread-last { color: var(--ink); font-weight: 500; }

.chat-page main { padding-bottom: 0; }
.chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 64px); height: calc(100dvh - 64px); padding-top: 14px; }
.chat-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat-head .back { margin-bottom: 8px; }
.chat-head-row { display: flex; align-items: center; gap: 12px; }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-who a.muted { text-decoration: none; }
.chat-contact { display: flex; gap: 8px; }
.chat-box { flex: 1; overflow-y: auto; padding: 16px 2px; display: flex; flex-direction: column; gap: 6px; }
.chat-empty { margin: auto; text-align: center; color: var(--ink-2); max-width: 340px; }
.chat-day { text-align: center; margin: 10px 0 4px; }
.chat-day span { font-size: .78rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.msg { max-width: 78%; padding: 8px 12px 6px; border-radius: 14px; position: relative; word-wrap: break-word; }
.msg time { display: block; text-align: right; font-size: .7rem; color: var(--ink-3); margin-top: 2px; }
.msg.mine { align-self: flex-end; background: var(--signal-soft); border-bottom-right-radius: 4px; }
.msg.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.sending { opacity: .6; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 0 16px; border-top: 1px solid var(--line); background: var(--paper); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; }
.chat-page .site-footer { display: none; }

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
  .score { flex-direction: row; gap: 12px; width: 100%; justify-content: flex-start; padding: 12px 16px; }
  .score-val { font-size: 2.2rem; }
}
@media (max-width: 640px) {
  .progress { grid-template-columns: 1fr; }
  .progress li + li { border-left: 0; border-top: 1px solid var(--line); }
  .thumb-strip { margin-left: 0; }
  .thumb-strip img { width: 64px; height: 48px; }
  .app-actions .contact-btns { flex: 1 1 100%; }
  .app-actions .contact-btns .btn { flex: 1; }
  .driver-row { flex-wrap: wrap; }
  .avatar-xl { width: 64px; height: 64px; font-size: 1.5rem; }
  .msg { max-width: 88%; }
  .chat-wrap { height: calc(100dvh - 64px); }
}


/* =========================================================
   v3: push, toast, səs
   ========================================================= */
[hidden] { display: none !important; }

.push-card { border-left: 4px solid var(--signal); }
.push-card.highlight { box-shadow: 0 0 0 3px var(--signal-soft); }
.push-card[data-state="on"] { border-left-color: var(--ok); }
.push-card[data-state="denied"], .push-card[data-state="unsupported"] { border-left-color: var(--line-2); }
.push-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--asphalt); color: var(--signal); display: grid; place-items: center; flex: none; }
.push-card[data-state="on"] .push-icon { background: var(--ok); color: #fff; }
.push-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: .92rem; }
.push-note.ok { background: var(--ok-soft); color: #0e5434; }
.push-note.err { background: var(--danger-soft); color: #7c2318; }
.sound-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.push-card > .muted.small { margin-top: 8px; }
.switch-sm { font-size: .88rem; }
.switch-sm .switch-track { width: 38px; height: 22px; }
.switch-sm .switch-track::after { width: 16px; height: 16px; }
.switch-sm input:checked + .switch-track::after { transform: translateX(16px); }

/* Toast */
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 40px 14px 16px; background: var(--asphalt); color: #fff; border-radius: var(--r); text-decoration: none;
         border-left: 4px solid var(--signal); box-shadow: 0 10px 30px rgba(10, 14, 17, .28); animation: toast-in .35s cubic-bezier(.2,.8,.2,1); transition: opacity .35s, transform .35s; }
.toast:hover { color: #fff; background: var(--asphalt-2); }
.toast b { font-size: .98rem; }
.toast span { color: #c9d1d5; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.toast-msg { border-left-color: var(--wa); }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #9eabb2; font-size: 20px; line-height: 1; cursor: pointer; }
.toast-x:hover { background: var(--asphalt-3); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Bildiriş banneri */
.push-banner { position: fixed; left: 16px; right: auto; bottom: 16px; z-index: 70; width: min(560px, calc(100vw - 420px)); display: flex; align-items: center; gap: 14px;
               background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--signal); border-radius: var(--r); padding: 14px 44px 14px 16px;
               box-shadow: 0 12px 32px rgba(10, 14, 17, .18); animation: toast-in .4s ease both .6s; }
.push-banner-text { flex: 1; display: flex; flex-direction: column; font-size: .92rem; }
.push-banner-text span { color: var(--ink-2); }
.push-banner-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 22px; cursor: pointer; }
.push-banner-x:hover { background: var(--paper); color: var(--ink); }

/* Tətbiq rejimində (PWA) yuxarı boşluq — iPhone çentiyi */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
}
@media (max-width: 980px) and (min-width: 641px) {
  .push-banner { width: auto; right: 16px; bottom: 16px; }
  .toast-stack { top: 80px; bottom: auto; }
}
@media (max-width: 640px) {
  .push-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; width: auto; }
  .push-banner .btn { width: 100%; }
  .toast-stack { right: 10px; left: 10px; top: calc(72px + env(safe-area-inset-top)); bottom: auto; width: auto; }
}


/* =========================================================
   v4: elan lenti, filtrlər, mobil tətbiq görünüşü
   ========================================================= */
.header-mobile { display: none; align-items: center; gap: 6px; margin-left: auto; }
.header-link { color: #d9dfe2; text-decoration: none; font-weight: 600; padding: 8px 10px; }
.header-link:hover { color: #fff; }
.header-mobile .bell { color: #fff; width: 44px; height: 44px; display: inline-grid; place-items: center; position: relative; border-radius: 50%; }
.header-mobile .bell .badge { position: absolute; top: 4px; right: 2px; }

/* ---------- Lent başlığı ---------- */
.feed-head { background: var(--asphalt); color: #fff; padding: 22px 0 0; }
.feed-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; }
.feed-head h1 { margin: 0 0 2px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.feed-sub { color: #b9c3c8; margin: 0; font-size: .95rem; }
.seg { display: flex; gap: 4px; }
.seg a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 13px; color: #b9c3c8; text-decoration: none; font-weight: 600; border-radius: 10px 10px 0 0; }
.seg a span { font-size: .78rem; background: var(--asphalt-3); color: #fff; padding: 1px 8px; border-radius: 10px; }
.seg a:hover { color: #fff; }
.seg a.active { background: var(--paper); color: var(--ink); }
.seg a.active span { background: var(--signal); color: var(--ink); }
.feed-page .flash-wrap { padding-top: 12px; }

/* ---------- Yan panel / filtr ---------- */
.feed-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 22px; }
.filters { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filters-form { display: flex; flex-direction: column; gap: 14px; }
.filters-form label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.filter-route { position: relative; display: flex; flex-direction: column; gap: 10px; }
.filter-route .swap { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--line-2); display: grid; place-items: center; z-index: 1; margin-top: 10px; }
.filter-route .swap:hover { border-color: var(--ink); }
.filter-route select { padding-right: 52px; background-position: right 50px center; }
.filters-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sheet-head { display: none; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 14, 17, .45); z-index: 90; }

.feed-main { min-width: 0; }
.feed-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.filter-btn { display: none; flex: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font: 600 .9rem var(--font); color: var(--ink); cursor: pointer; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.qchip:hover { border-color: var(--ink-3); color: var(--ink); }
.qchip.active { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.achip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: var(--signal-soft); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.achip span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(29,38,44,.1); font-size: 14px; }
.achip:hover span { background: var(--asphalt); color: #fff; }
.hint-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.hint-card div { display: flex; flex-direction: column; font-size: .92rem; }
.hint-card span { color: var(--ink-2); }

/* ---------- Qonaq ana səhifəsi: kilidli elanlar ---------- */
.locked-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.locked-count { display: flex; align-items: baseline; gap: 10px; }
.locked-count b { font-family: var(--font-cond); font-size: 2.6rem; line-height: 1; }
.locked-count span { color: var(--ink-2); font-weight: 500; }
.locked-list { display: flex; flex-direction: column; gap: 8px; }
.locked-row { display: grid; grid-template-columns: 70px 1fr 56px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); filter: blur(1.5px); opacity: .75; }
.lr-city { height: 12px; border-radius: 6px; background: var(--line-2); }
.lr-road { height: 6px; border-radius: 3px; background: var(--asphalt) repeating-linear-gradient(90deg, var(--signal) 0 6px, transparent 6px 11px) center / calc(100% - 8px) 2px no-repeat; }
.locked-card p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.locked-foot { text-align: center; font-size: .85rem; color: var(--ink-2); }
.hero-login { margin-top: 18px; color: #9eabb2; }
.hero-login a { color: #fff; font-weight: 600; }

/* ---------- Alt menyu (mobil) ---------- */
.tabbar { display: none; }
.sticky-cta { display: none; }

@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; padding-top: 14px; }
  .filter-btn { display: inline-flex; }
  /* Filtr aşağıdan açılan pəncərə kimi */
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; border-radius: 18px 18px 0 0; border: 0; max-height: 88vh; overflow-y: auto;
             padding: 0 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(10,14,17,.25); }
  .filters.open { transform: none; }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 0 10px; z-index: 2; font-family: var(--font-cond); font-size: 1.25rem; }
  .sheet-head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .sheet-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
  .filters-actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 calc(6px + env(safe-area-inset-bottom)); margin-bottom: calc(-18px - env(safe-area-inset-bottom)); flex-direction: row; }
  .filters-actions .btn { flex: 1; }
  body.sheet-open { overflow: hidden; }
}

@media (max-width: 860px) {
  .site-header .header-inner { min-height: 58px; }
  .header-mobile { display: flex; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; top: 58px; }
  .bell-desktop { display: none; }

  /* Tətbiq görünüşü: alt menyu */
  .has-tabbar main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .has-tabbar .site-footer { display: none; }
  .has-tabbar .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(10,14,17,.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; color: var(--ink-3); text-decoration: none; font-size: .72rem; font-weight: 600; min-height: 50px; justify-content: center; -webkit-tap-highlight-color: transparent; }
  .tabbar a.active { color: var(--ink); }
  .tab-ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background-color .15s; }
  .tabbar a.active .tab-ico { background: var(--signal-soft); }
  .tab-badge { position: absolute; top: -2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
  .tab-accent .tab-ico { background: var(--signal); color: var(--ink); width: 48px; height: 34px; border-radius: 12px; }
  .tabbar a.tab-accent { color: var(--ink); }
  .chat-page .tabbar { display: none; }
  .chat-page main { padding-bottom: 0; }

  .has-tabbar .push-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .has-tabbar .toast-stack { top: calc(66px + env(safe-area-inset-top)); }

  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 55; box-shadow: 0 8px 24px rgba(10,14,17,.25); }
  .is-guest .sticky-cta, body:not(.has-tabbar) .sticky-cta { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  .feed-head { padding-top: 16px; }
  .feed-head-row { padding-bottom: 12px; }
  .feed-head-row .btn { display: none; }
  .seg { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .seg a { flex: 1; justify-content: center; padding: 11px 8px 12px; font-size: .92rem; }
  .page-head { padding-top: 20px; padding-bottom: 14px; }
  .page-head h1 { font-size: 1.7rem; }
  .load-list { gap: 10px; }
  .load-card-link { padding: 14px 14px 12px; }
  .load-facts { margin-top: 8px; gap: 4px 12px; font-size: .88rem; }
  .load-card-side { padding-top: 10px; }
  .load-price { font-size: 1.25rem; }
  .load-card-foot { padding: 9px 14px; font-size: .82rem; }
  .route-md .route-city, .route:not(.route-lg) .route-city { font-size: 1.12rem; }
  .load-hero { padding: 14px 0 20px; }
  .load-hero .route { margin-bottom: 12px; }
  .load-layout { margin-top: 14px; gap: 14px; }
  .spec-grid dd { font-size: .98rem; }
  .card { padding: 16px; border-radius: 12px; }
  .tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .locked-card { padding: 18px; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lead { font-size: 1rem; }
  .how-steps li { padding-left: 46px; }
  .auth-wrap { padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .load-side .action-card, .filter-bar { display: none; }
  body { background: #fff; }
}
[id] { scroll-margin-top: 80px; }
@media (max-width: 860px) {
  .has-tabbar .page-head.head-row > .btn-primary { display: none; }
}
/* Legend xəttin üstündə qalmasın, boşluqlar düz olsun */
fieldset > legend { float: left; width: 100%; margin-bottom: 12px; }
fieldset > legend + * { clear: both; margin-top: 0 !important; }

/* =========================================================
   v6: qeydiyyat, profili tamamla
   ========================================================= */
.form:has(input[name=role][value=driver]:checked) .only-owner-inline,
.form:has(input[name=role][value=owner]:checked) .only-driver-inline { display: none; }
.form label > small.only-driver-inline { margin-top: 5px; }

.progress-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 14px; }
.progress-bar span { display: block; height: 100%; background: var(--asphalt) repeating-linear-gradient(90deg, var(--signal) 0 10px, transparent 10px 16px) center / 100% 2px no-repeat; border-radius: 5px; transition: width .4s; }
.progress-text { margin: 6px 0 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); }

.input-suffix { position: relative; display: block; margin-top: 6px; }
.input-suffix input { padding-right: 52px; margin: 0; }
.input-suffix span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; pointer-events: none; }
.plate-input { text-transform: uppercase; font-weight: 600; letter-spacing: .06em; }

.photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-slot { position: relative; display: flex !important; flex-direction: column; border: 2px dashed var(--line-2); border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--paper); transition: border-color .15s; }
.photo-slot:hover { border-color: var(--ink-3); }
.photo-slot.has-photo { border-style: solid; border-color: var(--ok); }
.photo-slot.has-error { border-color: var(--danger); }
.photo-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-slot:focus-within { outline: 3px solid var(--signal); outline-offset: 2px; }
.slot-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface); }
.slot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.photo-slot.has-photo .slot-empty { display: none; }
.slot-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-weight: 400; }
.slot-text b { font-size: .95rem; }
.slot-text small { margin: 0 !important; line-height: 1.35; }
.slot-action { margin-top: 6px; align-self: flex-start; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--asphalt); color: #fff; }
.photo-slot.has-photo .slot-action { background: var(--ok-soft); color: var(--ok); }
.photo-slot .field-error { padding: 0 12px 10px; }
.photo-slot.loading .slot-img::after { content: "Hazırlanır…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.8); font-weight: 600; font-size: .9rem; }
.exp-chips .chip-check span { padding: 10px 16px; font-size: .95rem; }
.complete-actions { justify-content: space-between; align-items: center; }

.complete-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--signal); }
.complete-card > div { flex: 1; min-width: 220px; }
.complete-card .progress-bar { margin-top: 10px; }
.missing-list { margin: 6px 0 0; font-size: .88rem; color: var(--ink-2); }
.vehicle-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.vehicle-summary div { background: var(--paper); border-radius: var(--r-sm); padding: 10px 12px; }
.vehicle-summary dt { font-size: .8rem; color: var(--ink-2); }
.vehicle-summary dd { margin: 2px 0 0; font-weight: 600; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .8rem; color: var(--ink-2); margin-top: 4px; }

@media (max-width: 640px) {
  .photo-slots { grid-template-columns: 1fr; }
  .photo-slot { flex-direction: row; align-items: stretch; }
  .slot-img { width: 42%; flex: none; aspect-ratio: auto; min-height: 110px; }
  .complete-actions { flex-direction: column-reverse; align-items: stretch; }
  .complete-actions .btn { width: 100%; }
}
.complete-hint { border-style: solid; border-color: var(--signal); background: #fffbea; } .complete-hint .progress-bar { margin-top: 8px; height: 8px; max-width: 320px; }

/* v7: Fəhlə sualı */
.field-group { display: grid; gap: 8px; }
.field-label { font-weight: 600; font-size: .95rem; }
.yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yesno .chip-check span { display: block; text-align: center; padding: 13px 10px; border-radius: 12px; font-size: .97rem; }
.fact-loaders { color: #8a4b00; background: #fff3e0; border-radius: 6px; padding: 1px 7px; font-weight: 600; }
.loaders-yes { color: #8a4b00; }

/* v8: Yük elanının şəkilləri */
.load-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.lp-item, .lp-add { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.lp-item { background: var(--paper); border: 1px solid var(--line); }
.lp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-item.removed img { opacity: .25; filter: grayscale(1); }
.lp-item.removed::after { content: 'Silinəcək'; position: absolute; inset: auto 0 0 0; text-align: center; font-size: .75rem; font-weight: 600; padding: 4px; background: rgba(0,0,0,.6); color: #fff; }
.lp-remove { position: absolute; top: 5px; right: 5px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(20,24,30,.75); color: #fff; display: grid; place-items: center; font-size: 1.15rem; line-height: 1; cursor: pointer; padding: 0; }
.lp-remove input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lp-item.removed .lp-remove { background: var(--signal, #f5b301); color: #111; }
.lp-add, .form .lp-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--line-2); color: var(--ink-2); font-size: .85rem; font-weight: 600; text-align: center; padding: 6px; cursor: pointer; background: var(--surface); }
.lp-add:hover { border-color: var(--ink-3); color: var(--ink); }
.lp-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lp-add[hidden] { display: none; }
.load-photos.loading { opacity: .6; pointer-events: none; }
.load-gallery-card { padding: 10px; }
.load-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.load-gallery.single { grid-template-columns: 1fr; }
.load-gallery.single a { aspect-ratio: 16 / 9; }
.load-card-main.has-thumb { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.load-card-body { min-width: 0; }
.load-thumb { position: relative; display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--paper); }
.load-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.load-thumb-count { position: absolute; right: 4px; bottom: 4px; background: rgba(20,24,30,.78); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 6px; padding: 1px 5px; }
@media (max-width: 640px) {
  .load-card-main.has-thumb { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
  .load-thumb { width: 60px; height: 60px; }
  .load-photos { grid-template-columns: repeat(3, 1fr); }
}

/* v9: Yol üstü */
.trips-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 40px; }
.trips-layout:not(:has(.trips-side)) { grid-template-columns: minmax(0, 860px); }
.trips-side { position: sticky; top: 84px; }
.trip-form .route-inputs { gap: 10px; }
.trip-when { gap: 12px; }
.my-trips { list-style: none; margin: 8px 0 0; padding: 0; }
.my-trips li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.my-trips li:first-child { border-top: 0; }
.my-trips li div { display: grid; gap: 2px; min-width: 0; }
.trip-filter { display: grid; gap: 12px; padding: 14px; }
.trip-filter .filter-route { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trip-filter label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.when-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.when-chips::-webkit-scrollbar { display: none; }
.when-chips .qchip { min-height: 36px; }
.chip-clear { border-style: dashed; color: var(--ink-2); }
.trips-count { margin: -4px 2px; min-height: 1em; }
.trip-list { display: grid; gap: 14px; }
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 14px; }
.trip-card.is-mine { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal) inset; }
.trip-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.trip-time { display: grid; justify-items: end; text-align: right; background: var(--asphalt); color: #fff; border-radius: 12px; padding: 8px 12px; line-height: 1.15; }
.trip-time b { font: 700 1.35rem/1.1 var(--font-head, inherit); letter-spacing: .01em; }
.trip-time span { font-size: .78rem; opacity: .85; white-space: nowrap; }
.trip-time.past { background: var(--ink-3); }
.trip-driver { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: inherit; text-decoration: none; padding-top: 12px; border-top: 1px dashed var(--line); }
.trip-driver:hover b { text-decoration: underline; }
.trip-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; font: 700 1.4rem var(--font); color: var(--ink-2); }
.trip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-driver-info { display: grid; gap: 3px; min-width: 0; }
.trip-driver-info b { font-size: 1rem; }
.trip-driver-info .pill { font-size: .7rem; vertical-align: middle; margin-left: 4px; }
.trip-vehicle { font-weight: 500; font-size: .92rem; overflow-wrap: anywhere; }
.trip-note { margin: 0; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: .92rem; }
.trip-actions .contact-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-actions .btn { justify-content: center; }
.driver-trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.driver-trips li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 10px; }
@media (max-width: 900px) {
  .trips-layout { grid-template-columns: 1fr; }
  .trips-side { position: static; }
}
@media (max-width: 640px) {
  .trip-card { padding: 14px; gap: 12px; }
  .trip-head { gap: 10px; }
  .trip-time { padding: 6px 10px; }
  .trip-time b { font-size: 1.15rem; }
  .trip-driver { grid-template-columns: 56px minmax(0, 1fr); }
  .trip-thumb { width: 56px; height: 56px; }
  .has-tabbar .tabbar a { font-size: .68rem; }
}
.trip-add { padding: 0; }
.trip-add summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font: 700 1.1rem var(--font); }
.trip-add summary::-webkit-details-marker { display: none; }
.trip-add-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.trip-add[open] .trip-add-plus { transform: rotate(45deg); }
.trip-add .trip-form { padding: 0 18px 18px; }
.trip-form .btn-lg { width: 100%; justify-content: center; }
.trip-filter select { padding-right: 34px; text-overflow: ellipsis; min-width: 0; }
.trips-count { margin: 0 2px; }
.trip-card:target { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft, #fff3c4); scroll-margin-top: 90px; }

/* v10: Telegram diaqnostikası */
.diag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.diag-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--paper); border-left: 4px solid var(--line-2); }
.diag-list li.ok { border-left-color: #1f9d55; }
.diag-list li.bad { border-left-color: #d64545; }
.diag-list small { grid-column: 1 / -1; color: var(--ink-2); overflow-wrap: anywhere; line-height: 1.45; }

/* =========================================================
   v11: Minimalist dizayn (xüsusilə mobil)
   ========================================================= */

/* Profili tamamla: yığcam kart */
.comp-banner { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: border-color .15s; }
.comp-banner:hover { border-color: var(--ink-3); color: var(--ink); }
.comp-ring { position: relative; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--signal) calc(var(--p) * 1%), var(--line) 0); }
.comp-ring span { position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.comp-text { display: grid; gap: 1px; min-width: 0; }
.comp-text b { font-size: .97rem; font-weight: 600; }
.comp-text small { font-size: .82rem; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp-go { color: var(--ink-3); display: grid; place-items: center; }
.trips-side .comp-banner, .profile .comp-banner { margin-bottom: 0; }

/* Kartlarda marşrut: nazik, sakit xətt */
.load-card .route, .trip-card .route { gap: 10px; }
.load-card .route-city, .trip-card .route-city { font-family: var(--font); font-weight: 600; font-size: 1.08rem; letter-spacing: 0; }
.load-card .route-road, .trip-card .route-road { height: 2px; padding: 0; background: var(--line-2); border-radius: 1px; overflow: visible; justify-content: space-between; }
.load-card .route-lane, .trip-card .route-lane { display: none; }
.load-card .route-dot, .trip-card .route-dot { width: 7px; height: 7px; background: var(--surface); border: 2px solid var(--ink); box-sizing: border-box; margin: 0 -1px; }
.load-card .route-dot.end, .trip-card .route-dot.end { width: 7px; height: 7px; background: var(--signal); border-color: var(--signal); }

/* Kart xətləri: qırıq xətlər yerinə incə xətt */
.load-card { border-radius: 14px; border-color: var(--line); }
.load-card-side { border-left-style: solid; border-left-color: var(--line); }
.load-card-foot { border-top: 1px solid var(--line); color: var(--ink-2); }
.trip-card { border-radius: 14px; }
.trip-driver { border-top: 1px solid var(--line); }
.trip-time { background: var(--paper); color: var(--ink); }
.trip-time span { opacity: 1; color: var(--ink-2); }
.trip-time.past { background: var(--paper); color: var(--ink-3); }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { background: #f5f6f5; }
  .card { border-radius: 14px; padding: 14px; border-color: var(--line); }

  /* Başlıq: nazik */
  .header-inner { min-height: 52px; gap: 12px; }
  .logo-text { font-size: 1.15rem; }
  .brand-mark { width: 26px; height: 26px; border-radius: 6px; }

  /* Səhifə başlıqları: kiçik və sakit */
  .page-head { padding-top: 16px; padding-bottom: 10px; }
  .page-head h1, .feed-head h1 { font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 2px; }
  .page-head p.muted { font-size: .9rem; line-height: 1.45; margin: 0; }

  /* Lent başlığı: tünd blok yox, açıq fon */
  .feed-head { background: transparent; color: var(--ink); padding: 14px 0 0; }
  .feed-head-row { padding-bottom: 12px; }
  .feed-sub { color: var(--ink-2); font-size: .88rem; }
  .seg { margin: 0; padding: 4px; background: #e8ebe9; border-radius: 12px; gap: 4px; }
  .seg a { flex: 1; justify-content: center; padding: 8px 6px; border-radius: 9px; color: var(--ink-2); font-size: .9rem; }
  .seg a:hover { color: var(--ink); }
  .seg a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20,28,32,.12); }
  .seg a span { background: transparent; color: var(--ink-3); padding: 0; font-size: .82rem; }
  .seg a.active span { background: transparent; color: var(--ink-2); }
  .feed-layout { padding-top: 12px; }

  /* Filtr çipləri: kiçik */
  .feed-toolbar { gap: 8px; margin-bottom: 12px; }
  .filter-btn, .qchip { min-height: 34px; padding: 0 12px; font-size: .85rem; border-width: 1px; }
  .when-chips .qchip { min-height: 34px; }

  /* Elan kartı: yığcam */
  .load-list { gap: 10px; }
  .load-card-link { gap: 10px; padding: 14px 14px 12px; }
  .load-facts { margin-top: 6px; gap: 2px 10px; font-size: .85rem; }
  .load-card-side { border-top: 0; padding-top: 0; gap: 10px; justify-content: flex-start; }
  .load-price { font-size: 1rem; }
  .load-price.offers { font-size: 1rem; }
  .load-price.muted-price { display: none; }
  .load-date { background: transparent; padding: 0; font-size: .85rem; font-weight: 500; color: var(--ink-2); margin-left: auto; }
  .load-card-foot { padding: 8px 14px; font-size: .78rem; gap: 6px 12px; }
  .load-card .route-city { font-size: 1.02rem; }
  .load-card-main.has-thumb { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .load-thumb { width: 52px; height: 52px; border-radius: 10px; }

  /* Boş vəziyyət: kiçik */
  .empty-state { padding: 28px 12px; }
  .empty-state h3 { font-size: 1.02rem; }
  .empty-state p { font-size: .9rem; margin-bottom: 14px; }
  .empty-road { width: 72px; height: 8px; margin-bottom: 14px; background-size: calc(100% - 12px) 2px; }

  /* Yol üstü */
  .trips-layout { gap: 12px; }
  .trip-filter { background: transparent; border: 0; padding: 0; gap: 10px; box-shadow: none; }
  .trip-filter label span { font-size: .78rem; }
  .trip-filter select { min-height: 42px; font-size: .95rem; }
  .trips-count { font-size: .8rem; }
  .trip-card { padding: 14px; gap: 10px; }
  .trip-time { padding: 6px 10px; border-radius: 10px; }
  .trip-time b { font-size: 1.05rem; }
  .trip-time span { font-size: .72rem; }
  .trip-driver { padding-top: 10px; }
  .trip-note { font-size: .88rem; padding: 8px 10px; }
  .trip-add summary { padding: 14px; font-size: 1rem; }
  .trip-add-plus { width: 26px; height: 26px; font-size: 1.1rem; }

  /* Elan səhifəsi: tünd blok yerinə açıq başlıq */
  .load-hero { background: var(--surface); color: var(--ink); padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
  .load-hero .back-light { color: var(--ink-2); }
  .route-lg .route-city { color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 1.45rem; }
  .route-lg .route-note { color: var(--ink-2); font-size: .85rem; }
  .route-lg .route-road { height: 2px; padding: 0; background: var(--line-2); justify-content: space-between; }
  .route-lg .route-lane { display: none; }
  .route-lg .route-dot { width: 8px; height: 8px; background: var(--surface); border: 2px solid var(--ink); box-sizing: border-box; }
  .route-lg .route-dot.end { background: var(--signal); border-color: var(--signal); }
  .load-hero-meta { color: var(--ink-3); font-size: .82rem; gap: 6px 14px; }

  /* Alt menyu: yüngül */
  .has-tabbar .tabbar { background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
  .tabbar a { font-weight: 500; }
  .tabbar a.active { font-weight: 600; }
  .tab-ico { height: 28px; width: 48px; }
}
@media (max-width: 640px) {
  /* Tarix və təklif sayı yük məlumatı ilə eyni sətirdə */
  .load-card-link { position: relative; }
  .load-card-side { position: absolute; right: 14px; bottom: 12px; padding: 0; min-width: 0; }
  .load-card-body .load-facts, .load-card-main:not(.has-thumb) .load-facts { padding-right: 96px; }
  .load-card-side .load-price.offers { order: -1; font-size: .85rem; font-weight: 600; font-family: var(--font); }
  .load-card-side .load-price.offers small { font-size: .85rem; }
  .load-card-side:has(.offers) .load-date { display: none; }
  .load-card-side .load-price:not(.offers):not(.muted-price) { font-size: .95rem; }

  /* Elan səhifəsi: marşrut üfüqi */
  .route-lg { grid-template-columns: auto minmax(28px, 1fr) auto; gap: 12px; }
  .route-lg .route-end.to { text-align: right; }
  .route-lg .route-road { width: auto; height: 2px; }
  .load-hero .route { margin: 4px 0 10px; }

  /* Məlumat cədvəli: çərçivəsiz */
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; background: none; border: 0; border-radius: 0; }
  .spec-grid > div { padding: 0; }
  .spec-grid dt { font-size: .78rem; }
  .spec-grid dd { font-size: .98rem; }
}

/* =========================================================
   v12: Admin panel — statistika və qrafiklər
   ========================================================= */
.admin-head p { margin: 0; }
.admin .tabs { margin-bottom: 18px; }
.period-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 6px; }
.period-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.period-chips::-webkit-scrollbar { display: none; }
.period-chips .qchip { min-height: 34px; padding: 0 12px; font-size: .85rem; border-width: 1px; }
.period-custom { display: flex; align-items: center; gap: 6px; padding: 3px; border: 1px dashed var(--line-2); border-radius: 12px; }
.period-custom.active { border-style: solid; border-color: var(--ink); }
.period-custom input[type=date] { min-height: 34px; padding: 4px 8px; font-size: .85rem; width: auto; }
.period-custom span { color: var(--ink-3); }
.period-caption { margin: 0 0 16px; font-size: .88rem; color: var(--ink-2); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { --c: var(--ink); position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
a.kpi:hover { border-color: var(--ink-3); color: var(--ink); }
.kpi-label { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.kpi-val { font-family: var(--font-cond); font-weight: 700; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.01em; }
.kpi-foot { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--ink-3); flex-wrap: wrap; }
.delta { font-weight: 700; color: var(--ink-3); }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.chart-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin-bottom: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.admin > .chart-card { margin-bottom: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.chart-head h2 { margin: 0; }
.chart-head .period-bar { margin: 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--ink-2); }
.chart-legend i, .donut-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-legend b { color: var(--ink); margin-left: 2px; }
.chart { width: 100%; height: 220px; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart text { font: 500 11px var(--font); fill: var(--ink-3); }
.chart .hit { fill: transparent; }
.chart g:hover .hit { fill: rgba(29,38,44,.05); }
.chart g:hover .dot { r: 4; }
.chart-note { margin: 0; font-size: .85rem; color: var(--ink-2); }
.section-title { font-size: 1.1rem; margin: 6px 0 12px; }
.section-title .muted { font-weight: 400; font-size: .9rem; }
.h-xs { font-size: 1rem; margin: 0; }
.h-xs .muted { font-weight: 400; font-size: .85rem; }
.card-link { font-size: .85rem; font-weight: 600; text-decoration: none; margin-top: auto; }

.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut { width: 120px; height: 120px; flex: none; }
.donut-val { font: 700 17px var(--font-cond); fill: var(--ink); }
.donut-sub { font: 500 7.5px var(--font); fill: var(--ink-3); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; flex: 1; min-width: 0; }
.donut-legend li { display: flex; align-items: center; color: var(--ink-2); }
.donut-legend b { margin-left: auto; padding-left: 10px; color: var(--ink); }

.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .88rem; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-val { font-weight: 600; color: var(--ink); }
.hb-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.hb-track span { display: block; height: 100%; border-radius: 4px; min-width: 2px; }

.admin-filter { align-items: flex-end; }
.admin-filter .grow { flex: 1 1 240px; }
.table-count { margin: 0 0 8px; }
.status-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.status-chips .qchip { min-height: 34px; font-size: .85rem; border-width: 1px; }
.status-chips .qchip b { margin-left: 6px; font-weight: 600; opacity: .7; }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table td.center { text-align: center; padding: 28px; }
.mini-progress { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; vertical-align: middle; }
.mini-progress span { display: block; height: 100%; background: var(--signal); border-radius: 3px; }
.mini-progress.full span { background: var(--ok); }
.dot-ok { color: var(--ok); font-weight: 600; white-space: nowrap; }
.dot-ok::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.role-tag { font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper); }
.role-driver { background: #fff4cc; color: #7a5a00; }
.role-owner { background: var(--info-soft); color: var(--info); }

@media (max-width: 900px) {
  .chart-grid, .chart-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px 12px 10px; }
  .kpi-val { font-size: 1.5rem; }
  .kpi-label { font-size: .76rem; }
  .chart { height: 170px; }
  .chart text { font-size: 15px; }
  .period-bar { gap: 8px; }
  .period-custom { width: 100%; }
  .period-custom input[type=date] { flex: 1; min-width: 0; }
  .donut { width: 100px; height: 100px; }
  /* Cədvəllər mobildə kart kimi */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .admin-table td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; font-size: .88rem; }
  .admin-table td::before { content: attr(data-label); color: var(--ink-3); font-size: .8rem; text-align: left; flex: none; }
  .admin-table td:first-child { display: block; text-align: left; font-size: .95rem; margin-bottom: 4px; }
  .admin-table td:first-child::before { display: none; }
  .admin-table td.num { text-align: right; }
  .admin-table td.right { justify-content: flex-end; padding-top: 8px; }
  .admin-table td.right::before, .admin-table td:not([data-label])::before { display: none; }
}
/* Qrafik: HTML ox etiketləri */
.chart-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.y-axis { position: relative; width: 26px; }
.y-axis span { position: absolute; right: 0; transform: translateY(-50%); font-size: .7rem; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.chart-plot { position: relative; min-width: 0; padding-bottom: 22px; }
.chart-plot .chart { width: 100%; display: block; }
.x-axis { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; }
.x-axis span { position: absolute; transform: translateX(-50%); font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.chart .hover-line { stroke: transparent; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart g:hover .hover-line { stroke: var(--ink-3); stroke-dasharray: 3 3; }
@media (max-width: 640px) {
  .chart-plot .chart { height: 160px !important; }
  .x-axis span:nth-child(even) { display: none; }
}
.y-axis { margin-bottom: 22px; }
@media (max-width: 640px) {
  .admin-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .admin-filter .grow, .admin-filter .btn { grid-column: 1 / -1; }
  .admin-filter label span { font-size: .78rem; }
  .admin-filter select, .admin-filter input { min-height: 42px; font-size: .95rem; }
}

/* =========================================================
   v13: Ayrıca admin görünüşü
   ========================================================= */
.admin-app { background: #f3f4f3; }
.adm-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 18px 14px; background: var(--asphalt); color: #d9dfe2; overflow-y: auto; }
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; }
.adm-brand > span:last-child { display: grid; line-height: 1.15; }
.adm-brand b { font-family: var(--font-cond); font-size: 1.15rem; color: #fff; }
.adm-brand small { font-size: .75rem; color: #9eabb2; }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #c3ccd0; text-decoration: none; font-weight: 500; font-size: .95rem; }
.adm-nav a svg { flex: none; opacity: .8; }
.adm-nav a:hover { background: var(--asphalt-2); color: #fff; }
.adm-nav a.active { background: var(--signal); color: var(--ink); font-weight: 600; }
.adm-nav a.active svg { opacity: 1; }
.adm-side-foot { margin-top: auto; display: grid; gap: 10px; }
.adm-site-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #c3ccd0; text-decoration: none; font-size: .9rem; border: 1px solid var(--asphalt-3); }
.adm-site-link:hover { color: #fff; border-color: #56646c; }
.adm-user { display: flex; align-items: center; gap: 10px; padding: 10px 8px 4px; border-top: 1px solid var(--asphalt-3); }
.adm-user .avatar { background: var(--signal); color: var(--ink); }
.adm-user-text { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.adm-user-text b { color: #fff; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user-text small { color: #9eabb2; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-logout { width: 36px; height: 36px; border-radius: 9px; border: 0; background: var(--asphalt-2); color: #c3ccd0; display: grid; place-items: center; cursor: pointer; }
.adm-logout:hover { background: var(--danger); color: #fff; }
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: rgba(243,244,243,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm-top h1 { margin: 0; font-size: 1.45rem; letter-spacing: -.01em; }
.adm-date { margin-left: auto; color: var(--ink-3); font-size: .85rem; }
.adm-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); cursor: pointer; place-items: center; padding: 0; }
.adm-menu .bars, .adm-menu .bars::before, .adm-menu .bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; border-radius: 1px; }
.adm-menu .bars::before, .adm-menu .bars::after { content: ""; position: absolute; left: 0; }
.adm-menu .bars::before { top: -6px; } .adm-menu .bars::after { top: 6px; }
.adm-flash { padding: 16px 28px 0; }
.adm-flash .alert { margin-bottom: 8px; }
.adm-content { padding: 20px 28px 48px; width: 100%; max-width: 1280px; }
.adm-backdrop { position: fixed; inset: 0; background: rgba(10,14,17,.45); z-index: 70; }
.tg-test-row { display: flex; gap: 8px; }
.tg-test-row input { flex: 1; min-width: 0; }
.tg-test-form { margin-bottom: 16px; }

.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; background: var(--asphalt) radial-gradient(circle at 20% 0%, #2b363d 0, transparent 55%); }
.adm-auth-box { width: 100%; max-width: 400px; background: var(--surface); border-radius: 18px; padding: 28px 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.adm-auth-box .adm-brand { padding: 0 0 18px; }
.adm-auth-box .adm-brand b { color: var(--ink); }
.adm-auth-box .adm-brand small { color: var(--ink-3); }
.adm-auth-box h1 { font-size: 1.5rem; margin: 0 0 4px; }
.adm-auth-box > p { margin: 0 0 18px; }
.adm-auth-back { display: block; text-align: center; margin-top: 16px; font-size: .88rem; color: var(--ink-2); text-decoration: none; }

@media (max-width: 960px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 80; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .adm-open .adm-side { transform: none; }
  .adm-open { overflow: hidden; }
  .adm-menu { display: grid; }
  .adm-top { padding: 10px 16px; }
  .adm-top h1 { font-size: 1.15rem; }
  .adm-flash { padding: 12px 16px 0; }
  .adm-content { padding: 14px 16px 40px; }
}
@media (max-width: 480px) { .adm-date { display: none; } }

/* v14: Təkrar elan, marşrut, çatdırılma sübutu */
.btn-repost { gap: 8px; }
.repost-link { margin-left: auto; font-weight: 600; font-size: .85rem; text-decoration: none; white-space: nowrap; }
.copy-photos { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.copy-photo-strip { display: flex; gap: 6px; margin: 2px 0 6px; }
.copy-photo-strip img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.route-distance { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--paper); font-size: .9rem; font-weight: 600; color: var(--ink); }
.route-distance.loading { color: var(--ink-3); font-weight: 500; }
.fact-km { color: var(--ink-2); }
.route-card { display: grid; gap: 10px; }
.route-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.route-card-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.route-card-head .label-sm { width: 100%; }
.route-km { font-family: var(--font-cond); font-size: 1.5rem; line-height: 1.1; }
.route-time { color: var(--ink-2); font-size: .92rem; }
.route-map { height: 260px; border-radius: 12px; overflow: hidden; background: var(--paper) repeating-linear-gradient(45deg, transparent 0 10px, rgba(0,0,0,.025) 10px 20px); z-index: 0; }
.route-note { margin: 0; }
.proof-details { border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.proof-details[open] { border-style: solid; }
.proof-details summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; }
.proof-details summary::-webkit-details-marker { display: none; }
.proof-details > * + * { margin-top: 10px; }
.proof-input { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px dashed var(--line-2); border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; background: var(--surface); }
.proof-input input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.proof-preview { display: flex; gap: 6px; flex-wrap: wrap; }
.proof-preview:empty { display: none; }
.proof-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.proof-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof-note { margin: 0; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-style: italic; }
@media (max-width: 640px) { .route-map { height: 210px; } .route-km { font-size: 1.3rem; } }

/* v15: Qaydalar, təklif sıralaması, seçimin ləğvi */
.terms-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; font-weight: 400; line-height: 1.45; cursor: pointer; }
.terms-check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--asphalt); }
.terms-check.has-error span { color: var(--danger); }
.terms-key { border-left: 4px solid var(--signal); background: #fffbea; margin-bottom: 14px; }
.terms-key p { margin: 6px 0 0; }
.terms-body h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.terms-body h2:first-child { margin-top: 0; }
.terms-body p, .terms-body li { color: var(--ink-2); line-height: 1.6; font-size: .95rem; }
.terms-body ul { padding-left: 20px; margin: 6px 0 10px; }
.terms-accept { margin-top: 14px; position: sticky; bottom: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.offer-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: .85rem; }
.offer-sort span { color: var(--ink-3); }
.offer-sort a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.offer-sort a.active { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
.unselect-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.unselect-box summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2); list-style: none; }
.unselect-box summary::-webkit-details-marker { display: none; }
.unselect-box[open] summary { margin-bottom: 10px; }
.locked-contact { padding: 10px 12px; background: var(--paper); border-radius: 10px; margin: 8px 0 0; }
@media (max-width: 640px) { .has-tabbar .terms-accept { bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* v16: Footer, profil keçidləri, gedişin başlanması, seçimin ləğvi */
.site-footer { padding: 32px 0 24px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 40px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--asphalt-3); }
.footer-brand p { margin: 6px 0 0; color: #9eabb2; font-size: .9rem; max-width: 320px; }
.footer-nav { flex-direction: row; flex-wrap: wrap; gap: 8px 26px; align-items: center; padding-top: 6px; }
.footer-nav a { white-space: nowrap; font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 16px; font-size: .82rem; color: #8a979e; }
.footer-disclaimer { max-width: 640px; text-align: right; }
.link-list { padding: 4px 0; overflow: hidden; }
.link-list a, .link-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: 500 .97rem var(--font); text-decoration: none; cursor: pointer; text-align: left; }
.link-list > :first-child, .link-list > form:first-child button { border-top: 0; }
.link-list a span:last-child, .link-list button span:last-child { color: var(--ink-3); font-size: 1.2rem; }
.link-list a:hover, .link-list button:hover { background: var(--paper); }
.link-list form { margin: 0; }
.profile-disclaimer { margin: 4px 12px 0; }
.started-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: #e7f2fb; color: #1f5d9e; font-weight: 600; font-size: .9rem; }
.unselect-box { margin-top: 14px; padding: 12px; border: 1px solid #f1d1cc; background: #fdf5f4; border-radius: 12px; display: grid; gap: 10px; }
.unselect-head { display: grid; gap: 2px; }
.unselect-form { display: flex; gap: 8px; flex-wrap: wrap; }
.unselect-form select { flex: 1 1 200px; min-height: 42px; }
.unselect-form .btn { flex: 0 0 auto; }
.unselect-link { color: var(--danger); }
@media (max-width: 640px) {
  .has-tabbar .site-footer { display: block; padding: 22px 0 calc(90px + env(safe-area-inset-bottom)); }
  .footer-top { flex-direction: column; gap: 12px; padding-bottom: 14px; }
  .footer-nav { gap: 6px 18px; padding-top: 0; }
  .footer-nav a { font-size: .9rem; }
  .footer-bottom { flex-direction: column; font-size: .78rem; }
  .footer-disclaimer { text-align: left; }
  .unselect-form .btn { flex: 1 1 100%; }
}

/* v17: Təqvim (flatpickr) — sayt üslubunda (təqvimin öz stili sonra yükləndiyi üçün "body" ilə gücləndirilib) */
body .flatpickr-calendar { font-family: var(--font); border-radius: 14px; box-shadow: 0 12px 32px rgba(20,28,32,.18); border: 1px solid var(--line); }
body .flatpickr-calendar.arrowTop:before, body .flatpickr-calendar.arrowTop:after, body .flatpickr-calendar.arrowBottom:before, body .flatpickr-calendar.arrowBottom:after { display: none; }
body .flatpickr-months { padding: 6px 0 2px; }
body .flatpickr-months .flatpickr-month { height: 40px; overflow: visible; }
body .flatpickr-months .flatpickr-prev-month, body .flatpickr-months .flatpickr-next-month { top: 6px; padding: 10px 12px; }
body .flatpickr-current-month { font-size: 1.05rem; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
body .flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 600; padding: 2px 4px; height: auto; line-height: 1.3; }
body .flatpickr-current-month .numInputWrapper { width: 5ch; }
body .flatpickr-current-month input.cur-year { font-weight: 600; padding: 0 2px; height: auto; line-height: 1.3; }
body .flatpickr-weekday { color: var(--ink-3); font-weight: 600; font-size: .78rem; }
body .flatpickr-day { border-radius: 10px; font-weight: 500; }
body .flatpickr-day.today { border-color: var(--signal); }
body .flatpickr-day.today:hover, body .flatpickr-day.today:focus { background: var(--signal-soft); border-color: var(--signal); color: var(--ink); }
body .flatpickr-day.selected, body .flatpickr-day.selected:hover, body .flatpickr-day.selected:focus { background: var(--asphalt); border-color: var(--asphalt); color: #fff; }
body .flatpickr-day:hover:not(.selected):not(.flatpickr-disabled) { background: var(--paper); border-color: var(--paper); }
body .flatpickr-day.flatpickr-disabled, body .flatpickr-day.flatpickr-disabled:hover { color: #c3cacd; }
body .flatpickr-time { border-radius: 0 0 14px 14px; }
body .flatpickr-time input, body .flatpickr-time .flatpickr-time-separator { font-size: 1.4rem; font-weight: 600; color: var(--ink); }
body .flatpickr-time input:hover, body .flatpickr-time input:focus { background: var(--signal-soft); }
body .flatpickr-time input::selection { background: var(--signal); color: var(--ink); }
input.fp-alt, input.flatpickr-input[readonly] { cursor: pointer; background-color: var(--surface); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%2357646c' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7Zm12 8v10H5V10h14Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
input[name=time].flatpickr-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%2357646c' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 5v5.4l3.6 2.1-1 1.7L11 13V7h2Z'/%3E%3C/svg%3E"); }
@media (max-width: 640px) { .flatpickr-calendar { max-width: calc(100vw - 24px); } }

/* v18: Axtarışlı seçim */
.ss-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; border: 0 !important; opacity: 0; pointer-events: none; }
label, .filter-route > label, .ss-host { position: relative; }
.ss-trigger { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 36px 10px 12px; font: 400 1rem/1.4 var(--font); color: var(--ink); text-align: left; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2357646c' d='M6 8 0 1.4 1.4 0 6 4.8 10.6 0 12 1.4z'/%3E%3C/svg%3E") no-repeat right 12px center; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .15s; }
.ss-trigger:hover { border-color: var(--ink-3); }
.ss-trigger:focus-visible, .ss-trigger[aria-expanded="true"] { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 3px var(--signal-soft), 0 0 0 4px var(--signal); }
.ss-trigger.is-placeholder { color: var(--ink-3); }
.ss-trigger:disabled { background-color: var(--paper); color: var(--ink-3); cursor: not-allowed; }
.filter-route .ss-trigger, .trip-filter .ss-trigger, .filters .ss-trigger { margin-top: 4px; }
.ss-backdrop { position: fixed; inset: 0; z-index: 90; }
.ss-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 95; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgba(20,28,32,.18); overflow: hidden; font-weight: 400; }
.ss-search { padding: 8px; border-bottom: 1px solid var(--line); }
.ss-search input { min-height: 40px; padding: 8px 12px 8px 36px; font-size: 1rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath fill='%238a959b' d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2Zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z'/%3E%3C/svg%3E") no-repeat 10px center; border: 1.5px solid transparent; border-radius: 9px; }
.ss-search input:focus { background-color: var(--surface); }
.ss-list { list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.ss-opt { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .97rem; line-height: 1.3; }
.ss-opt:hover, .ss-opt.is-active { background: var(--paper); }
.ss-opt.is-selected { font-weight: 600; background: var(--signal-soft); }
.ss-opt.is-selected::after { content: "✓"; float: right; color: var(--ink-2); }
.ss-opt.ss-none { color: var(--ink-3); }
.ss-group { padding: 10px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.ss-empty { margin: 0; padding: 18px; text-align: center; color: var(--ink-3); font-size: .92rem; }
/* Telefonda tam ekran */
.ss-full { position: fixed; inset: 0; top: 0; z-index: 200; border-radius: 0; border: 0; display: flex; flex-direction: column; min-width: 0; padding-top: env(safe-area-inset-top); }
.ss-full .ss-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 6px; }
.ss-full .ss-head b { font-size: 1.1rem; }
.ss-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink); }
.ss-full .ss-search { padding: 8px 16px 12px; }
.ss-full .ss-search input { min-height: 46px; font-size: 16px; }
.ss-full .ss-list { flex: 1; max-height: none; padding: 4px 8px calc(16px + env(safe-area-inset-bottom)); }
.ss-full .ss-opt { padding: 14px 12px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
.ss-lock { overflow: hidden; }

/* v19: Profil — açılan bölmələr və çoxlu seçim */
.section-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 6px 4px -8px; }
details.fold { padding: 0; overflow: hidden; }
.fold-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.fold-head::-webkit-details-marker { display: none; }
.fold-head:hover { background: var(--paper); }
.fold-head .push-icon, .fold-head .tg-logo { flex: none; }
.fold-title { display: grid; gap: 1px; min-width: 0; flex: 1; }
.fold-title b { font-size: 1rem; font-weight: 600; }
.fold-title small { color: var(--ink-2); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fold-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.fold-dot.on { background: var(--ok); }
.fold-dot.off { background: var(--line-2); }
.fold-chev { width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .2s; flex: none; }
details.fold[open] > .fold-head .fold-chev { transform: rotate(-135deg); margin-top: 4px; }
details.fold[open] > .fold-head { border-bottom: 1px solid var(--line); }
.fold-body { padding: 14px 16px 16px; display: grid; gap: 12px; }
.fold-body > p { margin: 0; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ss-chips:empty { display: none; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 11px; border: 0; border-radius: 999px; background: var(--asphalt); color: #fff; font: 500 .85rem var(--font); cursor: pointer; }
.ss-chip::after { content: "×"; font-size: 1rem; line-height: 1; opacity: .75; }
.ss-chip:hover::after { opacity: 1; }
.ss-multi .ss-opt { padding-left: 40px; position: relative; }
.ss-multi .ss-opt::before { content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line-2); border-radius: 5px; background: var(--surface); }
.ss-multi .ss-opt.is-selected { background: transparent; font-weight: 600; }
.ss-multi .ss-opt.is-selected::before { background: var(--asphalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9 16.2-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--asphalt); }
.ss-multi .ss-opt.is-selected::after { content: none; }
.ss-multi .ss-opt:hover, .ss-multi .ss-opt.is-active { background: var(--paper); }
.ss-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.ss-full .ss-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.ss-full .ss-foot .btn-primary { flex: 1; justify-content: center; }
.ss-full.ss-multi .ss-list { padding-bottom: 8px; }
.ss-opt, .ss-chip, .fold-head { -webkit-tap-highlight-color: transparent; }
/* Profil: yığcam "Maşınım" kartı */
#mashin-info { display: grid; gap: 12px; }
#mashin-info .head-row { gap: 8px; }
#mashin-info .vehicle-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; }
#mashin-info .vehicle-summary div { background: none; padding: 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
#mashin-info .vehicle-summary dt { font-size: .8rem; color: var(--ink-3); }
#mashin-info .vehicle-summary dd { margin: 0; font-size: .9rem; font-weight: 600; text-align: right; }
#mashin-info .photo-grid { display: flex; gap: 8px; }
#mashin-info .photo-item { width: 64px; height: 64px; margin: 0; border-radius: 10px; overflow: hidden; flex: none; }
#mashin-info .photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  #mashin-info .vehicle-summary { grid-template-columns: 1fr; }
  #mashin-info .head-row .btn-row .btn { padding: 6px 10px; font-size: .82rem; }
}

/* v20: Başlıqda "Geri" düyməsi və öz təsdiq pəncərəmiz */
.hdr-back { display: inline-flex; align-items: center; gap: 2px; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem;
  height: 40px; padding: 0 12px 0 6px; margin-right: -14px; border-radius: 999px; background: rgba(255,255,255,.08); -webkit-tap-highlight-color: transparent; flex: 0 0 auto; }
.hdr-back:hover, .hdr-back:active { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 860px) {
  .header-inner.has-back { gap: 10px; }
  .hdr-back { margin-right: 0; width: 40px; padding: 0; justify-content: center; }
  .hdr-back-text { display: none; }
  .has-back .logo-text { font-size: 1.05rem; }
}

.cfm { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cfm-back { position: absolute; inset: 0; background: rgba(10,14,17,.5); animation: cfmFade .15s ease-out; }
.cfm-box { position: relative; width: 100%; max-width: 380px; background: var(--surface); border-radius: 16px; padding: 20px 18px 16px;
  box-shadow: 0 18px 50px rgba(10,14,17,.3); animation: cfmPop .16s ease-out; }
.cfm-box p { margin: 0 0 16px; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.cfm-btns { display: flex; gap: 8px; }
.cfm-btns .btn { flex: 1 1 0; min-height: 46px; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.95); color: #fff; }
body.cfm-open { overflow: hidden; }
@media (max-width: 560px) {
  .cfm { padding: 20px; }
  .cfm-box { max-width: 360px; border-radius: 18px; padding: 22px 18px 18px; }
}
@keyframes cfmFade { from { opacity: 0; } }
@keyframes cfmPop { from { opacity: 0; transform: translateY(12px); } }

/* v21: Admin — şifrə sıfırlama */
.row-actions { white-space: nowrap; }
.row-actions form { display: inline-block; margin-left: 4px; }
.pw-dialog { border: 0; border-radius: 16px; padding: 20px 18px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 18px 50px rgba(10,14,17,.3); color: var(--ink); }
.pw-dialog::backdrop { background: rgba(10,14,17,.5); }
.pw-dialog h2 { margin: 0 0 2px; }
.pw-result { border-left: 4px solid var(--ok); margin-bottom: 16px; display: grid; gap: 12px; }
.pw-result-head { display: flex; gap: 10px; align-items: center; }
.pw-result-head small { display: block; color: var(--ink-3); font-size: .85rem; }
.pw-result-ic { font-size: 1.4rem; }
.pw-box { display: flex; align-items: center; gap: 10px; background: #f3f5f4; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.pw-box code { flex: 1; font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; word-break: break-all; }
.pw-result p { margin: 0; }
.pw-err { color: var(--danger); }

/* v22: Ölkə + telefon sahəsi */
.field { display: block; }
.field > .field-label { display: block; font-weight: 500; }
.phone-field { position: relative; display: flex; gap: 8px; margin-top: 6px; }
.phone-field .ss-trigger { margin-top: 0; width: auto; flex: 0 0 auto; min-width: 74px; max-width: 120px; font-size: 1.25rem; line-height: 1.2; padding-right: 30px; background-position: right 10px center; }
.phone-field .ss-panel { right: auto; width: min(340px, calc(100vw - 32px)); }
.pf-input { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s; }
.pf-input:hover { border-color: var(--ink-3); }
.pf-input:focus-within { border-color: var(--asphalt); box-shadow: 0 0 0 3px var(--signal-soft), 0 0 0 4px var(--signal); }
.pf-dial { padding: 0 2px 0 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-input input, .pf-input input:hover, .pf-input input:focus { flex: 1; min-width: 0; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 8px; }
.pf-dial[hidden] + input { padding-left: 12px; }
.phone-field + small { margin-top: 6px; }

/* v23: Yük sahibi — iş paneli (seçilmiş sürücü) */
.job-card { border-left: 4px solid var(--ok); display: grid; gap: 14px; }
.job-status { font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; background: #e9f6ef; color: #12663f; }
.job-status.is-started { background: #fff6d6; color: #7a5600; }
.job-status.job-delivered { background: #e8f0fb; color: #1f4f8a; }
.job-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.job-contacts .contact-btns { display: contents; }
.job-contacts .btn { justify-content: center; min-height: 48px; }
.job-contacts .btn-call { grid-column: 1 / -1; }
.job-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.job-actions form { margin: 0; }
.job-hint { margin: -4px 0 0; text-align: center; }
.btn-danger-outline { background: var(--surface); border: 1.5px solid var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger-soft); color: var(--danger); }
.job-card .unselect-box { margin: 0; padding: 0; border: 0; background: none; display: block; }
.job-card .unselect-box > summary { list-style: none; cursor: pointer; justify-content: center; font-size: 1rem; }
.job-card .unselect-box > summary::-webkit-details-marker { display: none; }
.job-card .unselect-box[open] > summary { background: var(--danger-soft); margin-bottom: 12px; }
.job-card .unselect-form { display: grid; gap: 12px; padding: 14px; border: 1px solid #f1d1cc; background: #fdf5f4; border-radius: 12px; }
.job-card .unselect-form p { margin: 0; }
.reason-list { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.reason-list legend { margin-bottom: 6px; padding: 0; }
.reason-opt { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.reason-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--danger); flex: 0 0 auto; }
.reason-opt:has(input:checked) { border-color: var(--danger); background: #fff; }
@media (max-width: 640px) {
  .job-card { gap: 12px; }
  .job-card .driver-row { align-items: flex-start; }
}
/* Mobil: mərhələlər yığcam üfüqi zolaq */
@media (max-width: 640px) {
  .progress { grid-template-columns: repeat(3, 1fr); padding: 10px 4px 8px; }
  .progress li { padding: 26px 2px 0; text-align: center; font-size: .7rem; line-height: 1.2; background: none !important; }
  .progress li + li { border: 0; }
  .progress li::before { left: 50%; top: 0; margin: 0 0 0 -10px; z-index: 1; }
  .progress li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
  .progress li.done + li::after, .progress li.done + li.current::after { background: var(--ok); }
  .progress li.current { color: var(--ink); font-weight: 700; }
}
.job-profile-link { display: inline-block; margin-top: 4px; font-weight: 600; }
.job-contacts.no-chat .btn-wa { grid-column: 1 / -1; }

/* v24: Admin — Telegram açarı */
.tg-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-left: 4px solid var(--ok); }
.tg-switch.is-paused { border-left-color: #e0a400; background: #fffbea; }
.tg-switch p { margin: 4px 0 0; max-width: 640px; }
.tg-switch form { flex: 0 0 auto; }
@media (max-width: 640px) { .tg-switch { flex-direction: column; align-items: stretch; } }

/* v25: Vaxtı keçmiş gediş xəbərdarlığı */
.trip-overdue { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #fff3e0; border: 1px solid #f3c98b; color: #6b3d00; margin-bottom: 12px; font-size: .92rem; }
.trip-overdue b { font-size: .98rem; }
.trip-overdue-link { text-decoration: none; margin-top: 12px; }
.trip-overdue-link:hover { background: #ffe9c7; color: #6b3d00; }

/* v26: Profil — ana ekrana əlavə et */
.install-card { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--signal); background: #fffbea; }
.install-card img { border-radius: 12px; flex: 0 0 auto; }
.install-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.install-text span { color: var(--ink-2); font-size: .88rem; line-height: 1.35; }
.install-card .btn { flex: 0 0 auto; }
.install-steps h3 { margin: 0 0 10px; font-size: 1.1rem; }
.install-steps ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.45; }

/* v27: Təkliflərim — rəngli kartlar */
.offer-tabs a.tab-yellow .count { background: #fff3c4; border-color: #f0d36b; color: #7a5600; }
.offer-tabs a.tab-green .count { background: #dff3e7; border-color: #9fd5b4; color: #12663f; }
.offer-tabs a.tab-red .count { background: #fbe4e1; border-color: #f0b7ae; color: #a1271b; }
.offer-list { display: grid; gap: 12px; }
.offer-card { --oc: var(--line-2); --oc-bg: var(--surface); --oc-ink: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--oc); border-radius: 14px; padding: 0 0 14px; overflow: hidden; display: grid; gap: 10px; scroll-margin-top: 80px; }
.offer-card.oc-yellow { --oc: #e8b500; --oc-bg: #fff7d6; --oc-ink: #7a5600; }
.offer-card.oc-green { --oc: #1f9a5b; --oc-bg: #e3f5ea; --oc-ink: #12663f; }
.offer-card.oc-red { --oc: #d0503f; --oc-bg: #fdecea; --oc-ink: #a1271b; }
.offer-card.oc-red .oc-main { opacity: .8; }
.oc-active { box-shadow: 0 6px 20px rgba(31,154,91,.14); }
.oc-status { background: var(--oc-bg); color: var(--oc-ink); font-weight: 700; font-size: .9rem; padding: 9px 14px; }
.oc-main { display: grid; gap: 6px; padding: 0 14px; color: inherit; text-decoration: none; }
.oc-route { font-family: var(--font-cond); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.oc-route span { color: var(--ink-3); font-weight: 500; }
.oc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: .9rem; }
.oc-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line); }
.oc-price b { font-size: 1.15rem; }
.oc-owner { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 14px; }
.oc-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.oc-contacts .contact-btns { display: contents; }
.oc-contacts .btn { justify-content: center; min-height: 46px; }
.oc-contacts .btn-call { grid-column: 1 / -1; }
.oc-deadline { margin: 0 14px; font-size: .88rem; color: var(--ink-2); }
.oc-deadline.is-overdue { color: #a1271b; background: #fdecea; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.oc-finish { margin: 0 14px; }
.oc-finish .btn { min-height: 52px; font-size: 1.05rem; }
.oc-more { padding: 0 14px; font-size: .88rem; font-weight: 600; }
@media (max-width: 640px) {
  .offer-tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .offer-tabs a { padding: 10px 10px; font-size: .92rem; }
}
@media (max-width: 640px) {
  .offer-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  .offer-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; font-size: .8rem; text-align: center; }
  .offer-tabs a .count { margin: 0; }
}

/* v28: Təkliflərim — bölmələr və yığcam sətirlər */
.offers-page .offer-tabs { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin: 0 0 18px !important; background: #eceeed; border: 0; border-radius: 12px; overflow: visible; }
.offers-page .offer-tabs a { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 2px !important; border: 0; margin: 0; border-radius: 9px; color: var(--ink-2); font-size: .8rem !important; font-weight: 600; text-decoration: none; }
.offers-page .offer-tabs a b { font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.offers-page .offer-tabs a.tab-yellow b { color: #a37400; }
.offers-page .offer-tabs a.tab-green b { color: #17804e; }
.offers-page .offer-tabs a.tab-red b { color: #b9382a; }
.offers-page .offer-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(10,14,17,.12); }

.ofr-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; font-size: 1rem; font-family: var(--font); font-weight: 700; }
.ofr-head:first-of-type { margin-top: 4px; }
.ofr-head > span { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.ofr-head em { font-style: normal; font-size: .8rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eceeed; color: var(--ink-2); }
.ofr-head small { width: 100%; font-weight: 400; font-size: .82rem; color: var(--ink-3); margin-top: -4px; padding-left: 18px; }
.ofr-head-green > span { background: #1f9a5b; }
.ofr-head-yellow > span { background: #e8b500; }
.ofr-head-red > span { background: #d0503f; }

.ofr-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ofr { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.ofr + .ofr { border-top: 1px solid var(--line); }
.ofr:hover, .ofr:active { background: #f7f8f7; color: inherit; }
.ofr-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-size: .95rem; font-weight: 700; }
.ofr-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ofr-body b { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofr-body small { color: var(--ink-3); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ofr-side { display: grid; justify-items: end; gap: 2px; flex: 0 0 auto; }
.ofr-side b { font-size: 1rem; }
.ofr-side small { font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.ofr-yellow .ofr-ic { background: #fff3c4; }
.ofr-yellow .ofr-side small { background: #fff3c4; color: #7a5600; }
.ofr-done .ofr-ic { background: #dff3e7; color: #17804e; }
.ofr-done .ofr-side small { background: #dff3e7; color: #12663f; }
.ofr-red .ofr-ic { background: #fbe4e1; color: #b9382a; }
.ofr-red .ofr-side small { background: #fbe4e1; color: #a1271b; }
.ofr-red .ofr-body b, .ofr-red .ofr-side b { color: var(--ink-2); }
.ofr-red .ofr-side b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); font-weight: 600; }

/* Davam edən gediş — iri kart */
.trip-card { background: var(--surface); border-radius: 16px; overflow: hidden; border: 1.5px solid #1f9a5b; box-shadow: 0 8px 24px rgba(31,154,91,.14); margin-bottom: 8px; scroll-margin-top: 80px; }
.trip-top { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; background: #1f9a5b; color: #fff; text-decoration: none; }
.trip-top:hover { color: #fff; }
.trip-badge { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .03em; }
.trip-route { font-family: var(--font-cond); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.trip-price { grid-row: 2 / span 2; grid-column: 2; align-self: center; font-size: 1.35rem; font-weight: 700; }
.trip-meta { font-size: .86rem; opacity: .9; }
.trip-body { display: grid; gap: 12px; padding: 14px 16px 16px; }
.trip-owner { display: flex; align-items: center; gap: 10px; }
.trip-owner > span:last-child { display: grid; line-height: 1.3; }
.trip-owner small { color: var(--ink-3); font-size: .78rem; }
.trip-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-contacts .contact-btns { display: contents; }
.trip-contacts .btn { justify-content: center; min-height: 46px; }
.trip-contacts .btn-call { grid-column: 1 / -1; }
.trip-deadline { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f3f5f4; font-size: .88rem; color: var(--ink-2); }
.trip-deadline b { color: var(--ink); }
.trip-deadline.is-overdue { background: #fdecea; color: #a1271b; font-weight: 600; }
.trip-finish { min-height: 54px; font-size: 1.08rem; }
.trip-more { text-align: center; font-size: .84rem; color: var(--ink-3); }
.offers-page .trip-card { padding: 0 !important; display: block; }
.trip-deadline span { white-space: nowrap; }
.trip-deadline b { text-align: right; }

/* v29: Təkliflərim — yeni dizayn (nümunəyə görə) */
.mo-page { padding-bottom: 8px; }
.mo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 22px; }
.mo-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 8px 4px; border-radius: 14px; background: #eef0ef; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .86rem; text-align: center; -webkit-tap-highlight-color: transparent; transition: background .15s; }
.mo-tab b { font-size: 1.15rem; line-height: 1.15; color: var(--ink-2); }
.mo-tab:hover { background: #e6e9e7; color: var(--ink); }
.mo-tab.active { background: #fff1b8; color: var(--ink); box-shadow: inset 0 0 0 1.5px #f3cf3d; }
.mo-tab.active b { color: var(--ink); }
.mo-tab-green b { color: #17804e; }
.mo-tab-red b { color: #c0392b; }

.mo-section { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 1.2rem; font-weight: 700; font-family: var(--font); }
.mo-section:first-of-type { margin-top: 0; }
.mo-section span { font-size: .9rem; font-weight: 700; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #eef0ef; color: var(--ink-2); display: inline-grid; place-items: center; }
.mo-list { display: grid; gap: 14px; }

.mo-card { background: var(--surface); border: 1px solid #e3e6e4; border-radius: 18px; padding: 16px; display: grid; gap: 14px; box-shadow: 0 2px 10px rgba(16,24,28,.05); scroll-margin-top: 80px; }
.mo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: .86rem; font-weight: 600; }
.mo-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; }
.mo-pill-green { background: #e3f5ea; color: #15803d; }
.mo-pill-yellow { background: #fff3c4; color: #8a6200; }
.mo-pill-red { background: #fde8e6; color: #b42318; }
.mo-pill-gray { background: #eef0ef; color: var(--ink-2); }
.mo-no { font-size: .85rem; color: var(--ink-3); text-decoration: none; font-variant-numeric: tabular-nums; }
.mo-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; color: inherit; text-decoration: none; }
.mo-route { font-family: var(--font-cond); font-size: 1.45rem; font-weight: 700; line-height: 1.2; }
.mo-price { font-family: var(--font-cond); font-size: 1.45rem; font-weight: 700; white-space: nowrap; }
.mo-meta { grid-column: 1 / -1; color: var(--ink-3); font-size: .95rem; }
.mo-owner { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid #eceeed; }
.mo-owner .avatar { width: 44px; height: 44px; font-size: 1.05rem; flex: 0 0 auto; }
.mo-owner > span:last-child { display: grid; line-height: 1.3; min-width: 0; }
.mo-owner b { font-size: 1.05rem; }
.mo-owner small { color: var(--ink-3); font-size: .88rem; }
.mo-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.mo-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 0 6px; border: 1.5px solid #dfe3e1; border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.mo-btn:hover, .mo-btn:active { border-color: var(--ink-3); background: #f7f8f7; color: var(--ink); }
.mo-btn svg { flex: 0 0 auto; }
.mo-btn em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d0503f; color: #fff; font-style: normal; font-size: .72rem; display: grid; place-items: center; }
.mo-deadline { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f3f5f4; color: var(--ink-3); font-size: .95rem; }
.mo-deadline b { margin-left: auto; color: var(--ink); white-space: nowrap; }
.mo-deadline.is-overdue { background: #fde8e6; color: #b42318; }
.mo-deadline.is-overdue b { color: #b42318; }
.mo-warn { margin: -6px 0 0; font-size: .85rem; color: #b42318; }
.mo-card form { margin: 0; }
.mo-finish { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border: 0; border-radius: 14px; background: #f7c600; color: #1d262c; font: 700 1.1rem/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mo-finish:hover { background: #ecbc00; }
.mo-finish:active { transform: translateY(1px); }
.mo-link { font-size: .9rem; font-weight: 600; }
.mo-red .mo-route, .mo-red .mo-price { color: var(--ink-2); }
.mo-red .mo-price { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
@media (max-width: 380px) {
  .mo-tab { font-size: .76rem; min-height: 58px; }
  .mo-btn { font-size: .84rem; gap: 5px; }
  .mo-btn svg { width: 18px; height: 18px; }
  .mo-route, .mo-price { font-size: 1.3rem; }
}

/* v30: Təkliflərim — kartların içi ağ-boz qalır, çərçivə rəngli, səhifənin fonu yüngül yaşıl */
body.page-offers { background: #eef6f1; }
.mo-card { border-width: 2px; background: var(--surface); }
.mo-card.mo-active, .mo-card.mo-done { border-color: #22a45d; }
.mo-card.mo-yellow { border-color: #f2c200; }
.mo-card.mo-red { border-color: #ec9d93; }
.page-offers .mo-tab { background: #e2ece6; }
.page-offers .mo-tab:hover { background: #d8e6dd; }
.page-offers .mo-tab.active { background: #fff1b8; }
.page-offers .mo-section span { background: #dde9e1; }

/* v31: Şifrə sahəsində göz düyməsi */
.pw-field { position: relative; display: block; margin-top: 6px; }
.form label > .pw-field > input, .pw-field > input { margin-top: 0 !important; padding-right: 48px; width: 100%; }
.pw-eye { position: absolute; top: 0; right: 0; bottom: 0; width: 46px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; border-radius: 0 var(--r-sm) var(--r-sm) 0; -webkit-tap-highlight-color: transparent; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--ink); }
.pw-eye:focus-visible { outline: 2px solid var(--signal); outline-offset: -4px; }

/* v32: Admin — elanın ətraflı səhifəsi */
.admin tr.row-link { cursor: pointer; }
.admin tr.row-link:hover td { background: #f7f8f7; }
.ald-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.ald-back { font-weight: 600; text-decoration: none; }
.ald-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ald-actions form { margin: 0; }
.ald-head { display: grid; gap: 14px; margin-bottom: 16px; }
.ald-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ald-route { margin: 2px 0 0; font-size: 1.6rem; }
.ald-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; margin: 0; }
.ald-facts dt { font-size: .78rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ald-facts dd { margin: 2px 0 0; font-weight: 500; }
.ald-desc { margin: 0; padding: 10px 12px; background: #f3f5f4; border-radius: 10px; }
.ald-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.ald-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.ald-people { gap: 16px; margin-bottom: 16px; }
.ald-person { display: grid; gap: 4px; align-content: start; }
.ald-person b { font-size: 1.1rem; }
.ald-person.is-selected { border-left: 4px solid #22a45d; }
.ald-timeline { list-style: none; margin: 8px 0 14px; padding: 0 0 0 18px; border-left: 2px solid var(--line-2); display: grid; gap: 12px; }
.ald-timeline li { position: relative; display: grid; gap: 2px; }
.ald-timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid #22a45d; }
.ald-review { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ald-review p { margin: 0; }
.ald-offers { display: grid; gap: 10px; }
.ald-offer { display: grid; gap: 8px; }
.ald-offer.is-selected { border: 2px solid #22a45d; background: #f6fbf8; }
.ald-offer-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ald-offer-head > div:first-child { display: grid; gap: 2px; min-width: 0; }
.ald-offer-side { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.ald-price { font-size: 1.2rem; }
.ald-msg { margin: 0; color: var(--ink-2); font-style: italic; }
.ald-chat summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.ald-chat-list { display: grid; gap: 8px; margin-top: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.ald-bubble { max-width: 80%; padding: 8px 12px; border-radius: 12px; display: grid; gap: 2px; }
.ald-bubble.from-driver { background: #fff6d6; justify-self: start; }
.ald-bubble.from-owner { background: #e8f0fb; justify-self: end; }
@media (max-width: 640px) {
  .ald-route { font-size: 1.3rem; }
  .ald-photos img { width: 76px; height: 76px; }
  .ald-bubble { max-width: 92%; }
}
@media (max-width: 640px) { .ald-facts { grid-template-columns: 1fr 1fr; gap: 10px 14px; } }

/* v33: Balans və bonus */
.wallet-card { padding: 0; overflow: hidden; border: 1.5px solid #22a45d; }
.wallet-card.bonus-card { border-color: #f2c200; }
.wallet-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.wallet-head::-webkit-details-marker { display: none; }
.wallet-label { font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.wallet-amount { grid-column: 1; font-family: var(--font-cond); font-size: 1.7rem; line-height: 1.15; color: #15803d; }
.bonus-card .wallet-amount { color: #8a6200; }
.wallet-amount.is-neg { color: #b42318; }
.wallet-held { grid-column: 1; font-size: .85rem; color: var(--ink-2); }
.wallet-more { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.wallet-card[open] .wallet-more { opacity: .5; }
.wallet-body { padding: 0 16px 16px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.wallet-body p, .wallet-body h3 { margin: 0; }
.wallet-tx { list-style: none; margin: 0; padding: 0; display: grid; }
.wallet-tx li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wallet-tx li:last-child { border-bottom: 0; }
.wallet-tx li > span { display: grid; min-width: 0; }
.wallet-tx li small { color: var(--ink-3); font-size: .8rem; }
.wallet-tx li > b { white-space: nowrap; }
.tx-plus { color: #15803d; } .tx-minus { color: #b42318; } .tx-hold { color: var(--ink-2); }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tier-list li { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: #f3f5f4; font-size: .78rem; color: var(--ink-2); text-align: center; }
.tier-list li b { font-size: 1.05rem; color: var(--ink); }
.tier-list li.is-on { background: #fff1b8; box-shadow: inset 0 0 0 1.5px #f3cf3d; color: var(--ink); }
.commission-box { display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: #f3f5f4; font-size: .92rem; }
.commission-box > div { display: flex; justify-content: space-between; gap: 10px; }
.commission-box.is-bad { background: #fde8e6; }
.commission-box.is-bad small { color: #b42318 !important; font-weight: 600; }
.cashback-note { display: block; padding: 10px 12px; border-radius: 10px; background: #fff6d6; color: #6b4a00; text-decoration: none; font-size: .95rem; }
.hold-review { border: 2px solid #ec9d93; background: #fef8f7; margin-bottom: 16px; }
.wl-quick { display: flex; gap: 6px; margin-top: -6px; }
.mo-balance { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid #d7eee0; text-decoration: none; color: var(--ink); font-size: .92rem; }
.mo-balance b { font-size: 1.05rem; color: #15803d; }
.mo-balance b.is-neg { color: #b42318; }

/* v34: Admin — Maliyyə */
.fin-hero { margin-bottom: 16px; }
.fin-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr; align-items: center; gap: 10px; }
.fin-flow > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #f6f7f6; min-width: 0; }
.fin-flow > div span { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.fin-flow > div b { font-family: var(--font-cond); font-size: 1.45rem; line-height: 1.2; white-space: nowrap; }
.fin-flow > div small { color: var(--ink-3); font-size: .8rem; }
.fin-flow > i { font-style: normal; font-size: 1.4rem; color: var(--ink-3); font-weight: 700; }
.fin-flow .fin-net { background: #e3f5ea; box-shadow: inset 0 0 0 1.5px #22a45d; }
.fin-flow .fin-net b { color: #15803d; font-size: 1.7rem; }
.fin-plus { color: #15803d; }
.fin-minus { color: #a86f00; }
.fin-table tfoot td { background: #f6f7f6; border-top: 2px solid var(--line-2); }
@media (max-width: 1100px) {
  .fin-flow { grid-template-columns: 1fr 1fr; }
  .fin-flow > i { display: none; }
}
@media (max-width: 480px) { .fin-flow { grid-template-columns: 1fr; } }
.fin-table { font-size: .9rem; }
.fin-table th, .fin-table td { padding-left: 10px; padding-right: 10px; }

/* v35: Nağdlaşdırma, dəstək nömrəsi, tarixçə */
.wallet-wa { justify-content: center; gap: 8px; min-height: 48px; }
.payout-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: #f3f5f4; font-size: .92rem; }
.payout-box.is-open { background: #e3f5ea; box-shadow: inset 0 0 0 1.5px #22a45d; }
.payout-box .btn { justify-content: center; gap: 8px; min-height: 46px; }
.payout-box .btn[disabled] { background: #e6e9e7; color: var(--ink-3); border-color: transparent; cursor: not-allowed; font-size: .86rem; }
.support-wa { display: grid; gap: 10px; margin-bottom: 16px; }
.support-wa h2, .support-wa p { margin: 0; }
.support-wa-row { display: flex; gap: 8px; max-width: 460px; }
.support-wa-row input { flex: 1; }
.wh-head { display: grid; gap: 14px; margin-bottom: 16px; }
.wh-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wh-amounts > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #f6f7f6; }
.wh-amounts span { font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.wh-amounts b { font-family: var(--font-cond); font-size: 1.35rem; }
.wh-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wh-reset { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.wh-reset input { min-width: 240px; }
.wallet-wa-out { margin-top: 0; }

/* v36: Yük sahibi — çatdırılmanın təsdiqi */
.job-confirm { background: #fff8e1; border: 1.5px solid #f2c200; border-radius: 12px; padding: 14px; border-top: 1.5px solid #f2c200; }
.job-confirm p { margin: 0; }
.job-confirm-text { font-size: .95rem; line-height: 1.45; }
.job-status.job-delivered { background: #fff3c4; color: #7a5600; }
.cfm-box p { white-space: pre-line; }

/* v37: Məcburi təhvil */
.trip-lock-bar { position: sticky; top: 0; z-index: 70; background: #b42318; color: #fff; padding: 10px 16px; font-size: .9rem; text-align: center; cursor: pointer; }
.tl-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(10,14,17,.72); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.tl-overlay[hidden] { display: none; }
body.tl-locked { overflow: hidden; }
.tl-box { width: 100%; max-width: 420px; background: var(--surface); border-radius: 20px; padding: 22px 18px 18px; display: grid; gap: 12px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); margin: auto; }
.tl-icon { font-size: 2.4rem; line-height: 1; }
.tl-box h2 { margin: 0; font-size: 1.35rem; }
.tl-box p { margin: 0; color: var(--ink-2); line-height: 1.45; }
.tl-load { display: grid; gap: 4px; padding: 12px; border-radius: 12px; background: #fff3e0; border: 1px solid #f3c98b; text-align: left; font-size: .9rem; }
.tl-load b { font-size: 1.1rem; font-family: var(--font-cond); }
.tl-box form { margin: 0; }
.tl-box .btn-lg { min-height: 54px; font-size: 1.08rem; }
.tl-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tl-links .btn { justify-content: center; min-height: 44px; }
.tl-close { border: 0; background: none; color: var(--ink-2); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px; }
.tl-help { font-size: .8rem; color: var(--ink-3) !important; }

/* v38: Maşına uyğun olmayan elan */
.load-card.is-misfit { opacity: .72; }
.load-card.is-misfit:hover { opacity: 1; }
.misfit-box { background: #fde8e6; border-color: #f0b7ae; color: #8a1c12; }
.star-input label { -webkit-tap-highlight-color: transparent; }
.star-input input:focus-visible + label { outline: 2px solid var(--signal); outline-offset: 2px; }
.rate-form { gap: 10px; }
.rate-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }

/* ---------------- v39: Marşrut səhifələri (yuk-dasima) ---------------- */
.seo-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 14px; padding-bottom: 10px; font-size: .85rem; color: var(--ink-3); }
.seo-crumbs a { color: var(--ink-2); text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.seo-hero { background: var(--asphalt); color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden; }
.seo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--signal) 0 38px, transparent 38px 64px); opacity: .9; }
.seo-hero h1 { font-family: var(--font-cond); font-size: clamp(1.75rem, 4.4vw, 2.7rem); line-height: 1.1; margin: 0 0 12px; color: #fff; }
.seo-lead { max-width: 760px; color: rgba(255,255,255,.82); font-size: 1.04rem; line-height: 1.55; margin: 0 0 20px; }
.seo-lead b { color: var(--signal); }
.seo-route-line { display: flex; align-items: center; gap: 10px; max-width: 420px; margin-bottom: 14px; font-family: var(--font-cond); font-weight: 600; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.seo-route-line i { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--signal) 0 10px, transparent 10px 18px); position: relative; }
.seo-route-line i::before, .seo-route-line i::after { content: ""; position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }
.seo-route-line i::before { left: -2px; } .seo-route-line i::after { right: -2px; }
.seo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; margin-bottom: 22px; max-width: 820px; }
.seo-facts > div { background: var(--asphalt-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.seo-facts span { font-size: .78rem; color: rgba(255,255,255,.6); }
.seo-facts b { font-family: var(--font-cond); font-size: 1.25rem; color: #fff; }
.seo-cta { gap: 10px; }
.seo-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; padding-top: 22px; padding-bottom: 40px; }
.seo-body-wide { grid-template-columns: minmax(0, 1fr); }
.seo-main, .seo-side { display: grid; gap: 16px; min-width: 0; }
.seo-card { padding: 20px; }
.seo-card h2 { font-size: 1.2rem; margin: 0 0 12px; }
.seo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.seo-card-head h2 { margin: 0 0 8px; }
.seo-badge { background: var(--signal-soft); color: #7a5a00; font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: 99px; }
.seo-price { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 14px 16px; background: var(--paper); border-radius: var(--r); margin-bottom: 12px; }
.seo-price-big { font-family: var(--font-cond); font-size: 2.1rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.seo-price-big small { font-size: 1.2rem; color: var(--ink-2); }
.seo-price-note { flex: 1; min-width: 200px; color: var(--ink-2); font-size: .93rem; }
.seo-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--ink-2); font-size: .93rem; }
.seo-ticks li { padding-left: 22px; position: relative; }
.seo-ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.seo-list { list-style: none; margin: 0 0 8px; padding: 0; }
.seo-list li { border-top: 1px solid var(--line); }
.seo-list li:first-child { border-top: 0; }
.seo-list li > a, .seo-list li:not(:has(a)) { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.seo-list li > a:hover b { text-decoration: underline; }
.seo-list span { color: var(--ink-2); font-size: .92rem; }
.seo-drivers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 10px; }
.seo-driver { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.seo-driver span { font-size: .86rem; color: var(--ink-2); }
.seo-driver-r { color: #7a5a00 !important; font-weight: 600; }
.seo-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.seo-types span { background: var(--paper); border-radius: 99px; padding: 3px 10px; font-size: .84rem; color: var(--ink-2); }
.seo-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.seo-steps b { color: var(--ink); }
.seo-faq details { border-top: 1px solid var(--line); }
.seo-faq details:first-of-type { border-top: 0; }
.seo-faq summary { cursor: pointer; padding: 12px 26px 12px 0; font-weight: 600; list-style: none; position: relative; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; position: absolute; right: 2px; top: 9px; font-size: 1.3rem; color: var(--ink-3); }
.seo-faq details[open] summary::after { content: "−"; }
.seo-faq details p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.55; }
.seo-side-title { display: block; font-family: var(--font-cond); font-size: 1.1rem; margin-bottom: 8px; }
.seo-sticky { position: sticky; top: 84px; border-color: var(--signal); }
.seo-reverse { margin: 12px 0 0; font-size: .9rem; color: var(--ink-2); }
.seo-links { list-style: none; margin: 0; padding: 0; }
.seo-links li { border-top: 1px solid var(--line); }
.seo-links li:first-child { border-top: 0; }
.seo-links a, .seo-grid-links a { color: var(--link); text-decoration: none; }
.seo-links a { display: block; padding: 8px 0; font-size: .93rem; }
.seo-links a:hover, .seo-grid-links a:hover { text-decoration: underline; }
.seo-more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.seo-grid-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; }
.seo-grid-links li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.seo-grid-links small { color: var(--ink-3); white-space: nowrap; }
.home-routes { padding: 8px 0 48px; }
.home-routes .seo-grid-links { margin-top: 14px; }
@media (max-width: 900px) {
  .seo-body { grid-template-columns: minmax(0, 1fr); }
  .seo-sticky { position: static; }
}
@media (max-width: 640px) {
  .seo-hero { padding: 24px 0 26px; }
  .seo-cta .btn { width: 100%; }
  .seo-facts { grid-template-columns: 1fr 1fr; }
  .seo-facts > div:last-child:nth-child(odd) { grid-column: span 2; }
  .seo-card { padding: 16px; }
  .seo-price-big { font-size: 1.8rem; }
}

/* v40: Profil kartları mobildə ekrandan çıxmasın */
.wallet-body { grid-template-columns: minmax(0, 1fr); }
.wallet-head > * { min-width: 0; }
.wallet-tx li > span b, .wallet-tx li > span small { overflow-wrap: anywhere; }
.wallet-held { line-height: 1.35; }
@media (max-width: 420px) {
  .install-card { flex-wrap: wrap; padding: 14px 16px; }
  .install-text { flex: 1 1 calc(100% - 64px); }
  .install-card .btn { flex: 1 1 100%; }
}

/* v41: Admin → Referal linklər */
.ref-create { display: grid; gap: 10px; margin-bottom: 16px; }
.ref-create h2 { margin: 0; }
.ref-create-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ref-create-row label { display: grid; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.ref-create-row label.grow { flex: 1 1 280px; }
.ref-create-row input, .ref-create-row select { min-height: 42px; }
.ref-create p { margin: 0; }
.ref-url { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; flex-wrap: wrap; }
.ref-url code { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: .82rem; word-break: break-all; max-width: 100%; }
.ref-table tr.is-new td { background: #fffbea; }
.ref-table tr.is-off td { opacity: .6; }
.ref-detail-head { display: grid; gap: 4px; margin-bottom: 16px; }
.ref-detail-head h2, .ref-detail-head p { margin: 0; }
@media (min-width: 900px) { .ref-table td:first-child { min-width: 340px; } }

/* v42: Yol üstü — daimi gediş */
.trip-daily { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.trip-daily:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.trip-daily input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ok); flex: 0 0 auto; }
.trip-daily span { display: grid; gap: 2px; }
.trip-daily small { color: var(--ink-2); font-size: .84rem; line-height: 1.35; }
.trip-when.is-daily { grid-template-columns: 1fr; }
.trip-when.is-daily [data-trip-date] { display: none; }
.trip-time.is-daily span { color: var(--ok); font-weight: 600; }
.pill-daily { background: var(--ok-soft); color: var(--ok); border-color: transparent; font-size: .72rem; }
.form label.trip-daily { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.form label.trip-daily input[type=checkbox] { width: 18px; min-width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; }

/* v43: Elan forması — konum */
.geo-pick { display: grid; gap: 6px; margin: 4px 0 2px; }
.geo-btn { justify-content: center; gap: 8px; border-style: dashed; }
.geo-done { display: none; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-size: .92rem; }
.geo-done a { color: var(--ok); font-weight: 600; }
.geo-pick.has-geo .geo-done { display: flex; }
.geo-pick.has-geo .geo-btn, .geo-pick.has-geo .geo-hint { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font: inherit; font-size: .88rem; }
.load-map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; font-size: .92rem; }
.load-hero .load-map-link { color: var(--link); text-decoration: none; }

/* v44: Məkan seçimi — tam ekran xəritə (Uber/Bolt kimi) */
.geo-done-text { display: grid; gap: 1px; min-width: 0; }
.geo-done-text small { color: var(--ink-2); font-size: .84rem; overflow-wrap: anywhere; }
.geo-done-text small:empty { display: none; }
.geo-done-act { display: flex; gap: 12px; flex: 0 0 auto; }
html.mp-lock, html.mp-lock body { overflow: hidden; }
.mp-modal { position: fixed; inset: 0; z-index: 1000; background: #e9ecea; display: none; }
.mp-modal.open { display: block; }
.mp-map { position: absolute; inset: 0; z-index: 0; }
.mp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.mp-close { flex: 0 0 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.mp-search { flex: 1; display: flex; background: #fff; border-radius: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.18); overflow: hidden; }
.mp-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 16px; height: 44px; background: transparent; outline: none; }
.mp-search button { border: 0; background: none; width: 44px; font-size: 22px; cursor: pointer; color: var(--ink-2); }
.mp-results { position: absolute; top: calc(62px + env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 4; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); overflow: hidden; max-height: 50vh; overflow-y: auto; }
.mp-results button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px 14px; font: inherit; font-size: .94rem; cursor: pointer; }
.mp-results button:last-child { border-bottom: 0; }
.mp-results p { margin: 0; padding: 12px 14px; color: var(--ink-2); font-size: .92rem; }
/* Mərkəzdəki pin: xəritə hərəkət edəndə yuxarı qalxır */
.mp-pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.mp-pin::before { content: ""; position: absolute; left: -18px; top: -44px; width: 36px; height: 36px; border-radius: 50% 50% 50% 0; background: var(--asphalt); transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: transform .15s; }
.mp-pin span { position: absolute; left: -7px; top: -33px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); transition: transform .15s; }
.mp-pin::after { content: ""; position: absolute; left: -5px; top: -3px; width: 10px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.3); }
.mp-modal.moving .mp-pin::before { transform: translateY(-10px) rotate(-45deg); }
.mp-modal.moving .mp-pin span { transform: translateY(-10px); }
.mp-locate { position: absolute; right: 14px; bottom: calc(170px + env(safe-area-inset-bottom)); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); font-size: 24px; cursor: pointer; color: var(--link); }
.mp-modal.locating .mp-locate { animation: mp-pulse 1s infinite; }
@keyframes mp-pulse { 50% { opacity: .4; } }
.mp-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.15); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 4px; }
.mp-sheet small { color: var(--ink-3); font-size: .8rem; }
.mp-addr { font-size: 1.05rem; min-height: 1.4em; margin-bottom: 10px; overflow-wrap: anywhere; }
.mp-modal .leaflet-control-attribution { font-size: 10px; margin-bottom: 150px !important; }
@media (min-width: 700px) { .mp-sheet { left: 50%; width: 460px; transform: translateX(-50%); } }

/* v45: Maşın növü seçimi */
.vclass-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vclass-opt { position: relative; cursor: pointer; display: block !important; }
.vclass-opt input { position: absolute; opacity: 0; pointer-events: none; }
.vclass-box { display: grid; justify-items: center; text-align: center; gap: 4px; height: 100%; padding: 14px 10px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); transition: border-color .15s, background .15s; }
.vclass-ico { font-size: 2rem; line-height: 1; }
.vclass-box b { font-size: .98rem; color: var(--ink); }
.vclass-box small { font-size: .8rem; color: var(--ink-2); line-height: 1.3; font-weight: 400; }
.vclass-opt input:checked + .vclass-box { border-color: var(--signal); background: #fffbea; box-shadow: inset 0 0 0 1px var(--signal); }
.vclass-opt input:focus-visible + .vclass-box { outline: 2px solid var(--link); outline-offset: 2px; }
.vclass-picker.has-error .vclass-box { border-color: var(--danger); }
.fact-vclass { background: var(--signal-soft); color: #6b4f00; font-weight: 600; }
@media (max-width: 560px) {
  .vclass-picker { grid-template-columns: 1fr; gap: 8px; }
  .vclass-box { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; row-gap: 0; padding: 12px 14px; }
  .vclass-ico { grid-row: span 2; align-self: center; font-size: 1.8rem; }
}
.fact-vclass { padding: 1px 7px; border-radius: 6px; }

/* v46: Elan forması — addımlar */
.load-form [hidden] { display: none !important; }
.lf-steps { display: grid; gap: 14px; }
.lf-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: none; }
.lf-progress li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; color: var(--ink-3); text-align: center; position: relative; line-height: 1.2; }
.lf-progress li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-3); font-size: .9rem; position: relative; z-index: 1; }
.lf-progress li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.lf-progress li:first-child::before { display: none; }
.lf-progress li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.lf-progress li.done::before, .lf-progress li.active::before { background: var(--ok); }
.lf-progress li.active { color: var(--ink); font-weight: 600; }
.lf-progress li.active span { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.lf-progress li.reachable { cursor: pointer; }
.lf-js .lf-step { display: none; }
.lf-js .lf-step.active { display: grid; }
.lf-title { font-size: 1.25rem; margin: 0; }
.lf-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 6px; }
.lf-nav .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }
.lf-step[data-step="1"] .lf-nav .btn-primary { max-width: none; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.lf-chips .qchip.active { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.lf-bulky { font-weight: 600; }
.lf-dims { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lf-dims label { font-size: .88rem; }
.stack-sm { display: grid; gap: 8px; }
.lf-missing > input, .lf-missing select, .lf-missing .input-suffix, .vclass-picker.lf-missing .vclass-box { border-color: var(--danger) !important; }
.lf-summary { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lf-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.lf-summary > div:first-child { border-top: 0; }
.lf-summary dt { color: var(--ink-2); font-size: .9rem; }
.lf-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* Sürücü: yerləşmə təsdiqi */
.fit-check { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.fit-check ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; display: grid; gap: 2px; }
.fit-check .check { font-weight: 600; margin-top: 4px; }
@media (max-width: 480px) { .lf-progress li { font-size: .72rem; } .lf-dims { gap: 6px; } }

/* v47: Gediş məlumatını göndər */
.share-details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-top: 10px; }
.share-details > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; }
.share-details > summary::-webkit-details-marker { display: none; }
.share-box { display: grid; gap: 10px; padding: 0 14px 14px; }
.share-head { display: grid; gap: 2px; }
.share-head small { color: var(--ink-2); font-size: .85rem; }
.share-text { width: 100%; box-sizing: border-box; margin: 0; white-space: pre-wrap; word-break: break-word; font: inherit; font-size: .88rem; line-height: 1.5; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 220px; overflow: auto; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns .btn { flex: 1 1 120px; justify-content: center; }
.share-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* v48: Sürətli elan forması (tək səhifə) */
.lf-quick { gap: 14px; }
.lf-quick .vclass-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lf-quick .vclass-box { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 10px 6px; gap: 2px; }
.lf-quick .vclass-ico { grid-row: auto; font-size: 1.7rem; }
.lf-quick .vclass-box b { font-size: .88rem; line-height: 1.2; }
.lf-quick .vclass-box small { font-size: .72rem; }
.lf-quick .route-inputs { margin: 0; }
.lf-when { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; }
.lf-when .qchip { min-height: 44px; padding: 0 14px; }
.lf-when .qchip.active { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }
.lf-when input[type=date], .lf-when input.flatpickr-input { flex: 1 1 120px; min-width: 0; }
.lf-more { border: 1px dashed var(--line-2); border-radius: var(--r); }
.lf-more > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.lf-more > summary::-webkit-details-marker { display: none; }
.lf-more > summary::before { content: "+"; font-weight: 700; color: var(--ink-2); width: 14px; }
.lf-more[open] > summary::before { content: "−"; }
.lf-more-body { padding: 0 14px 14px; }
.lf-more .lf-bulky { align-self: end; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 560px) {
  .lf-quick .vclass-box small { display: none; }
  .lf-row { grid-template-columns: 1fr; }
}
.lf-quick .route-inputs { margin-top: 4px; }

/* v49: Maşın növü kartında həcm və çəki */
.vclass-spec { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; margin-top: 4px; font-size: .76rem; color: var(--ink); font-weight: 600; }
.vclass-spec span { white-space: nowrap; }
.lf-quick .vclass-spec { flex-direction: column; align-items: center; gap: 1px; font-size: .7rem; }
@media (max-width: 560px) {
  .vclass-box .vclass-spec { justify-content: flex-start; grid-column: 2; }
  .lf-quick .vclass-box .vclass-spec { grid-column: auto; align-items: center; }
}
.lf-quick .vclass-spec span { white-space: normal; text-align: center; line-height: 1.25; }
.lf-quick .vclass-opt { min-width: 0; }
.lf-quick .vclass-box { min-width: 0; overflow-wrap: anywhere; }

/* v50: Reels — elanlar tam ekran */
body.page-reels { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: #0f1417; }
body.page-reels main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0 !important; }
body.page-reels .site-footer, body.page-reels .flash-wrap:empty { display: none; }
body.page-reels .flash-wrap { position: absolute; left: 0; right: 0; z-index: 40; }
.reels-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--asphalt); }
.reels-tabs { display: flex; gap: 4px; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px; }
.reels-tabs a { color: rgba(255,255,255,.7); text-decoration: none; font-weight: 600; font-size: .88rem; padding: 6px 12px; border-radius: 99px; }
.reels-tabs a span { opacity: .7; font-weight: 500; margin-left: 2px; }
.reels-tabs a.active { background: #fff; color: var(--ink); }
.reels-list { color: rgba(255,255,255,.8); text-decoration: none; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.reels { flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; background: var(--surface); max-width: 560px; margin: 0 auto; position: relative; overflow: hidden; }
.reel + .reel { border-top: 6px solid #0f1417; }
.reel-media { flex: 0 0 32%; position: relative; background: linear-gradient(135deg, #1d262c, #2f3e47); overflow: hidden; }
.reel-photos { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel-photos::-webkit-scrollbar { display: none; }
.reel-photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.reel-art { height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(90deg, transparent 0 28px, rgba(245,184,0,.18) 28px 46px) center 78%/100% 6px no-repeat, linear-gradient(135deg, #1d262c, #33444e); }
.reel-art span { font-size: 4.2rem; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.reel-count, .reel-dots { position: absolute; top: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.reel-count { right: 10px; } .reel-dots { left: 10px; }
.reel-body { flex: 1; min-height: 0; overflow: hidden; padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.reel-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-cond); font-size: clamp(1.45rem, 6.5vw, 1.9rem); line-height: 1.1; }
.reel-route i { color: var(--signal); font-style: normal; }
.reel-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--ink-2); font-size: .88rem; }
.reel-date { background: var(--signal); color: var(--ink); font-weight: 700; padding: 1px 9px; border-radius: 99px; }
.reel-first { color: var(--ok); font-weight: 600; }
.reel-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reel-chips span { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; font-size: .86rem; }
.reel-chips .chip-v { background: var(--signal-soft); border-color: transparent; font-weight: 600; }
.reel-chips .chip-warn { background: #fff1e6; border-color: transparent; color: #8a4b00; font-weight: 600; }
.reel-addr, .reel-desc { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.reel-more { margin-top: auto; font-size: .86rem; font-weight: 600; color: var(--link); text-decoration: none; }
.reel-offer { padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.reel-form { display: grid; gap: 6px; }
.reel-price { display: flex; gap: 8px; }
.reel-price .input-suffix { flex: 1; }
.reel-price input { font-size: 1.15rem; font-weight: 700; height: 50px; }
.reel-price .btn { min-width: 110px; height: 50px; font-size: 1.02rem; }
.reel-fit { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); }
.reel-fit input { width: 18px; height: 18px; accent-color: var(--ok); }
.reel-msg { margin: 0; font-size: .86rem; color: var(--ok); }
.reel-msg.bad { color: var(--danger); }
.reel-done { padding: 14px; border-radius: var(--r); background: var(--ok-soft); color: var(--ok); font-weight: 600; text-align: center; }
.reel-done.is-new { animation: reel-pop .35s ease; }
@keyframes reel-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.reel-block { display: block; padding: 12px 14px; border-radius: var(--r); background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .9rem; text-decoration: none; }
.reel-empty .reel-body { justify-content: center; align-items: center; text-align: center; }
.reel-empty .reel-art { height: 160px; width: 100%; border-radius: var(--r); }
.reels-end { height: 60px; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .86rem; }
.reels-hint { position: fixed; left: 50%; bottom: calc(150px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: rgba(15,20,23,.85); color: #fff; padding: 10px 16px; border-radius: 99px; font-size: .9rem; font-weight: 600; display: flex; gap: 8px; align-items: center; animation: reel-hint 1.4s ease-in-out infinite; pointer-events: none; white-space: nowrap; }
.reels-hint[hidden] { display: none; }
@keyframes reel-hint { 50% { transform: translate(-50%, -10px); } }
@media (max-width: 860px) {
  body.page-reels.has-tabbar main { padding-bottom: calc(63px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 861px) {
  .reel { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
.reel-media { flex-basis: 38%; }
.reel-owner { margin: 0; color: var(--ink-3); font-size: .84rem; }

/* v51: Reels — şəkil slayderi (üfüqi sürüşdürmə lenti dəyişmir) */
.reel-slider { position: relative; height: 100%; overflow: hidden; touch-action: pan-y; outline: none; }
.reel-track { display: flex; height: 100%; will-change: transform; }
.reel-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.reel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 28px; line-height: 1; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; z-index: 2; -webkit-tap-highlight-color: transparent; }
.reel-nav.prev { left: 10px; } .reel-nav.next { right: 10px; }
.reel-nav[hidden] { display: none; }
.reel-nav:active { transform: translateY(-50%) scale(.92); }
.reel-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.reel-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 3px rgba(0,0,0,.4); transition: width .2s, background .2s; }
.reel-dots i.on { width: 20px; border-radius: 4px; background: #fff; }
.reel-pcount { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.5); color: #fff; font-size: .74rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; z-index: 2; }
.reel-slider, .reel-slider * { -webkit-tap-highlight-color: transparent; }
.reel-slider .reel-dots { top: auto; background: none; padding: 0; border-radius: 0; }
.demo-count { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; } .demo-count .qchip.active { background: var(--asphalt); color: #fff; border-color: var(--asphalt); }

/* v52: Təhvil kilidi — əlavə seçimlər */
.tl-alt { display: grid; gap: 8px; margin-top: 10px; }
.tl-opt { display: grid !important; gap: 2px; justify-items: center; text-align: center; padding: 10px 12px; height: auto; white-space: normal; }
.tl-opt b { font-size: .98rem; }
.tl-opt small { font-size: .8rem; color: var(--ink-3); font-weight: 400; }
.tl-box { max-height: calc(100dvh - 24px); overflow-y: auto; }

/* ---------- v53: Reels filtri + siyahıdan Reels-ə qayıt ---------- */
.reels-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.reels-filter { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border: 0; border-radius: 99px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reels-filter.on { background: #fff; color: var(--ink); }
.reels-filter i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--signal); color: var(--ink); font-size: .72rem; display: inline-grid; place-items: center; }
@media (max-width: 350px) { .reels-filter span { display: none; } .reels-tabs a { padding: 6px 9px; } }
.reels-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px 8px; background: var(--asphalt); scrollbar-width: none; flex: none; }
.reels-chips::-webkit-scrollbar { display: none; }
.reels-chips a { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.reels-chips a span { opacity: .7; }
.reels-chips a.clear { background: none; color: rgba(255,255,255,.65); text-decoration: underline; }
/* Reels filtri bütün ekranlarda aşağıdan açılan pəncərədir */
.filters.reels-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 95; margin: 0 auto; max-width: 560px; border-radius: 18px 18px 0 0; border: 0; max-height: 88vh; overflow-y: auto;
  padding: 0 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 40px rgba(10,14,17,.25); }
.filters.reels-sheet.open { transform: none; }
.reels-sheet .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 0 10px; z-index: 2; font-family: var(--font-cond); font-size: 1.25rem; }
.reels-sheet .sheet-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); }
.reels-sheet .filters-actions { flex-direction: row; }
.reels-sheet .filters-actions .btn { flex: 1; }
.rf-when { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-when label { display: block !important; cursor: pointer; }
.rf-when input { position: absolute; opacity: 0; pointer-events: none; }
.rf-when span { display: inline-block; padding: 8px 13px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .88rem; font-weight: 600; }
.rf-when input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.rf-when input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
body.page-reels.sheet-open { overflow: hidden; }
/* Siyahı görünüşündə "▶ Reels" düyməsi (Reels-dəki "☰ Siyahı" ilə eyni yerdə) */
.feed-head-row { position: relative; }
.feed-reels { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; align-self: flex-start; }
.feed-reels:hover { opacity: .9; }
@media (max-width: 900px) { .feed-head-row { flex-wrap: nowrap; align-items: flex-start; } }
