/* =========================================================================
   FastBox App - დიზაინ-სისტემა
   ========================================================================= */

@font-face { font-family: "Noto Sans Georgian"; src: url("fonts/NotoSansGeorgian-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("fonts/NotoSansGeorgian-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("fonts/NotoSansGeorgian-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans Georgian"; src: url("fonts/NotoSansGeorgian-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "BPG ExtraSquare Mtavruli"; src: url("fonts/BPGExtraSquareMtavruli.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
	--accent: #ff9c12;
	--accent-strong: #ffad3d;
	--accent-ink: #111;
	--radius-lg: 20px;
	--radius: 14px;
	--radius-sm: 10px;
	--font: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "BPG ExtraSquare Mtavruli", var(--font);
	--ease: cubic-bezier(.2, .8, .2, 1);
	--tabbar-h: 68px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
}

[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0d0d0d;
	--surface: #161616;
	--surface-2: #1f1f1f;
	--surface-3: #282828;
	--border: #2b2b2b;
	--text: #f6f6f6;
	--muted: #9b9b9b;
	--accent-text: #ffad3d;
	--accent-soft: rgba(255, 156, 18, .12);
	--success: #3ddc84;
	--success-soft: rgba(61, 220, 132, .12);
	--danger: #ff6b6b;
	--danger-soft: rgba(255, 107, 107, .12);
	--shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f5f4f1;
	--surface: #ffffff;
	--surface-2: #f2f0ec;
	--surface-3: #e9e6e0;
	--border: #e5e1d9;
	--text: #151515;
	--muted: #6c6a66;
	--accent-text: #9a4f00;
	--accent-soft: rgba(255, 156, 18, .14);
	--success: #13894a;
	--success-soft: rgba(19, 137, 74, .1);
	--danger: #c93636;
	--danger-soft: rgba(201, 54, 54, .08);
	--shadow: 0 10px 30px rgba(40, 30, 10, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; overflow-x: hidden; }
/* ორმაგი შეხება ეკრანს აღარ ადიდებს; ფორმის ველი ≥16px - ფოკუსზე ზუმი არ ხდება. */
input, select, textarea { font-size: 16px; }
body {
	margin: 0;
	min-height: 100dvh;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	transition: background .3s var(--ease), color .3s var(--ease);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* თემის გადართვა: წრიული გადასვლა (View Transitions) და სარეზერვო რბილი გადასვლა */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }
.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
	transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease) !important;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---- ჩატვირთვა ---- */
.boot { display: grid; place-items: center; min-height: 100dvh; }
.boot__logo { animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }
.noscript { padding: 24px; text-align: center; }

/* =========================================================================
   განლაგება
   ========================================================================= */
.shell { min-height: 100dvh; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view {
	flex: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 18px calc(var(--tabbar-h) + var(--safe-b) + 28px);
	animation: view-in .35s var(--ease);
}
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

.topbar {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: calc(10px + var(--safe-t)) 18px 10px;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar__brand { display: flex; align-items: center; height: 36px; }
.topbar__brand img { height: 34px; width: auto; }
.topbar__actions { display: flex; gap: 8px; }

.logo-dark { display: none; }
.logo-light { display: block; }
[data-theme="dark"] .logo-dark { display: block; }
[data-theme="dark"] .logo-light { display: none; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text);
	transition: transform .15s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---- ქვედა ნავიგაცია (მობილური) ---- */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: grid; grid-template-columns: repeat(4, 1fr);
	height: calc(var(--tabbar-h) + var(--safe-b));
	padding: 6px 8px var(--safe-b);
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(160%) blur(16px);
	-webkit-backdrop-filter: saturate(160%) blur(16px);
	border-top: 1px solid var(--border);
}
.tabbar a {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	color: var(--muted); font-size: 11px; font-weight: 600; border-radius: 12px;
	transition: color .2s;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--accent-text); }
.tabbar a.tab-new span.tab-new__icon {
	display: grid; place-items: center; width: 44px; height: 28px; margin: -3px 0; border-radius: 10px;
	background: var(--accent); color: var(--accent-ink);
	box-shadow: 0 6px 16px rgba(255, 156, 18, .35);
}

/* ---- გვერდითა ნავიგაცია (დესკტოპი) ---- */
.rail { display: none; }
@media (min-width: 960px) {
	.tabbar { display: none; }
	.view { padding-bottom: 48px; }
	.rail {
		display: flex; flex-direction: column; gap: 6px;
		position: sticky; top: 0; height: 100dvh; width: 248px; flex: none;
		padding: 22px 16px; border-right: 1px solid var(--border); background: var(--surface);
	}
	.rail__brand { padding: 4px 10px 22px; }
	.rail__brand img { height: 38px; width: auto; }
	.rail a {
		display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
		color: var(--muted); font-weight: 600; transition: background .2s, color .2s;
	}
	.rail a svg { width: 20px; height: 20px; }
	.rail a:hover { background: var(--surface-2); color: var(--text); }
	.rail a.is-active { background: var(--accent-soft); color: var(--accent-text); }
	.rail__new { margin: 6px 0 12px; }
	.rail__foot { margin-top: auto; color: var(--muted); font-size: 12px; padding: 0 12px; }
	.topbar__brand { visibility: hidden; }
}

/* =========================================================================
   ტიპოგრაფია და ზოგადი ბლოკები
   ========================================================================= */
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.title { margin: 0; font: 400 24px/1.25 var(--font-display); letter-spacing: .2px; }
.title--sm { font-size: 18px; }
.section { margin-top: 26px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section__head h2 { margin: 0; font: 400 15px/1.3 var(--font-display); letter-spacing: .3px; }
.link { color: var(--accent-text); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 16px; height: 16px; }
.muted { color: var(--muted); }

.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 18px;
}
.card + .card { margin-top: 12px; }

/* ---- ღილაკები ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; border-radius: var(--radius);
	border: 1px solid transparent; font-weight: 700; font-size: 15px;
	transition: transform .15s var(--ease), background .2s, opacity .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* დაკეტილი მთავარი ღილაკი: ფერმკრთალი არა, მკაფიოდ წასაკითხი. */
.btn--primary:disabled { opacity: 1; background: var(--surface-2); color: var(--text); border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: none; }
.btn--primary:disabled svg { color: var(--accent-text); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px rgba(255, 156, 18, .28); }
.btn--primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--block { width: 100%; }
.btn--lg { min-height: 60px; font-size: 16px; border-radius: 18px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
	content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
	border: 2.5px solid var(--accent-ink); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- სტატუსის ჩიპი ---- */
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--active { background: var(--accent-soft); color: var(--accent-text); }
.chip--done { background: var(--success-soft); color: var(--success); }
.chip--cancelled { background: var(--danger-soft); color: var(--danger); }
.chip--plain::before { display: none; }

/* =========================================================================
   მთავარი
   ========================================================================= */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 0 18px; }

.status {
	position: relative; overflow: hidden;
	padding: 20px; border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
	border: 1px solid var(--border);
}
.status::after {
	content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
	background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none;
}
.status__row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px var(--success-soft); animation: beat 2s ease-in-out infinite; }
.status.is-closed .status__dot { background: var(--danger); box-shadow: 0 0 0 5px var(--danger-soft); animation: none; }
@keyframes beat { 50% { box-shadow: 0 0 0 9px transparent; } }
.status__text { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.status__text strong { color: var(--text); }
.countdown { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.countdown__value { font: 700 28px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--accent-text); }
.countdown__label { color: var(--muted); font-size: 13px; }
.progress { height: 6px; margin-top: 12px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); transition: width 1s linear; }

.cta { margin-top: 14px; }

/* სტატუსის ბარათში: რომელი სერვისი როდემდე ფორმდება + კურიერის საათები */
.status__rules, .closed__rules { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.status__rules li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.status__rules svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); }

/* დროებით მიუწვდომელი სერვისი */
.service.is-disabled, .quick__item.is-disabled { opacity: .72; cursor: not-allowed; }
.service.is-disabled:active { transform: none; }
.service.is-disabled .service__icon { background: var(--surface-2); color: var(--muted); }
.quick__item { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border); }

