/* Arka e Stuhisë — Raundi 3: e bardhë dhe e thjeshtë si startech24.com/arka (docs/reference/DESIGN-R3.md).
   Kartela të bardha me hapa të numëruar, pa hije, pa gradient, pa xham. Ngjyra e vetme: vjollca e Stuhisë. */

:root {
  --accent: #4d008c;
  --accent-hover: #3d0070;
  --accent-4: rgba(77, 0, 140, .04);
  --accent-8: rgba(77, 0, 140, .08);
  --ink: #0a0a0a;
  --muted: #6b6f78;          /* gri e brief-it (#898d97) e errësuar pak për kontrast AA (5,1:1) */
  --line: rgba(136, 140, 150, .15);
  --field: rgba(136, 140, 150, .26);  /* startech: .26 (DESIGN-R3) */
  --field-hover: rgba(136, 140, 150, .55);
  --soft: #f5f5f5;
  --ok: #15803d;
  --bad: #b42318;
  --bad-4: rgba(180, 35, 24, .05);
  --warn: #8a5300;
  --r-card: 12px;
  --r-field: 6px;
  --r-opt: 10px;
  --pad: 24px;
  --opt-pad: 16px;
  --wrap: 1416px;            /* startech: ~1368px përmbajtje në 1440 */
  --header: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; min-width: 320px; background: #fff; color: var(--ink);
  font: 400 14px/1.45 var(--font); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: var(--r-field); }
