/* Gostujući režim: vizuelno usaglašen sa postojećim stilom sajta. */
:root{
  --guest-dark:#092328;
  --guest-green:#2A835F;
  --guest-deep:#12544F;
  --guest-line:#dfe5e3;
  --guest-soft:#586669;
  --guest-soft-2:#6c797c;
  --guest-surface:#ffffff;
  --guest-surface-muted:#f7faf8;
  --guest-shadow:0 12px 38px rgba(9,35,40,.12);
}

.guest-home-banner,
.guest-editor,
.guest-dashboard{
  font-family:Inter,Arial,sans-serif;
}

/* ===== HOME BANNER ===== */
.guest-home-banner{
  position:fixed;
  z-index:600;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  width:min(1080px,calc(100% - 36px));
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  box-sizing:border-box;
  padding:24px 26px 24px 28px;
  border:1px solid rgba(223,229,227,.92);
  border-left:4px solid var(--guest-green);
  border-radius:20px;
  background:rgba(255,255,255,.98);
  color:var(--guest-dark);
  box-shadow:var(--guest-shadow);
  backdrop-filter:blur(18px);
  transition:
    width .28s ease,
    padding .28s ease,
    border-radius .28s ease,
    gap .28s ease,
    transform .28s ease,
    left .28s ease,
    right .28s ease,
    bottom .28s ease,
    opacity .2s ease,
    box-shadow .28s ease;
}

.guest-banner-copy{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  max-width:760px;
}