/* ---- აპის დაინსტალირება ---- */
.install-card {
	position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 14px;
	margin-top: 14px; padding: 16px 44px 16px 16px; border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface);
	border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
}
.install-card.is-highlight { box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); animation: install-pulse 1.6s var(--ease) 2; }
@keyframes install-pulse { 50% { box-shadow: 0 0 0 9px var(--accent-soft), 0 0 0 1px var(--accent); } }
.install-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.install-card__icon svg { width: 24px; height: 24px; }
/* ტექსტი ერთ სტრიქონად იკითხება, ღილაკი - ქვემოთ, მთელ სიგანეზე (ვიწრო ბარათშიც არ იჭყლიტება). */
.install-card__text strong { display: block; font-size: 15px; line-height: 1.35; }
.install-card__text span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; text-wrap: pretty; }
.install-card__btn { grid-column: 1 / -1; width: 100%; min-height: 46px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.install-card__close {
	position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 8px; background: transparent; color: var(--muted);
}
.install-card__close:hover { background: var(--surface-2); color: var(--text); }
.install-card__close svg { width: 16px; height: 16px; }
.login__install .install-card { margin-top: 22px; }
.icon-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.icon-btn[hidden] { display: none; }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1180px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quick a {
	display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .15s var(--ease);
}
.quick a:hover { border-color: var(--accent); }
.quick a:active { transform: scale(.98); }
.quick__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.quick__name { font-weight: 700; }
.quick__price { color: var(--accent-text); font-weight: 700; font-size: 14px; }
.quick__eta { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.quick__eta svg, .route__stop a svg, .segmented svg { width: 15px; height: 15px; vertical-align: -3px; }
.route__stop a { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }

/* ---- შეკვეთების სია ---- */
.orders { display: flex; flex-direction: column; gap: 10px; }
.order-row {
	display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
	padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
	transition: border-color .2s, transform .15s var(--ease);
}
.order-row:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.order-row:active { transform: scale(.99); }
.order-row__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--accent-text); }
.order-row__icon svg { width: 22px; height: 22px; }
.order-row__main { min-width: 0; }
.order-row__title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row__sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.order-row__deadline { color: var(--muted); font-size: 12px; }

