

:root{
  --idx2-green-dark: #075E54;
  --idx2-green-700: #0b6d62;
  --idx2-green: #08796c;
  --idx2-green-soft: rgba(8,121,108,.12);
  --idx2-teal-light: #5eead4;
  --idx2-blue: #075eb8;
  --idx2-blue-soft: rgba(7,94,184,.10);
  --idx2-purple: #6042a6;
  --idx2-purple-soft: rgba(96,66,166,.10);
  --idx2-ink: #0f172a;
  --idx2-text: #0b1f1c;
  --idx2-muted: #5b6b76;
  --idx2-muted-2: #667085;
  --idx2-paper: #f4faf8;
  --idx2-panel: #ffffff;
  --idx2-line: rgba(15,60,52,.14);
  --idx2-line-soft: rgba(15,60,52,.08);
  --idx2-shadow-sm: 0 2px 8px rgba(6,32,29,.05);
  --idx2-shadow: 0 12px 30px rgba(15,23,42,.075);
  --idx2-shadow-lg: 0 18px 42px rgba(15,23,42,.09);
  --idx2-radius-sm: 12px;
  --idx2-radius: 20px;
  --idx2-radius-lg: 26px;
  --idx2-radius-pill: 999px;
  --idx2-topbar-h: 56px;
  --idx2-maxw: 1240px;
}

body.idx2-page{ background: var(--idx2-paper); color: var(--idx2-text); }
body.idx2-page *{ box-sizing: border-box; }
body.idx2-page img{ max-width: 100%; display: block; }
body.idx2-page a{ color: inherit; }
body.idx2-page button{ font-family: inherit; text-align: left; cursor: pointer; }

.idx2-shell{ min-height: 100%; display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   Topbar — isti recept kao .bl2-topbar (reuses site-wide .topbar sizing from
   app.css, isto tako layered preko), samo BEZ search polja: Naslovnica+AI
   chat | Baza lijekova+Liste čekanja | Prijava/Moj račun + hamburger.
   -------------------------------------------------------------------------- */
.idx2-topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--idx2-topbar-h);
  background: linear-gradient(180deg, #023f3b 0%, var(--idx2-green-dark) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 2px 14px rgba(7,94,84,.22);
}
.idx2-topbar-inner{
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(20px, 2.4vw, 40px);
  max-width: 1900px;
  margin: 0 auto;
}
.idx2-topbar-left{ display: flex; align-items: center; flex: 0 0 auto; margin-left: -6px; }
.idx2-topbar-brand{
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; font-weight: 800;
  font-size: 1.12rem; line-height: 1; letter-spacing: -.3px; white-space: nowrap;
}
.idx2-topbar-brand img{ width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; margin-right: 2px; }
.idx2-topbar-brand:hover{ filter: brightness(1.04); }