.guest-eyebrow{
  color:var(--guest-green);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.guest-home-banner .guest-eyebrow{
  font-size:13px;
}

.guest-banner-copy strong{
  font-size:clamp(26px,2vw,40px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.02;
  color:var(--guest-dark);
}

.guest-banner-copy > span:last-child{
  font-size:15px;
  color:var(--guest-soft);
  line-height:1.55;
  max-width:700px;
}

.guest-banner-btn,
.guest-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 20px;
  border-radius:12px;
  background:var(--guest-deep);
  color:#fff !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
  box-shadow:0 10px 28px rgba(18,84,79,.16);
}

.guest-banner-btn:hover,
.guest-action:hover{
  background:var(--guest-green);
  transform:translateY(-1px);
}

.guest-home-banner.is-collapsed{
  left:auto;
  right:18px;
  bottom:20px;
  transform:none;
  width:120px;
  min-height:120px;
  padding:14px 12px;
  border-radius:18px;
  gap:10px;
  align-items:stretch;
  justify-content:flex-start;
  flex-direction:column;
}

.guest-home-banner.is-collapsed .guest-banner-copy{
  gap:6px;
}

.guest-home-banner.is-collapsed .guest-eyebrow,
.guest-home-banner.is-collapsed .guest-banner-copy > span:last-child{
  display:none;
}

.guest-home-banner.is-collapsed .guest-banner-copy strong{
  font-size:15px;
  line-height:1.22;
  letter-spacing:-.03em;
}

.guest-home-banner.is-collapsed .guest-banner-btn{
  width:100%;
  padding:10px 10px;
  font-size:11px;
  min-height:42px;
  white-space:normal;
  line-height:1.25;
  text-align:center;
  border-radius:12px;
  box-shadow:none;
}

/* ===== DASHBOARD / FREE DOCUMENTS ===== */
body.guest-dashboard{
  background:#fff;
  color:#0d2629;
  min-height:100vh;
  margin:0;
}

.guest-nav{
  height:83px;
  padding:0 max(24px,4%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid rgba(9,35,40,.07);
  background:rgba(255,255,255,.97);
}

.guest-brand{
  font-size:24px;
  font-weight:700;
  letter-spacing:-1.4px;
  text-decoration:none;
  color:#092328;
}

.guest-brand span{color:#2A835F}

.guest-nav-right{
  display:flex;
  align-items:center;
  gap:18px;
}

.guest-back,
.guest-editor-back{
  text-decoration:none;
  color:#586669;
  font-weight:500;
  font-size:12px;
}

.guest-back:hover,
.guest-editor-back:hover{color:#2A835F}

.guest-layout{
  max-width:1140px;
  margin:0 auto;
  padding:87px 32px 100px;
}

.guest-intro{
  text-align:left;
  max-width:780px;
}

.guest-intro h1{
  font-size:clamp(42px,6vw,70px);
  line-height:1;
  letter-spacing:-3px;
  font-weight:700;
  margin:16px 0 22px;
}

.guest-intro p{
  font-size:15px;
  line-height:1.7;
  color:#586669;
  max-width:620px;
}

/* ===== USAGE BADGE ===== */
.guest-usage-card,
.guest-usage-floating{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:214px;
  max-width:238px;
  padding:12px 14px;
  border:1px solid var(--guest-line);
  border-radius:14px;
  background:rgba(255,255,255,.98);
  box-shadow:0 8px 24px rgba(9,35,40,.05);
}

.guest-usage-floating{
  position:fixed;
  z-index:1010;
  right:24px;
  top:18px;
}

.guest-usage-trigger{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0;
  margin:0;
  border:0;
  background:none;
  color:inherit;
  text-align:left;
  cursor:pointer;
  font:inherit;
}

.guest-usage-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.guest-usage-top span{
  font-size:11px;
  color:var(--guest-soft-2);
  line-height:1.2;
}

.guest-usage-top strong{
  font-size:18px;
  color:var(--guest-deep);
  font-weight:800;
  letter-spacing:-.04em;
  white-space:nowrap;
  line-height:1;
}

.guest-usage-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.guest-usage-hint{
  font-size:11px;
  color:var(--guest-soft);
}

.guest-usage-caret{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--guest-surface-muted);
  color:var(--guest-deep);
  font-size:12px;
  font-weight:700;
  transition:transform .2s ease,background .2s ease;
}

.guest-usage-card.is-open .guest-usage-caret,
.guest-usage-floating.is-open .guest-usage-caret{
  transform:rotate(180deg);
  background:#eef5f1;
}

.guest-progress{
  height:4px;
  width:100%;
  background:#edf1ef;
  overflow:hidden;
  border-radius:99px;
}

.guest-progress span{
  height:100%;
  width:100%;
  display:block;
  background:var(--guest-green);
  transition:width .25s ease;
}

.guest-usage-popover{
  display:none;
  margin-top:2px;
  padding-top:10px;
  border-top:1px solid #edf1ef;
}

.guest-usage-card.is-open .guest-usage-popover,
.guest-usage-floating.is-open .guest-usage-popover{
  display:block;
}

.guest-usage-popover p{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.55;
  color:var(--guest-soft);
}

.guest-usage-links{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.guest-usage-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  font-size:12px;
  font-weight:700;
}

.guest-usage-link.primary{
  background:var(--guest-deep);
  color:#fff;
}

.guest-usage-link.primary:hover{
  background:var(--guest-green);
}

.guest-usage-link.secondary{
  color:var(--guest-deep);
  background:var(--guest-surface-muted);
  border:1px solid var(--guest-line);
}

.guest-usage-link.secondary:hover{
  background:#eef5f1;
}

.guest-choose{
  margin:80px 0 23px;
  font-size:21px;
  font-weight:700;
  letter-spacing:-.7px;
}

.guest-doc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.guest-doc-grid a{
  min-height:178px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
  padding:27px;
  border:1px solid #dfe5e3;
  border-radius:13px;
  background:#fff;
  color:#0d2629;
  text-decoration:none;
  transition:border-color .2s,box-shadow .2s;
}

.guest-doc-grid a:hover{
  border-color:#2A835F;
  box-shadow:0 8px 26px rgba(9,35,40,.055);
}

.guest-doc-grid i{
  font-style:normal;
  font-size:10px;
  font-weight:600;
  color:#2A835F;
}

.guest-doc-grid strong{
  font-weight:700;
  font-size:23px;
  letter-spacing:-.9px;
}

.guest-doc-grid span{
  color:#586669;
  font-size:12px;
  line-height:1.6;
}

.guest-doc-grid b{
  font-size:12px;
  font-weight:600;
  color:#2A835F;
  margin-top:auto;
}

.guest-bottom-note{
  font-size:12px;
  color:#586669;
  line-height:1.7;
  margin-top:34px;
}

.guest-bottom-note a{
  color:#2A835F;
  font-weight:600;
}

/* ===== EDITOR ===== */
body[data-guest="1"] .guest-editor{
  padding:26px 0 32px;
  margin:0 0 65px;
  border-top:1px solid #dfe5e3;
  border-bottom:1px solid #dfe5e3;
  background:transparent;
  color:#0d2629;
  box-shadow:none;
  border-radius:0;
}

body[data-guest="1"] .guest-editor-top{
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:18px;
  margin-bottom:28px;
}

body[data-guest="1"] .guest-editor h2{
  font-size:28px;
  letter-spacing:-1.25px;
  font-weight:700;
  margin:9px 0;
}

body[data-guest="1"] .guest-editor p{
  font-size:13px;
  line-height:1.6;
  color:#586669;
  margin:0;
  max-width:570px;
}

body[data-guest="1"] .guest-editor-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}

body[data-guest="1"] .guest-editor-fields label{
  display:flex;
  flex-direction:column;
  gap:9px;
  color:#4e5c5f;
  font-size:12px;
  font-weight:500;
}

body[data-guest="1"] .guest-editor-fields input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid #dfe5e3;
  border-radius:10px;
  background:#fff;
  color:#0d2629;
  font-family:Inter,Arial,sans-serif;
  font-size:13px;
  min-height:46px;
  outline:none;
}

body[data-guest="1"] .guest-editor-fields input:focus{
  border-color:#2A835F;
}

body[data-guest="1"] .guest-editor-foot{
  font-size:11px;
  color:#586669;
  margin-top:17px;
}

body[data-guest="1"] .guest-editor-foot strong{color:#12544F}

/* ===== LIMIT MODAL ===== */
.guest-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(9,35,40,.56);
  display:grid;
  place-items:center;
  padding:18px;
}

.guest-modal-content{
  background:#fff;
  color:#0d2629;
  border-radius:15px;
  max-width:440px;
  width:100%;
  padding:34px;
  box-sizing:border-box;
  border:1px solid #dfe5e3;
  text-align:left;
  box-shadow:0 20px 70px rgba(9,35,40,.17);
  font-family:Inter,Arial,sans-serif;
}

.guest-modal-content h2{
  font-size:26px;
  line-height:1.2;
  letter-spacing:-1px;
  margin:12px 0;
}

.guest-modal-content p{
  font-size:13px;
  color:#586669;
  line-height:1.7;
  margin:12px 0 24px;
}

.guest-action{
  display:flex;
  margin:9px 0;
}

.guest-action-alt{
  color:#12544F!important;
  background:#f7faf8;
  border:1px solid #dfe5e3;
  box-shadow:none;
}

.guest-action-alt:hover{color:white!important}

.guest-modal-content button{
  margin-top:14px;
  border:0;
  background:none;
  color:#586669;
  font-size:12px;
  cursor:pointer;
  font-family:inherit;
  padding:5px 0;
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .guest-home-banner{
    width:calc(100% - 22px);
    padding:20px 18px;
    gap:18px;
    border-radius:18px;
  }

  .guest-banner-copy strong{
    font-size:clamp(24px,7vw,34px);
  }

  .guest-banner-copy > span:last-child{
    font-size:14px;
  }
}

@media(max-width:700px){
  .guest-home-banner{
    bottom:10px;
    width:calc(100% - 20px);
    padding:18px 16px;
    gap:14px;
    flex-direction:column;
    align-items:stretch;
    border-radius:16px;
  }

  .guest-home-banner .guest-eyebrow{font-size:11px}

  .guest-banner-copy strong{
    font-size:28px;
    line-height:1.04;
  }

  .guest-banner-copy > span:last-child{
    font-size:13px;
  }

  .guest-banner-btn{
    padding:13px 14px;
    font-size:13px;
  }

  .guest-home-banner.is-collapsed{
    right:10px;
    bottom:14px;
    width:106px;
    min-height:106px;
    padding:12px 10px;
    gap:8px;
    border-radius:16px;
  }

  .guest-home-banner.is-collapsed .guest-banner-copy strong{
    font-size:13px;
  }

  .guest-nav{
    height:73px;
    padding:0 16px;
  }

  .guest-brand{font-size:21px}

  .guest-nav-right{gap:10px}

  .guest-back{font-size:11px}

  .guest-layout{padding:60px 18px 65px}

  .guest-intro h1{
    font-size:42px;
    letter-spacing:-2px;
  }

  .guest-intro p{font-size:13px}

  .guest-choose{margin-top:55px}

  .guest-doc-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .guest-doc-grid a{
    min-height:140px;
    padding:22px;
  }

  .guest-editor-fields{grid-template-columns:1fr!important}

  body[data-guest="1"] .guest-editor-top{flex-direction:column}

  body[data-guest="1"] .guest-editor{padding:22px 0}

  .guest-usage-card,
  .guest-usage-floating{
    min-width:170px;
    max-width:182px;
    padding:10px 11px;
  }

  .guest-usage-floating{
    right:10px;
    top:12px;
  }

  .guest-usage-top strong{font-size:16px}

  .guest-usage-top span{font-size:10px}

  .guest-usage-hint{font-size:10px}

  body[data-guest="1"] .guest-editor h2{font-size:23px}
}

/* ===== Final polish: minimalistički stil prema originalnom hero dizajnu ===== */
.guest-home-banner{
  width:min(1020px,calc(100% - 36px));
  align-items:center;
  border-left:1px solid var(--guest-line);
  border-radius:15px;
  padding:22px 26px;
  box-shadow:0 9px 32px rgba(9,35,40,.13);
}
.guest-home-banner .guest-eyebrow{font-size:12px;letter-spacing:.03em;font-weight:600}
.guest-banner-copy{gap:7px}
.guest-banner-copy strong{font-size:clamp(26px,2.6vw,36px);font-weight:700;letter-spacing:-.055em;line-height:1.08}
.guest-banner-copy>span:last-child{font-size:14px;line-height:1.45}
.guest-banner-btn{font-size:13px;border-radius:9px;padding:14px 18px;box-shadow:none}
.guest-home-banner.is-collapsed{
  left:auto;right:18px;bottom:18px;transform:none;
  width:170px;min-height:0;padding:12px;gap:9px;
  border-radius:12px;border:1px solid var(--guest-line);
  align-items:stretch;box-shadow:0 6px 24px rgba(9,35,40,.12);
}
.guest-home-banner.is-collapsed .guest-banner-copy strong{font-size:15px;line-height:1.25;font-weight:700;letter-spacing:-.035em}
.guest-home-banner.is-collapsed .guest-banner-btn{font-size:12px;line-height:1.2;padding:10px 8px;border-radius:8px;min-height:0}
.guest-usage-card,.guest-usage-floating{min-width:210px;max-width:250px;padding:12px 14px;gap:8px;transition:box-shadow .2s ease,border-color .2s ease}
.guest-usage-card:hover,.guest-usage-floating:hover{border-color:#b8d0c5}
.guest-usage-card.is-open,.guest-usage-floating.is-open{box-shadow:0 12px 32px rgba(9,35,40,.12);border-color:#b8d0c5}
.guest-usage-top strong{font-size:22px;letter-spacing:-.05em}
.guest-usage-trigger:focus-visible,.guest-banner-btn:focus-visible,.guest-usage-link:focus-visible{outline:2px solid var(--guest-green);outline-offset:3px}
.guest-usage-popover{padding-top:13px}
.guest-usage-popover p{font-size:13px}
.guest-usage-link{font-size:12px}
@media(max-width:700px){
  .guest-home-banner{width:calc(100% - 20px);padding:16px;gap:11px}
  .guest-home-banner .guest-eyebrow{font-size:10px}
  .guest-banner-copy strong{font-size:26px}
  .guest-banner-copy>span:last-child{font-size:12px}
  .guest-home-banner.is-collapsed{right:10px;bottom:12px;width:154px;min-height:0;padding:10px;gap:8px}
  .guest-home-banner.is-collapsed .guest-banner-copy strong{font-size:14px}
  .guest-home-banner.is-collapsed .guest-banner-btn{font-size:11px;padding:10px 6px}
  .guest-usage-card,.guest-usage-floating{min-width:160px;max-width:180px;padding:10px}
  .guest-usage-top strong{font-size:20px}
  .guest-usage-popover p{font-size:12px}
  .guest-usage-floating.is-open{width:min(290px,calc(100vw - 20px));max-width:290px}
  .guest-nav .guest-usage-card.is-open{position:absolute;right:15px;top:63px;width:min(290px,calc(100vw - 30px));max-width:290px;z-index:100;box-shadow:0 12px 32px rgba(9,35,40,.12)}
}
@media(prefers-reduced-motion:reduce){.guest-home-banner,.guest-home-banner *,.guest-usage-card,.guest-usage-floating{transition:none!important}}

/* V5: gostujuća polja pripadaju editoru, ne PDF pregledu. */
body[data-guest="1"] .invoice-page.preview-mode .guest-editor,
body[data-guest="1"] .preview-mode .guest-editor{
  display:none !important;
}

/* V5: na mobilnom početna ima diskretan CTA, a ne veliki lepljivi panel. */
@media (max-width:700px){
  .guest-home-banner,
  .guest-home-banner.is-collapsed{
    position:fixed;
    left:auto;
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    transform:none;
    width:185px;
    min-height:0;
    padding:7px;
    gap:0;
    display:block;
    border:1px solid rgba(223,229,227,.95);
    border-radius:12px;
    background:#fff;
    box-shadow:0 5px 20px rgba(9,35,40,.15);
  }
  .guest-home-banner .guest-banner-copy,
  .guest-home-banner.is-collapsed .guest-banner-copy{
    display:none;
  }
  .guest-home-banner .guest-banner-btn,
  .guest-home-banner.is-collapsed .guest-banner-btn{
    display:flex;
    width:100%;
    min-height:48px;
    box-sizing:border-box;
    margin:0;
    padding:10px 11px;
    border-radius:8px;
    background:var(--guest-deep);
    color:#fff !important;
    font-size:12px;
    font-weight:700;
    line-height:1.3;
    white-space:normal;
    text-align:center;
    box-shadow:none;
  }
}

/* V7: mobilni header: logo, kompaktan brojač i Početna u jednoj liniji. */
@media (max-width:700px){
  body.guest-dashboard .guest-nav{
    display:flex;
    height:78px;
    min-height:78px;
    padding:0 12px;
    gap:8px;
    overflow:visible;
    position:relative;
    z-index:20;
  }
  body.guest-dashboard .guest-brand{
    font-size:clamp(17px,4.8vw,21px);
    white-space:nowrap;
    flex:0 0 auto;
    letter-spacing:-1.1px;
  }
  body.guest-dashboard .guest-nav-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex:1 1 auto;
    min-width:0;
    gap:9px;
  }
  body.guest-dashboard .guest-back{
    font-size:12px;
    white-space:nowrap;
    flex:0 0 auto;
  }
  body.guest-dashboard .guest-nav .guest-usage-card,
  body.guest-dashboard .guest-nav .guest-usage-card.is-open{
    position:relative;
    top:auto;
    right:auto;
    flex:0 0 91px;
    width:91px;
    min-width:0;
    max-width:91px;
    padding:9px 10px 8px;
    gap:4px;
    border-radius:11px;
    box-shadow:none;
    box-sizing:border-box;
  }
  body.guest-dashboard .guest-nav .guest-usage-top{
    align-items:center;
    justify-content:center;
  }
  body.guest-dashboard .guest-nav .guest-usage-top > span,
  body.guest-dashboard .guest-nav .guest-usage-meta{
    display:none;
  }
  body.guest-dashboard .guest-nav .guest-usage-top strong{
    font-size:21px;
    line-height:1.1;
  }
  body.guest-dashboard .guest-nav .guest-usage-trigger{gap:6px;align-items:stretch;}
  body.guest-dashboard .guest-nav .guest-progress{height:3px;}
  body.guest-dashboard .guest-nav .guest-usage-popover{
    display:none;
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    width:min(282px,calc(100vw - 26px));
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--guest-line);
    border-radius:14px;
    padding:17px;
    box-shadow:0 15px 35px rgba(9,35,40,.16);
    text-align:left;
    margin:0;
  }
  body.guest-dashboard .guest-nav .guest-usage-card.is-open .guest-usage-popover{display:block;}
}

/* Diskretno plutanje CTA dugmeta, bez pomeranja ostatka stranice. */
@keyframes guest-cta-float{
  0%,100%{transform:translate3d(0,0,0)}
  50%{transform:translate3d(0,-5px,0)}
}
@media (max-width:700px){
  .guest-home-banner,
  .guest-home-banner.is-collapsed{
    animation:guest-cta-float 4s ease-in-out infinite;
    will-change:transform;
  }
  .guest-home-banner:focus-within,
  .guest-home-banner:hover{animation-play-state:paused;}
  .guest-home-banner .guest-banner-btn,
  .guest-home-banner.is-collapsed .guest-banner-btn{
    transition:background .2s ease;
    transform:none;
  }
}
@media (prefers-reduced-motion:reduce){
  .guest-home-banner,
  .guest-home-banner.is-collapsed{animation:none!important;will-change:auto;}
}

/* V8: dropdown je izvan toka headera, ne podiže brojač van ekrana. */
body.guest-dashboard .guest-nav{overflow:visible;position:relative;z-index:30}
body.guest-dashboard .guest-nav .guest-usage-card{flex-shrink:0;align-self:center}
body.guest-dashboard .guest-nav .guest-usage-card.is-open{z-index:40}
body.guest-dashboard .guest-nav .guest-usage-popover{
  display:none;
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:290px;
  max-width:calc(100vw - 24px);
  margin:0;
  padding:16px;
  box-sizing:border-box;
  background:#fff;
  border:1px solid var(--guest-line);
  border-radius:14px;
  box-shadow:0 14px 38px rgba(9,35,40,.14);
  text-align:left;
}
body.guest-dashboard .guest-nav .guest-usage-card.is-open .guest-usage-popover{display:block}
/* Broj preostalih dokumenata je sekundaran u odnosu na oznaku ukupnog limita. */
.guest-usage-top strong #guestRemaining{font-size:.76em;font-weight:700;vertical-align:baseline}
@media(max-width:700px){
  body.guest-dashboard .guest-nav .guest-usage-popover{
    width:min(282px,calc(100vw - 26px));
    right:0;
    top:calc(100% + 10px);
  }
}


/* ===== FREE PAGE POLISH ===== */
.guest-layout-free{
  max-width:1180px;
}

.guest-intro-compact{
  max-width:860px;
  margin-bottom:26px;
}

.guest-intro-compact p{
  max-width:760px;
}

.guest-mini-notes{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0 0 36px;
}

.guest-mini-note{
  padding:16px 18px;
  border:1px solid var(--guest-line);
  border-radius:16px;
  background:var(--guest-surface);
}

.guest-mini-note strong{
  display:block;
  margin-bottom:7px;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--guest-dark);
}