.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: var(--accent-text); margin-bottom: 8px; }

.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.segmented button {
	flex: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px;
	transition: background .2s, color .2s;
}
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* =========================================================================
   ახალი შეკვეთა
   ========================================================================= */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0 22px; padding: 0; list-style: none; }
.stepper li { list-style: none; margin: 0; }
.stepper__bar { display: block; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.stepper__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s var(--ease); }
.stepper li.is-done .stepper__bar span, .stepper li.is-current .stepper__bar span { width: 100%; }
.stepper__label { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stepper li.is-current .stepper__label { color: var(--text); }

.services { display: flex; flex-direction: column; gap: 10px; }
.service {
	position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px;
	padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--border);
	text-align: left; width: 100%; transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.service:active { transform: scale(.99); }
.service.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.service__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); color: var(--accent-text); }
.service.is-selected .service__icon { background: var(--accent); color: var(--accent-ink); }
.service__icon svg { width: 24px; height: 24px; }
.service__name { display: block; font-weight: 700; font-size: 16px; }
.service__eta { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.service__eta strong { color: var(--text); font-weight: 600; }
.service__price { font-weight: 800; font-size: 17px; color: var(--accent-text); }
.service__check {
	position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
	display: none; place-items: center; background: var(--accent); color: var(--accent-ink);
}
.service__check svg { width: 13px; height: 13px; }
.service.is-selected .service__check { display: grid; }

.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px;
	border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--border); text-align: center;
	transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.type:active { transform: scale(.98); }
