/* ==========================================================================
   Coco Mama Kids – Demo e asistentit në DM
   --------------------------------------------------------------------------
   NGJYRAT E DYQANIT: ndryshoni vetëm variablat poshtë (:root) për t'i
   përshtatur me ngjyrat reale të markës. Kontrasti i teksteve është testuar
   (≥ 4.5:1) me këto vlera – nëse i ndryshoni, mbajini njësoj të errëta.
   ========================================================================== */

/* Fonti Nunito ngarkohet nga assets/fonts/nunito.css (shih index.html). */
/* Font rezervë me të njëjtat përmasa si Nunito, që teksti të mos "kërcejë" kur ngarkohet fonti */
@font-face {
  font-family: 'Nunito Fallback';
  src: local('Arial');
  size-adjust: 101.65%;
  ascent-override: 99.46%;
  descent-override: 34.73%;
  line-gap-override: 0%;
}

:root {
  /* --- Ngjyrat kryesore të markës --- */
  --rose: #C24E6A;          /* butonat, mesazhet e klientit (tekst i bardhë sipër) */
  --rose-deep: #A93F5A;     /* fundi i gradientit */
  --rose-text: #B03F5B;     /* tekst rozë mbi sfond të çelët */
  --blush-50: #FFF5F7;
  --blush-100: #FDEBEF;
  --blush-200: #F8D3DC;
  --blush-300: #F2B3C2;

  --mint-50: #F1FAF6;
  --mint-100: #E3F5EE;
  --mint-200: #C6EADB;
  --mint-500: #5DBB9B;
  --mint-600: #287A5E;
  --mint-text: #276B55;

  --lilac-100: #EFE9FB;
  --butter-100: #FDF4DC;

  --cream: #FFF8F1;         /* sfondi i faqes */
  --cream-2: #F7EFE7;
  --surface: #FFFFFF;
  --line: #EEE3D9;
  --line-strong: #E2D4C8;

  --ink: #3F3532;           /* teksti kryesor */
  --ink-2: #6E625D;         /* teksti dytësor */
  --ink-3: #A3968F;         /* vetëm dekor, jo tekst */

  /* --- Ngjyrat e statuseve --- */
  --st-new: #285FAE;       --st-new-bg: #E3EEFB;
  --st-ok: #276B49;        --st-ok-bg: #E1F3E8;
  --st-ship: #6B4FBF;      --st-ship-bg: #ECE6FA;
  --st-closed: #6B6461;    --st-closed-bg: #EEEBE9;
  --st-progress: #8A5A12;  --st-progress-bg: #FDF0D9;
  --red: #C4303F;          --red-text: #B82A38;   --red-bg: #FDE6E7;

  /* --- Forma dhe hije --- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(63, 53, 50, .06), 0 2px 8px rgba(63, 53, 50, .05);
  --shadow-md: 0 4px 14px rgba(63, 53, 50, .08), 0 1px 3px rgba(63, 53, 50, .06);
  --shadow-lg: 0 18px 50px rgba(63, 53, 50, .16), 0 4px 12px rgba(63, 53, 50, .08);
  --focus: #C24E6A;

  --font: 'Nunito', 'Nunito Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --app-h: 100dvh;          /* përditësohet nga app.js kur hapet tastiera */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Bazat ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(42rem 30rem at -8% -10%, rgba(248, 211, 220, .55), transparent 60%),
    radial-gradient(36rem 28rem at 108% 4%, rgba(198, 234, 219, .5), transparent 60%),
    radial-gradient(40rem 30rem at 60% 115%, rgba(239, 233, 251, .7), transparent 60%);
  background-attachment: fixed;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.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;
}
.spacer { flex: 1; }
.chat-scroll, .staff, .thread, .bell__panel { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* ---------- Butona të përbashkët ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; line-height: 1.1;
  background: none; transition: background-color .2s, border-color .2s, transform .12s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff; box-shadow: 0 6px 16px rgba(194, 78, 106, .28); }