.guest-mini-note span{
  font-size:13px;
  line-height:1.6;
  color:var(--guest-soft);
}

.guest-doc-grid-minimal{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.guest-doc-grid-minimal a{
  min-height:146px;
  gap:18px;
  padding:20px;
  justify-content:space-between;
}

.guest-doc-grid-minimal span{
  display:none;
}

.guest-doc-grid-minimal i{
  font-size:11px;
  letter-spacing:.02em;
}

.guest-doc-grid-minimal strong{
  font-size:18px;
  letter-spacing:-.04em;
  line-height:1.15;
}

.guest-doc-grid-minimal b{
  margin-top:0;
  font-size:12px;
}

.guest-seo-panel{
  margin-top:34px;
  padding:34px;
  border:1px solid var(--guest-line);
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);
}

.guest-seo-panel-head h2{
  margin:10px 0 14px;
  font-size:32px;
  line-height:1.05;
  letter-spacing:-.05em;
  color:var(--guest-dark);
}

.guest-seo-panel-head p{
  max-width:770px;
  color:var(--guest-soft);
  font-size:15px;
  line-height:1.75;
}

.guest-seo-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:28px;
}

.guest-seo-card{
  padding:20px;
  border:1px solid var(--guest-line);
  border-radius:18px;
  background:#fff;
}