.skip:focus { left: 16px; }
main:focus { outline: none; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ico-16 { width: 16px; height: 16px; }
.ico-14 { width: 14px; height: 14px; stroke-width: 2; }
.flag { width: 20px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--header); background: #fff; border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo img { display: block; height: 28px; width: auto; }
.logo-text { display: none; font-weight: 700; letter-spacing: .08em; }
.logo.no-img img { display: none; }
.logo.no-img .logo-text { display: inline; }
.top-tools { display: flex; align-items: center; gap: 16px; }
.secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lang-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.lang-link:hover { text-decoration: underline; }

/* ---------- Faqja ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.title { margin-top: 14px; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.title-sub { margin-top: 4px; font-size: 13px; color: var(--muted); }

.co { display: grid; gap: 16px; margin-top: 24px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--pad); }

/* ---------- Hapat ---------- */
.step { display: flex; flex-direction: column; gap: 16px; }
.step-head { margin-bottom: 4px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.disc { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; font-size: 12px; font-weight: 600; }
.step-sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
.step-sub:empty { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, .label { font-size: 13px; font-weight: 500; color: var(--ink); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.reveal[data-open="false"] { display: none; }

.input {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--field); border-radius: var(--r-field);
  background: #fff; font-size: 14px; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .phone input::placeholder { color: #8b8f98; font-weight: 400; opacity: 1; }
.input:hover { border-color: var(--field-hover); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--bad); }
.input:disabled { background: #fafafa; }
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
input, textarea, select { scroll-margin-top: 120px; }

.hint, .route { font-size: 12px; color: var(--muted); }
.route { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.err { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--bad); }
.err .ico { margin-top: 1px; }
.suggest { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; }
.fine { font-size: 12px; color: var(--muted); }
.warn { color: var(--warn); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Individ / Biznes */
.seg { display: grid; grid-template-columns: 1fr 1fr; width: 280px; max-width: 100%; height: 44px; padding: 4px; border-radius: 9999px; background: var(--soft); }
.seg-opt { height: 36px; border: 0; border-radius: 9999px; background: none; color: #4b4f57; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg-opt[aria-checked="true"] { background: var(--accent); color: #fff; }

/* Telefoni: prefiksi me flamur + numri, një kuti */
.phone { display: flex; height: 44px; border: 1px solid var(--field); border-radius: var(--r-field); background: #fff; transition: border-color .15s, box-shadow .15s; }
.phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.phone:has([aria-invalid="true"]) { border-color: var(--bad); }
.phone-pre { position: relative; display: flex; align-items: center; flex: none; padding-left: 12px; border-right: 1px solid var(--line); }
.phone-pre select { height: 100%; padding: 0 28px 0 8px; border: 0; background: none; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer; }
.phone-pre select:focus { outline: none; }
.phone-pre .chev { position: absolute; right: 8px; color: var(--muted); pointer-events: none; }
.phone input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; font-size: 14px; font-weight: 500; }
.phone input:focus { outline: none; }

/* Shteti: tekst i qetë nën nëntitullin e hapit 2 ("Shteti: [flamur] Kosovë"), jo fushë — s'zgjidhet */
.ship-to { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.ship-to-label::after { content: ":"; }
.ship-to .flag { margin-left: 2px; }
#ship-to-name { color: var(--ink); font-weight: 500; }

/* Qyteti: combobox */
.combo { position: relative; }
.combo-pin { position: absolute; left: 14px; top: 14px; color: var(--muted); pointer-events: none; }
.combo-input { padding-left: 38px; padding-right: 40px; }
.combo-btn { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.combo-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--field); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); overscroll-behavior: contain; }
.combo-group-label { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.combo-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; cursor: pointer; }
.combo-opt[aria-selected="true"] { background: var(--soft); }
.combo-opt-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.combo-opt-name { font-size: 14px; font-weight: 500; }
.combo-opt-name .alt { margin-left: 6px; font-weight: 400; color: var(--muted); font-size: 13px; }
.combo-opt-sub, .combo-opt-hint { font-size: 12px; color: var(--muted); }
.combo-opt .pin { color: var(--muted); }
.combo-opt .cur { color: var(--accent); visibility: hidden; }
.combo-opt.is-current .cur { visibility: visible; }
.combo-opt mark { background: none; color: inherit; font-weight: 700; }
.combo-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; font-size: 13px; color: var(--muted); }

/* Kutizat (detajet e adresës, kushtet) */
.check { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 13px; font-weight: 400; cursor: pointer; }
/* Kutia e butë si startech: 22px, radius 6, kufi gri; e zgjedhur → aksent me ✓ të bardhë */
.check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0;
  border: 1.5px solid rgba(136, 140, 150, .5); border-radius: 6px; background: #fff no-repeat center / 14px 14px;
  cursor: pointer; transition: background-color .15s, border-color .15s;
}
.check input:hover { border-color: rgba(136, 140, 150, .8); }
.check input:checked {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17l9-9.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input[aria-invalid="true"] { border-color: var(--bad); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--accent); font-weight: 600; text-decoration: none; }
.check a:hover { text-decoration: underline; }

/* ---------- Opsionet (dërgesa, pagesa, arsyet e anulimit) ---------- */
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt, .opt-wrap { border: 1px solid var(--field); border-radius: var(--r-opt); background: #fff; }
.opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: var(--opt-pad); font-weight: 400; cursor: pointer; }
.opt-wrap > .opt { border: 0; background: none; }
/* I zgjedhur: kufi i vërtetë 1.5px (padding -.5px që përmbajtja të mos lëvizë) dhe NJË sipërfaqe e lehtë (aksent 4%)
   për gjithë opsionin — edhe kur fushat e kartelës janë hapur brenda tij (fushat mbeten të bardha). */
.opt.is-selected, .opt-wrap.is-selected, .reason:has(input:checked) { border-width: 1.5px; border-color: var(--accent); }
.opt.is-selected, .reason:has(input:checked) { padding: calc(var(--opt-pad) - .5px); background: var(--accent-4); }
.opt-wrap.is-selected { background: var(--accent-4); }
.opt-wrap.is-selected > .opt { padding: calc(var(--opt-pad) - .5px); background: none; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#ship-row { cursor: default; }
.radio { position: relative; width: 18px; height: 18px; border: 1.5px solid #b4b7be; border-radius: 50%; background: #fff; }
.is-selected .radio, .reason:has(input:checked) .radio { border-color: var(--accent); }
.is-selected .radio::after, .reason:has(input:checked) .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.opt-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--soft); color: var(--ink); }
.is-selected .opt-ico { background: var(--accent-8); color: var(--accent); }
.opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-title { font-size: 14px; font-weight: 600; }
.opt-sub { font-size: 13px; color: var(--muted); }
.opt-price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.opt-price.is-free { color: var(--ok); }
/* VISA / Mastercard: në fund të rreshtit (desktop), si çmimi te dërgesa */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.opt > .pills { justify-self: end; }
.pill { padding: 2px 10px; border: 1px solid var(--field); border-radius: 9999px; background: #fff; font-size: 11px; font-weight: 700; line-height: 18px; }
.pill-visa { color: #1a1f71; }

.card-fields { display: flex; flex-direction: column; gap: 12px; margin: 0 calc(var(--opt-pad) - .5px); padding: 0 0 calc(var(--opt-pad) - .5px); }
.card-fields .fine { margin-top: -4px; }
.card-skel { display: flex; flex-direction: column; gap: 12px; }
.skel { display: block; height: 44px; border-radius: var(--r-field); background: #f1f1f3; }
.card-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card-status.is-bad { color: var(--bad); }
.mock-card { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Përmbledhja ---------- */
.co-side { display: flex; flex-direction: column; min-width: 0; }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sum-title { font-size: 16px; font-weight: 600; }
.sum-title:focus { outline: none; }
.count-pill { padding: 3px 10px; border-radius: 9999px; background: var(--soft); font-size: 12px; color: var(--muted); white-space: nowrap; }
.lines { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.line-thumb { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fff; color: #b4b7be; }
.line-img { width: 100%; height: 100%; object-fit: contain; }
.line-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--soft); }
.line-ph .ico { stroke-width: 1.5; }
.line-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-title { font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-title.skel { height: 14px; width: 80%; }
.line-variant, .line-meta { font-size: 12px; color: var(--muted); }
.line-flag { font-size: 12px; color: var(--bad); }
.line-note { font-size: 12px; color: var(--warn); }
/* Desktop (si startech): × lart djathtas, çmimi poshtë në lartësinë e stepper-it. Celular: çmimi lart, × poshtë tij.
   E njëjta kolonë edhe te faleminderit (vetëm çmimi). */
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; align-self: stretch; }
.line-side .line-price { order: 2; margin-top: auto; padding-bottom: 4px; }
.line-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.line.is-bad .line-thumb, .line.is-bad .line-title { opacity: .55; }
.qty { display: inline-flex; align-self: flex-start; height: 28px; margin-top: 8px; border: 1px solid var(--field); border-radius: var(--r-field); }
.qty button { position: relative; width: 28px; border: 0; background: none; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty button::after { content: ""; position: absolute; inset: -9px -2px; } /* zona e prekjes 44 × 44 (nga jashtë, pa mbivendosje) */
.qty button:first-child::after { left: -14px; }
.qty button:last-child::after { right: -14px; }
.qty button:disabled { color: #c3c5ca; cursor: default; }
.qty-val { min-width: 30px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 500; line-height: 26px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--r-field); background: none; color: var(--muted); cursor: pointer; }
.icon-btn::after { content: ""; position: absolute; inset: -8px; }
.icon-btn:hover { color: var(--ink); background: var(--soft); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.line-undo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.line-undo-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.totals { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); }
.trow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.trow dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.trow dd.trow-note { flex-basis: 100%; color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; }
.totals.is-updating dd { opacity: .45; }
.ok, .trow dd.ok, .trow dt.ok { color: var(--ok); }
.grand { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; }
.grand span { font-size: 16px; font-weight: 600; }
.grand strong { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }

.coupon { display: flex; flex-direction: column; gap: 8px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .input { flex: 1; min-width: 0; }
/* "Apliko" i qetë (gri 500) derisa të shkruhet një kod */
.coupon-row .btn { padding: 0 16px; color: var(--muted); font-weight: 500; }
.coupon-row:has(#f-coupon:not(:placeholder-shown)) .btn { color: var(--ink); }
.coupon-applied { display: flex; align-items: center; gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--accent); border-radius: 9999px; color: var(--accent); font-size: 12px; font-weight: 600; }

.act { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.trust { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.trust .accent { color: var(--accent); }

.banner { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; font-size: 13px; }
.banner > .btn { align-self: flex-start; height: 36px; }
.banner-bad { padding: 0; border: 0; border-radius: 0; background: none; color: var(--bad); } /* një rresht i kuq, pa kuti */
.banner-bad:focus { outline: none; }
.banner-head { display: flex; align-items: flex-start; gap: 6px; }
.banner-head .ico { margin-top: 1px; }

/* ---------- Butonat ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-field); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: #fff; border-color: var(--field); color: var(--ink); }
.btn-outline:hover { border-color: #9a9ea6; }
.btn-danger { background: #fff; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad-4); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-pay { width: 100%; height: 48px; border-radius: 8px; font-size: 15px; }
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: inline-block; }
.btn.is-busy:disabled { opacity: .85; }
.spinner { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
/* "© 2026 Stuhia · Fshi të dhënat e ruajtura" — lidhje e vogël në fund të faqes (vetëm te arka) */
.saved-note { display: inline-flex; align-items: center; gap: 8px; }
.saved-note .link-btn { min-height: 32px; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: none; white-space: nowrap; }
.saved-note .link-btn:hover { color: var(--ink); text-decoration: underline; }
body:not(.route-checkout) .saved-note { display: none; }

/* ---------- Fundi i faqes ---------- */
.foot { border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Gjendjet e thjeshta ---------- */
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 96px 0; color: var(--muted); }
.panel { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 480px; margin: 48px auto; text-align: center; }
.panel-ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.panel-ico.is-bad { background: var(--bad-4); color: var(--bad); }
.panel-title { font-size: 20px; font-weight: 600; }
.panel-text { color: var(--muted); }

/* ---------- Faleminderit ---------- */
.ty { margin-top: 0; }
#ty-body { display: flex; flex-direction: column; gap: 16px; }
#ty-body:empty { display: none; }
.ty-side .grand { padding-bottom: 0; }
.ty-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; }
.ty-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ty-mark.is-neutral { background: var(--soft); color: var(--ink); }
.ty-mark.is-bad { background: var(--bad-4); color: var(--bad); }
.ty-mark.is-wait { background: var(--soft); color: var(--accent); }
.ty-title { margin-top: 16px; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.ty-title:focus { outline: none; }
.ty-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ty-slow { margin-top: 12px; font-size: 13px; color: var(--muted); }
.ty-hero > .btn { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-label { font-size: 12px; color: var(--muted); }
.fact-value { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.fact-sub { font-size: 12px; color: var(--muted); }
.copy-btn .i-done, .copy-btn.is-done .i-copy { display: none; }
.copy-btn.is-done .i-done { display: block; color: var(--ok); }
.copy-tip { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px; background: #111; color: #fff; font-size: 11px; font-weight: 500; white-space: nowrap; }

.trk { display: flex; margin: 20px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.trk-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 0 4px; text-align: center; overflow-wrap: anywhere; }
.trk-step + .trk-step::before { content: ""; position: absolute; top: 11px; right: 50%; width: 100%; height: 2px; background: #e4e5e8; }
.trk-step.is-done + .trk-step::before { background: var(--accent); }
.trk-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-bottom: 4px; border: 2px solid #d4d6da; border-radius: 50%; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; }
.trk-dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.is-done .trk-dot, .is-current .trk-dot { border-color: var(--accent); background: var(--accent); color: #fff; }
.trk-label { font-size: 13px; font-weight: 500; }
.trk-date { font-size: 12px; color: var(--muted); }

.ty-h2 { margin-bottom: 16px; font-size: 16px; font-weight: 600; }
.dgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.dcell { display: flex; flex-direction: column; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.dcell.wide { grid-column: 1 / -1; }
.dlabel { margin-bottom: 2px; font-size: 12px; color: var(--muted); }
.help { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.help-title { font-size: 16px; font-weight: 600; color: var(--ink); }
.help a { font-weight: 500; text-decoration: none; }
.help a:hover { text-decoration: underline; }
.help strong { color: var(--ink); }
.help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.help-actions .btn { position: relative; height: 40px; padding: 0 16px; font-size: 13px; }
.help-actions .btn::after { content: ""; position: absolute; inset: -2px 0; } /* zona e prekjes 44px */
.cancel-left { font-size: 13px; color: var(--muted); }
.ty-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ty-hero .ty-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.ty-failed { display: flex; flex-direction: column; gap: 16px; }
.ty-pay { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Dialogu, mbulesa, toast ---------- */
.dlg { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-card); background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.dlg::backdrop { background: rgba(0, 0, 0, .4); }
.dlg-in { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.dlg-title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.dlg-body { display: flex; flex-direction: column; gap: 16px; }
.reasons { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.reasons legend { margin-bottom: 8px; padding: 0; }
.reason { grid-template-columns: auto minmax(0, 1fr); min-height: 48px; padding: 12px 14px; font-size: 14px; }
.reason:has(input:checked) { padding: 11.5px 13.5px; }
.dlg-cons { font-size: 13px; color: var(--muted); }
.dlg-late { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 8px; background: #fafafa; font-size: 14px; }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.paywait { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .35); }
.paywait-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 320px; padding: 24px; border-radius: var(--r-card); background: #fff; text-align: center; font-size: 14px; }
.paywait-card:focus { outline: none; }
.paywait-card .spinner { width: 24px; height: 24px; color: var(--accent); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 8px; background: #111; color: #fff; font-size: 13px; font-weight: 500; }
.toast.is-bad { background: var(--bad); }

/* ---------- Desktop: dy kolona, përmbledhja ngjitëse ---------- */
@media (min-width: 980px) {
  /* startech në 1440: ~855 / ~490px (1,75 : 1), 24px mes kartave */
  .co { grid-template-columns: minmax(0, 7fr) minmax(360px, 4fr); gap: 24px; }
  .co-main, #ty-body { gap: 24px; }
  .co-side { position: sticky; top: calc(var(--header) + 24px); padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; }
}

/* ---------- Celular dhe tablet: përmbledhja pas hapit 5, pastaj kushtet dhe butoni ---------- */
@media (max-width: 979px) {
  #co-form .co-side .sum { order: 1; padding: var(--pad) var(--pad) 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; }
  #co-form .co-side .trust { order: 2; margin: 0; padding: 16px var(--pad) var(--pad); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); }
  #co-form .co-side .act { order: 3; margin-top: 16px; }
  .ty-side { padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r-card); }
  .input, .phone input, .phone-pre select { font-size: 16px; } /* iOS s'zmadhon faqen në fokus */
  .textarea { resize: none; }
  .check { min-height: 44px; }
  /* Kuponi në celular (si startech): "Apliko" gri i mbushur kur fusha është bosh (#767676 për kontrast AA), aksent kur ka kod */
  .coupon-row:has(#f-coupon:placeholder-shown) #coupon-apply { background: #767676; border-color: #767676; color: #fff; }
  .coupon-row:has(#f-coupon:not(:placeholder-shown)) #coupon-apply { background: var(--accent); border-color: var(--accent); color: #fff; }
}

@media (max-width: 639px) {
  :root { --pad: 20px; --opt-pad: 14px; --header: 56px; }
  .seg { width: 100%; }
  /* Opsionet: titulli sipër nëntitullit/pill-ave; çmimi djathtas, në mes vertikalisht (si desktop dhe startech). */
  .opt:not(.reason) { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "r i t p" "r i s p"; column-gap: 10px; row-gap: 2px; }
  .opt:not(.reason) .opt-body { display: contents; }
  .opt:not(.reason) .radio { grid-area: r; }
  .opt:not(.reason) .opt-ico { grid-area: i; width: 36px; height: 36px; }
  .opt:not(.reason) .opt-title { grid-area: t; align-self: end; }
  .opt:not(.reason) .opt-price { grid-area: p; align-self: center; }
  .opt:not(.reason) .opt-sub, .opt:not(.reason) > .pills { grid-area: s; align-self: start; justify-self: start; }
  .opt:not(.reason) > .pills { margin-top: 4px; }
  .opt:not(.reason):not(:has(.opt-sub)):not(:has(> .pills)) .opt-title { grid-row: 1 / -1; align-self: center; }
  .opt:not(.reason):not(:has(.opt-price)) { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "r i t" "r i s"; }
  /* Përmbledhja (si startech-phone-summary): çmimi lart djathtas, × poshtë tij (te faleminderit vetëm çmimi) */
  .line-side .line-price { order: 0; margin-top: 0; padding-bottom: 0; } /* arka dhe faleminderit njësoj */
  .line-side .icon-btn { margin-top: 2px; }
  .ship-courier { display: none; }
  .top-in, .page, .foot-in { padding-left: 16px; padding-right: 16px; }
  .page { padding-top: 16px; }
  .title, .ty-title { font-size: 22px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .grid2.names, .grid2.grid2-keep { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px; }
  .fact:first-child { grid-column: 1 / -1; }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .dlg-actions { flex-direction: column; }
  .dlg-actions .btn { width: 100%; }
  .ty-actions .btn { flex: 1; }
  .ty-actions .btn-outline:has(.ico) { display: none; }
}
/* Gjurmuesi vertikal në ekrane të ngushta: etiketa dhe data në një bllok, pa kolona të shtrënguara */
@media (max-width: 479px) {
  .trk { flex-direction: column; gap: 16px; }
  .trk-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 0; text-align: left; }
  .trk-dot { grid-row: 1; margin-bottom: 0; }
  .trk-label { grid-column: 2; line-height: 24px; }
  .trk-date { grid-column: 2; margin-top: -2px; }
  .trk-step + .trk-step::before { display: none; }
  .trk-step:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: -14px; width: 2px; background: #e4e5e8; }
  .trk-step.is-done:not(:last-child)::after { background: var(--accent); }
}
/* Telefona të ngushtë: ikona mbetet (si startech), pak më e vogël */
@media (max-width: 379px) {
  .opt:not(.reason) { column-gap: 8px; }
  .opt:not(.reason) .opt-ico { width: 32px; height: 32px; }
}
@media (max-width: 359px) {
  .pay-amt { display: none; } /* "Konfirmo porosinë" pa shumën; shuma është te Totali sipër */
  /* 320px: pa ikonë te opsionet, që "Transport në adresë" të mos thyhet në 4 rreshta (360+ e mban ikonën) */
  .opt:not(.reason) .opt-ico { display: none; }
  .opt:not(.reason) { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r t p" "r s p"; }
  .opt:not(.reason):not(:has(.opt-price)) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "r t" "r s"; }
  :root { --opt-pad: 12px; }
  .names .input::placeholder { color: transparent; }
  .secure span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .top, .foot, .skip, .ty-actions, .help-actions, .toast, .co-side .act { display: none !important; }
  .co { grid-template-columns: 1fr !important; }
  .co-side { position: static !important; }
}