.btn--primary:hover { box-shadow: 0 8px 22px rgba(194, 78, 106, .36); }
.btn--soft { background: var(--blush-100); color: var(--rose-text); }
.btn--soft:hover { background: var(--blush-200); }
.btn--ghost { background: rgba(255, 255, 255, .7); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { background: #fff; border-color: var(--blush-300); }
.btn--text { color: var(--ink-2); padding: 0 12px; }
.btn--text:hover { color: var(--ink); background: var(--cream-2); }
.btn--mint { background: var(--mint-600); color: #fff; }
.btn--mint:hover { background: #226b52; }
.btn--sm { min-height: 34px; font-size: 13.5px; padding: 0 12px; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  background: rgba(255, 255, 255, .75); color: var(--ink);
  transition: background-color .2s, border-color .2s, transform .12s;
}
.icon-btn:hover { background: #fff; border-color: var(--blush-300); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--sm { width: 34px; height: 34px; border-color: transparent; background: var(--cream-2); }
.icon-btn--sm svg { width: 18px; height: 18px; }

.count-badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.dot-badge { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }

/* ==========================================================================
   FAQOSJA
   ========================================================================== */
/* Faqja shfaqet vetëm kur tekstet janë vendosur (pa lëvizje gjatë hapjes) */
body:not(.is-ready) .app { visibility: hidden; }
.app {
  height: var(--app-h);
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ---------- Shiriti i sipërm ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  flex: none;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand__logo { width: 36px; height: 36px; flex: none; border-radius: 50%; box-shadow: 0 3px 10px rgba(194, 78, 106, .25); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag { display: none; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.topbar__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn--reset { min-height: 40px; padding: 0 12px; font-size: 13.5px; }

.disclaimer { font-size: 12px; color: var(--ink-2); }
.disclaimer--top { display: none; }

/* ---------- Ndërruesi Klienti / Stafi (vetëm celular) ---------- */
.view-switch {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin: 0 16px 10px; padding: 4px;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  flex: none;
}
.view-switch__btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 999px; background: none;
  font-weight: 800; font-size: 15px; color: var(--ink-2);
  transition: color .25s;
}
.view-switch__btn svg { width: 19px; height: 19px; }
.view-switch__btn[aria-pressed="true"] { color: #fff; }
.view-switch__btn .count-badge, .view-switch__btn .dot-badge { margin-left: 2px; }
.view-switch__thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  box-shadow: 0 4px 12px rgba(194, 78, 106, .3);
  transition: transform .35s var(--ease);
}
body[data-view="staff"] .view-switch__thumb { transform: translateX(100%); }
body[data-view="staff"] .view-switch__btn[data-view-btn="staff"] .count-badge { box-shadow: 0 0 0 2px var(--rose); }

/* ---------- Skena me dy pamjet ---------- */
.stage { flex: 1; min-height: 0; position: relative; }
.pane { height: 100%; min-height: 0; display: flex; flex-direction: column; }
body[data-view="client"] .pane--staff,
body[data-view="staff"] .pane--client { display: none; }

.pane__head { flex: none; }
.pane__title { display: none; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pane__dot { width: 10px; height: 10px; border-radius: 50%; }
.pane__dot--rose { background: var(--rose); box-shadow: 0 0 0 4px var(--blush-200); }
.pane__dot--mint { background: var(--mint-500); box-shadow: 0 0 0 4px var(--mint-200); }

/* Kontrolli i klientit demo */
.customer-ctl {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 10px;
}
.customer-ctl__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.select-wrap { position: relative; min-width: 0; }
.select-wrap::after {
  content: ''; position: absolute; right: 13px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); pointer-events: none; opacity: .7;
}
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 36px; padding: 0 32px 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  background: #fff; font-weight: 700; font-size: 14px;
  text-overflow: ellipsis;
}
.select-wrap--pill { flex: 1 1 auto; max-width: 180px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 36px; padding: 0 12px 0 9px;
  border: 1.5px dashed var(--blush-300); border-radius: 999px;
  background: var(--blush-50); color: var(--rose-text);
  font-weight: 800; font-size: 13px; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.chip-btn:hover { background: var(--blush-100); border-color: var(--rose); }
.chip-btn svg { width: 16px; height: 16px; stroke-width: 2.4; }

/* ---------- Telefoni (në celular = ekran i plotë, pa kornizë) ---------- */
.phone {
  position: relative;
  flex: 1; min-height: 0;
  display: flex;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 18px rgba(63, 53, 50, .07);
  overflow: hidden;
}
.phone__notch { display: none; }

/* ==========================================================================
   BISEDA (pamja e klientit)
   ========================================================================== */
.chat {
  position: relative;
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
  background: #FFFDFB;
}

/* Koka e bisedës */
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  flex: none; z-index: 2;
}
.chat-head__back { display: grid; place-items: center; width: 24px; color: var(--ink-2); }
.chat-head__back svg { width: 22px; height: 22px; stroke-width: 2.2; }
.avatar { position: relative; flex: none; }
.avatar--shop img { width: 38px; height: 38px; border-radius: 50%; }
.avatar__online {
  position: absolute; right: -1px; bottom: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #3DBE84; border: 2.5px solid #fff;
}
.chat-head__id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-head__id strong { font-size: 15.5px; font-weight: 800; line-height: 1.2; }
.chat-head__id span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-head__icons { display: flex; gap: 14px; color: var(--ink); opacity: .8; }
.chat-head__icons svg { width: 21px; height: 21px; }

/* Zona me mesazhe */
.chat-scroll {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 14px 10px;
  display: flex; flex-direction: column;
  background-image: radial-gradient(rgba(242, 179, 194, .22) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  scroll-behavior: smooth;
}
.chat-disclaimer {
  align-self: center;
  max-width: 92%;
  margin: 2px auto 10px; padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-2);
  font-size: 11.5px; color: var(--ink-2); text-align: center;
}

/* Gjendja bosh */
.chat-empty {
  margin: auto 0; padding: 18px 8px 26px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  animation: fade-up .5s var(--ease) both;
}
.chat-empty img { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 8px; box-shadow: 0 0 0 6px var(--blush-100), 0 10px 24px rgba(194, 78, 106, .22); }
.chat-empty strong { font-size: 19px; font-weight: 800; }
.chat-empty span { font-size: 13px; color: var(--ink-2); }
.chat-empty__hint {
  margin-top: 18px; padding: 12px 16px;
  border: 1.5px dashed var(--blush-300); border-radius: var(--r-md);
  background: rgba(255, 255, 255, .85);
  font-size: 14px; color: var(--ink); max-width: 290px;
}
.demo-hint-btn {
  margin-top: 12px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: var(--blush-100); color: var(--rose-text);
  font-weight: 800; font-size: 14px;
  transition: background-color .2s, transform .12s;
}
.demo-hint-btn:hover { background: var(--blush-200); }
.demo-hint-btn:active { transform: scale(.97); }

/* Mesazhet */
.messages { display: flex; flex-direction: column; }
.msg {
  display: flex; flex-direction: column;
  max-width: 80%;
  margin-top: 10px;
  animation: msg-in .32s var(--ease) both;
}
.msg.is-grouped { margin-bottom: -6px; }
.msg.is-grouped .msg__time { visibility: hidden; height: 6px; overflow: hidden; }
.msg--in { align-self: flex-start; }
.msg--out { align-self: flex-end; align-items: flex-end; }

.bubble {
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 15px; line-height: 1.42;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.msg--in .bubble {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(63, 53, 50, .04);
}
.msg--out .bubble {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 3px 10px rgba(194, 78, 106, .22);
}
.msg--staff .bubble { background: var(--mint-100); border-color: var(--mint-200); }
.msg__from {
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 4px 4px;
  font-size: 12px; font-weight: 800; color: var(--mint-text);
}
.msg__from::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-500); }
.msg__time { margin: 4px 6px 0; font-size: 11px; color: var(--ink-2); }

/* Mesazh me foto */
.bubble--img { padding: 4px; line-height: 0; }
.msg--out .bubble--img { padding: 4px; }
.img-btn { display: block; padding: 0; border: 0; background: none; border-radius: 16px; cursor: zoom-in; }
.img-btn img {
  width: 196px; max-width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; border-radius: 16px;
  background: var(--cream-2);
}

/* Rreshtat e sistemit */
.sys {
  align-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  max-width: 92%;
  margin: 14px auto 2px; padding: 6px 13px;
  border-radius: 999px;
  background: var(--cream-2); color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; text-align: center;
  animation: fade-up .3s var(--ease) both;
}
.sys::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.sys--paused { background: var(--st-progress-bg); color: var(--st-progress); }
.sys--paused::before { background: #E0A43A; }
.sys--resumed { background: var(--mint-100); color: var(--mint-text); }
.sys--resumed::before { background: var(--mint-500); }

/* Karta e përmbledhjes së porosisë */
.summary {
  width: min(292px, 100%);
  border-radius: 20px; border-bottom-left-radius: 6px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  font-size: 14px;
}
.summary__head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--blush-100), var(--butter-100));
  font-weight: 800; font-size: 14.5px;
}
.summary__products { list-style: none; margin: 0; padding: 8px 10px 4px; display: grid; gap: 6px; }
.summary__product { display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 12px; }
.summary__product img { width: 50px; height: 58px; border-radius: 11px; object-fit: cover; background: var(--cream-2); flex: none; }
.summary__product b { display: block; font-size: 13.5px; }
.summary__product span { font-size: 13px; color: var(--ink-2); }
.summary__details { margin: 0; padding: 6px 14px 13px; display: grid; gap: 7px; border-top: 1px dashed var(--line-strong); }
.summary__details div { display: grid; grid-template-columns: 74px 1fr; gap: 8px; }
.summary__details dt { font-size: 12px; font-weight: 700; color: var(--ink-2); padding-top: 1px; }
.summary__details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Treguesi "duke shkruar" */
.typing {
  align-self: flex-start;
  margin-top: 10px; padding: 12px 16px;
  border-radius: 20px; border-bottom-left-radius: 6px;
  background: #fff; border: 1px solid var(--line);
  animation: fade-up .2s var(--ease) both;
}
.typing__dots { display: flex; gap: 5px; }
.typing__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1.1s infinite ease-in-out; }
.typing__dots i:nth-child(2) { animation-delay: .15s; }
.typing__dots i:nth-child(3) { animation-delay: .3s; }

/* Butonat e shpejtë (quick replies) */
.quick-replies {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  padding-top: 12px;
}
.quick-replies:empty { display: none; }
.qr {
  min-height: 38px; padding: 0 15px;
  border: 1.5px solid var(--rose); border-radius: 999px;
  background: #fff; color: var(--rose-text);
  font-weight: 800; font-size: 14.5px; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(194, 78, 106, .1);
  animation: qr-in .35s var(--ease) both;
  transition: background-color .18s, color .18s, transform .12s;
}
.qr:hover { background: var(--blush-50); }
.qr:active { transform: scale(.96); background: var(--rose); color: #fff; }
.qr--size { min-width: 52px; }
.qr--staff { border-color: var(--mint-600); color: var(--mint-text); }
.qr--staff:hover { background: var(--mint-50); }

/* Shiriti i shkrimit */
.composer {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  flex: none;
}
.composer__btn {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%;
  background: none; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.composer__btn:hover { background: var(--cream-2); color: var(--ink); }
.composer__btn.is-wanted { color: var(--rose-text); background: var(--blush-100); }
.composer__btn.is-wanted::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(194, 78, 106, .45);
  animation: ring 1.6s infinite;
}
.composer__input {
  flex: 1; min-width: 0; height: 42px;
  margin-left: 2px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--cream);
  font-size: 16px; /* 16px që iPhone të mos zmadhojë faqen */
  transition: border-color .2s, background-color .2s;
}
.composer__input::placeholder { color: var(--ink-2); opacity: 1; }
.composer__input:focus { outline: none; border-color: var(--rose); background: #fff; }
.composer__input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--blush-200); }
.composer__send {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none; margin-left: 4px;
  border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff;
  box-shadow: 0 4px 12px rgba(194, 78, 106, .3);
  transition: transform .12s, opacity .2s;
}
.composer__send svg { stroke-width: 2.4; }
.composer__send:active { transform: scale(.92); }
.composer.is-empty .composer__send { opacity: .55; box-shadow: none; }

/* Fleta e fotove */
.sheet { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(63, 53, 50, .38); animation: fade .25s both; }
.sheet__panel {
  position: relative;
  max-height: 86%; overflow-y: auto;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  animation: sheet-up .38s var(--ease) both;
}
.sheet__grip { width: 42px; height: 5px; margin: 2px auto 8px; border-radius: 99px; background: var(--line-strong); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__head h3 { font-size: 17px; font-weight: 800; }
.sheet__upload {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; text-align: left;
  border: 1.5px solid var(--blush-200); border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--blush-50), #fff);
  transition: border-color .2s, background-color .2s;
}
.sheet__upload:hover { border-color: var(--rose); }
.sheet__upload strong { display: block; font-size: 15px; font-weight: 800; }
.sheet__upload small { display: block; font-size: 12.5px; color: var(--ink-2); }
.sheet__upload-icon {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: #fff;
}
.sheet__label { margin: 16px 2px 8px; }
.sheet__label strong { display: block; font-size: 14.5px; font-weight: 800; }
.sheet__label small { font-size: 12.5px; color: var(--ink-2); }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.catalog__item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 0 8px; text-align: left;
  border: 1px solid var(--line); border-radius: 16px;
  background: #fff; overflow: hidden;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.catalog__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blush-300); }
.catalog__item img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.catalog__item b { padding: 4px 8px 0; font-size: 12.5px; line-height: 1.2; }
.catalog__item span { padding: 0 8px; font-size: 12px; color: var(--ink-2); }

/* ==========================================================================
   PANELI I STAFIT
   ========================================================================== */
.staff {
  flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px calc(24px + env(safe-area-inset-bottom));
}

.staff-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title bell" "team team";
  align-items: center; gap: 10px 12px;
  padding: 6px 0 12px;
}
.staff-head__title { grid-area: title; min-width: 0; }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--rose-text); }
.staff-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.team { grid-area: team; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.team li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 11px 3px 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  font-size: 13px; font-weight: 700;
}
.team li i { position: relative; }
.team li i::after {
  content: ''; position: absolute; right: -1px; bottom: -1px;
  width: 9px; height: 9px; border-radius: 50%; background: #3DBE84; border: 2px solid #fff;
}
.initials {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 800; font-style: normal; color: var(--ink);
}

