/* ============================================================
   A&A MUŠKA ODELA — layout.css
   Preloader i veo prelaza, traka napretka, navigacija, mobilni
   meni, futer, nazad-na-vrh, AI asistent, toast, modal.
   ============================================================ */

/* ============================================================
   1. PRELOADER + VEO PRELAZA STRANICA
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preload);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: #060606;
  transition: opacity 700ms var(--e-out), visibility 700ms;
  /* Sigurnosna mreža: i bez JavaScripta preloader nestaje posle 6s,
     pa sadržaj nikada ne ostane zaključan. */
  animation: pre-failsafe 0s linear 6s forwards;
}
@keyframes pre-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
/* Pri ponovnoj poseti u istoj sesiji preskačemo logo — samo kratak veo */
.preloader.is-quick { transition-duration: 260ms; }

.preloader__ring {
  position: relative;
  width: 154px; height: 154px;
  display: grid;
  place-items: center;
}
.preloader__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.preloader__ring circle { fill: none; stroke-width: 1.2; }
.preloader__track { stroke: rgba(255, 255, 255, 0.07); }
.preloader__bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 452;
  stroke-dashoffset: 452;
  animation: pre-ring 1.7s var(--e-soft) infinite;
  filter: drop-shadow(0 0 7px rgba(212, 169, 92, 0.5));
}
@keyframes pre-ring {
  0%   { stroke-dashoffset: 452; }
  55%  { stroke-dashoffset: 120; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}

.preloader__logo {
  width: 112px; height: 112px;
  border-radius: 50%;
  animation: pre-pulse 2.4s var(--e-soft) infinite;
}
@keyframes pre-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.035); }
}

.preloader__word {
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-left: 0.42em;
}

/* Veo koji zatamni stranicu pre odlaska na drugu */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-veil);
  background: #060606;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms var(--e-in), visibility 250ms;
}
.page-veil.is-on { opacity: 1; visibility: visible; pointer-events: all; }

/* Ulazak sadržaja posle preloadera — jedna koreografija.
   Osnovno stanje je VIDLJIVO: ako JS zakaže, sadržaj se i dalje vidi. */
body.page-in main,
body.page-in .footer {
  animation: page-rise 900ms var(--e-out) both;
}
body.page-in .footer { animation-delay: 120ms; }
@keyframes page-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   2. TRAKA NAPRETKA SKROLA
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: calc(var(--z-nav) + 5);
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-3));
  pointer-events: none;
  will-change: transform;
}

/* ============================================================
   3. NAVIGACIJA
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), backdrop-filter var(--t),
              border-color var(--t), height var(--t), box-shadow var(--t);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

/* Zamućeno staklo posle skrola (sa punom rezervom) */
.nav.is-solid {
  background: rgba(9, 9, 10, 0.92);
  border-bottom-color: var(--line);
  height: 68px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.42);
}
.nav--fixed-solid {
  background: rgba(9, 9, 10, 0.92);
  border-bottom-color: var(--line);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav.is-solid, .nav--fixed-solid {
    background: rgba(9, 9, 10, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
}

.brand { display: inline-flex; align-items: center; gap: 13px; flex: none; }
.brand__mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex: none;
  transition: transform var(--d-slow) var(--e-spring);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.07); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--f-serif);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}
.brand__sub {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
  margin-inline: auto;
}
.nav__link {
  position: relative;
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  padding: 10px 2px;
  white-space: nowrap;
}
/* Zlatna vlas ispod linka */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Aktivna stranica: zlatna tačka + stalna vlas */
.nav__link.is-active { color: var(--gold-2); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 169, 92, 0.8);
}

.nav__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--t-fast), background var(--t-fast), transform var(--d-base) var(--e-spring);
}
.nav-icon:hover { color: var(--gold-2); background: var(--gold-soft); transform: translateY(-2px); }
.nav-icon .ico { width: 20px; height: 20px; }

.count-badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.63rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transform: scale(0);
  transition: transform 260ms var(--e-spring);
}
.count-badge.is-on { transform: scale(1); }
.count-badge.pop { animation: badge-pop 520ms var(--e-spring); }
@keyframes badge-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.5) translateY(-2px); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.nav__cta { display: inline-flex; }

/* Hamburger */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.burger:hover { border-color: var(--gold); background: var(--gold-soft); }
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast), width var(--t);
}
.burger span:last-child { width: 12px; }
.burger.is-open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:last-child { width: 18px; transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   4. MOBILNI MENI
   ============================================================ */
.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-panel);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.mobile-scrim.is-open { opacity: 1; visibility: visible; }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: calc(var(--z-panel) + 1);
  width: min(400px, 88vw);
  height: 100%;
  height: 100dvh;
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  padding: 26px 26px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 520ms var(--e-out);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.6);
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  font-family: var(--f-serif);
  font-size: var(--fs-600);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(20px);
}
.mobile-menu.is-open .mobile-menu__links a {
  animation: mm-in 520ms var(--e-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
@keyframes mm-in { to { opacity: 1; transform: translateX(0); } }
.mobile-menu__links a .ico { width: 17px; height: 17px; color: var(--gold); opacity: 0; transition: var(--t-fast); }
.mobile-menu__links a:hover { color: var(--gold-2); }
.mobile-menu__links a:hover .ico { opacity: 1; transform: translateX(3px); }
.mobile-menu__links a.is-active { color: var(--gold-2); }
.mobile-menu__links a.is-active .ico { opacity: 1; }

.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-300);
  color: var(--text-2);
}
.mobile-menu__contact .ico { color: var(--gold); width: 17px; height: 17px; }
.mobile-menu__social { display: flex; gap: 10px; }

