/* isplati.se design system — tokens + base components.
   Vrednosti 1:1 iz ../Dizajn/isplati-se-handoff/design-tokens/tokens.css i reference/isplati-prototype.css.
   Vlasnik: foundation. Ostali agenti koriste klase, a specifičnosti stilizuju u svom public/css/<oblast>.css. */

/* ---------- Tokens ---------- */
:root{
  --color-brand-lime:#A6FF00;
  --color-brand-lime-hover:#95E600;
  --color-brand-lime-active:#86D000;
  --color-brand-lime-soft:#F0FFD6;
  --color-brand-ink:#0B1320;
  --color-brand-ink-2:#1E2836;
  --color-brand-ink-3:#16202F;
  --color-brand-green:#00B67A;
  --color-brand-green-text:#00754F;
  --color-brand-green-soft:#E6F6EF;
  --color-neutral-bg:#F5F7F6;
  --color-neutral-surface:#FFFFFF;
  --color-neutral-surface-2:#ECEFED;
  --color-neutral-surface-3:#F3F5F4;
  --color-neutral-border:#DDE3E0;
  --color-neutral-border-strong:#C5CEC9;
  --color-neutral-text:#0B1320;
  --color-neutral-text-muted:#5A6472;
  --color-neutral-text-subtle:#6B7480;
  --color-neutral-disabled:#7C8590;
  --color-feedback-success:#00754F;
  --color-feedback-success-bg:#E6F6EF;
  --color-feedback-warning:#8A5300;
  --color-feedback-warning-bg:#FFF4DC;
  --color-feedback-danger:#B42318;
  --color-feedback-danger-bg:#FDECEA;
  --color-feedback-info:#3B4A5E;
  --color-feedback-info-bg:#EEF1F5;
  --color-rating-star:#F2B233;
  --color-rating-star-empty:#D5DBD8;
  --color-on-dark-text:#FFFFFF;
  --color-on-dark-text-muted:#C9D1CD;
  --color-on-dark-text-subtle:#8E9A93;
  --color-on-dark-border:#25303F;
  --color-on-dark-border-2:#3B4A5E;
  --font-sans:Manrope,Inter,system-ui,sans-serif;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;
  --space-7:32px;--space-8:40px;--space-9:48px;--space-10:64px;--space-11:80px;
  --radius-xs:4px;--radius-sm:6px;--radius-md:8px;--radius-lg:12px;--radius-xl:14px;--radius-2xl:16px;--radius-pill:999px;
  --shadow-overlay:0 8px 24px rgba(11,19,32,.12);
  --focus-ring:0 0 0 5px #A6FF00;
  /* kratki aliasi (koristi ih i catalog.css) */
  --ink:var(--color-brand-ink);
  --lime:var(--color-brand-lime);
  --paper:var(--color-neutral-bg);
  --muted:var(--color-neutral-text-muted);
  --subtle:var(--color-neutral-text-subtle);
  --line:var(--color-neutral-border);
  --line-strong:var(--color-neutral-border-strong);
  --surface-2:var(--color-neutral-surface-2);
  --link:var(--color-brand-green-text);
  /* z-index skala (DESIGN_SYSTEM §4) */
  --z-sticky:10;--z-header:30;--z-bottomnav:40;--z-dropdown:50;--z-modal:60;--z-toast:70;--z-consent:80;
  /* visina mobilnog bottom nav-a; sticky trake na dnu koriste bottom:var(--bottomnav-h) */
  --bottomnav-h:0px;
}
:root{--hdr-h:120px}
@media(max-width:1023.98px){:root{--bottomnav-h:calc(58px + env(safe-area-inset-bottom, 0px));--hdr-h:172px}}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#F5F7F6;font-family:var(--font-sans);font-weight:500;font-size:16px;line-height:24px;color:#0B1320;-webkit-font-smoothing:antialiased}
a{color:#00754F}a:hover{color:#005C3E}
:focus-visible{outline:2px solid #0B1320;outline-offset:2px;box-shadow:0 0 0 5px #A6FF00}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip{position:absolute;left:16px;top:-100px;z-index:90;display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:8px;background:#A6FF00;color:#0B1320;font-weight:700;font-size:15px;text-decoration:none}
.skip:focus,.skip:focus-visible{top:12px;outline:2px solid #0B1320;outline-offset:2px;box-shadow:0 0 0 5px #FFFFFF}
.num{font-variant-numeric:tabular-nums}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i-16{width:16px;height:16px}.i-24{width:24px;height:24px}
.wrap{width:100%;max-width:1312px;margin:0 auto;padding-left:16px;padding-right:16px}
@media(min-width:768px){.wrap{padding-left:24px;padding-right:24px}}
@media(min-width:1024px){.wrap{padding-left:32px;padding-right:32px}}

/* ---------- Typography ---------- */
.h1{font-weight:800;font-size:30px;line-height:36px;letter-spacing:-0.02em}
.h2{font-weight:800;font-size:22px;line-height:28px;letter-spacing:-0.01em}
.h3{font-weight:700;font-size:18px;line-height:24px}
.h4{font-weight:700;font-size:16px;line-height:22px}
@media(min-width:1024px){.h1{font-size:44px;line-height:52px}.h2{font-size:28px;line-height:36px}.h3{font-size:20px;line-height:28px}}
.body-s{font-size:14px;line-height:20px}
.cap{font-size:13px;line-height:18px;font-weight:500}
.eyebrow{font-weight:700;font-size:12px;line-height:16px;letter-spacing:.08em;text-transform:uppercase;color:#5A6472}
.muted{color:#5A6472}
.green{color:#00754F}
.danger{color:#B42318}
.price{font-weight:800;font-size:20px;line-height:24px;font-variant-numeric:tabular-nums;letter-spacing:-0.01em}
.price-l{font-weight:800;font-size:32px;line-height:36px;font-variant-numeric:tabular-nums;letter-spacing:-0.02em}

/* ---------- Layout helpers ---------- */
.row{display:flex;align-items:center}
.col{display:flex;flex-direction:column}
.wrapf{flex-wrap:wrap}
.sb{justify-content:space-between}
.g4{gap:4px}.g6{gap:6px}.g8{gap:8px}.g10{gap:10px}.g12{gap:12px}.g14{gap:14px}.g16{gap:16px}.g20{gap:20px}.g24{gap:24px}.g32{gap:32px}.g40{gap:40px}
.f1{flex:1 1 0;min-width:0}
.hr{height:1px;background:#DDE3E0;border:0;margin:0}
.scrollx{overflow-x:auto}
.only-m{display:block}.only-d{display:none}
.only-mf{display:flex}.only-df{display:none}
@media(min-width:1024px){.only-m,.only-mf{display:none}.only-d{display:block}.only-df{display:flex}}
.hide-s{display:none}@media(min-width:768px){.hide-s{display:flex}}
.hide-m{display:none}@media(min-width:768px){.hide-m{display:block}}
.sect{padding-top:32px}@media(min-width:1024px){.sect{padding-top:48px}}
.two{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media(min-width:1024px){.two{grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px}}
.twoeq{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media(min-width:768px){.twoeq{grid-template-columns:repeat(2,minmax(0,1fr))}}
.three{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
@media(min-width:768px){.three{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:8px;font-family:inherit;font-weight:700;font-size:15px;line-height:20px;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease;white-space:nowrap;background:none;color:#0B1320}
.btn-primary{background:#A6FF00;color:#0B1320}.btn-primary:hover{background:#95E600;color:#0B1320}.btn-primary:active{background:#86D000}
.btn-dark{background:#0B1320;color:#FFFFFF}.btn-dark:hover{background:#1E2836;color:#FFFFFF}
.btn-secondary{background:#FFFFFF;color:#0B1320;border-color:#C5CEC9}.btn-secondary:hover{background:#ECEFED;color:#0B1320}
.btn-ghost{color:#0B1320}.btn-ghost:hover{background:#ECEFED;color:#0B1320}
.btn-danger{background:#B42318;color:#FFFFFF}.btn-danger:hover{background:#931B12;color:#FFFFFF}
.btn-danger-o{background:#FFFFFF;color:#B42318;border-color:#E8B4AE}.btn-danger-o:hover{background:#FDECEA;color:#B42318}
.btn-sm{min-height:36px;padding:0 12px;font-size:14px}
.btn-lg{min-height:52px;padding:0 24px;font-size:16px}
.btn-block{width:100%}
.btn.dis,.btn:disabled,.btn[aria-disabled=true]{background:#ECEFED;color:#7C8590;border-color:#ECEFED;cursor:not-allowed}
.iconbtn{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:transparent;border:1px solid transparent;color:#0B1320;cursor:pointer;flex:none;text-decoration:none;position:relative;padding:0;font:inherit}
.iconbtn:hover{background:#ECEFED;color:#0B1320}
.iconbtn.o{border-color:#C5CEC9;background:#FFFFFF}

/* ---------- Surfaces ---------- */
.card{background:#FFFFFF;border:1px solid #DDE3E0;border-radius:12px}
.pad{padding:16px}@media(min-width:768px){.pad{padding:20px}}

/* ---------- Forms ---------- */
.input{height:48px;width:100%;border:1px solid #C5CEC9;border-radius:8px;padding:0 14px;font-family:inherit;font-weight:500;font-size:16px;color:#0B1320;background:#FFFFFF;transition:border-color .15s ease,box-shadow .15s ease}
.input:hover{border-color:#8E9A93}
.input:focus{outline:none;border-color:#0B1320;box-shadow:0 0 0 3px #A6FF00}
.input.err,.input[aria-invalid=true]{border-color:#B42318}.input.ok{border-color:#00754F}
.input.dis,.input:disabled{background:#ECEFED;color:#7C8590;border-color:#ECEFED}
.input::placeholder{color:#6B7480}
select.input{appearance:none;-webkit-appearance:none;padding-right:40px;background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1320' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/16px}
textarea.input{height:auto;padding:12px 14px;line-height:24px}
.label{display:block;font-weight:700;font-size:14px;line-height:20px;margin-bottom:6px}
.help{font-weight:500;font-size:13px;line-height:18px;color:#5A6472;margin-top:6px}
.help.err{color:#B42318}.help.ok{color:#00754F}
.field{display:flex;flex-direction:column;min-width:0}
.check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:10px 0;font-size:15px;line-height:22px;cursor:pointer}
.check input{width:20px;height:20px;min-height:0;margin:1px 0 0;accent-color:#0B1320;flex:none}
.sw{width:44px;height:26px;border-radius:13px;background:#C5CEC9;position:relative;border:0;cursor:pointer;flex:none;padding:0;min-height:0}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#FFFFFF;transition:left .15s ease}
.sw.on,.sw[aria-checked=true]{background:#0B1320}.sw.on::after,.sw[aria-checked=true]::after{left:21px;background:#A6FF00}
.seg{display:inline-flex;background:#ECEFED;border-radius:8px;padding:3px;gap:2px}
.seg button,.seg a{display:inline-flex;align-items:center;border:0;background:transparent;border-radius:6px;min-height:34px;padding:0 12px;font-family:inherit;font-weight:700;font-size:13px;color:#3B4A5E;cursor:pointer;text-decoration:none}
.seg button.on,.seg a.on,.seg [aria-pressed=true],.seg [aria-current]{background:#FFFFFF;color:#0B1320;box-shadow:0 1px 2px rgba(11,19,32,.12)}

/* ---------- Chips & badges ---------- */
.chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #C5CEC9;background:#FFFFFF;font-family:inherit;font-weight:600;font-size:14px;color:#0B1320;cursor:pointer;text-decoration:none;white-space:nowrap}
.chip:hover{border-color:#0B1320;color:#0B1320}
.chip.on,.chip[aria-pressed=true],.chip[aria-current]{background:#0B1320;color:#FFFFFF;border-color:#0B1320}
.tchip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid #3B4A5E;color:#E3E8E5;font-size:13px;font-weight:600;cursor:pointer}
.tchip input{accent-color:#A6FF00;width:16px;height:16px;min-height:0;margin:0}
.badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;border-radius:6px;font-weight:700;font-size:12px;line-height:16px;white-space:nowrap}
.b-green{background:#E6F6EF;color:#00754F}.b-neutral{background:#ECEFED;color:#3B4A5E}.b-warn{background:#FFF4DC;color:#8A5300}.b-danger{background:#FDECEA;color:#B42318}.b-ink{background:#0B1320;color:#FFFFFF}.b-lime{background:#A6FF00;color:#0B1320}.b-info{background:#EEF1F5;color:#3B4A5E}
.b-demo{background:#0B1320;color:#A6FF00}
/* Oglas: mala neutralna pilula (konačna verzija iz reference CSS) */
.b-spon{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:999px;background:rgba(11,19,32,.07);color:#5A6472;border:0;font-weight:600;font-size:11px;line-height:20px;letter-spacing:0;text-transform:none;white-space:nowrap}
button.b-spon{cursor:pointer;font-family:inherit}
button.b-spon:hover{background:rgba(11,19,32,.12);color:#0B1320}
.b-spon .i{width:12px;height:12px}
.spon-pill{position:absolute;top:20px;left:20px;z-index:3;background:rgba(255,255,255,.92);backdrop-filter:blur(4px)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}

/* ---------- Ratings ---------- */
.rst{position:relative;display:inline-block;line-height:1;color:#D5DBD8;letter-spacing:1px;font-size:14px;vertical-align:-1px}
.rst::before{content:"\2605\2605\2605\2605\2605"}
.rst>span{position:absolute;left:0;top:0;overflow:hidden;white-space:nowrap;color:#F2B233}
.rst>span::before{content:"\2605\2605\2605\2605\2605"}
.rline{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:16px;color:#5A6472}
.rline b{color:#0B1320;font-variant-numeric:tabular-nums}

/* ---------- Feedback ---------- */
.alert{display:flex;gap:12px;padding:12px 14px;border-radius:10px;font-size:14px;line-height:20px;align-items:flex-start}
.a-info{background:#EEF1F5;color:#0B1320}.a-warn{background:#FFF4DC;color:#0B1320}.a-danger{background:#FDECEA;color:#0B1320}.a-ok{background:#E6F6EF;color:#0B1320}
.a-info .i{color:#3B4A5E}.a-warn .i{color:#8A5300}.a-danger .i{color:#B42318}.a-ok .i{color:#00754F}
.toast{display:flex;align-items:center;gap:10px;background:#0B1320;color:#FFFFFF;border-radius:10px;padding:12px 14px;font-size:14px;font-weight:600}
.toast .i{color:#A6FF00}
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:40px 16px}
.empty .ic{width:56px;height:56px;border-radius:14px;background:#ECEFED;display:flex;align-items:center;justify-content:center;color:#3B4A5E}
.skel{background:#E5E9E7;border-radius:6px;animation:ds-pulse 1.4s ease-in-out infinite}
@keyframes ds-pulse{0%,100%{opacity:1}50%{opacity:.55}}
.progress{height:8px;border-radius:4px;background:#ECEFED;overflow:hidden}
.progress span{display:block;height:100%;background:#00B67A;border-radius:4px}

/* ---------- Tabs & tables ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid #DDE3E0;overflow-x:auto}
.tabs a,.tabs button{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:0;background:none;font-family:inherit;font-weight:700;font-size:14px;color:#5A6472;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;cursor:pointer}
.tabs .on,.tabs [aria-selected=true],.tabs [aria-current]{color:#0B1320;border-bottom-color:#0B1320}
.tbl{width:100%;border-collapse:collapse;font-size:14px;line-height:20px}
.tbl th{text-align:left;font-weight:700;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#5A6472;padding:10px 12px;border-bottom:1px solid #DDE3E0;white-space:nowrap;background:#FAFBFA}
.tbl td{padding:12px;border-bottom:1px solid #ECEFED;vertical-align:middle}
.tbl tr:hover td{background:#FAFBFA}
.tbl .r{text-align:right}

/* ---------- Header (.hdr.dark) ---------- */
.hdr{background:#FFFFFF;border-bottom:1px solid #DDE3E0;position:sticky;top:0;z-index:30}
.hdr.dark{background:#0B1320;color:#FFFFFF;border-bottom:0}
.hdr.dark .iconbtn{color:#FFFFFF}.hdr.dark .iconbtn:hover{background:#1E2836;color:#FFFFFF}
.hdr.dark .chip{background:transparent;color:#FFFFFF;border-color:#3B4A5E}.hdr.dark .chip:hover{border-color:#A6FF00;color:#FFFFFF}
.hdr.dark .btn-secondary{background:transparent;color:#FFFFFF;border-color:#3B4A5E}.hdr.dark .btn-secondary:hover{background:#1E2836;color:#FFFFFF}
.hdr.dark .btn-ghost{color:#FFFFFF}.hdr.dark .btn-ghost:hover{background:#1E2836;color:#FFFFFF}
.hdr.dark .searchbox{border-color:#FFFFFF}
.hdr.dark :focus-visible{outline-color:#A6FF00}
.hdr-bar{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;min-height:64px}
.hdr-logo{display:flex;flex:none;align-items:center;min-height:44px;border-radius:6px}
.hdr-logo img{display:block;height:34px;width:146px}
.hdr-search{order:10;flex:1 1 100%;min-width:0;padding-bottom:12px}
.hdr-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
.hdr-actions .btn{min-height:44px;padding:0 12px;font-size:14px}
.hdr-actions .hdr-partners{color:#C9D1CD;font-weight:600}
.hdr-dot{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:#00B67A}
@media(min-width:1024px){
  .hdr-bar{flex-wrap:nowrap;height:72px}
  .hdr-logo img{height:44px;width:189px}
  .hdr-search{order:0;flex:1 1 0;max-width:640px;margin-left:24px;padding-bottom:0}
}
/* Market switch: <details> bez podrazumevanog markera */
.mkt{position:relative}
.mkt>summary{list-style:none;min-height:44px}
.mkt>summary::-webkit-details-marker{display:none}
.mkt>summary::marker{content:""}
.mkt>summary .mkt-cur{color:#C9D1CD}
.mkt>summary .i-chev{transition:transform .15s ease}
.mkt[open]>summary .i-chev{transform:rotate(180deg)}
.mkt-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;min-width:248px;margin:0;padding:6px;list-style:none;background:#FFFFFF;color:#0B1320;border:1px solid #DDE3E0;border-radius:12px;box-shadow:0 8px 24px rgba(11,19,32,.12)}
.mkt-menu a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:8px;color:#0B1320;font-size:14px;font-weight:600;text-decoration:none}
.mkt-menu a:hover{background:#F3F5F4;color:#0B1320}
.mkt-menu a[aria-current]{font-weight:800}
.mkt-menu .mkt-code{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:24px;border-radius:6px;background:#ECEFED;font-size:12px;font-weight:800}
.mkt-menu a[aria-current] .mkt-code{background:#0B1320;color:#A6FF00}
.mkt-menu .mkt-ccy{margin-left:auto;color:#5A6472;font-size:13px;font-weight:600}
.mkt-menu :focus-visible{outline-color:#0B1320}

@media(max-width:767.98px){
  .hdr-bar{column-gap:8px;row-gap:10px;padding-block:12px}
  .hdr-logo img{width:clamp(116px,38vw,146px);height:auto}
  .hdr-search{padding-bottom:0}
  .hdr .mkt>summary{
    gap:9px;padding:8px 14px;border-radius:10px;
    background:#F5F7F6;border-color:#DDE3E0;
  }
  .hdr.dark .mkt>summary{background:#16202F;border-color:#3B4A5E}
  .hdr.dark .mkt[open]>summary{background:#1E2836;border-color:#6B7480}
  .hdr.dark .mkt>summary:focus-visible{outline:2px solid #A6FF00;outline-offset:3px;box-shadow:none}
  .hdr .mkt-menu{
    width:min(262px,calc(100vw - 80px));min-width:0;padding:8px;
  }
  .hdr .mkt-menu a{gap:8px;padding:7px 10px;overflow-wrap:anywhere}
}
/* Zastava tržišta (dekorativna, 18×12, 3:2) */
.flag{position:relative;display:inline-block;flex:none;width:18px;height:12px;border-radius:2px;overflow:hidden;vertical-align:-1px}
.flag img{display:block;width:100%;height:100%}
.flag::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);pointer-events:none}
/* Searchbox */
.searchbox{display:flex;align-items:center;gap:8px;height:48px;border:1px solid #C5CEC9;border-radius:10px;background:#FFFFFF;padding:0 6px 0 14px;width:100%}
.searchbox:focus-within{border-color:#0B1320;box-shadow:0 0 0 3px #A6FF00}
.searchbox input{border:0;outline:0;flex:1 1 0;min-width:0;width:auto;min-height:0;padding:0;border-radius:0;font-family:inherit;font-size:16px;font-weight:500;color:#0B1320;background:transparent;height:44px;-webkit-appearance:none;appearance:none}
.searchbox input:focus-visible{outline:0;box-shadow:none}
.searchbox input::placeholder{color:#6B7480}
.searchbox input::-webkit-search-cancel-button{-webkit-appearance:none}
.searchbox .sbx-go{display:flex;align-items:center;justify-content:center;width:32px;height:44px;margin-left:-8px;padding:0;border:0;border-radius:8px;background:transparent;color:#5A6472;cursor:pointer;flex:none}
.searchbox .sbx-go:hover{color:#0B1320}
.searchbox .sbx-ai{color:#00754F;flex:none}
.searchbox .sbx-ai:hover{background:#F0FFD6;color:#005C3E}
.searchbox .sbx-submit{flex:none}
.hdr.dark .searchbox :focus-visible{outline-color:#0B1320}
.searchbox-lg{height:56px;padding:0 6px 0 16px}
/* Category row */
.nav-cats-row{border-top:1px solid #1E2836}
.nav-cats{display:flex;align-items:center;gap:4px;min-height:48px;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-inline:contain}
.nav-cats::-webkit-scrollbar{display:none}
.nav-cats a{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;font-weight:600;font-size:14px;color:#0B1320;text-decoration:none;border-radius:6px;white-space:nowrap}
.nav-cats a:hover{background:#ECEFED}
.hdr.dark .nav-cats a{color:#E3E8E5}.hdr.dark .nav-cats a:hover{background:#1E2836;color:#A6FF00}
.hdr.dark .nav-cats a[aria-current]{color:#A6FF00}
.nav-cats .nav-sep{flex:none;width:1px;height:20px;background:#25303F;margin:0 4px}
@media(max-width:1023.98px){.nav-cats{margin-inline:-8px}}

/* ---------- Bottom nav (<1024) ---------- */
.bottomnav{position:sticky;bottom:0;z-index:40;background:#FFFFFF;border-top:1px solid #DDE3E0;display:grid;grid-template-columns:repeat(var(--bn-cols,5),minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom)}
.bottomnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;font-size:11px;line-height:14px;font-weight:700;color:#5A6472;text-decoration:none;text-align:center;padding-inline:3px;overflow-wrap:anywhere}
.bottomnav a.on,.bottomnav a[aria-current]{color:#0B1320}
.bottomnav a.on .i,.bottomnav a[aria-current] .i{color:#0B1320}
.bottomnav a:focus-visible{outline-offset:-4px}
@media(min-width:1024px){.bottomnav{display:none}}

/* ---------- Footer (.foot) ---------- */
.foot{background:#0B1320;color:#C9D1CD;margin-top:48px}
.foot a{color:#FFFFFF;text-decoration:none;font-size:14px;line-height:28px}
.foot a:hover{color:#A6FF00}
.foot :focus-visible{outline-color:#A6FF00}
.foot-in{padding-top:16px;padding-bottom:32px}
.fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.fgrid>.fbrand{grid-column:1/-1}
@media(min-width:1024px){.fgrid{grid-template-columns:2fr repeat(var(--fcols,5),1fr)}.fgrid>.fbrand{grid-column:auto}}
.fbrand img{display:block;height:38px;width:163px}
@media(min-width:1024px){.fbrand img{height:52px;width:223px}}
.fbrand p{margin:0;font-size:14px;line-height:22px;max-width:360px}
.fcol h2{margin:0 0 6px;font-weight:800;color:#FFFFFF;font-size:14px;line-height:24px}
.fcol ul{margin:0;padding:0;list-style:none}
.fcol a{display:inline-flex;align-items:center;min-height:28px}
.foot-note{margin:28px 0 0;font-size:13px;line-height:20px;max-width:880px;color:#C9D1CD}
.foot-note a{font-size:13px;line-height:20px;text-decoration:underline;text-underline-offset:2px}
.foot-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;font-size:13px;line-height:20px;border-top:1px solid #25303F;margin-top:28px;padding-top:16px}
.foot-bottom a{font-size:13px;line-height:20px;display:inline-flex;align-items:center;min-height:44px}
.nl-foot{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;padding:24px 0;border-bottom:1px solid #25303F;margin-bottom:28px}
@media(min-width:1024px){.nl-foot{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center}}
.nl-foot h2{margin:0;color:#FFFFFF;font-weight:800;font-size:20px;line-height:26px}
.nl-foot p{margin:0;font-size:14px;line-height:20px}
.nl-foot .nl-note{font-size:12px;line-height:16px;color:#8E9A93}
.nl-foot .nl-note a{font-size:12px;line-height:16px;color:#C9D1CD;text-decoration:underline}
.nl-foot .check{color:#E3E8E5;font-size:14px;line-height:20px;padding:8px 0}
.nl-foot .check input{accent-color:#A6FF00}
.nl-form{display:flex;gap:8px;flex-wrap:wrap}
.nl-form .input{flex:1 1 220px;min-width:0}
.nl-band{background:#A6FF00;border-radius:16px;padding:24px;display:grid;grid-template-columns:minmax(0,1fr);gap:20px;color:#0B1320}
@media(min-width:1024px){.nl-band{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);padding:32px;align-items:center}}
.nl-band .tchip{border-color:#0B1320;color:#0B1320;background:rgba(255,255,255,.35)}
.nl-band .tchip input{accent-color:#0B1320}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* === respacct (account/portal responsive agent): .btn is declared after .only-* and overrode display:none -> header overflowed to 556px at 360px === */
@media(max-width:1023px){.btn.only-df,.btn.only-d{display:none}}
@media(min-width:1024px){.btn.only-m,.btn.only-mf{display:none}}
/* === /respacct === */

/* ---------- Visibility utilities: hidden state must beat component display (.btn/.iconbtn/.chip are declared later and would otherwise re-show them) ---------- */
@media(max-width:1023.98px){.only-d,.only-df{display:none!important}}
@media(min-width:1024px){.only-m,.only-mf{display:none!important}}
@media(max-width:767.98px){.hide-s,.hide-m{display:none!important}}

/* === mobile header: not sticky below 1024 (bottom nav carries navigation) === */
@media(max-width:1023.98px){
  :root{--hdr-h:0px}
  .hdr{position:relative}
}
/* nav row: fade hint at the edge when it scrolls (mobile/tablet) */
@media(max-width:1279.98px){.nav-cats{-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent);mask-image:linear-gradient(90deg,#000 88%,transparent)}}

@media(max-width:767.98px){
  /* These layouts already include bottom padding above the footer. */
  main:has(>:is(.pg,.listing,.cats-page,.cns,.auth,.cmp,.aip))+.foot{margin-top:0}
}

/* mobile pass: touch targets >= 44px on touch layouts (btn-sm was 36px, e.g. AI "Klasična pretraga") */
@media(max-width:1023.98px){.btn-sm{min-height:44px}}