.type__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); color: var(--accent-text); transition: background .2s, color .2s; }
.type__icon svg { width: 28px; height: 28px; }
.type__label { font-weight: 700; font-size: 16px; }
.type__hint { color: var(--muted); font-size: 12.5px; }
.type.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.type.is-selected .type__icon { background: var(--accent); color: var(--accent-ink); }
.type.is-selected .service__check { display: grid; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field__control { position: relative; }
.field__control svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.field input {
	width: 100%; min-height: 54px; padding: 0 16px 0 44px; border-radius: var(--radius);
	background: var(--surface); border: 1.5px solid var(--border); outline: none; font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 12.5px; font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: -2px -2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.pick {
	flex: none; max-width: 220px; padding: 9px 12px; border-radius: 12px; text-align: left;
	background: var(--surface); border: 1px solid var(--border); transition: border-color .2s;
}
.pick:hover { border-color: var(--accent); }
.pick strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.promise {
	padding: 22px; border-radius: var(--radius-lg); text-align: center;
	background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface);
	border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
}
.promise__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.promise__date { margin: 6px 0 0; font: 700 21px/1.3 var(--font); color: var(--accent-text); }
.promise__note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.route { position: relative; display: flex; flex-direction: column; gap: 16px; }
.route::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 34px; width: 2px; background: repeating-linear-gradient(var(--border) 0 6px, transparent 6px 11px); }
.route__stop { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.route__pin { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent-text); z-index: 1; }
.route__pin svg { width: 16px; height: 16px; }
.route__stop small { color: var(--muted); font-size: 12px; font-weight: 600; }
.route__stop strong { display: block; }
/* მხოლოდ ტექსტი - არა ხატულის წრე (.route__pin), რომ ის ცენტრში დარჩეს */
.route__stop > div > span { display: block; color: var(--muted); font-size: 13.5px; }
.route__stop a { color: var(--accent-text); font-weight: 600; font-size: 13.5px; }

.rows { display: flex; flex-direction: column; }
.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--muted); margin: 0; }
.rows dd { margin: 0; font-weight: 700; text-align: right; }

.ready {
	display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: var(--radius-lg); cursor: pointer;
	background: var(--surface); border: 1.5px solid var(--border); transition: border-color .2s, background .2s;
}
.ready.is-checked { border-color: var(--success); background: var(--success-soft); }
.ready.has-error { border-color: var(--danger); }
.ready input { position: absolute; opacity: 0; pointer-events: none; }
.ready__box {
	flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
	border: 2px solid var(--muted); transition: background .2s, border-color .2s;
}
.ready__box svg { width: 16px; height: 16px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .2s var(--ease); }
.ready.is-checked .ready__box { background: var(--success); border-color: var(--success); color: #fff; }
.ready.is-checked .ready__box svg { opacity: 1; transform: none; }
.ready__title { display: block; font-weight: 700; font-size: 16px; }
.ready__hint { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }

.actionbar {
	position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); z-index: 10;
	display: flex; gap: 10px; margin-top: 22px; padding: 10px; border-radius: 20px;
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--border); box-shadow: var(--shadow);
}
.actionbar .btn--primary { flex: 1; }
@media (min-width: 960px) { .actionbar { bottom: 20px; } }

/* ---- წარმატება ---- */
.success { text-align: center; padding: 36px 6px 10px; }
.success__mark {
	display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%;
	background: var(--success); color: #fff; animation: pop .5s var(--ease);
	box-shadow: 0 0 0 12px var(--success-soft);
}
.success__mark svg { width: 46px; height: 46px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .45s .25s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success .promise { margin: 22px 0; text-align: center; }
.success__actions { display: grid; gap: 10px; }

/* ---- დაკეტილი ---- */
.closed {
	text-align: center; padding: 34px 20px; border-radius: var(--radius-lg);
	background: var(--surface); border: 1px solid var(--border);
}
.closed__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-text); }
.closed__icon svg { width: 30px; height: 30px; }
.closed h2 { margin: 0; font: 400 18px/1.35 var(--font-display); }
.closed p { margin: 8px 0 0; color: var(--muted); }

/* ---- შეკვეთის დეტალები: ქრონოლოგია ---- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface); box-shadow: 0 0 0 2px var(--border); }
.timeline li.is-done::after { background: var(--success); box-shadow: 0 0 0 2px var(--success-soft); }
.timeline li.is-warn::after { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.timeline strong { display: block; font-size: 14px; }
.timeline span { color: var(--muted); font-size: 13px; }

/* ---- პროფილი ---- */
.profile-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 20px; }
.avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); font: 400 24px/1 var(--font-display); }
.menu { display: flex; flex-direction: column; }
.menu a, .menu button {
	display: flex; align-items: center; gap: 12px; padding: 15px 4px; border: 0; border-bottom: 1px solid var(--border);
	background: none; text-align: left; font-weight: 600; width: 100%;
}
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu svg { width: 20px; height: 20px; color: var(--muted); }
.menu .menu__arrow { margin-left: auto; }
.menu .is-danger { color: var(--danger); }
.menu .is-danger svg { color: var(--danger); }