/* ============================================================
   5. FUTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--bg-deep);
  border-top: 1px solid var(--line-2);
  padding-top: clamp(56px, 6.5vw, 96px);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 400px;
  background: radial-gradient(ellipse, rgba(212, 169, 92, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.25fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(38px, 4vw, 58px);
}
/* Vlasi između kolona */
.footer__grid > * + * { position: relative; }
@media (min-width: 1081px) {
  .footer__grid > * + *::before {
    content: "";
    position: absolute;
    left: calc(-1 * clamp(14px, 2vw, 28px));
    top: 4px; bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  }
}

.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__logo { width: 96px; height: 96px; border-radius: 50%; }
.footer__line {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: var(--fs-500);
  line-height: 1.35;
  color: var(--text);
  max-width: 22ch;
}
.footer__about { font-size: var(--fs-300); color: var(--text-2); line-height: 1.78; max-width: 42ch; }

.footer__title {
  font-size: var(--fs-100);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.footer__list { display: flex; flex-direction: column; gap: 12px; }
.footer__list a, .footer__list li {
  font-size: var(--fs-300);
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer__list a { position: relative; width: fit-content; }
.footer__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t);
}
.footer__list a:hover { color: var(--gold-2); }
.footer__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer__list .ico { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; flex: none; }

.footer__loc { margin-bottom: 20px; }
.footer__loc:last-child { margin-bottom: 0; }
.footer__loc strong {
  display: block;
  font-size: var(--fs-200);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}
.footer__loc span { font-size: var(--fs-300); color: var(--text-2); line-height: 1.65; display: block; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast),
              border-color var(--t-fast), transform var(--d-base) var(--e-spring);
}
.social-btn:hover {
  color: var(--on-gold);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(212, 169, 92, 0.3);
}
.social-btn .ico { width: 18px; height: 18px; }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: var(--fs-200);
  color: var(--text-3);
}
.footer__bottom a:hover { color: var(--gold-2); }

/* ============================================================
   6. NAZAD NA VRH
   ============================================================ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: var(--z-float);
  width: 50px; height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(21, 21, 23, 0.9);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); box-shadow: var(--sh-gold); }
.to-top .ico { width: 19px; height: 19px; }
.to-top__ring { position: absolute; inset: -1px; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke-width: 1.4; }
.to-top__ring .trk { stroke: transparent; }
.to-top__ring .bar {
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 120ms linear;
}
.to-top:hover .to-top__ring .bar { stroke: rgba(0, 0, 0, 0.3); }

/* Magnetni efekat — pomera se JS-om preko --mx/--my */
.magnetic {
  --mx: 0px; --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 520ms var(--e-spring);
}
.magnetic.is-pulling { transition: transform 120ms linear; }
.to-top.magnetic { transform: translate3d(var(--mx), var(--my), 0); }

/* ============================================================
   7. AI ASISTENT
   ============================================================ */
.chat-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: var(--z-float);
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 50%, var(--gold-deep));
  color: var(--on-gold);
  box-shadow: 0 10px 30px rgba(212, 169, 92, 0.32);
  transition: box-shadow var(--t), opacity var(--t), visibility var(--t),
              transform 520ms var(--e-spring);
}
.chat-fab:hover { box-shadow: 0 16px 42px rgba(212, 169, 92, 0.46); }
.chat-fab .ico { width: 25px; height: 25px; stroke-width: 1.6; }
.chat-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: fab-pulse 2.8s var(--e-out) infinite;
  pointer-events: none;
}
@keyframes fab-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.chat-fab.is-open { opacity: 0; visibility: hidden; transform: scale(0.8); }

.chat-tip {
  position: fixed;
  left: 22px;
  bottom: 92px;
  z-index: var(--z-float);
  max-width: min(268px, calc(100vw - 44px));
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 11px 16px;
  font-size: var(--fs-200);
  line-height: 1.5;
  color: var(--text-2);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}
.chat-tip.is-on { opacity: 1; transform: none; }

.chat-panel {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: calc(var(--z-float) + 2);
  width: min(392px, calc(100vw - 44px));
  height: min(600px, calc(100dvh - 44px));
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(212, 169, 92, 0.08);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.94);
  transform-origin: left bottom;
  transition: opacity 380ms var(--e-out), transform 480ms var(--e-spring), visibility 380ms;
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: none; }