/* Zilja e njoftimeve */
.bell { grid-area: bell; position: relative; }
.bell__btn .count-badge { position: absolute; top: -5px; right: -6px; }
.bell__btn.is-ringing svg { animation: bell-ring .9s var(--ease); transform-origin: 50% 10%; }
.bell__panel {
  position: absolute; z-index: 40; right: 0; top: calc(100% + 8px);
  width: min(340px, calc(100vw - 32px));
  max-height: 420px; overflow-y: auto;
  padding: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop .22s var(--ease) both;
}
.bell__panel h4 { padding: 2px 6px 8px; font-size: 14.5px; font-weight: 800; }
.bell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bell__item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 9px 10px; text-align: left;
  border: 0; border-radius: 12px; background: none;
  font-size: 13.5px; line-height: 1.35;
}
.bell__item:hover { background: var(--cream); }
.bell__item.is-unread { background: var(--blush-50); }
.bell__item time { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.bell__empty { padding: 14px 8px; font-size: 13.5px; color: var(--ink-2); text-align: center; }

/* Kutia informuese */
.info-box {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 14px; padding: 12px 14px;
  border: 1px solid var(--mint-200); border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--mint-50), #fff);
  font-size: 14px; line-height: 1.45;
}
.info-box__icon { font-size: 18px; line-height: 1.2; }

