/* ==========================================================
   Sistemi i butonave 2026 + detaje profesionale.
   Ngarkohet i fundit, ndaj mbizotëron stilet e vjetra të butonave.
   Butoni primar: kapsulë me "chip" rrethor me shigjetë që rrotullohet ↗ dhe dritë që kalon sipër.
   ========================================================== */

:root {
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --red: #d7202b;
  --chip-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --chip-arrow-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --shine: rgba(255, 255, 255, 0.3);
  --chip-mail-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
  --arrow-k: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); /* shigjetë e zezë, e njëjtë në të dy temat */
}
:root[data-theme="dark"] {
  --chip-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --chip-arrow-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --shine: rgba(0, 0, 0, 0.12);
  --chip-mail-inv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
}

/* ---------- Butoni primar ---------- */
.btn,
.cta .btn,
.pc .btn,
.kf .btn,
.rc .btn,
.fhero .btn,
.faq-h .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font:
    600 15px/1 Inter,
    system-ui,
    sans-serif;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 12px 28px -12px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.3s,
    background 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.btn::after {
  content: "";
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    var(--chip-arrow) center / 17px no-repeat,
    var(--bg);
  transition: transform 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, var(--shine) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 18px 36px -12px rgba(0, 0, 0, 0.55);
}
.btn:hover::after {
  transform: rotate(-45deg);
}
.btn:hover::before {
  transform: translateX(120%);
}
.btn:active {
  transform: scale(0.97);
}

/* ---------- Butoni dytësor (ghost) ---------- */
.btn.ghost {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.btn.ghost::after {
  background:
    var(--chip-arrow-inv) center / 17px no-repeat,
    var(--text);
}
.btn.ghost::before {
  background: linear-gradient(110deg, transparent 30%, var(--glow) 50%, transparent 70%);
}
.btn.ghost:hover {
  border-color: var(--text);
}

/* Butoni i formularit: chip jeshil me logon e WhatsApp */
.kf .btn::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z'/%3E%3C/svg%3E")
      center / 19px no-repeat,
    #25d366;
}
/* Butoni "Dërgo me email": chip me zarf */
.kf .btn.ghost::after {
  background:
    var(--chip-mail-inv) center / 18px no-repeat,
    var(--text);
}
/* Butoni te fatura e vlerësuesit: i gjerë */
.rc .btn {
  background: #111;
  color: #fff;
  border-color: #111;
  width: 100%;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.rc .btn::after {
  background:
    var(--arrow-k) center / 17px no-repeat,
    #fff;
}

/* Butonat e cookies: kompaktë, pa chip */
.ck .btn,
.ckm .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 13.5px;
  gap: 0;
}
.ck .btn::after,
.ckm .btn::after {
  display: none;
}

@media (max-width: 600px) {
  .btn {
    min-height: 48px;
    font-size: 14.5px;
    padding-left: 20px;
  }
  .btn::after {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Butonat me ikonë (tema, menuja, karuseli, lart, mbyll, rrjetet) ---------- */
.tg,
.burger,
.cb,
.up,
.ckm-x,
.vxb,
.fg .fsoc a {
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.3s var(--ease),
    box-shadow 0.25s;
}
.burger {
  border-radius: 14px;
}
.tg:hover,
.burger:hover,
.cb:hover,
.up:hover,
.ckm-x:hover,
.vxb:hover,
.fg .fsoc a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45);
}
.burger:hover span {
  background: var(--bg);
}
.tg:active,
.burger:active,
.cb:active,
.up:active {
  transform: scale(0.93);
}
.cb {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.fg .fsoc a {
  width: 40px;
  height: 40px;
}
.fsoc svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ---------- Menuja kryesore: kapsulë ---------- */
header {
  border-bottom: 1px solid var(--line);
}
.nl {
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 14px;
}
.nl a,
.nl a.on {
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  transition:
    background 0.25s,
    color 0.25s;
}
.nl a:hover {
  background: var(--bg);
}
.nl a.on {
  background: var(--text);
  color: var(--bg);
}
.pop {
  border-radius: 20px;
  padding: 8px;
}
.pop a {
  border-radius: 12px;
  transition:
    background 0.2s,
    padding-left 0.25s var(--ease);
}
.pop a:hover {
  padding-left: 28px;
}

/* ---------- Zgjedhjet (vlerësuesi, skedat e çmimeve, roboti) ---------- */
.eo,
.ex {
  border-radius: 14px;
  transition:
    transform 0.25s var(--ease),
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.eo:hover,
.ex:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.svc2 a {
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s var(--ease);
}
.svc2 a:hover {
  transform: translateY(-2px);
}

/* ---------- Lidhjet: vijë që rrëshqet ---------- */
.lk,
.plk {
  display: inline-block;
  border-bottom: 0;
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.lk:hover,
.plk:hover {
  background-size: 0 1.5px;
  background-position: 100% 100%;
}

/* ---------- Drita që ndjek maus-in mbi kartat (js/modules/spotlight.js) ---------- */
:is(.card, .bc, .fs, .prow, .pk, .tkx, .qa).spot {
  background-image: radial-gradient(
    380px circle at var(--mx, -999px) var(--my, -999px),
    rgba(215, 32, 43, 0.09),
    transparent 60%
  );
}

/* ---------- Fokus i dukshëm me tastierë, përzgjedhja e tekstit ---------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
::selection {
  background: var(--red);
  color: #fff;
}