.idx2-topbar-nav{
  display: none;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.idx2-topbar-nav-link,
.idx2-topbar-ai-link{
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 16px; border-radius: 11px;
  font-size: .93rem; font-weight: 700; color: rgba(255,255,255,.9);
  text-decoration: none; border: 1px solid transparent; background: transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.idx2-topbar-nav-link:hover,
.idx2-topbar-ai-link:hover{ background: rgba(255,255,255,.12); color: #fff; }
.idx2-topbar-nav-link.is-active{
  background: rgba(94,234,212,.16); color: #fff;
  border-color: rgba(94,234,212,.32);
  box-shadow: none;
}
.idx2-topbar-nav-link svg, .idx2-topbar-ai-link svg{ width: 18px; height: 18px; flex: 0 0 auto; }

.idx2-topbar-sep{ display: none; width: 1px; height: 26px; background: rgba(255,255,255,.16); flex: 0 0 auto; }

.idx2-topbar-right{ display: flex; align-items: center; gap: 11px; flex: 0 0 auto; margin-left: auto; }

.idx2-account-wrap{ position: relative; display: none; }
.idx2-account-link{
  display: inline-flex; align-items: center; justify-content: center;
  height: 37px; padding: 0 11px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; font-weight: 700; font-size: .84rem; text-decoration: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
}
.idx2-account-link:hover{ background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.idx2-account-btn{
  display: inline-flex; align-items: center; height: 46px; gap: 8px;
  padding: 0 16px 0 14px; border-radius: 11px;
  border: 1px solid transparent; background: transparent;
  color: rgba(255,255,255,.9); font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.idx2-account-btn:hover{ background: rgba(255,255,255,.12); color: #fff; }
.idx2-account-btn svg{ width: 17px; height: 17px; flex: 0 0 auto; }
.idx2-caret{ width: 15px; height: 15px; margin-left: 2px; transition: transform .15s ease; }
[data-idx2-dropdown].is-open .idx2-caret{ transform: rotate(180deg); }

/* AI chat dropdown u headeru — toggle izgleda kao AI link, caret bijel */
.idx2-ai-wrap{ position: relative; }
.idx2-ai-toggle{ cursor: pointer; }
.idx2-ai-toggle .idx2-caret{ width: 14px; height: 14px; color: rgba(255,255,255,.9); }
.idx2-dropdown--ai{ left: 0; right: auto; min-width: 260px; }

/* Drawer "Novi razgovor" split gumb: glavni + toggle strelica */
.idx2-drawer-newchat-wrap{ position: relative; display: block; }
.idx2-drawer-newchat-split{ display: flex; align-items: stretch; gap: 0; }
.idx2-drawer-newchat-split .idx2-drawer-newchat-main{
  flex: 1 1 auto; border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0;
  justify-content: flex-start;
}
.idx2-drawer-newchat-toggle{
  flex: 0 0 auto; width: 44px; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(18,140,126,.18); border-left: 1px solid rgba(18,140,126,.14);
  border-top-right-radius: 14px; border-bottom-right-radius: 14px;
  background: #fff; color: var(--idx2-green-700); cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.045);
}
.idx2-drawer-newchat-toggle .idx2-caret{ width: 15px; height: 15px; color: var(--idx2-green-700); }

/* Drawer brand + email ispod logoa (prijavljeni korisnik) */
.idx2-drawer-brand-wrap{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.idx2-drawer-user-email{
  font-size: .78rem; font-weight: 600; color: var(--idx2-muted);
  margin-left: 40px; /* poravnato s tekstom loga (30px logo + 10px gap) */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}

/* Drawer "Nedavni razgovori" — ispod Novi razgovor gumba, prikazuje se
   SAMO ako JS pronađe barem 1 razgovor (inače ostaje [hidden]). */
.idx2-drawer-recent{ margin-top: 14px; }
.idx2-drawer-recent-title{
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--idx2-muted); padding: 0 10px 8px;
}
.idx2-drawer-recent-list{ display: grid; gap: 7px; }
.idx2-drawer-recent-item{
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 10px 11px; border-radius: 10px; text-decoration: none;
  color: var(--idx2-ink); transition: background .14s ease;
}
.idx2-drawer-recent-item:hover{ background: var(--idx2-green-soft); }
.idx2-drawer-recent-item svg{ flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: var(--idx2-muted); }
.idx2-drawer-recent-item-title{
  flex: 1 1 auto; min-width: 0; font-size: .87rem; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.idx2-drawer-recent-item-time{ flex: 0 0 auto; font-size: .76rem; color: var(--idx2-muted); margin-top: 1px; }
.idx2-drawer-recent-showall{ display: block; margin: 10px 6px 2px; padding: 9px 8px; border: none; background: transparent; cursor: pointer; color: var(--idx2-green-700); font-weight: 700; font-size: .85rem; text-align: center; text-decoration: none; border-radius: 10px; }
.idx2-drawer-recent-showall:hover{ text-decoration: underline; background: var(--idx2-green-soft); }
.idx2-dropdown--drawer-newchat{ left: 0; right: 0; min-width: 0; top: calc(100% + 6px); }

/* Cijeli split gumb se označi ZAJEDNO — bez obzira hoverate/klikate li na
   glavni dio (Novi razgovor) ili na strelicu (izbornik), oba dijela
   dobivaju isti istaknuti izgled istovremeno, kao jedan vizualni gumb. */
.idx2-drawer-newchat-wrap:hover .idx2-drawer-newchat-main,
.idx2-drawer-newchat-wrap:hover .idx2-drawer-newchat-toggle,
.idx2-drawer-newchat-wrap.is-open .idx2-drawer-newchat-main,
.idx2-drawer-newchat-wrap.is-open .idx2-drawer-newchat-toggle{
  border-color: #128C7E; background: rgba(18,140,126,.055);
}
.idx2-dropdown{
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 210px;
  background: #fff; border-radius: 14px; border: 1px solid var(--idx2-line);
  box-shadow: var(--idx2-shadow-lg); padding: 6px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
  color: var(--idx2-ink);
}
[data-idx2-dropdown].is-open .idx2-dropdown{ opacity: 1; visibility: visible; transform: translateY(0); }
.idx2-dropdown-item{
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--idx2-ink); text-decoration: none;
  font-size: .88rem; font-weight: 650; cursor: pointer; border: none; background: none; width: 100%;
}
.idx2-dropdown-item:hover{ background: var(--idx2-green-soft); text-decoration: none; color: var(--idx2-ink); }
.idx2-dropdown-item svg{ width: 17px; height: 17px; flex: 0 0 auto; color: var(--idx2-muted); }
.idx2-dropdown-item.idx2-dropdown-danger{ color: #b3261e; }
.idx2-dropdown-item.idx2-dropdown-danger svg{ color: #b3261e; }
.idx2-dropdown-item.idx2-dropdown-danger:hover{ background: rgba(179,38,30,.07); color: #b3261e; }
.idx2-dropdown-sep{ height: 1px; background: var(--idx2-line); margin: 6px 4px; }
.idx2-dropdown-email{ padding: 6px 10px 10px; font-size: .78rem; color: var(--idx2-muted); border-bottom: 1px solid var(--idx2-line); margin-bottom: 6px; word-break: break-all; }

.idx2-icon-btn{
  width: 34px; height: 34px; border-radius: 9px;
  border: none; background: transparent;
  color: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex: 0 0 auto; transition: background .15s ease;
}
.idx2-icon-btn:hover{ background: rgba(255,255,255,.12); }
.idx2-icon-btn svg{ width: 20px; height: 20px; }

@media (min-width: 1180px){
  .idx2-topbar-nav{ display: flex; }
  .idx2-topbar-sep{ display: none; }
  .idx2-account-wrap{ display: block; }
  .idx2-account-link{ display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.idx2-main{ flex: 1; }
.idx2-hero{
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(94,234,212,.14), transparent 60%),
    linear-gradient(180deg, #f7fbfa 0%, var(--idx2-paper) 55%, #f5faf8 100%);
  padding: clamp(10px, 1.4vw, 18px) clamp(20px, 3vw, 48px) 0;
}
.idx2-hero-inner{
  max-width: var(--idx2-maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, .82fr);
  align-items: start;
  gap: clamp(24px, 4.2vw, 54px);
}
.idx2-hero-content{ min-width: 0; padding: 22px 0 0 34px; }
.idx2-hero-title{
  font-size: clamp(2.05rem, 3.6vw, 3.05rem); font-weight: 800; line-height: 1.07;
  letter-spacing: -.02em; color: var(--idx2-ink); margin: 0 0 8px; max-width: 12.8em;
}
.idx2-hero-title em{ font-style: normal; color: var(--idx2-green-700); }
.idx2-hero-sub{ font-size: clamp(.96rem, 1.16vw, 1.08rem); line-height: 1.42; color: var(--idx2-muted); max-width: 43rem; margin: 0; }
.idx2-hero-visual{ min-width: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.idx2-hero-visual img{ width: min(100%, 270px); height: auto; aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(7,94,84,.14)); }

/* --------------------------------------------------------------------------
   Section divider (mali pulsirajući indikator između hero i choice sekcije)
   -------------------------------------------------------------------------- */
.idx2-divider{ max-width: var(--idx2-maxw); margin: 28px auto; padding: 0 clamp(20px, 3vw, 48px); display: flex; justify-content: center; }
.idx2-divider-line{
  width: 100%; height: 1px; background: var(--idx2-line-soft); position: relative;
}
.idx2-divider-pulse{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.7);
  border: 1px solid var(--idx2-line-soft); box-shadow: var(--idx2-shadow-sm);
  display: flex; align-items: center; justify-content: center; color: var(--idx2-green-700);
  opacity: .8;
}
.idx2-divider-pulse svg{ width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Choice section (Odaberite način rada)
   -------------------------------------------------------------------------- */
.idx2-section{ max-width: var(--idx2-maxw); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px) 0; }
.idx2-section-head{ text-align: center; margin-bottom: 26px; }
.idx2-section-title{ font-size: 1.5rem; font-weight: 800; color: var(--idx2-ink); margin: 0 0 6px; }
.idx2-section-sub{ font-size: .92rem; color: var(--idx2-muted); margin: 0; }

.idx2-choice-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px){ .idx2-choice-grid{ grid-template-columns: 1fr; } }

.idx2-choice{
  display: flex; flex-direction: column; gap: 18px;
  background: var(--idx2-panel); border-radius: var(--idx2-radius-lg);
  border: 1.5px solid var(--idx2-line); box-shadow: var(--idx2-shadow);
  padding: 26px 24px; text-align: left; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.idx2-choice.is-interactive:hover{ transform: translateY(-2px); box-shadow: var(--idx2-shadow-lg); }
.idx2-choice.is-disabled{ cursor: not-allowed; opacity: .6; }
/* .idx2-choice-main omata media+content: ikona LIJEVO, tekst DESNO
   (usklađeno s index.php .choice-main koji koristi grid na svim veličinama).
   Ranije je desktop imao ikonu iznad teksta - sada je horizontalno kao stara
   verzija. */
.idx2-choice-main{
  display: grid;
  grid-template-columns: minmax(86px, 108px) minmax(0, 1fr);
  gap: 18px; align-items: start;
  flex: 1 1 auto;
}
.idx2-choice-content{ min-width: 0; }
.idx2-choice-media{
  width: 100%; max-width: 108px; aspect-ratio: 1 / 1; border-radius: 26px;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  overflow: visible;
}
.idx2-choice-media img{ width: 100%; height: 100%; object-fit: contain; }
.idx2-choice-title{ font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.idx2-choice-desc{ font-size: .9rem; line-height: 1.45; color: var(--idx2-muted); margin: 0; }
.idx2-choice-cta{
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 46px; border-radius: var(--idx2-radius-pill); font-weight: 750;
  font-size: .92rem; margin-top: auto; text-decoration: none; pointer-events: none;
  width: 100%;
}
.idx2-choice-cta-label{ text-align: center; }
.idx2-choice-cta svg{
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
}

.idx2-choice.patient .idx2-choice-media{ background: radial-gradient(circle, var(--idx2-green-soft) 55%, transparent 78%); }
.idx2-choice.patient .idx2-choice-title{ color: var(--idx2-green-700); }
.idx2-choice.patient{ border-color: rgba(8,121,108,.3); box-shadow: 0 0 0 1px rgba(8,121,108,.06), var(--idx2-shadow); }
.idx2-choice.patient .idx2-choice-cta{ background: #fff; color: var(--idx2-green-700); border: 1.5px solid var(--idx2-green); }

.idx2-choice.pro .idx2-choice-media{ background: radial-gradient(circle, var(--idx2-blue-soft) 55%, transparent 78%); }
.idx2-choice.pro .idx2-choice-title{ color: var(--idx2-blue); }
.idx2-choice.pro .idx2-choice-cta{ background: #fff; color: var(--idx2-blue); border: 1.5px solid var(--idx2-blue); }

.idx2-choice.allied .idx2-choice-media{ background: radial-gradient(circle, var(--idx2-purple-soft) 55%, transparent 78%); }
.idx2-choice.allied .idx2-choice-title{ color: var(--idx2-purple); }
.idx2-choice.allied .idx2-choice-cta{ background: #fff; color: var(--idx2-purple); border: 1.5px solid var(--idx2-purple); }

/* CTA gumb dobiva punu ispunu SAMO kad je kartica hoverirana/fokusirana
   (inače je outline). Boja ispune prati tip kartice. */
.idx2-choice.patient.is-interactive:hover .idx2-choice-cta,
.idx2-choice.patient.is-interactive:focus-visible .idx2-choice-cta{
  background: linear-gradient(135deg, var(--idx2-green-dark), var(--idx2-green-700) 65%, #06423b);
  color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 20px rgba(255,255,255,.08), 0 6px 18px rgba(8,121,108,.32);
}
.idx2-choice.pro.is-interactive:hover .idx2-choice-cta,
.idx2-choice.pro.is-interactive:focus-visible .idx2-choice-cta{
  background: var(--idx2-blue); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 20px rgba(255,255,255,.08), 0 6px 18px rgba(7,94,184,.32);
}
.idx2-choice.allied.is-interactive:hover .idx2-choice-cta,
.idx2-choice.allied.is-interactive:focus-visible .idx2-choice-cta{
  background: var(--idx2-purple); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 20px rgba(255,255,255,.08), 0 6px 18px rgba(96,66,166,.32);
}


/* --------------------------------------------------------------------------
   Info banner
   -------------------------------------------------------------------------- */
.idx2-note{ margin: 24px 0 0; }
.idx2-note-inner{
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(8,121,108,.07); border: 1px solid rgba(8,121,108,.14);
  border-radius: var(--idx2-radius-sm); padding: 14px 18px; font-size: .85rem;
  color: var(--idx2-muted); line-height: 1.5;
}
.idx2-note-inner strong{ color: var(--idx2-green-700); font-weight: 750; }
.idx2-note-inner svg{ width: 20px; height: 20px; flex: 0 0 auto; color: var(--idx2-green-700); margin-top: 1px; }

/* --------------------------------------------------------------------------
   Hub cards (Baza lijekova / Liste čekanja)
   -------------------------------------------------------------------------- */
.idx2-hub{ max-width: var(--idx2-maxw); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px) 56px; }
.idx2-hub-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 720px){ .idx2-hub-grid{ grid-template-columns: 1fr; } }
.idx2-hub-link{
  display: flex; align-items: center; gap: 14px;
  background: var(--idx2-panel); border: 1.5px solid var(--idx2-line);
  border-radius: var(--idx2-radius); padding: 18px 20px; text-decoration: none;
  color: var(--idx2-text); box-shadow: var(--idx2-shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.idx2-hub-link:hover{ border-color: rgba(8,121,108,.35); box-shadow: var(--idx2-shadow); transform: translateY(-1px); color: var(--idx2-text); text-decoration: none; }
.idx2-hub-icon{
  width: 52px; height: 52px; border-radius: 16px; background: var(--idx2-green-soft);
  color: var(--idx2-green-700); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.idx2-hub-icon svg{ width: 26px; height: 26px; }
.idx2-hub-text{ flex: 1; min-width: 0; }
.idx2-hub-title{ display: block; font-weight: 800; font-size: .92rem; color: var(--idx2-ink); }
.idx2-hub-desc{ display: block; font-size: .76rem; color: var(--idx2-muted); margin-top: 2px; }
.idx2-hub-arrow{ flex: 0 0 auto; color: var(--idx2-muted-2); }
.idx2-hub-arrow svg{ width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Consent hint (prikazan ako korisnik još nije prihvatio kolačiće) + error
   -------------------------------------------------------------------------- */
.idx2-consent-hint{
  max-width: var(--idx2-maxw); margin: 0 auto 18px; padding: 14px 18px;
  background: #fff7ed; border: 1px solid rgba(194,120,3,.25); border-radius: var(--idx2-radius-sm);
  font-size: .88rem; color: var(--idx2-text); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.idx2-consent-hint-actions{ display: flex; gap: 8px; }

/* Cookie wall: prije prihvaćanja kolačića blokiramo interakciju sa sadržajem
   stranice (hero, kartice, hub, footer), ali consent-hint (žuta traka s
   "Prihvati sve kolačiće") ostaje potpuno interaktivna. Server postavlja
   body.idx2-cookie-wall kad korisnik nije dao privolu. */

body.idx2-cookie-wall .idx2-hero,
body.idx2-cookie-wall .idx2-section,
body.idx2-cookie-wall .idx2-hub,
body.idx2-cookie-wall .idxf,
body.idx2-cookie-wall .idx2-divider{
  pointer-events: none;
  user-select: none;
  opacity: .55;
  filter: grayscale(.15);
}
body.idx2-cookie-wall .idx2-consent-hint{
  pointer-events: auto;
  user-select: auto;
  opacity: 1;
  filter: none;
}
.idx2-error-banner{
  max-width: var(--idx2-maxw); margin: 0 auto 18px; padding: 14px 18px;
  background: #fef2f2; border: 1px solid rgba(220,38,38,.25); border-radius: var(--idx2-radius-sm);
  font-size: .88rem; color: #991b1b;
}


/* --------------------------------------------------------------------------
   MOBILE DRAWER — off-canvas nav otvoren hamburgerom, isti obrazac kao
   .bl2-drawer u baza-lijekova2.php (isti pozicioniranje/animacija/z-index),
   samo bez search retka (naslovnica nema search u topbaru) i bez
   drug-specifičnih stavki. Zamjenjuje generički AppShell::drawer().
   -------------------------------------------------------------------------- */
.idx2-drawer-backdrop{
  position: fixed; inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 205;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.idx2-drawer-backdrop.is-visible{
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity .2s ease, visibility 0s linear 0s;
}
.idx2-drawer{
  position: fixed; top: 0; left: 0; bottom: 0;
  height: 100dvh; width: min(82vw, 318px); max-width: 318px;
  z-index: 210;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,.28);
  display: flex; flex-direction: column;
  padding: 16px 12px;
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(-105%);
  transition: transform .22s ease;
}
.idx2-drawer.is-open{ transform: translateX(0); }
.idx2-drawer-head{ display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 16px; }
.idx2-drawer-brand{ display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; color: var(--idx2-ink); text-decoration: none; }
.idx2-drawer-brand img{ width: 30px; height: 30px; }
.idx2-drawer-close{
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--idx2-line); background: #fff; color: var(--idx2-muted);
  font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.idx2-drawer-close:hover{ background: var(--idx2-green-soft); color: var(--idx2-green-700); }
.idx2-drawer-divider{ height: 1px; margin: 8px 6px 6px; background: rgba(15,23,42,.055); }
.idx2-drawer-newchat{
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%;
  height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(18,140,126,.18);
  background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.045);
  color: var(--idx2-green-700); text-decoration: none; font-size: .96rem; font-weight: 700;
}
.idx2-drawer-newchat:hover{ border-color: #128C7E; background: rgba(18,140,126,.055); text-decoration: none; color: var(--idx2-green-700); }
.idx2-drawer-newchat svg{ flex: 0 0 auto; width: 18px; height: 18px; }
.idx2-drawer-nav{ display: grid; gap: 1px; padding: 0 6px; }
.idx2-drawer-item{
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 10px; border-radius: 11px; border: none; background: transparent;
  color: var(--idx2-ink); text-decoration: none; font-size: .88rem; font-weight: 600;
  cursor: pointer;
}
.idx2-drawer-item:hover{ background: rgba(18,140,126,.055); text-decoration: none; color: var(--idx2-ink); }
.idx2-drawer-item svg{ flex: 0 0 auto; width: 18px; height: 18px; display: block; }
.idx2-drawer-item.is-active{ background: rgba(94,234,212,.22); color: var(--idx2-green-700); font-weight: 700; }
.idx2-drawer-foot-item.is-active{ background: rgba(94,234,212,.22); color: var(--idx2-green-700); font-weight: 700; }
.idx2-drawer-foot-item.is-active svg{ color: var(--idx2-green-700); }
.idx2-drawer-footer{ margin-top: auto; display: grid; gap: 3px; padding: 14px 6px 8px; border-top: 1px solid rgba(15,23,42,.055); }
.idx2-drawer-foot-item{
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 10px; border-radius: 11px; border: none; background: transparent;
  color: var(--idx2-ink); text-decoration: none; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.idx2-drawer-foot-item:hover{ background: rgba(18,140,126,.055); text-decoration: none; color: var(--idx2-ink); }
.idx2-drawer-foot-item svg{ flex: 0 0 auto; width: 17px; height: 17px; color: var(--idx2-muted); }
.idx2-drawer-foot-danger{ color: #b3261e; }
.idx2-drawer-foot-danger svg{ color: #b3261e; }
.idx2-drawer-foot-danger:hover{ background: rgba(179,38,30,.07); color: #b3261e; }
/* Scroll lock dok je drawer otvoren — mora nadjačati app.css-ov
   html.public-scroll-html body.public-scroll-page{overflow-y:auto!important}
   (ista specifičnost bi ovisila o cascade redu; ovako dodatna klasa
   garantira veću specifičnost bez obzira na redoslijed učitavanja). */
html.public-scroll-html.idx2-scroll-lock body.public-scroll-page{
  overflow: hidden !important;
}

/* ==========================================================================
   MOBILE OVERRIDES — kompaktniji raspored bliži starom redizajnu naslovnice.
   Jedan dosljedan bočni inset (--idx2-mobile-inset) kroz hero/section/hub/
   note/divider/footer da elementi ostanu poravnati. Desktop (>720px)
   navigacija/topbar-nav ostaju netaknuti - ovdje diramo samo mobilni
   topbar-right/account/visinu, ne i desktop nav.
   ========================================================================== */
@media (max-width: 720px){
  :root{ --idx2-mobile-inset: 20px; }

  /* Logo tekst blize slici loga (samo tekst se pomice, slika ostaje) */
  .idx2-topbar-brand{ gap: 5px; }

  /* --- Topbar: "Moj račun" je sad direktan link bez dropdowna
     (margin-left:auto na topbar-right radi neovisno o tome je li nav
     vidljiv). Visina/gradient/hamburger su sad jednoobrazni sa
     desktopom (usklađeno s chat2.php), nema posebnog mobilnog override-a. --- */

  /* --- Hero: tekst preko pune širine (ne stupac uz ilustraciju),
     ilustracija je diskretan pozadinski akcent iza teksta, ne kolona
     koja sužava tekst. Visina hero-a dolazi SAMO od teksta. --- */
  .idx2-hero{
    padding: 22px var(--idx2-mobile-inset) 8px;
    position: relative;
    overflow: hidden;
  }
  .idx2-hero-inner{ display: block; position: relative; max-width: 100%; }
  .idx2-hero-content{ max-width: 100%; position: relative; z-index: 2; padding: 0; }
  .idx2-hero-title{ font-size: 1.65rem; line-height: 1.12; letter-spacing: -.025em; margin-bottom: 10px; }
  .idx2-hero-sub{ font-size: .97rem; line-height: 1.44; max-width: 95%; }
  .idx2-hero-visual{
    position: absolute; top: -30px; right: -16px;
    width: 44vw; max-width: 180px; min-width: 0;
    display: block;
    opacity: .4; pointer-events: none; z-index: 1;
  }
  .idx2-hero-visual img{ width: 100%; height: auto; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; filter: none; }

  /* --- Divider odmah nakon hero-a, simetrican razmak gore/dolje --- */
  .idx2-divider{ padding: 0 var(--idx2-mobile-inset); margin: 22px auto; }

  /* --- Section head bliže divideru --- */
  .idx2-section{ padding: 0 var(--idx2-mobile-inset) 0; }
  .idx2-section-head{ margin-bottom: 15px; }
  .idx2-section-title{ font-size: 1.26rem; }
  .idx2-section-sub{ font-size: .9rem; }

  /* --- Choice kartice: bazno pravilo je već grid (ikona lijevo, tekst
     desno) kao stari redizajn. Mobilni samo smanji ikonu/razmake. --- */
  .idx2-choice-grid{ gap: 14px; }
  .idx2-choice{ padding: 18px 17px 16px; border-radius: 21px; gap: 12px; }
  .idx2-choice-main{ grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .idx2-choice-media{ max-width: 88px; border-radius: 20px; }
  .idx2-choice-content{ padding-top: 2px; }
  .idx2-choice-title{ font-size: 1.05rem; margin-bottom: 4px; }
  .idx2-choice-desc{ font-size: .87rem; line-height: 1.4; }
  .idx2-choice-cta{ height: 46px; margin-top: 2px; }

  /* --- Napomena: kompaktnija (bez vlastitog horizontalnog paddinga -
     roditelj .idx2-section već daje inset, vidi bazno pravilo) --- */
  .idx2-note{ margin: 19px 0 0; }
  .idx2-note-inner{ border-radius: 16px; padding: 12px 13px; font-size: .85rem; line-height: 1.4; gap: 10px; }
  .idx2-note-inner svg{ width: 18px; height: 18px; }

  /* --- Hub kartice --- */
  .idx2-hub{ padding: 0 var(--idx2-mobile-inset) 30px; }
  .idx2-hub-grid{ gap: 12px; }
  .idx2-hub-link{ min-height: 90px; padding: 14px 15px; border-radius: 21px; gap: 13px; }
  .idx2-hub-icon{ width: 54px; height: 54px; }
  .idx2-hub-title{ font-size: 1.1rem; }
  .idx2-hub-desc{ font-size: .79rem; }

  /* --- Footer: dosljedan inset; kontakt (mail/telefon) u jednom
     vodoravnom redu umjesto jedan ispod drugog. --- */
  
  
}

@media (max-width: 520px){
  .idx2-hero-visual{ width: 40vw; max-width: 160px; }
  .idx2-choice-main{ grid-template-columns: 84px minmax(0, 1fr); }
  .idx2-choice-media{ max-width: 84px; }
}

@media (max-width: 380px){
  .idx2-hero{ padding-top: 20px; }
  .idx2-hero-visual{ width: 36vw; max-width: 140px; }
  .idx2-hero-title{ font-size: 1.45rem; letter-spacing: -.02em; }
  .idx2-choice{ padding: 17px 16px 15px; }
  .idx2-choice-media{ max-width: 78px; border-radius: 18px; }
  .idx2-choice-main{ grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  
}

/* ==========================================================================
   NOVI FOOTER (idxf-) — potpuno neovisan o app.css / starim mf- klasama.
   Dizajn prema vizualizaciji: brand blok lijevo + 3 stupca linkova;
   ispod pravni podaci (OIB/MBS/adresa) + kontakt gumbovi; pa copyright.
   ========================================================================== */
.idxf{
  background: linear-gradient(180deg, #eef6f3 0%, #e9f4f0 100%);
  border-top: 1px solid var(--idx2-line-soft);
  color: var(--idx2-muted);
  margin-top: 8px;
}
.idxf-inner{
  max-width: var(--idx2-maxw); margin: 0 auto;
  padding: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 48px) clamp(20px, 2.4vw, 30px);
}

/* --- Gornji dio: brand + stupci --- */
.idxf-top{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

/* Brand blok */
.idxf-brand{ min-width: 0; }
.idxf-brand-head{
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.idxf-brand-logo{ width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }
.idxf-brand-titles{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.idxf-brand-name{ font-size: 1.32rem; font-weight: 850; color: var(--idx2-green-700); letter-spacing: -.02em; line-height: 1.05; }
.idxf-brand-tagline{ font-size: .84rem; color: var(--idx2-muted); font-weight: 500; }
.idxf-brand-company{ margin-top: 18px; font-size: .95rem; font-weight: 850; color: var(--idx2-ink); }
.idxf-brand-desc{ margin: 8px 0 0; font-size: .86rem; line-height: 1.55; color: var(--idx2-muted); max-width: 34ch; }

/* Stupci linkova */
.idxf-cols{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  min-width: 0;
}
.idxf-col{ min-width: 0; }
.idxf-col-title{
  margin: 0 0 14px; font-size: .8rem; font-weight: 850;
  text-transform: uppercase; letter-spacing: .06em; color: var(--idx2-green-700);
}
.idxf-col-list{ list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.idxf-link{
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .92rem; font-weight: 600; line-height: 1.3;
  color: var(--idx2-muted-2); text-decoration: none; text-align: left;
  transition: color .14s ease;
}
.idxf-link:hover{ color: var(--idx2-green-700); }
.idxf-chevron{ width: 15px; height: 15px; flex: 0 0 auto; color: var(--idx2-teal-light); transition: transform .14s ease; }
.idxf-link:hover .idxf-chevron{ transform: translateX(2px); color: var(--idx2-green); }

/* --- Donji dio: pravni podaci + kontakt --- */
.idxf-legal{
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: clamp(18px, 2vw, 24px);
  border-top: 1px solid var(--idx2-line-soft);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px 32px;
}
.idxf-legal-info{
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  font-size: .84rem; color: var(--idx2-muted);
}
.idxf-legal-item{ display: inline-flex; align-items: center; gap: 7px; }
.idxf-legal-item svg{ width: 17px; height: 17px; flex: 0 0 auto; color: var(--idx2-green-700); opacity: .85; }
.idxf-legal-sep{ color: var(--idx2-line); user-select: none; }
.idxf-contact{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.idxf-contact-btn{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: var(--idx2-radius-pill);
  background: var(--idx2-panel); border: 1px solid var(--idx2-line-soft);
  box-shadow: var(--idx2-shadow-sm);
  font-size: .88rem; font-weight: 800; color: var(--idx2-green-700);
  text-decoration: none; white-space: nowrap; transition: border-color .14s ease, box-shadow .14s ease;
}
.idxf-contact-btn:hover{ border-color: var(--idx2-green); box-shadow: var(--idx2-shadow); }
.idxf-contact-btn svg{ width: 18px; height: 18px; flex: 0 0 auto; }

/* --- Copyright --- */
.idxf-copy{
  margin-top: clamp(20px, 2.4vw, 28px); text-align: center;
  font-size: .8rem; color: var(--idx2-muted); opacity: .8;
}

/* --- Tablet: brand iznad stupaca --- */
@media (max-width: 860px){
  .idxf-top{ grid-template-columns: 1fr; gap: 30px; }
}

/* --- Mobitel --- */
@media (max-width: 640px){
  /* Izravnaj ugniježđenje: idxf-top i idxf-legal postaju "prozirni"
     pa njihova djeca postaju direktna djeca idxf-inner i mogu se
     preurediti order-om u jedan stupac. */
  .idxf-inner{ padding: 30px var(--idx2-mobile-inset, 20px) 22px; display: flex; flex-direction: column; }
  .idxf-top{ display: contents; }
  .idxf-legal{ display: contents; }

  /* Redoslijed prema vizualizaciji:
     1) stupci linkova  2) brand (logo+SINTIS+OIB/MBS)  3) gumbi  4) copyright */
  .idxf-cols{ order: 1; gap: 18px 14px; }
  .idxf-brand{ order: 2; }
  .idxf-legal-info{ order: 3; }
  .idxf-contact{ order: 4; }
  .idxf-copy{ order: 5; }

  /* Naslovi stupaca centrirani */
  .idxf-col-title{ margin-bottom: 12px; font-size: .76rem; text-align: center; }
  .idxf-col-list{ gap: 12px; }
  .idxf-link{ font-size: .9rem; }

  /* Brand blok: logo + SINTIS naziv u istoj vertikalnoj liniji (prvi red),
     OIB/MBS/Sjedište svaki u svom redu ispod, poravnati sa SINTIS nazivom.
     Linija iznad odvaja od stupaca. Tagline i dugi opis skriveni. */
  .idxf-brand{
    margin-top: 20px; padding-top: 22px;
    border-top: 1px solid var(--idx2-line-soft);
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  }
  .idxf-brand-head{ display: inline-flex; align-items: center; }
  .idxf-brand-logo{ width: 58px; height: 58px; }
  .idxf-brand-tagline{ display: none; }
  .idxf-brand-name{ display: none; }          /* naziv "Zdravko.ai" skriven — SINTIS je naslov bloka */
  .idxf-brand-company{ margin-top: 0; font-size: 1.1rem; align-self: start; line-height: 1; }
  .idxf-brand-desc{ display: none; }

  /* OIB/MBS/Sjedište: svaki u svom redu, ispod SINTIS naziva (poravnato
     s njim, desno od loga preko margin-left). */
  .idxf-legal-info{
    grid-column: 1 / -1;
    margin-top: -30px; margin-left: 82px;     /* poravnato sa SINTIS X pozicijom, blizu loga; neg. margin diže OIB tik ispod SINTIS */
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    font-size: .82rem; line-height: 1.3; letter-spacing: -.01em; color: var(--idx2-muted);
  }
  .idxf-legal-info .idxf-legal-item svg{ display: none; }  /* ikone nepotrebne u kompaktnom mobilnom prikazu */
  .idxf-legal-info .idxf-legal-sep{ display: none; }        /* separatori nepotrebni kad je svaki u svom redu */

  /* Kontakt gumbi jedan pored drugog, jednake širine. Kompaktan
     font/padding da oba teksta (email ~ telefon duljina) stanu cijela. */
  .idxf-contact{ margin-top: 20px; width: 100%; flex-wrap: nowrap; gap: 5px; }
  .idxf-contact-btn{ flex: 1 1 0; min-width: 0; justify-content: center; padding: 10px 5px; font-size: .78rem; gap: 5px; }
  .idxf-contact-btn svg{ width: 15px; height: 15px; }
  .idxf-contact-btn span{ overflow: hidden; text-overflow: ellipsis; }

  .idxf-copy{ margin-top: 20px; font-size: .76rem; }
}

/* --- Uski mobitel --- */
@media (max-width: 480px){
  .idxf-brand-logo{ width: 52px; height: 52px; }
  .idxf-legal-info{ margin-left: 76px; }   /* poravnato sa SINTIS (logo 52px + gap + poravnanje) */
}
