/* Gradjevno App — zajednički CSS modul (tražilica + rezultati + modali).
   Izvor: izdvojeno iz hr-gradjevno.css. Učitava ga GradjevnoApp.mount() automatski. */
:root, .grd-app {
  --primary: #2D6A4F; --green-dark: #1B4332; --green: #2D6A4F; --green-light: #52B788;
  --gold: #D4A574; --gold-light: #F5E6D3; --red: #DC2626; --bg: #F4F7F4; --card: #FFFFFF;
  --text: #1B4332; --muted: #64748B; --radius: 16px; --shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.grd-app { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); line-height: 1.6; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(82,183,136,0.4)} 50%{box-shadow:0 0 0 16px rgba(82,183,136,0)} }

    .ppuo-modal-overlay {
      position: fixed; inset: 0; background: rgba(0,0,0,0.6);
      display: none; align-items: center; justify-content: center;
      z-index: 9999; padding: 20px;
    }
    .ppuo-modal-overlay.active { display: flex; }
    .ppuo-modal-box {
      background: white; border-radius: 12px;
      max-width: 900px; width: 100%; max-height: 90vh;
      display: flex; flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      overflow: hidden;
    }
    .ppuo-modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 16px 20px; border-bottom: 1px solid #eee;
    }
    .ppuo-modal-header h3 { margin: 0; font-size: 16px; }
    .ppuo-modal-close {
      background: none; border: none; font-size: 24px; cursor: pointer;
      color: #666; line-height: 1;
    }
    .ppuo-modal-body {
      flex: 1; overflow: auto; position: relative;
      background: #f5f5f5;
    }
    .ppuo-modal-body img {
      display: block; width: auto; height: auto;
    }
    .ppuo-marker {
      position: absolute;
      width: 24px; height: 24px;
      margin-left: -12px; margin-top: -12px;
      background: rgba(239,68,68,0.7);
      border: 3px solid #DC2626;
      border-radius: 50%;
      box-shadow: 0 0 0 6px rgba(239,68,68,0.3);
      animation: markerPulse 1.5s ease-in-out infinite;
      pointer-events: none;
    }
    @keyframes markerPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.3); }
    }
    .ppuo-modal-footer {
      padding: 12px 20px; border-top: 1px solid #eee;
      display: flex; gap: 12px; justify-content: flex-end;
    }
    .ppuo-modal-footer a {
      font-size: 13px; color: var(--grd-accent); font-weight: 600;
    }

    /* ============================================================
       F2.5 — NATIVE SEARCH FORM + RESULTS (green theme)
       ============================================================ */
    .gn-section { background: linear-gradient(180deg, #F4F7F4 0%, #EDF3EE 100%); padding: 56px 0 64px; }
    .gn-container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

    .gn-form-card {
      background: var(--card); border-radius: 24px;
      box-shadow: 0 16px 48px rgba(27,67,50,0.10), 0 4px 16px rgba(0,0,0,0.04);
      overflow: hidden;
    }
    .gn-form-header {
      background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
      padding: 24px 30px; display: flex; align-items: center; gap: 14px;
    }
    .gn-form-icon {
      width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
      background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
    }
    .gn-form-header h2 { font-size: 18px; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
    .gn-form-header p { font-size: 13px; color: rgba(255,255,255,0.82); margin: 3px 0 0; }
    .gn-form-body { padding: 26px 30px 30px; }
    @media (max-width: 600px) {
      .gn-form-header { padding: 20px 18px; }
      .gn-form-body { padding: 22px 18px 26px; }
    }

    .gn-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    @media (max-width: 640px) { .gn-form-grid { grid-template-columns: 1fr; } }

    .gn-field { position: relative; }
    .gn-field > label {
      display: flex; align-items: center; gap: 6px;
      font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 8px;
    }
    .gn-input-wrap { position: relative; }
    .gn-input-wrap input {
      width: 100%; height: 54px; padding: 0 16px;
      border: 2px solid #E2E8F0; border-radius: 12px;
      font-size: 15px; font-family: 'Plus Jakarta Sans', sans-serif;
      font-weight: 500; color: var(--text);
      background: #F8FAFC; -webkit-appearance: none; appearance: none;
      transition: border-color .18s, box-shadow .18s, background .18s;
    }
    .gn-input-wrap input::placeholder { color: #94A3B8; font-weight: 400; }
    .gn-input-wrap input:hover { border-color: #CBD5E1; background: #fff; }
    .gn-input-wrap input:focus {
      outline: none; border-color: var(--green); background: #fff;
      box-shadow: 0 0 0 4px rgba(45,106,79,0.12);
    }
    .gn-autocomplete {
      position: absolute; top: calc(100% + 6px); left: 0; right: 0;
      background: #fff; border: 2px solid #E2E8F0; border-radius: 12px;
      box-shadow: 0 16px 40px rgba(0,0,0,0.12); z-index: 50;
      max-height: 240px; overflow-y: auto; display: none;
    }
    .gn-autocomplete.open { display: block; }
    .gn-ac-item { padding: 11px 16px; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
    .gn-ac-item:hover, .gn-ac-item.active { background: #F0F7F3; color: var(--green); }
    .gn-ac-zupanija { flex-shrink: 0; font-size: 11.5px; font-weight: 400; color: #8AA39B; letter-spacing: 0.01em; }

    .gn-submit {
      width: 100%; height: 54px; margin-top: 16px;
      background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
      color: #fff; border: none; border-radius: 12px;
      font-size: 16px; font-weight: 700; font-family: inherit;
      cursor: pointer; transition: transform .18s, box-shadow .18s;
      display: flex; align-items: center; justify-content: center; gap: 10px; letter-spacing: .3px;
    }
    .gn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(45,106,79,0.35); }
    .gn-submit:disabled { opacity: .72; cursor: not-allowed; }
    .gn-spinner {
      display:inline-block; vertical-align:middle; margin-right:6px;
      width:22px; height:22px; border:3px solid rgba(255,255,255,0.3);
      border-top-color:#fff; border-radius:50%; animation:gnSpin .7s linear infinite;
    }
    @keyframes gnSpin { to { transform: rotate(360deg); } }

    .gn-error {
      display: none; align-items: center; gap: 10px;
      margin-top: 14px; padding: 12px 16px;
      background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px;
      color: var(--red); font-size: 14px; font-weight: 500;
    }
    .gn-error.show { display: flex; }

    /* ===== RESULTS ===== */
    .gn-results { margin-top: 28px; display: none; }
    .gn-results.show { display: block; animation: gnFadeUp .5s ease; }
    @keyframes gnFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

    /* Parcel header (number + municipality) — sits above the visualization */
    .gn-parcel-head {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      font-size: 15px; font-weight: 700; color: var(--text);
      margin-bottom: 12px;
    }
    .gn-parcel-head-num { color: var(--green-dark); }
    .gn-parcel-head-sep { color: var(--muted); font-weight: 400; }
    .gn-parcel-head-muni { color: var(--muted); font-weight: 600; }

    /* Parcel visualization (server-rendered SVG) */
    .gn-viz {
      background: var(--card); border: 1px solid #E5E7EB; border-radius: 16px;
      padding: 10px; margin-bottom: 18px; overflow: hidden;
      display: flex; align-items: center; justify-content: center;
    }
    .gn-viz svg { width: 100%; height: auto; max-height: 520px; display: block; border-radius: 10px; }
    .gn-viz-loading { color: var(--muted); font-size: 13px; padding: 28px 0; }

    /* OSM karta + SVG vizualizacija (side by side) */
    .gn-viz-map-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
    .gn-viz-map-row .gn-viz { margin-bottom: 0; }
    .gn-map-col { display: flex; flex-direction: column; }
    .gn-map { background: var(--card); border: 1px solid #E5E7EB; border-radius: 16px; overflow: hidden; height: 400px; position: relative; z-index: 0; }
    .gn-map-loading, .gn-map-error { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; padding: 20px; text-align: center; }
    .gn-map .leaflet-container { height: 100%; width: 100%; background: #f0f0f0; }
    .gn-map-legend { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-top: 8px; background: var(--card); border: 1px solid #E5E7EB; border-radius: 12px; font-size: 13px; color: var(--muted); }
    /* Issue #46: GPN overlay toggle ispod mape */
    .gn-map-toggle { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
    .gn-gpn-switch { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; background: var(--card); border: 1px solid #E5E7EB; border-radius: 12px; cursor: pointer; user-select: none; font-size: 13px; color: var(--green-dark); font-weight: 600; }
    .gn-gpn-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
    .gn-gpn-track { position: relative; width: 38px; height: 21px; border-radius: 21px; background: var(--green); transition: background .15s; flex-shrink: 0; }
    .gn-gpn-track::after { content: ''; position: absolute; top: 2px; left: 19px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
    .gn-gpn-switch input:not(:checked) + .gn-gpn-track { background: #cbd5d0; }
    .gn-gpn-switch input:not(:checked) + .gn-gpn-track::after { transform: translateX(-18px); }
    .gn-gpn-switch.gn-gpn-disabled { opacity: .6; cursor: not-allowed; color: var(--muted); font-weight: 500; }
    .gn-gpn-switch.gn-gpn-disabled .gn-gpn-track { background: #e2e8e4; }
    .gn-legend-swatch { display: inline-block; width: 22px; height: 14px; border-radius: 3px; background: #FDE047; border: 1px solid #CA8A04; flex-shrink: 0; }
    @media (max-width: 768px) {
      .gn-viz-map-row { grid-template-columns: 1fr; }
      .gn-map { height: 320px; }
    }

    .gn-verdict {
      border-radius: 18px; padding: 22px 26px; margin-bottom: 20px;
      display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; border: 2px solid;
    }
    .gn-verdict.yes { background: linear-gradient(135deg, #E8F5E9, #F1F8F4); border-color: var(--green-light); }
    .gn-verdict.no  { background: linear-gradient(135deg, #FFEBEE, #FFF5F6); border-color: #FCA5A5; }
    .gn-verdict.warn{ background: linear-gradient(135deg, #FFF8E1, #FFFDF5); border-color: var(--gold); }

    /* Zona parcele ispod verdikta (paid tier) */
    .gn-zone-line {
      background: #F0F7F4; border: 1px solid var(--green-light); border-left: 4px solid var(--green);
      border-radius: 10px; padding: 12px 16px; margin: -8px 0 18px; font-size: 14px; line-height: 1.5;
      color: var(--text);
    }
    .gn-zone-line strong { color: var(--green-dark); font-weight: 700; }

    /* eKatalog version warning (MGIPU zastario) */
    .gn-version-warn {
      display: flex; align-items: flex-start; gap: 12px;
      background: linear-gradient(135deg, #FFF3E0, #FFF8F0);
      border: 1.5px solid #FFB74D; border-left: 5px solid #FB8C00;
      border-radius: 14px; scroll-margin-top: 20px;
      padding: 16px 18px; margin-bottom: 16px; font-size: 13.5px; line-height: 1.55;
      color: #5D4037;
    }
    .gn-version-warn-icon { flex-shrink: 0; font-size: 22px; line-height: 1.3; }
    .gn-version-warn-body strong { color: #E65100; font-size: 15px; display: block; margin-bottom: 6px; }
    .gn-version-warn-lead { margin: 0 0 8px; font-weight: 500; }
    .gn-version-warn-lead b { color: #BF360C; }
    .gn-version-warn-detail { margin: 0 0 4px; color: #6D4C41; font-size: 13px; }
    .gn-version-warn-links { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
    .gn-version-warn-links a { font-size: 13px; font-weight: 600; color: var(--green-dark); text-decoration: underline; }
    .gn-version-warn-links a.gn-version-pdf {
      display: inline-block; background: var(--green-dark); color: #fff; text-decoration: none;
      padding: 8px 14px; border-radius: 8px; font-weight: 700; align-self: flex-start;
    }
    .gn-version-warn-links a.gn-version-pdf:hover { background: var(--green); }
    .gn-version-warn-links a.gn-premium-link { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; }

    /* eKatalog version INFO (DA-verdict varijanta — neutralna, bez alarma) */
    .gn-version-info {
      display: flex; align-items: flex-start; gap: 12px;
      background: linear-gradient(135deg, #F0F7FF, #F7FAFD);
      border: 1.5px solid #B0C4DE; border-left: 5px solid #6B8CAE;
      border-radius: 14px; scroll-margin-top: 20px;
      padding: 12px 16px; margin-bottom: 16px; font-size: 13px; line-height: 1.55;
      color: #3D4E5C;
    }
    .gn-version-info .gn-version-warn-icon { font-size: 18px; }
    .gn-version-info .gn-version-warn-body strong { color: #41586E; font-size: 14px; display: block; margin-bottom: 4px; }
    .gn-version-info .gn-version-warn-lead { margin: 0; font-weight: 400; }
    .gn-version-info .gn-version-warn-lead b { color: #2E4A63; }
    .gn-version-warn-links a.gn-premium-link:hover { border-bottom-color: var(--gold); }
    /* Issue #46: viz zoom (klik → lightbox s velikom slikom) */
    .gn-viz-zoomable { cursor: zoom-in; }
    .gn-viz-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20,25,20,0.78); backdrop-filter: blur(4px); }
    .gn-viz-lightbox[hidden] { display: none; }
    .gn-viz-lightbox-inner { position: relative; width: 100%; max-width: 1100px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
    .gn-viz-lightbox-close { position: sticky; top: 0; float: right; width: 34px; height: 34px; border: none; background: #f3f4f2; border-radius: 50%; font-size: 19px; color: var(--muted); cursor: pointer; line-height: 1; z-index: 2; }
    .gn-viz-lightbox-close:hover { background: #e8eae5; }
    .gn-verdict-icon {
      flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center; font-size: 26px;
    }
    .gn-verdict.yes .gn-verdict-icon { background: rgba(82,183,136,0.18); }
    .gn-verdict.no  .gn-verdict-icon { background: rgba(220,38,38,0.12); }
    .gn-verdict.warn .gn-verdict-icon { background: rgba(212,165,116,0.20); }
    .gn-verdict-title { font-size: 20px; font-weight: 800; line-height: 1.2; }
    .gn-verdict.yes .gn-verdict-title { color: var(--green-dark); }
    .gn-verdict.no  .gn-verdict-title { color: var(--red); }
    .gn-verdict.warn .gn-verdict-title { color: #92640C; }
    .gn-verdict-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

    .gn-key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
    @media (max-width: 700px) { .gn-key-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 400px) { .gn-key-grid { grid-template-columns: 1fr; } }
    .gn-key-card {
      background: var(--card); border: 1px solid #E5E7EB; border-radius: 14px;
      padding: 16px 14px; text-align: center;
      transition: transform .2s, box-shadow .2s, border-color .2s;
    }
    .gn-key-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.07); border-color: var(--green-light); }
    .gn-key-card .gn-key-icon { font-size: 22px; display: block; margin-bottom: 4px; }
    .gn-key-card .gn-key-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 4px; }
    .gn-key-card .gn-key-value { font-size: 21px; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
    .gn-key-card .gn-key-detail { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

    .gn-info-card {
      background: var(--card); border: 1px solid #E5E7EB; border-radius: 14px;
      padding: 16px 18px; margin-bottom: 14px;
    }
    .gn-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
    .gn-info-row:last-child { border-bottom: none; }
    .gn-info-row .gn-ir-label { color: var(--muted); font-weight: 500; }
    .gn-info-row .gn-ir-value { color: var(--text); font-weight: 700; text-align: right; }

    /* F7-A: Detaljni uvjeti gradnje — napomene */
    .gn-detail-note { font-size: 13px; color: #475569; line-height: 1.5; padding: 10px 14px; background: #F8FAFC; border-radius: 10px; margin-bottom: 8px; }
    .gn-detail-note-label { font-weight: 600; color: #334155; }
    .gn-detail-source { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 8px; }

    .gn-section-title {
      font-size: 15px; font-weight: 700; color: var(--text);
      margin: 22px 0 12px; display: flex; align-items: center; gap: 8px;
    }

    /* ─── F8: Sigurnosni faktori (issue #51) ─── */
    .gn-safety-card {
      background: var(--card); border: 1px solid #E5E7EB; border-radius: 14px;
      padding: 16px 18px; margin-bottom: 14px;
    }
    .gn-safety-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }
    .gn-safety-row:last-of-type { border-bottom: none; }
    .gn-safety-icon { flex-shrink: 0; font-size: 16px; line-height: 1.3; }
    .gn-safety-body { flex: 1; min-width: 0; }
    .gn-safety-label { font-weight: 700; color: var(--text); }
    .gn-safety-summary { color: var(--muted); font-size: 13px; margin-top: 1px; }
    .gn-safety-detail { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
    .gn-safety-rec { color: var(--text); font-size: 12.5px; line-height: 1.55; margin-top: 4px; padding: 8px 10px; background: #FFF7ED; border-radius: 8px; border-left: 3px solid #F59E0B; }
    .gn-safety-src { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
    .gn-safety-src a { color: var(--green-dark); text-decoration: underline; }
    .gn-safety-overall { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-weight: 800; font-size: 13.5px; text-align: center; letter-spacing: .4px; }
    .gn-safety-overall.low { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
    .gn-safety-overall.medium { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }
    .gn-safety-overall.high { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
    .gn-safety-overall.unknown { background: #F3F4F6; color: #6B7280; border: 1px solid #E5E7EB; }
    .gn-safety-locked-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }

    .gn-bo-list { display: flex; flex-direction: column; gap: 10px; }
    .gn-bo-card {
      background: var(--card); border: 1px solid #E5E7EB; border-radius: 14px;
      padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px;
      transition: border-color .2s, box-shadow .2s;
    }
    .gn-bo-card.match { border-left: 4px solid var(--green-light); }
    .gn-bo-card.nomatch { border-left: 4px solid #E5E7EB; opacity: .62; background: #FAFBFC; }
    .gn-bo-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
    .gn-bo-icon { flex-shrink: 0; font-size: 20px; line-height: 1.2; }
    .gn-bo-card.match .gn-bo-icon { color: var(--green); }
    .gn-bo-card.nomatch .gn-bo-icon { color: #9CA3AF; }
    .gn-bo-body { flex: 1; min-width: 0; }
    .gn-bo-title { font-size: 14.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
    .gn-bo-card.nomatch .gn-bo-title { color: var(--muted); }
    .gn-bo-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

    /* Skeleton loading */
    .gn-skeleton { margin-top: 28px; }
    .gn-sk { background: linear-gradient(90deg, #EEF2F1 25%, #F7FAF8 37%, #EEF2F1 63%); background-size: 400% 100%; animation: gnShimmer 1.4s ease infinite; border-radius: 14px; }
    @keyframes gnShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
    .gn-sk-banner { height: 84px; margin-bottom: 18px; }
    .gn-sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
    @media (max-width: 700px) { .gn-sk-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 400px) { .gn-sk-grid { grid-template-columns: 1fr; } }
    .gn-sk-card { height: 92px; }
    .gn-sk-line { height: 16px; margin: 10px 0; }
    .gn-sk-line.short { width: 60%; }

    /* Premium lock */
    .gn-premium { position: relative; }
    .gn-premium .gn-blur { filter: blur(7px); user-select: none; pointer-events: none; }
    .gn-lock {
      position: absolute; inset: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 8px;
      background: rgba(255,255,255,0.72); backdrop-filter: blur(3px);
      border-radius: 14px; text-align: center; padding: 16px;
    }
    .gn-lock .gn-lock-icon { font-size: 30px; }
    .gn-lock .gn-lock-text { font-size: 14px; font-weight: 700; color: var(--green-dark); }
    .gn-lock .gn-lock-sub { font-size: 12px; color: var(--muted); }
    .gn-lock-btn {
      background: linear-gradient(135deg, var(--gold) 0%, #B8895A 100%);
      color: #fff; border: none; padding: 10px 22px; border-radius: 10px;
      font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
      box-shadow: 0 6px 18px rgba(212,165,116,0.4); transition: transform .15s; margin-top: 4px;
    }
    .gn-lock-btn:hover { transform: translateY(-1px); }

    /* F5 Faza A: diskretan premium gating + modal */
    /* Zaključana key kartica */
    .gn-key-card.gn-key-locked { background: #fafbf9; border-style: dashed; border-color: var(--green-light); align-content: start; }
    .gn-key-card.gn-key-locked .gn-key-icon { opacity: .55; }
    .gn-key-card.gn-key-locked .gn-key-label { color: var(--muted); }
    .gn-locked-hint { font-size: 11.5px; line-height: 1.4; color: var(--muted); opacity: .85; margin-top: 2px; }
    /* Zaključana sekcija (slim red) */
    .gn-premium-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 16px; border: 1.5px dashed var(--green-light); border-radius: 12px; background: #fafbf9; }
    .gn-premium-lock { font-size: 15px; opacity: .38; }
    .gn-premium-hint { font-size: 13px; color: var(--muted); flex: 1; min-width: 180px; }
    /* Diskretan premium link */
    .gn-premium-link { font-size: 12.5px; font-weight: 700; color: var(--gold); text-decoration: none; white-space: nowrap; border-bottom: 1px solid transparent; transition: border-color .15s, color .15s; cursor: pointer; }
    .gn-premium-link:hover { border-bottom-color: var(--gold); }
    /* Issue #46: jedan upsell card (free tier) — bulleti + CTA */
    .gn-upsell-card { border: 1.5px solid var(--green-light); border-radius: 14px; background: linear-gradient(135deg, #F7FBF7 0%, #FFFFFF 100%); padding: 20px 20px 16px; margin-bottom: 18px; box-shadow: 0 4px 14px rgba(46,125,50,0.07); }
    .gn-upsell-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--gold); background: rgba(212,165,116,0.12); padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; }
    .gn-upsell-title { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 12px; }
    .gn-upsell-feats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
    .gn-upsell-feats li { font-size: 13.5px; color: #3d4a3d; display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
    .gn-upsell-feats li span { font-size: 15px; flex-shrink: 0; }
    .gn-upsell-cta { display: block; text-align: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff !important; font-size: 14.5px; font-weight: 700; text-decoration: none; border-bottom: none !important; box-shadow: 0 6px 18px rgba(46,125,50,0.24); transition: transform .15s; }
    .gn-upsell-cta:hover { transform: translateY(-1px); }

    /* Premium modal */
    .gn-modal-overlay { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(28,25,23,0.55); backdrop-filter: blur(4px); }
    .gn-modal-overlay[hidden] { display: none; }
    /* #102 mobile fix: interni scroll — modal nikad ne smije pregaziti viewport */
    .gn-modal { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 30px 28px 26px; box-shadow: 0 24px 60px rgba(0,0,0,0.22); animation: gnModalIn .25s ease;
      max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    @keyframes gnModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
    .gn-modal-close { position: absolute; top: 14px; right: 16px; width: 30px; height: 30px; border: none; background: #f3f4f2; border-radius: 50%; font-size: 18px; color: var(--muted); cursor: pointer; line-height: 1; }
    .gn-modal-close:hover { background: #e8eae5; }
    .gn-modal-badge { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--gold); background: rgba(212,165,116,0.12); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
    .gn-modal-title { font-size: 21px; font-weight: 800; color: var(--green-dark); margin: 0 0 6px; }
    /* F5 Faza C: tabovi (€29 report / €89 expert) */
    .gn-tabs { display: flex; gap: 8px; margin: 14px 0 18px; }
    .gn-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border: 1.5px solid var(--green-light); border-radius: 12px; background: #fff; cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
    .gn-tab:hover { border-color: var(--green); }
    .gn-tab.active { border-color: var(--green); background: linear-gradient(135deg, #EEF5EF 0%, #F7FBF7 100%); box-shadow: 0 0 0 1px var(--green); }
    .gn-tab-label { font-size: 13px; font-weight: 700; color: var(--green-dark); text-align: center; }
    .gn-tab-price { font-size: 16px; font-weight: 800; color: var(--gold); }
    .gn-tab.active .gn-tab-price { color: var(--green-dark); }
    .gn-modal-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.45; }
    .gn-modal-feats { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
    .gn-modal-feats li { font-size: 13.5px; color: #3d4a3d; display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
    .gn-modal-feats li span { font-size: 15px; flex-shrink: 0; }
    .gn-modal-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
    .gn-price-num { font-size: 34px; font-weight: 800; color: var(--green-dark); }
    .gn-price-unit { font-size: 12.5px; color: var(--muted); }
    .gn-modal-cta { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; box-shadow: 0 8px 22px rgba(46,125,50,0.28); transition: transform .15s; }
    .gn-modal-cta:hover { transform: translateY(-1px); }
    .gn-modal-note { text-align: center; font-size: 11.5px; color: var(--muted); margin: 12px 0 0; }
    /* F5 Faza B: coming-soon + waitlist (kad je plaćanje na čekanju) */
    .gn-cs { margin-top: 4px; text-align: center; }
    .gn-cs-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
    .gn-cs-title { font-size: 16px; font-weight: 800; color: var(--green-dark); margin-bottom: 4px; }
    .gn-cs-sub { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 14px; }
    .gn-cs-form { display: flex; gap: 8px; }
    .gn-cs-input { flex: 1; min-width: 0; padding: 11px 13px; border: 1.5px solid var(--green-light); border-radius: 10px; font-size: 13.5px; font-family: inherit; }
    .gn-cs-input:focus { outline: none; border-color: var(--green); }
    .gn-cs-btn { padding: 11px 18px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--gold) 0%, #B8895A 100%); color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; }
    .gn-cs-btn:hover { transform: translateY(-1px); }
    .gn-cs-done { font-size: 14px; font-weight: 700; color: var(--green-dark); padding: 12px 0; }
    @media (prefers-reduced-motion: reduce) { .gn-modal { animation: none; } }
    /* #102 mobile: gušći modal na malim ekranima — sadržaj stane uz interni scroll */
    @media (max-width: 480px) {
      .gn-modal-overlay { padding: 12px; }
      .gn-modal { padding: 24px 16px 18px; border-radius: 14px; max-height: calc(100dvh - 24px); }
      .gn-modal-title { font-size: 19px; padding-right: 34px; }
      .gn-price-num { font-size: 28px; }
      .gn-tab { padding: 10px 6px; }
      .gn-tabs { margin: 12px 0 14px; }
      .gn-modal-feats { gap: 7px; margin-bottom: 14px; }
      .gn-modal-feats li { font-size: 13px; }
    }

    .gn-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
    .gn-action-btn {
      flex: 1; min-width: 150px; padding: 11px 16px; border-radius: 10px;
      font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
      text-align: center; border: 2px solid; transition: transform .15s, box-shadow .15s;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    }
    .gn-action-btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
    .gn-action-btn.secondary { background: #fff; color: var(--green-dark); border-color: #E2E8F0; }
    .gn-action-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,0.08); }

    .gn-disclaimer {
      margin-top: 16px; padding: 12px 14px; font-size: 12px; color: var(--muted);
      background: #F8FAFC; border-radius: 10px; line-height: 1.5; border: 1px solid #F1F5F9;
    }

    /* Hero demo watermark */
    .hero-widget-demo-badge {
      position: absolute; top: 14px; right: 14px; z-index: 5;
      background: rgba(212,165,116,0.92); color: #fff;
      font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
      padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
      box-shadow: 0 2px 8px rgba(212,165,116,0.4);
    }
  
    /* ─── F7-D (#50): KIG kalkulator ─────────────────────────── */
    .gn-kig-calc { border: 1.5px solid var(--green-light); border-radius: 14px; background: linear-gradient(135deg, #F7FBF7 0%, #FFFFFF 100%); padding: 20px; margin-bottom: 18px; box-shadow: 0 4px 14px rgba(46,125,50,0.07); }
    .gn-kig-calc-title { font-size: 15px; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
    .gn-kig-calc-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
    .gn-kig-field { display: flex; flex-direction: column; gap: 4px; }
    .gn-kig-field label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
    .gn-kig-field input, .gn-kig-field select { border: 1.5px solid #DDE5DD; border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; min-width: 140px; cursor: pointer; transition: border-color .2s; }
    .gn-kig-field input { cursor: text; }
    .gn-kig-field input:focus, .gn-kig-field select:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(82,183,136,0.18); }
    .gn-kig-calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
    .gn-kig-out-card { background: #fff; border: 1px solid #E4ECE4; border-radius: 10px; padding: 10px 12px; }
    .gn-kig-out-label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
    .gn-kig-out-value { font-size: 19px; font-weight: 800; color: var(--green-dark); margin-top: 2px; }
    .gn-kig-out-sub { font-size: 12px; color: var(--muted); }
    .gn-kig-seg-note { font-size: 12.5px; color: var(--muted); background: #F0F7F1; border-left: 3px solid var(--green-light); border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
    .gn-kig-chart { width: 100%; height: auto; display: block; }
    .gn-kig-chart-caption { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 6px; }
    @media (max-width: 480px) { .gn-kig-field input, .gn-kig-field select { min-width: 110px; width: 100%; } .gn-kig-field { flex: 1; } }

    /* ===== FEEDBACK (prijava pogreške) ===== */
    .gn-feedback { margin-top: 24px; padding-top: 20px; border-top: 1px solid #E5E7EB; }
    .gn-feedback-btn {
      display:block; width:100%; padding:12px 16px;
      background:#FEF2F2; border:1.5px solid #FECACA; border-radius:10px;
      color:#991B1B; font-size:14px; font-weight:600; cursor:pointer; text-align:center;
      transition:background .15s, border-color .15s;
    }
    .gn-feedback-btn:hover { background:#FEE2E2; border-color:#F87171; }
    .gn-feedback-form { margin-top:14px; }
    .gn-feedback-intro { font-size:13.5px; color:var(--muted); margin:0 0 10px; line-height:1.4; }
    .gn-feedback-form textarea {
      width:100%; box-sizing:border-box; padding:10px 12px; border:1.5px solid #D1D5DB;
      border-radius:8px; font-size:14px; font-family:inherit; resize:vertical; margin-bottom:8px;
    }
    .gn-feedback-form textarea:focus { outline:none; border-color:var(--primary); }
    .gn-feedback-form input[type="email"] {
      width:100%; box-sizing:border-box; padding:10px 12px; border:1.5px solid #D1D5DB;
      border-radius:8px; font-size:14px; margin-bottom:10px;
    }
    .gn-feedback-form input[type="email"]:focus { outline:none; border-color:var(--primary); }
    .gn-feedback-send {
      padding:10px 24px; background:var(--primary); color:#fff; border:none;
      border-radius:8px; font-size:14px; font-weight:600; cursor:pointer;
    }
    .gn-feedback-send:hover { background:#1B5E20; }
    .gn-feedback-send:disabled { opacity:.6; cursor:default; }
    .gn-feedback-msg { font-size:13px; margin-top:8px; min-height:18px; }
    .gn-feedback-ok { text-align:center; font-size:14px; color:var(--primary); font-weight:500; padding:16px; }

/* UX (map-stale): banner kad je MGIPU pozadina starija od verdict podataka */
.gn-map-stale-banner {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  border-left: 4px solid #D97706;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #78350F;
}

/* ─── M5 (#75): Quality gate — tier chip + jamstvo povrata ─── */
.gn-tier { font-size: 13px; padding: 9px 12px; border-radius: 10px; margin: 0 0 12px; font-weight: 600; line-height: 1.5; }
.gn-tier-green  { background: #E8F5E9; color: #1B4332; border: 1px solid #52B788; }
.gn-tier-yellow { background: #FFF8E1; color: #92660C; border: 1px solid #D4A574; }
.gn-tier-orange { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.gn-guarantee { font-size: 12.5px; background: #F1F8F4; border: 1px solid #52B788; border-radius: 10px; padding: 10px 12px; margin: 10px 0; color: #1B4332; line-height: 1.55; }
.gn-guarantee span { color: #64748B; }
.gn-orange .gn-cs-badge { background: #FFEBEE; color: #B71C1C; }

/* ─── #62: founding badge + sekundarni pack CTA ─── */
.gn-founding { font-size: 12.5px; background: #FFF3E0; border: 1px solid #D4A574; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; color: #92660C; }
.gn-modal-cta-secondary { background: #fff; color: #2D6A4F; border: 2px solid #2D6A4F; margin-top: 8px; box-shadow: none; }
.gn-modal-cta-secondary:hover { background: #F1F8F4; }
.gn-modal-cta-secondary .gn-price-note { font-weight: 500; opacity: .75; font-size: .85em; }

/* ─── #59 t.9: privola digitalne isporuke (checkout) ─── */
.gn-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: #64748B; line-height: 1.45; margin: 10px 0 12px; cursor: pointer; }
.gn-consent input { margin-top: 2px; flex-shrink: 0; }
.gn-consent a { color: #2D6A4F; text-decoration: underline; }
.gn-modal-cta:disabled { opacity: .5; cursor: not-allowed; }

  .gn-consent-row { display:flex; gap:12px; align-items:flex-start; cursor:pointer; user-select:none; padding:4px 2px; }
  .gn-consent-row input[type="checkbox"] {
    appearance:none; -webkit-appearance:none;
    width:24px; height:24px; min-width:24px;
    border:2.5px solid rgba(46,125,50,.35); border-radius:6px;
    background:#fff; cursor:pointer; position:relative; margin-top:0;
    transition:border-color .2s, background .2s, transform .1s;
  }
  .gn-consent-row input[type="checkbox"]:hover { border-color:var(--primary); }
  .gn-consent-row input[type="checkbox"]:checked {
    background-color:#fff; border-color:var(--primary);
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size:70% 70%; background-position:center; background-repeat:no-repeat;
    transform:scale(1.05);
  }
  .gn-consent-row span { font-size:14px; line-height:1.4; color:var(--muted); padding-top:2px; }
  .gn-progress-wrap { grid-column:1/-1; margin-top:2px; display:none; }
  .gn-progress-wrap.show { display:block; animation:gnFadeUp .3s ease; }
  .gn-progress-bar {
    width:100%; height:8px; background:rgba(46,125,50,.12); border-radius:999px; overflow:hidden;
  }
  .gn-progress-fill {
    height:100%; width:0%; border-radius:999px;
    background:linear-gradient(90deg, var(--primary), #66BB6A);
    background-size:200% 100%; animation:gnProgShimmer 1.5s linear infinite;
    transition:width .6s ease;
  }
  @keyframes gnProgShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
  .gn-progress-label { font-size:13px; color:var(--muted); margin-top:6px; text-align:center; }
  .gn-progress-label b { color:var(--primary); }