.guest-seo-card h3,
.guest-seo-column h3,
.guest-faq-block h3{
  margin:0 0 10px;
  font-size:20px;
  letter-spacing:-.04em;
  color:var(--guest-dark);
}

.guest-seo-card p,
.guest-seo-column p,
.guest-faq-block p{
  color:var(--guest-soft);
  font-size:14px;
  line-height:1.75;
}

.guest-seo-card-muted{
  background:#f7faf8;
}

.guest-seo-columns{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:20px;
}

.guest-seo-column{
  padding:22px;
  border:1px solid var(--guest-line);
  border-radius:18px;
  background:#fff;
}

.guest-steps,
.guest-points{
  margin:0;
  padding-left:20px;
  color:var(--guest-soft);
}

.guest-steps li,
.guest-points li{
  margin:0 0 10px;
  line-height:1.7;
}

.guest-faq-block{
  margin-top:20px;
  padding:22px;
  border:1px solid var(--guest-line);
  border-radius:18px;
  background:#fff;
}

.guest-faq-block details{
  padding:14px 0;
  border-bottom:1px solid #edf1ef;
}

.guest-faq-block details:last-of-type{
  border-bottom:none;
  padding-bottom:0;
}

.guest-faq-block summary{
  cursor:pointer;
  font-weight:600;
  color:var(--guest-dark);
}