/* ---- შესვლა ---- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login__card { width: 100%; max-width: 400px; }
.login__logo { display: flex; justify-content: center; margin-bottom: 28px; }
.login__logo img { height: 46px; width: auto; }
.login__theme { position: fixed; top: calc(14px + var(--safe-t)); right: 14px; }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert--error { background: var(--danger-soft); color: var(--danger); }
.alert--info { background: var(--accent-soft); color: var(--accent-text); }
.alert svg { width: 18px; height: 18px; flex: none; vertical-align: -4px; }

/* ---- ქვედა ფურცელი (bottom sheet) ---- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); animation: fade .2s; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
	width: 100%; max-width: 520px; padding: 22px 20px calc(20px + var(--safe-b));
	border-radius: 24px 24px 0 0; background: var(--surface); border: 1px solid var(--border); border-bottom: 0;
	animation: rise .3s var(--ease);
}
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--border); } }
.sheet h3 { margin: 0 0 8px; font: 400 18px/1.35 var(--font-display); }
.sheet p { margin: 0 0 18px; color: var(--muted); }
.sheet__actions { display: grid; gap: 10px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ---- შეტყობინებები ---- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast {
	max-width: 440px; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
	background: var(--text); color: var(--bg); box-shadow: var(--shadow); animation: rise .25s var(--ease);
}
.toast--error { background: var(--danger); color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(10px); transition: all .25s; }

.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: calc(6px + var(--safe-t)) 12px 6px; text-align: center; font-size: 13px; font-weight: 700; background: var(--danger); color: #fff; }
.sim-banner { margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: #7c3aed; color: #fff; font-size: 13px; font-weight: 700; text-align: center; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- კურიერი რუკაზე ---- */
.track { margin-top: 12px; }
.track__head { display: flex; align-items: center; gap: 12px; }
.track__head strong { display: block; }
.track__head span { color: var(--muted); font-size: 13px; }
.track__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.track__icon svg { width: 22px; height: 22px; }
.map { position: relative; height: 220px; margin-top: 14px; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); isolation: isolate; }
.map__tile { position: absolute; top: 0; left: 0; width: 256px; height: 256px; max-width: none; user-select: none; }
[data-theme="dark"] .map__tile { filter: brightness(.75) contrast(1.1) saturate(.8); }
.map__accuracy { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 156, 18, .14); border: 1px solid rgba(255, 156, 18, .45); }
.map__courier { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%; background: var(--accent); color: #1a1100; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); z-index: 2; }
.map__courier svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.map__pulse { position: absolute; inset: -10px; border-radius: 50%; background: rgba(255, 156, 18, .35); animation: map-pulse 1.8s ease-out infinite; }
@keyframes map-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map__pulse { animation: none; } }
.map__credit { position: absolute; right: 6px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .8); color: #333; font-size: 10px; z-index: 3; }

/* ---- გზავნილი მზად არ იყო ---- */
.not-ready { margin-top: 12px; border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.not-ready p { margin: 8px 0 16px; }

/* ---- „დაკეტილია" ბარათი: საათები მკაფიოდ ---- */
.closed h2 { color: var(--text); font-size: 19px; }
.closed__rules { display: grid; gap: 8px; max-width: 460px; margin: 18px auto 0; padding: 0; list-style: none; text-align: left; }
.closed__rules li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.closed__rules li > span:nth-child(2) { flex: 1; min-width: 0; }
.closed__rules small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.closed__rules strong { color: var(--accent-text); font-size: 16px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.closed__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); }
.closed__ico svg { width: 18px; height: 18px; }
/* ხატულა ტექსტის პირველ სიტყვასთანაა (inline), ამიტომ სტრიქონის გადატანისას კიდეზე არ რჩება. */
.closed__note { max-width: 460px; margin: 16px auto 0; color: var(--text); font-size: 14px; line-height: 1.55; text-align: center; text-wrap: balance; }
.closed__note svg { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; color: var(--success); }

/* ვიწრო ეკრანზე: სტრიქონი ბარათიდან არ გადის, საათები საჭიროებისას ქვემოთ გადადის. */
.closed__rules li { min-width: 0; flex-wrap: wrap; row-gap: 6px; }
.closed__rules li > span:nth-child(2) { flex: 1 1 150px; }
.closed__rules strong { margin-left: auto; }
.closed h2 { text-wrap: balance; }
.nw { white-space: nowrap; }