/* Skedat */
.tabs {
  position: sticky; top: -4px; z-index: 5;
  display: flex; gap: 6px;
  margin: 0 -16px 12px; padding: 8px 16px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 248, 241, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  min-height: 40px; padding: 0 8px 0 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2);
  font-weight: 800; font-size: 14px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--blush-300); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab__count {
  display: inline-grid; place-items: center;
  min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: 999px; background: var(--cream-2); color: var(--ink);
  font-size: 12.5px; font-weight: 800;
}
.tab[aria-selected="true"] .tab__count { background: rgba(255, 255, 255, .2); color: #fff; }
.tab--priority.has-open { border-color: #F3B4BA; color: var(--red-text); }
.tab--priority.has-open .tab__count { background: var(--red); color: #fff; animation: pulse-red 1.8s infinite; }
.tab--priority.has-open[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.tab--priority.has-open[aria-selected="true"] .tab__count { background: #fff; color: var(--red-text); }

.tab-panel:focus-visible { outline-offset: 6px; border-radius: var(--r-md); }

/* Filtrat sipas statusit */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.filter b { font-weight: 800; color: var(--ink); }
.filter:hover { border-color: var(--line-strong); color: var(--ink); }
.filter[aria-pressed="true"] { background: #fff; border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Ngjyrat e statuseve */
[data-st="new"] { --c: var(--st-new); --cb: var(--st-new-bg); }
[data-st="confirmed"] { --c: var(--st-ok); --cb: var(--st-ok-bg); }
[data-st="shipped"] { --c: var(--st-ship); --cb: var(--st-ship-bg); }
[data-st="closed"] { --c: var(--st-closed); --cb: var(--st-closed-bg); }
[data-st="progress"] { --c: var(--st-progress); --cb: var(--st-progress-bg); }
[data-st="answered"], [data-st="resolved"] { --c: var(--st-ok); --cb: var(--st-ok-bg); }
[data-st="open"] { --c: var(--red-text); --cb: var(--red-bg); }
.filter[data-st] i { background: var(--c); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 0 10px;
  border-radius: 999px;
  background: var(--cb, var(--cream-2)); color: var(--c, var(--ink-2));
  font-size: 12.5px; font-weight: 800; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-sample {
  display: inline-flex; align-items: center;
  min-height: 22px; padding: 0 8px;
  border: 1.5px dashed var(--line-strong); border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: var(--ink-2); letter-spacing: .02em;
}

/* Kartat */
.cards { display: grid; gap: 14px; }
.cards > * { scroll-margin-top: 92px; } /* që skedat ngjitëse të mos e mbulojnë kartën */
.card {
  position: relative;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card.is-done { background: rgba(255, 255, 255, .7); }
.card.is-done .card__body { opacity: .78; }
.card__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card__no { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.card__time { margin-left: auto; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.card__who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card__who .initials { width: 38px; height: 38px; font-size: 13.5px; }
.card__who b { display: block; font-size: 15px; line-height: 1.2; }
.card__who span { font-size: 13px; color: var(--ink-2); }

.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; scrollbar-width: thin; }
.thumb { flex: none; width: 86px; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.thumb button {
  padding: 0; border: 0; background: none; border-radius: 14px; cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .15s, box-shadow .2s;
}
.thumb button:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--blush-300), var(--shadow-md); }
.thumb img { width: 86px; height: 100px; object-fit: cover; border-radius: 14px; background: var(--cream-2); }
.thumb figcaption { font-size: 12.5px; font-weight: 700; text-align: center; color: var(--ink); line-height: 1.25; }
.card__body { min-width: 0; }

.details { margin: 0 0 14px; display: grid; gap: 8px; font-size: 14px; }
.details div { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.details dt { font-size: 15px; line-height: 1.35; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.details small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 700; }
.tel {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--rose-text); font-weight: 800; text-decoration: none;
  border-bottom: 1.5px dashed var(--blush-300);
}
.tel:hover { border-bottom-style: solid; }

.card__ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.card__ctl label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.card__ctl .select-wrap select { min-height: 38px; border-radius: 12px; font-size: 14px; }
.select-wrap--status select { background: var(--cb, #fff); color: var(--c, var(--ink)); border-color: transparent; font-weight: 800; }

/* Ndërrimet: dy fotot krah për krah */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 12px; }
.swap figure { margin: 0; position: relative; }
.swap button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 16px; cursor: zoom-in; }
.swap img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 16px; background: var(--cream-2); box-shadow: 0 0 0 1px var(--line); }
.swap figcaption {
  position: absolute; left: 8px; top: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 800;
}
.swap figcaption.is-old { color: var(--red-text); }
.swap figcaption.is-new { color: var(--mint-text); }
.swap__size { display: block; margin-top: 6px; text-align: center; font-size: 13px; font-weight: 800; }
.swap__arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blush-100); color: var(--rose-text);
}
.swap__arrow svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* Pyetja e klientit / biseda në kartë */
.quote {
  margin: 0 0 12px; padding: 11px 14px;
  border-left: 4px solid #B9A6EA; border-radius: 6px 14px 14px 6px;
  background: var(--lilac-100);
  font-size: 14.5px; font-weight: 600;
}
.quote small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; color: var(--st-ship); }
.thread {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px; padding: 10px;
  max-height: 260px; overflow-y: auto;
  border-radius: var(--r-md); background: var(--cream);
}
.thread__label { font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 0 0 6px 2px; }
.tmsg { max-width: 86%; display: flex; flex-direction: column; }
.tmsg small { font-size: 11px; font-weight: 800; color: var(--ink-2); margin: 0 6px 2px; }
.tmsg p { padding: 7px 11px; border-radius: 14px; font-size: 13.5px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsg img { width: 84px; height: 96px; object-fit: cover; border-radius: 12px; }
.tmsg--customer { align-self: flex-start; }
.tmsg--customer p { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tmsg--bot, .tmsg--staff { align-self: flex-end; align-items: flex-end; }
.tmsg--bot p { background: var(--blush-100); border-bottom-right-radius: 4px; }
.tmsg--staff p { background: var(--mint-100); border-bottom-right-radius: 4px; }
.tmsg--system { align-self: center; }
.tmsg--system p { padding: 3px 10px; background: var(--cream-2); font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* Kutia e përgjigjes */
.reply { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.reply textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none; overflow-y: auto;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 16px;
  background: #fff; font-size: 15px; line-height: 1.4;
}
.reply textarea:focus { outline: none; border-color: var(--mint-600); box-shadow: 0 0 0 3px var(--mint-200); }
.reply .btn { min-height: 44px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

/* Prioritet (kartat e kuqe) */
.card--priority { border-color: #F6C3C7; box-shadow: 0 0 0 1px #F6C3C7, 0 8px 22px rgba(196, 48, 63, .12); }
.card--priority::before {
  content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px;
  width: 5px; border-radius: 0 6px 6px 0; background: var(--red);
}
.card--priority .card__top { padding-left: 4px; }
.live-dot { position: relative; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--red); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); animation: live 1.6s infinite; }
.card__alert { font-size: 13px; font-weight: 800; color: var(--red-text); }
.card--priority.is-done { box-shadow: var(--shadow-sm); border-color: var(--line); }
.card--priority.is-done::before { background: var(--line-strong); }

/* Gjendja bosh e skedave */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 40px 20px; text-align: center;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg);
  color: var(--ink-2); font-size: 14.5px; font-weight: 600;
}
.empty i {
  display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  font-size: 28px; font-style: normal;
}
.disclaimer--staff { margin-top: 18px; text-align: center; }

/* ==========================================================================
   NJOFTIMET (toast)
   ========================================================================== */
.toasts {
  position: fixed; z-index: 60;
  top: calc(8px + env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 12px 14px 14px 12px; text-align: left;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: toast-in .45s var(--ease) both;
}
.toast:hover { border-color: var(--blush-300); }
.toast.is-leaving { animation: toast-out .3s ease both; }
.toast__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 13px;
  background: var(--blush-100); font-size: 19px;
}
.toast--priority .toast__icon { background: var(--red-bg); }
.toast--priority { border-color: #F6C3C7; }
.toast__body { flex: 1; min-width: 0; }
.toast__app { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.toast__text { display: block; font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--rose); transform-origin: left; animation: toast-bar 5s linear both; }
.toast--priority .toast__bar { background: var(--red); }

/* ==========================================================================
   DRITARET: Rinis demon, zmadhimi i fotos, shënimi i memories
   ========================================================================== */
.modal { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 32px); overflow: visible; }
.modal::backdrop { background: rgba(63, 53, 50, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal__box {
  width: min(400px, calc(100vw - 32px));
  padding: 26px 22px 18px;
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); text-align: center;
  animation: pop .3s var(--ease) both;
}
.modal__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--blush-100); color: var(--rose-text);
}
.modal__icon svg { width: 26px; height: 26px; stroke-width: 2.2; }
.modal h2 { margin-bottom: 6px; font-size: 20px; font-weight: 800; }
.modal p { margin-bottom: 18px; font-size: 14.5px; color: var(--ink-2); }
.modal__actions { display: grid; gap: 8px; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; padding: 16px; border: 0; background: transparent;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(30, 22, 20, .84); }
.lightbox img {
  max-width: min(92vw, 620px); max-height: 84dvh;
  object-fit: contain; border-radius: 22px; background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  animation: pop .3s var(--ease) both;
}
.lightbox__close { position: fixed; z-index: 2; top: calc(14px + env(safe-area-inset-top)); right: 14px; background: #fff; }

.banner {
  position: fixed; z-index: 70;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 540px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 10px 12px 16px;
  background: #FFF4D6; border: 1px solid #F2D58E; border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; font-weight: 600;
  animation: fade-up .3s var(--ease) both;
}
.banner p { flex: 1; }

/* ==========================================================================
   UDHËZUESI
   ========================================================================== */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour.is-placing { visibility: hidden; }
.tour.is-placing * { transition: none !important; }
.tour__shade { position: absolute; inset: 0; }
.tour__spot {
  position: absolute;
  border-radius: 24px;
  box-shadow: 0 0 0 9999px rgba(43, 32, 30, .58);
  outline: 3px solid rgba(255, 255, 255, .95); outline-offset: 4px;
  transition: top .45s var(--ease), left .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
  pointer-events: none;
}
.tour__card {
  position: absolute;
  width: min(370px, calc(100vw - 32px));
  padding: 16px 18px 14px;
  background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: top .45s var(--ease), left .45s var(--ease);
}
.tour__card.is-pop { animation: pop .35s var(--ease) both; }
.tour__top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tour__emoji {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blush-100), var(--butter-100)); font-size: 21px;
}
.tour__step { margin-right: auto; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--rose-text); }
.tour__card h2 { margin-bottom: 4px; font-size: 19px; font-weight: 800; }
.tour__card p { font-size: 15.5px; line-height: 1.45; }
.tour__dots { display: flex; gap: 6px; margin: 14px 0 12px; }
.tour__dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); transition: width .3s, background-color .3s; }
.tour__dots i.is-on { width: 24px; background: var(--rose); }
.tour__actions { display: flex; align-items: center; gap: 6px; }
.tour__actions .btn--text { padding: 0 8px; }