.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 16px 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(212, 169, 92, 0.1), transparent);
  flex: none;
}
.chat-head__avatar {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: none;
  border: 1px solid var(--line-2);
}
.chat-head__wrap { position: relative; flex: none; }
.chat-head__wrap::after {
  content: "";
  position: absolute;
  right: 0; bottom: 1px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--bg-alt);
}
.chat-head__t { flex: 1; min-width: 0; }
.chat-head__name { font-family: var(--f-serif); font-size: 1.05rem; line-height: 1.2; }
.chat-head__status { font-size: var(--fs-200); color: var(--text-3); display: flex; align-items: center; gap: 6px; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg { display: flex; gap: 9px; max-width: 88%; animation: msg-in 420ms var(--e-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } }
.msg__bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: var(--fs-300);
  line-height: 1.65;
  white-space: pre-line;
  word-break: break-word;
}
.msg--bot { align-self: flex-start; }
.msg--bot .msg__bubble {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  color: var(--text);
}
.msg--user { align-self: flex-end; }
.msg--user .msg__bubble {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  color: var(--on-gold);
  border-bottom-right-radius: 6px;
  font-weight: 500;
}
.msg__bubble a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.msg--user .msg__bubble a { color: var(--on-gold); }
.msg__bubble b { color: var(--gold-2); font-weight: 600; }
.msg--user .msg__bubble b { color: var(--on-gold); }

.typing { display: flex; gap: 4px; padding: 15px 17px; }
.typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: typing 1.1s var(--e-soft) infinite;
}
.typing span:nth-child(2) { animation-delay: 0.16s; }
.typing span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-4px); }
}

/* Brze radnje — stalno prisutne ispod zaglavlja */
.chat-actions {
  display: flex;
  gap: 8px;
  padding: 12px 16px 4px;
  flex: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.chat-action {
  flex: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--t-fast);
  min-height: 56px;
  justify-content: center;
  text-align: center;
}
.chat-action:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); transform: translateY(-2px); }
.chat-action .ico { width: 17px; height: 17px; color: var(--gold); }

.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 12px; flex: none; }
.chip {
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--gold-soft);
  color: var(--gold-2);
  font-size: var(--fs-200);
  font-weight: 500;
  transition: var(--t-fast);
  white-space: nowrap;
  min-height: 38px;
}
.chip:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-2px); }

.chat-foot {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex: none;
}
.chat-foot .input { min-height: 46px; padding: 11px 16px; border-radius: var(--r-pill); font-size: var(--fs-300); }
.chat-send {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--on-gold);
  flex: none;
  transition: filter var(--t-fast), transform var(--d-base) var(--e-spring);
}
.chat-send:hover { filter: brightness(1.1); transform: scale(1.07); }
.chat-send .ico { width: 19px; height: 19px; }

/* ============================================================
   8. TOAST — dole na sredini, slaganje
   ============================================================ */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--r);
  background: rgba(22, 22, 25, 0.97);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(212, 169, 92, 0.06);
  backdrop-filter: blur(14px);
  font-size: var(--fs-300);
  line-height: 1.5;
  color: var(--text);
  animation: toast-in 420ms var(--e-spring);
  pointer-events: auto;
}
.toast.is-out { animation: toast-out 260ms var(--e-in) forwards; }
.toast .ico { width: 20px; height: 20px; color: var(--gold); flex: none; }
.toast--ok .ico { color: var(--ok); }
.toast--warn .ico { color: var(--warn); }
.toast__x { margin-left: auto; color: var(--text-4); flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.toast__x:hover { color: var(--text); }
.toast__x .ico { width: 14px; height: 14px; color: currentColor; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* ============================================================
   9. MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal__box {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  background: var(--bg-alt);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(212, 169, 92, 0.07);
  padding: clamp(24px, 3.4vw, 40px);
  transform: translateY(24px) scale(0.96);
  transition: transform 480ms var(--e-spring);
}
.modal.is-open .modal__box { transform: none; }
.modal__box--wide { width: min(760px, 100%); }

.modal__head { margin-bottom: 24px; padding-right: 48px; }
.modal__title { font-family: var(--f-serif); font-size: clamp(var(--fs-600), 2.6vw, var(--fs-700)); line-height: 1.16; margin-top: 12px; }
.modal__sub { font-size: var(--fs-300); color: var(--text-2); line-height: 1.7; margin-top: 12px; max-width: 56ch; }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 3; }

/* ============================================================
   10. RESPONZIVNO
   ============================================================ */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .burger { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 66px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 0.94rem; }
  .brand__sub { font-size: 0.46rem; }

  /* U traci ostaju samo korpa i meni — pretraga i lista želja
     su dostupne iz mobilnog menija i sa stranice Kolekcija. */
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 4px; }
  .nav__actions > a.nav-icon:not([href="korpa.html"]) { display: none; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { justify-content: center; text-align: center; }
  .footer__logo { width: 78px; height: 78px; }

  .chat-panel {
    left: 10px; right: 10px; bottom: 10px;
    width: auto;
    height: min(76vh, calc(100dvh - 20px));
  }
  .chat-fab { left: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .chat-tip { display: none; }
  .toast-wrap { bottom: 84px; width: calc(100vw - 24px); }
}