.guest-faq-block summary::marker{
  color:var(--guest-green);
}

.guest-faq-block details p{
  padding-top:10px;
}

.guest-bottom-note-strong{
  margin-top:20px;
  font-size:13px;
}

@media (max-width:1100px){
  .guest-doc-grid-minimal{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .guest-mini-notes,
  .guest-seo-cards{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .guest-mini-notes{
    grid-template-columns:1fr;
    gap:10px;
    margin-bottom:28px;
  }

  .guest-doc-grid-minimal{
    grid-template-columns:1fr;
    gap:12px;
  }

  .guest-doc-grid-minimal a{
    min-height:124px;
    padding:18px;
  }

  .guest-seo-panel{
    margin-top:26px;
    padding:22px 18px;
    border-radius:18px;
  }

  .guest-seo-panel-head h2{
    font-size:26px;
  }

  .guest-seo-columns{
    grid-template-columns:1fr;
  }

  .guest-seo-card,
  .guest-seo-column,
  .guest-faq-block{
    padding:18px;
  }
}

/* V10: Istovetne kartice i FAQ kao na registrovanom dashboardu / indexu. */
body.guest-dashboard .guest-free-document-section{margin-top:56px}
body.guest-dashboard .guest-free-document-section .section-label{margin:0 0 14px;color:#2A835F;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.7px}
body.guest-dashboard .guest-free-document-section .section-title{font-size:clamp(34px,4vw,48px);line-height:1.05;letter-spacing:-2px;font-weight:600;margin:0 0 32px;color:#092328}
body.guest-dashboard .guest-free-document-section .document-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#dfe5e3;border:1px solid #dfe5e3;border-radius:24px;overflow:hidden}
body.guest-dashboard .guest-free-document-section .document-card{min-width:0;min-height:210px;padding:32px;background:#fff;display:flex;align-items:center;color:#092328;text-decoration:none;transition:background .2s ease}
body.guest-dashboard .guest-free-document-section .document-card:hover{background:#f7faf8}
body.guest-dashboard .guest-free-document-section .document-name{font-size:28px;font-weight:600;line-height:1.18;letter-spacing:-1.4px}
body.guest-dashboard .guest-free-information{margin-top:76px;max-width:850px}
body.guest-dashboard .guest-free-information h2{color:#092328;font-size:clamp(27px,3.2vw,40px);font-weight:600;letter-spacing:-1.7px;line-height:1.15;margin:14px 0 22px}
body.guest-dashboard .guest-free-information p{color:#586669;font-size:15px;line-height:1.8;margin:0 0 17px}
body.guest-dashboard .guest-free-information strong{color:#092328;font-weight:600}
body.guest-dashboard .guest-free-information-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:25px!important}
body.guest-dashboard .guest-free-information-links a{color:#12544F;font-weight:600;text-underline-offset:4px}
body.guest-dashboard .guest-free-faq{margin-top:85px}
body.guest-dashboard .guest-free-faq .faq-list{min-width:0}
@media(max-width:1000px){body.guest-dashboard .guest-free-document-section .document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.guest-dashboard .guest-free-document-section .document-card{min-height:170px;padding:25px}}
@media(max-width:700px){body.guest-dashboard .guest-free-document-section{margin-top:44px}body.guest-dashboard .guest-free-document-section .document-grid{grid-template-columns:1fr}body.guest-dashboard .guest-free-document-section .document-card{min-height:105px;padding:22px}body.guest-dashboard .guest-free-document-section .document-name{font-size:23px}body.guest-dashboard .guest-free-information{margin-top:55px}body.guest-dashboard .guest-free-faq{margin-top:62px}}
/* Kada je auth forma aktivna, baner nikada ne prekriva polja. */
body:has(.auth-container.login-active) .guest-home-banner,
body:has(.auth-container.register-active) .guest-home-banner{display:none!important}