/* ==========================================================================
   TABLET (640–1023px): përmbajtja në mes
   ========================================================================== */
@media (min-width: 640px) and (max-width: 1023px) {
  .view-switch { width: 380px; margin-left: auto; margin-right: auto; }
  .stage { padding: 0 24px; }
  .pane { max-width: 640px; margin: 0 auto; }
  .phone { border-radius: 26px; margin-bottom: 16px; box-shadow: var(--shadow-md); }
  .brand__tag { display: block; }
  .toasts { left: auto; width: 380px; }
}

/* Celular: skedat e stafit si 4 pllaka që nxënë gjithë gjerësinë */
@media (max-width: 1023px) {
  .tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
  .tab {
    flex-direction: column-reverse; justify-content: center; gap: 1px;
    min-height: 60px; padding: 7px 2px 8px;
    border-radius: 16px; font-size: 12.5px; line-height: 1.15;
  }
  .tab__count { min-width: 0; height: auto; padding: 0; background: none; color: inherit; font-size: 20px; line-height: 1.1; }
  .tab[aria-selected="true"] .tab__count { background: none; }
  .tab--priority.has-open { background: var(--red-bg); }
  .tab--priority.has-open .tab__count { background: none; color: var(--red-text); animation: none; }
  .tab--priority.has-open::after {
    content: ''; position: absolute; top: 8px; right: 9px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--red);
    animation: pulse-red 1.8s infinite;
  }
  .tab--priority.has-open[aria-selected="true"] .tab__count { background: none; color: #fff; }
  .tab--priority.has-open[aria-selected="true"]::after { background: #fff; }
  .tab { position: relative; }
}

@media (max-width: 400px) {
  .topbar { gap: 8px; }
  .brand { gap: 8px; }
  .brand__logo { width: 34px; height: 34px; }
  .brand__name { font-size: 15.5px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .btn--reset svg { display: none; }
}

@media (max-width: 370px) {
  .brand__name { font-size: 15px; }
  .btn--reset { padding: 0 10px; font-size: 13px; }
  .chip-btn { font-size: 12.5px; padding: 0 10px 0 8px; }
  .catalog { gap: 8px; }
}

/* ==========================================================================
   KOMPJUTER (≥ 1024px): dy pamjet krah për krah
   ========================================================================== */
@media (min-width: 1024px) {
  .topbar { gap: 18px; padding: 16px 28px 14px; }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 19px; }
  .brand__tag { display: block; }
  .disclaimer--top {
    display: block;
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  }
  .btn--reset { min-height: 42px; padding: 0 16px; font-size: 14px; }
  .view-switch { display: none; }

  .stage {
    width: 100%; max-width: 1500px; margin: 0 auto;
    display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 32px;
    padding: 4px 28px 22px;
  }
  body[data-view] .pane { display: flex; }

  .pane__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; min-height: 36px; }
  .pane__title { display: inline-flex; }
  .pane--client { align-items: center; }
  .pane--client .pane__head { width: 100%; max-width: 400px; }
  .customer-ctl { padding: 0; width: 100%; }
  .select-wrap--pill { max-width: none; }

  .phone {
    width: 100%; max-width: 400px; max-height: 860px;
    padding: 11px;
    background: #2B2321;
    border-radius: 54px;
    box-shadow: 0 30px 70px rgba(63, 53, 50, .28), 0 0 0 2px #4A3D3A inset, 0 0 0 1px rgba(0, 0, 0, .2);
  }
  .phone .chat { border-radius: 44px; overflow: hidden; }
  .phone__notch {
    display: block; position: absolute; z-index: 5;
    top: 21px; left: 50%; width: 100px; height: 28px; margin-left: -50px;
    border-radius: 99px; background: #2B2321;
  }
  .chat-head { padding-top: 50px; }
  .composer { padding-bottom: 16px; }

  .staff {
    padding: 10px 24px 24px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: var(--shadow-md);
  }
  .staff-head { padding: 10px 0 14px; }
  .tabs { top: -10px; margin: 0 -24px 14px; padding: 10px 24px; background: rgba(255, 251, 247, .94); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
  .toasts { top: 18px; right: 24px; left: auto; width: 380px; }
}

@media (min-width: 1280px) {
  .staff-head { grid-template-columns: auto 1fr auto; grid-template-areas: "title team bell"; }
  .team { justify-content: flex-end; }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .topbar { padding-top: 10px; padding-bottom: 8px; }
  .phone { border-radius: 44px; padding: 9px; }
  .phone .chat { border-radius: 36px; }
  .phone__notch { top: 17px; height: 22px; }
  .chat-head { padding-top: 40px; }
}

/* ==========================================================================
   ANIMACIONET
   ========================================================================== */
@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes qr-in { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.95); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(194, 78, 106, .45); } 75%, 100% { box-shadow: 0 0 0 11px rgba(194, 78, 106, 0); } }
@keyframes live { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(196, 48, 63, .5); } 60% { box-shadow: 0 0 0 7px rgba(196, 48, 63, 0); } }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes card-new {
  0% { opacity: 0; transform: translateY(-12px) scale(.98); box-shadow: 0 0 0 3px var(--blush-300), var(--shadow-md); }
  14% { opacity: 1; transform: none; box-shadow: 0 0 0 4px var(--blush-200), var(--shadow-md); }
  100% { box-shadow: 0 0 0 0 rgba(242, 179, 194, 0), var(--shadow-sm); }
}
.card.is-new { animation: card-new 2.6s var(--ease) backwards; }
.no-anim, .no-anim * { animation: none !important; }

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