/* KUPI.ME MODERN MARKETPLACE UI V1
   Safe visual layer: keeps existing PHP/database logic, restyles layout/cards/mobile.
*/
:root{
  --kupi-blue:#0b5cff;
  --kupi-blue2:#0647c8;
  --kupi-orange:#ff7a1a;
  --kupi-bg:#f5f7fb;
  --kupi-text:#0f172a;
  --kupi-muted:#64748b;
  --kupi-border:#e6eaf2;
  --kupi-card:#ffffff;
  --kupi-shadow:0 14px 42px rgba(15,23,42,.09);
  --kupi-shadow-soft:0 8px 24px rgba(15,23,42,.07);
  --kupi-radius:22px;
}
html{scroll-behavior:smooth}
body.kupi-modern-body,
body{
  background:var(--kupi-bg)!important;
  color:var(--kupi-text);
  font-family:Inter,Montserrat,Lato,Arial,sans-serif!important;
  overflow-x:hidden;
  padding-bottom:0;
}
a{transition:.18s ease}
a:hover{text-decoration:none!important}
.top-bar{
  background:#fff!important;
  border-bottom:1px solid var(--kupi-border);
  padding:0!important;
}
.menu-bar{
  background:#fff!important;
  box-shadow:0 8px 26px rgba(15,23,42,.07);
  z-index:1040;
  padding:0!important;
}
.kupi-top-strip{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  font-size:13px;
  color:var(--kupi-muted);
  background:#f8fafc;
}
.kupi-top-strip strong{color:var(--kupi-blue)}
.kupi-nav{
  min-height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding:0 18px;
}
.kupi-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:29px;
  font-weight:900;
  letter-spacing:-1.4px;
  color:#0f172a!important;
}
.kupi-brand-bag{
  width:35px;height:35px;border-radius:11px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--kupi-blue),#003cb7);
  color:#fff;font-size:17px;box-shadow:0 10px 22px rgba(11,92,255,.24)
}
.kupi-brand span{color:var(--kupi-orange)}
.kupi-nav-links{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.kupi-nav-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 13px;
  border-radius:13px;
  color:#162033!important;
  font-weight:800;
  font-size:14px;
}
.kupi-nav-links a:hover,
.kupi-nav-links a.active{
  background:#eef4ff;
  color:var(--kupi-blue)!important;
}
.kupi-nav-actions{
  display:flex;
  align-items:center;
  gap:9px;
}
.kupi-icon-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 12px;
  border-radius:13px;
  color:#162033!important;
  font-weight:800;
  font-size:14px;
}
.kupi-icon-link:hover{background:#f1f5f9}
.kupi-post-btn{
  min-height:48px;
  padding:0 18px!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,var(--kupi-blue),var(--kupi-blue2))!important;
  color:#fff!important;
  border:0!important;
  display:inline-flex!important;
  align-items:center;
  gap:8px;
  font-weight:900!important;
  box-shadow:0 14px 28px rgba(11,92,255,.25)!important;
}
.kupi-mobile-trigger{
  display:none;
  width:44px;height:44px;border:0;border-radius:14px;
  background:#f1f5f9;color:#0f172a;font-size:18px;
}
.kupi-mobile-panel{
  position:fixed;inset:0 0 auto 0;
  background:rgba(15,23,42,.35);
  z-index:2000;
  display:none;
}
.kupi-mobile-drawer{
  width:min(88vw,360px);
  min-height:100dvh;
  background:#fff;
  box-shadow:28px 0 80px rgba(15,23,42,.25);
  padding:16px;
}
.kupi-mobile-drawer .drawer-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:14px
}
.kupi-mobile-drawer a{
  display:flex;align-items:center;gap:10px;
  min-height:48px;padding:0 12px;border-radius:14px;
  color:#0f172a!important;font-weight:850;border:1px solid #eef2f7;margin-bottom:8px;
}
.kupi-mobile-drawer a.primary{background:var(--kupi-blue);color:#fff!important;border-color:var(--kupi-blue)}
.kupi-mobile-close{border:0;background:#f1f5f9;border-radius:12px;width:40px;height:40px}
.kupi-hero{
  position:relative;
  background:
    linear-gradient(180deg,rgba(5,16,34,.72),rgba(5,16,34,.55)),
    url('/images/bg.jpg'),
    linear-gradient(135deg,#0d2445,#153c72);
  background-size:cover;
  background-position:center;
  margin:0 0 0;
  min-height:360px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.kupi-hero:after{
  content:"";position:absolute;inset:auto -10% -40% -10%;height:55%;
  background:linear-gradient(180deg,transparent,var(--kupi-bg) 78%);
  pointer-events:none;
}
.kupi-hero-inner{
  position:relative;z-index:1;
  width:100%;max-width:1180px;margin:0 auto;padding:58px 20px 76px;
}
.kupi-hero h1{
  font-size:clamp(36px,5vw,64px);
  line-height:1.02;
  letter-spacing:-2.2px;
  color:#fff!important;
  font-weight:950;
  margin:0 0 12px;
  text-align:center;
}
.kupi-hero p{
  color:rgba(255,255,255,.9);
  text-align:center;
  font-size:19px;
  margin:0 0 26px;
}
.kupi-search-card{
  max-width:940px;margin:0 auto;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 30px 90px rgba(0,0,0,.23);
  border-radius:22px;
  padding:12px;
  display:grid;
  grid-template-columns:1.2fr .75fr .75fr 160px;
  gap:10px;
}
.kupi-search-field{
  min-height:54px;border:1px solid #e5eaf3;border-radius:14px;
  background:#fff;display:flex;align-items:center;gap:9px;padding:0 14px;color:#64748b;
}
.kupi-search-field input,.kupi-search-field select{
  border:0!important;outline:0!important;box-shadow:none!important;width:100%;
  font-size:15px;background:transparent;color:#0f172a;
}
.kupi-search-btn{
  border:0;border-radius:14px;background:linear-gradient(135deg,var(--kupi-blue),var(--kupi-blue2));
  color:#fff;font-weight:900;font-size:15px;
}
.kupi-hero-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:14px;
  max-width:940px;margin:18px auto 0;
}
.kupi-hero-stat{
  min-height:62px;border-radius:18px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px);
  color:#fff;display:flex;align-items:center;gap:12px;padding:10px 14px;font-weight:850;
}
.kupi-hero-stat i{
  width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:rgba(11,92,255,.65)
}
.kupi-section{
  max-width:1180px;margin:0 auto;padding:28px 20px;
}
.kupi-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 16px;
}
.kupi-section-head h2,.oglasi-h5{
  color:#0f172a!important;font-size:23px!important;font-weight:950!important;letter-spacing:-.8px;margin:0!important;
}
.kupi-view-all{color:var(--kupi-blue)!important;font-weight:900;font-size:14px}
.kupi-categories{
  display:grid;grid-template-columns:repeat(8,1fr);gap:14px;
}
.kupi-cat-card{
  background:#fff;border:1px solid var(--kupi-border);border-radius:20px;padding:16px 10px;
  text-align:center;box-shadow:var(--kupi-shadow-soft);color:#0f172a!important;
  min-height:112px;display:grid;align-content:center;gap:6px;
}
.kupi-cat-card:hover{transform:translateY(-2px);box-shadow:var(--kupi-shadow);color:var(--kupi-blue)!important}
.kupi-cat-icon{
  width:48px;height:48px;border-radius:17px;display:grid;place-items:center;margin:0 auto;
  background:#eef4ff;color:var(--kupi-blue);font-size:21px;
}
.kupi-cat-card:nth-child(2) .kupi-cat-icon{background:#ecfdf5;color:#14a065}
.kupi-cat-card:nth-child(3) .kupi-cat-icon{background:#f5f3ff;color:#6d45ff}
.kupi-cat-card:nth-child(4) .kupi-cat-icon{background:#fff7ed;color:#f97316}
.kupi-cat-card:nth-child(5) .kupi-cat-icon{background:#fff1f2;color:#f43f5e}
.kupi-cat-card:nth-child(6) .kupi-cat-icon{background:#ecfeff;color:#0891b2}
.kupi-cat-title{font-weight:950;font-size:14px}
.kupi-cat-count{font-size:12px;color:#64748b}
#nosac.container,
.container.oglas-tab{
  max-width:1180px!important;
}
#nosac{margin-top:0!important}
#nosac hr{display:none}
.oglas-tab{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}
.tab-meni{
  width:100%;
  display:flex!important;
  gap:8px;
  border-bottom:1px solid var(--kupi-border);
  margin:0 0 18px!important;
  overflow-x:auto;
}
.tab-meni .tab-item{
  float:none!important;
  width:auto!important;
  background:transparent!important;
  border:0!important;
  padding:0!important;
  margin:0!important;
}
.tab-meni .tab-item p{margin:0!important}
.tab-meni .tab-item a{
  display:flex;align-items:center;min-height:42px;padding:0 14px;border-radius:14px 14px 0 0;
  color:#334155!important;font-weight:900;font-size:14px;
}
.tab-meni .tab-item.active a,.tab-meni .tab-item a:hover{
  color:var(--kupi-blue)!important;background:#eef4ff;
}
.tab-meni-mob{display:none!important}
.tab-content>.row,
.tab-content .row,
.append.row{
  row-gap:18px;
}
.box-oglas{
  background:#fff!important;
  border:1px solid var(--kupi-border)!important;
  border-radius:18px!important;
  overflow:hidden!important;
  min-height:100%;
  box-shadow:var(--kupi-shadow-soft)!important;
  position:relative;
  transition:.18s ease;
  padding:0!important;
  margin-bottom:0!important;
}
.box-oglas:hover{transform:translateY(-3px);box-shadow:var(--kupi-shadow)!important}
.box-oglas .image{
  height:164px!important;
  width:100%!important;
  background:#eef2f7!important;
  overflow:hidden!important;
  display:block!important;
  border:0!important;
  margin:0!important;
}
.box-oglas .image img{
  width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;
}
.box-oglas .flag{
  position:absolute!important;left:9px;top:9px;z-index:3;
  background:#ff2d2d!important;color:#fff!important;border-radius:999px!important;
  font-size:10px!important;font-weight:950!important;padding:5px 8px!important;display:none;
}
.box-oglas .premium,.box-oglas .placen{
  background:#ff9f1a!important;color:#fff!important;border-radius:999px!important;
  font-size:10px!important;font-weight:950!important;padding:5px 8px!important;
}
.box-oglas .naziv{
  padding:12px 12px 2px!important;
  min-height:48px!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#0f172a!important;
}
.box-oglas .naziv a{color:#0f172a!important}
.box-oglas .cijena{
  text-align:left!important;
  padding:0 12px 7px!important;
  color:var(--kupi-blue)!important;
  font-size:17px!important;
  font-weight:950!important;
  min-height:auto!important;
}
.box-oglas .vrijeme{
  border-top:1px solid #eef2f7!important;
  padding:8px 12px 10px!important;
  color:#64748b!important;
  font-size:12px!important;
  min-height:36px!important;
}
.box-oglas .grad:before{content:"📍 ";font-size:11px}
.load_oglasi{
  margin:18px auto!important;
  max-width:280px;
  min-height:50px;
  border-radius:15px!important;
  background:var(--kupi-blue)!important;
  border:0!important;
  font-weight:900!important;
}
.kupi-promo-row{
  max-width:1180px;margin:2px auto 26px;padding:0 20px;
  display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px;
}
.kupi-promo{
  min-height:128px;border-radius:22px;padding:22px;background:#fff;border:1px solid var(--kupi-border);
  box-shadow:var(--kupi-shadow-soft);display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.kupi-promo h3{font-size:20px;font-weight:950;margin:0 0 6px;color:#0f172a}
.kupi-promo p{margin:0;color:#64748b;font-size:14px}
.kupi-promo .big-icon{
  min-width:66px;width:66px;height:66px;border-radius:22px;display:grid;place-items:center;font-size:28px;
  background:#eef4ff;color:var(--kupi-blue);
}
.kupi-promo:nth-child(2){background:#fff8e8}
.kupi-promo:nth-child(2) .big-icon{background:#fff1c2;color:#f59e0b}
.kupi-promo:nth-child(3){background:#ecfdf5}
.kupi-promo:nth-child(3) .big-icon{background:#d1fae5;color:#16a34a}
#oglas-wrap,
.container{
  max-width:1180px;
}
.oglas_naslov h1,.h1{
  color:#0f172a!important;
  font-weight:950!important;
  letter-spacing:-.8px!important;
}
.card,.user-tab,.kat_filter{
  border:1px solid var(--kupi-border)!important;
  border-radius:20px!important;
  box-shadow:var(--kupi-shadow-soft)!important;
}
.form-control,.inpt-control,select,input[type=text],input[type=password],input[type=email],textarea{
  border-radius:14px!important;
  border:1px solid #dce4ef!important;
}
.btn{
  border-radius:14px!important;
  font-weight:850!important;
}
.btn-primary,.btn-info,.btn-success{
  background:var(--kupi-blue)!important;border-color:var(--kupi-blue)!important;color:#fff!important
}
#footer,.kupi-footer{
  background:#0b1220!important;
  color:#cbd5e1!important;
  margin-top:32px;
  padding:42px 0!important;
}
.kupi-footer a,#footer a{color:#e2e8f0!important}
.kupi-footer a:hover,#footer a:hover{color:#fff!important}
.kupi-footer-grid{
  display:grid;grid-template-columns:1.25fr .75fr .75fr .85fr;gap:26px;
}
.kupi-footer h4{font-size:15px;color:#fff;font-weight:950;margin:0 0 12px}
.kupi-footer p{color:#94a3b8;font-size:14px;line-height:1.7}
.kupi-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kupi-footer .brand{font-size:28px;font-weight:950;color:#fff}.kupi-footer .brand span{color:var(--kupi-orange)}
.kupi-bottom-nav{
  display:none;position:fixed;left:0;right:0;bottom:0;z-index:1800;
  background:rgba(255,255,255,.96);backdrop-filter:blur(16px);
  border-top:1px solid var(--kupi-border);padding:6px 8px calc(6px + env(safe-area-inset-bottom));
  box-shadow:0 -12px 35px rgba(15,23,42,.12);
}
.kupi-bottom-nav a{
  flex:1;display:grid;place-items:center;gap:2px;color:#334155!important;font-size:11px;font-weight:850;
}
.kupi-bottom-nav i{font-size:18px}
.kupi-bottom-nav .post{
  transform:translateY(-14px);width:56px;height:56px;border-radius:50%;
  background:linear-gradient(135deg,var(--kupi-blue),var(--kupi-blue2));color:#fff!important;
  box-shadow:0 12px 26px rgba(11,92,255,.35);display:grid;place-items:center;flex:0 0 64px;
}
.kupi-bottom-nav .post span{display:none}
.back-top{border-radius:16px!important;background:var(--kupi-blue)!important}
@media(max-width:991px){
  body{padding-bottom:74px!important}
  .kupi-top-strip{display:none}
  .kupi-nav{min-height:62px;padding:0 10px}
  .kupi-brand{font-size:23px}.kupi-brand-bag{width:31px;height:31px;border-radius:10px}
  .kupi-nav-links,.kupi-nav-actions .hide-mobile{display:none!important}
  .kupi-mobile-trigger{display:inline-grid;place-items:center}
  .kupi-nav-actions{gap:6px}
  .kupi-post-btn{min-width:44px;width:44px;height:44px;min-height:44px;padding:0!important;border-radius:14px!important;justify-content:center}
  .kupi-post-btn span{display:none}
  .kupi-hero{min-height:auto;margin:0}
  .kupi-hero-inner{padding:28px 12px 22px}
  .kupi-hero h1{text-align:left;font-size:28px;line-height:1.08;margin-bottom:8px}
  .kupi-hero p{text-align:left;font-size:14px;margin-bottom:14px}
  .kupi-search-card{grid-template-columns:1fr;gap:8px;border-radius:16px;padding:9px}
  .kupi-search-field{min-height:45px;border-radius:12px}
  .kupi-search-btn{min-height:46px;border-radius:12px}
  .kupi-hero-stats{display:none}
  .kupi-section{padding:16px 10px}
  .kupi-section-head h2,.oglasi-h5{font-size:18px!important}
  .kupi-categories{grid-template-columns:repeat(6,82px);overflow-x:auto;padding-bottom:4px;gap:8px}
  .kupi-cat-card{min-height:76px;border-radius:14px;padding:9px 6px;box-shadow:none}
  .kupi-cat-icon{width:34px;height:34px;border-radius:11px;font-size:16px}
  .kupi-cat-title{font-size:11px}.kupi-cat-count{display:none}
  #nosac.container,.container.oglas-tab{padding-left:10px!important;padding-right:10px!important}
  .tab-meni{gap:4px;margin-bottom:12px!important}
  .tab-meni .tab-item a{min-height:36px;padding:0 10px;font-size:12px}
  .tab-content .row>.col-6,
  .append.row>.col-6{
    padding-left:5px!important;padding-right:5px!important;margin-bottom:10px!important;
  }
  .box-oglas{border-radius:13px!important}
  .box-oglas .image{height:116px!important}
  .box-oglas .naziv{font-size:12px!important;padding:8px 8px 0!important;min-height:40px!important}
  .box-oglas .cijena{font-size:13px!important;padding:0 8px 6px!important}
  .box-oglas .vrijeme{font-size:10.5px!important;padding:7px 8px!important}
  .box-oglas .vrijeme .float-right{display:none}
  .box-oglas .flag,.box-oglas .premium,.box-oglas .placen{font-size:8.5px!important;padding:4px 6px!important}
  .kupi-promo-row{grid-template-columns:1fr;padding:0 10px;margin-bottom:16px;gap:10px}
  .kupi-promo{min-height:92px;border-radius:16px;padding:15px}
  .kupi-promo h3{font-size:16px}.kupi-promo p{font-size:12px}
  .kupi-promo .big-icon{width:48px;height:48px;min-width:48px;border-radius:16px;font-size:22px}
  .kupi-footer-grid{grid-template-columns:1fr;gap:18px}
  .kupi-footer{padding:28px 0 90px!important}
  .kupi-bottom-nav{display:flex}
  #footer{padding-bottom:92px!important}
}
@media(max-width:390px){
  .box-oglas .image{height:104px!important}
  .kupi-cat-card{width:76px}
}

/* KUPI.ME VISUAL POLISH V2
   Fixes first V1 look: tighter hero, cleaner cards, better spacing, mobile 2-column browse grid.
*/
body.kupi-modern-body,
body{
  background:
    radial-gradient(circle at 12% -8%, rgba(11,92,255,.09), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(255,122,26,.08), transparent 25%),
    #f4f7fb!important;
}
.kupi-nav{
  max-width:1180px!important;
  margin:0 auto!important;
}
.kupi-brand{
  letter-spacing:-1.7px!important;
}
.kupi-top-strip{
  color:#475569!important;
}
.kupi-hero{
  min-height:300px!important;
  border-bottom:1px solid #e7edf6;
  background:
    linear-gradient(135deg, rgba(5,22,52,.92), rgba(11,92,255,.76)),
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.22), transparent 30%),
    linear-gradient(135deg,#07152f,#0b5cff)!important;
}
.kupi-hero:after{
  height:42%!important;
  background:linear-gradient(180deg,transparent,rgba(244,247,251,.98) 86%)!important;
}
.kupi-hero-inner{
  padding:42px 18px 48px!important;
}
.kupi-hero h1{
  max-width:820px;
  margin:0 auto 10px!important;
  text-shadow:0 14px 36px rgba(0,0,0,.25);
}
.kupi-hero p{
  max-width:720px;
  margin-left:auto!important;
  margin-right:auto!important;
}
.kupi-search-card{
  max-width:1000px!important;
  border-radius:24px!important;
  border:1px solid rgba(255,255,255,.85)!important;
  box-shadow:0 26px 70px rgba(2,8,23,.20)!important;
}
.kupi-search-field{
  border-color:#dce6f5!important;
}
.kupi-search-field i{
  color:var(--kupi-blue)!important;
}
.kupi-hero-stats{
  max-width:1000px!important;
}
.kupi-hero-stat{
  background:rgba(255,255,255,.16)!important;
  min-height:58px!important;
  font-size:13px!important;
}
.kupi-section{
  padding-top:22px!important;
  padding-bottom:18px!important;
}
.kupi-section-head{
  margin-bottom:13px!important;
}
.kupi-section-head h2:before{
  content:"";
  display:inline-block;
  width:7px;height:22px;border-radius:20px;
  background:linear-gradient(180deg,var(--kupi-blue),var(--kupi-orange));
  margin-right:9px;
  vertical-align:-4px;
}
.kupi-categories{
  grid-template-columns:repeat(8,1fr)!important;
  gap:10px!important;
}
.kupi-cat-card{
  min-height:94px!important;
  padding:13px 8px!important;
  border-radius:18px!important;
}
.kupi-cat-icon{
  width:42px!important;height:42px!important;border-radius:15px!important;
}
#nosac.container{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:26px!important;
  box-shadow:0 18px 50px rgba(15,23,42,.08)!important;
  padding:22px!important;
  margin-top:8px!important;
  margin-bottom:24px!important;
}
.container.oglas-tab{
  padding:0!important;
}
.tab-meni{
  background:#f8fafc!important;
  border:1px solid #e8eef7!important;
  border-radius:18px!important;
  padding:6px!important;
  margin-bottom:18px!important;
}
.tab-meni .tab-item a{
  border-radius:13px!important;
  min-height:38px!important;
}
.tab-meni .tab-item.active a,
.tab-meni .tab-item a:hover{
  background:#fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.08)!important;
}
.tab-content>.row,
.tab-content .row,
.append.row{
  margin-left:-7px!important;
  margin-right:-7px!important;
}
.tab-content .row>[class*="col-"],
.append.row>[class*="col-"]{
  padding-left:7px!important;
  padding-right:7px!important;
  margin-bottom:14px!important;
}
.box-oglas{
  border-radius:19px!important;
  border-color:#e9eef7!important;
  box-shadow:0 8px 26px rgba(15,23,42,.075)!important;
}
.box-oglas:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 18px 42px rgba(15,23,42,.13)!important;
}
.box-oglas .image{
  height:178px!important;
  background:linear-gradient(135deg,#eef4ff,#f8fafc)!important;
}
.box-oglas .naziv{
  min-height:50px!important;
  padding:11px 12px 0!important;
}
.box-oglas .cijena{
  padding:2px 12px 8px!important;
}
.box-oglas .vrijeme{
  background:#fbfdff!important;
}
.kupi-promo-row{
  margin-top:0!important;
}
.kupi-promo{
  border-radius:24px!important;
}

/* Old legacy pieces that still appear: soften them */
.h1{
  display:none!important;
}
#glavni_meni{
  display:none!important;
}
.top-bar .text-center{
  display:none!important;
}

/* Mobile repair */
@media(max-width:991px){
  body{
    background:#f4f7fb!important;
  }
  .menu-bar{
    position:sticky!important;
    top:0!important;
  }
  .kupi-nav{
    min-height:58px!important;
    padding:0 12px!important;
  }
  .kupi-brand{
    font-size:22px!important;
  }
  .kupi-hero{
    min-height:auto!important;
    border-radius:0 0 24px 24px!important;
    margin-bottom:8px!important;
  }
  .kupi-hero-inner{
    padding:22px 12px 20px!important;
  }
  .kupi-hero h1{
    font-size:26px!important;
    letter-spacing:-1.1px!important;
    text-align:left!important;
  }
  .kupi-hero p{
    text-align:left!important;
    font-size:14px!important;
    line-height:1.55!important;
    margin-bottom:13px!important;
  }
  .kupi-search-card{
    border-radius:17px!important;
    padding:8px!important;
    box-shadow:0 16px 40px rgba(2,8,23,.18)!important;
  }
  .kupi-search-field{
    min-height:44px!important;
  }
  .kupi-section{
    padding:12px 10px!important;
  }
  .kupi-section-head{
    margin-bottom:10px!important;
  }
  .kupi-section-head h2{
    font-size:17px!important;
  }
  .kupi-section-head h2:before{
    width:5px!important;
    height:18px!important;
    margin-right:7px!important;
  }
  .kupi-categories{
    grid-template-columns:repeat(4,1fr)!important;
    overflow:visible!important;
    gap:8px!important;
  }
  .kupi-cat-card{
    min-height:82px!important;
    border-radius:15px!important;
    padding:9px 4px!important;
  }
  .kupi-cat-icon{
    width:34px!important;height:34px!important;border-radius:12px!important;
  }
  .kupi-cat-title{
    font-size:11px!important;
    line-height:1.1!important;
  }
  #nosac.container{
    width:calc(100% - 16px)!important;
    padding:10px!important;
    border-radius:20px!important;
    margin-top:4px!important;
    box-shadow:0 10px 30px rgba(15,23,42,.075)!important;
  }
  .tab-meni{
    padding:5px!important;
    border-radius:15px!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    -webkit-overflow-scrolling:touch;
  }
  .tab-meni .tab-item a{
    min-height:34px!important;
    font-size:12px!important;
    padding:0 10px!important;
  }
  .tab-content .row,
  .append.row{
    margin-left:-4px!important;
    margin-right:-4px!important;
  }
  .tab-content .row>[class*="col-"],
  .append.row>[class*="col-"]{
    padding-left:4px!important;
    padding-right:4px!important;
    margin-bottom:8px!important;
  }
  .box-oglas{
    border-radius:14px!important;
    box-shadow:0 6px 18px rgba(15,23,42,.07)!important;
  }
  .box-oglas .image{
    height:122px!important;
  }
  .box-oglas .naziv{
    font-size:12px!important;
    line-height:1.25!important;
    padding:8px 8px 0!important;
    min-height:40px!important;
  }
  .box-oglas .cijena{
    font-size:13px!important;
    padding:1px 8px 6px!important;
  }
  .box-oglas .vrijeme{
    padding:6px 8px!important;
    font-size:10px!important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .kupi-promo-row{
    padding:0 8px!important;
    gap:8px!important;
  }
  .kupi-promo{
    border-radius:18px!important;
  }
}
@media(max-width:420px){
  .box-oglas .image{
    height:112px!important;
  }
}
@media(max-width:360px){
  .box-oglas .image{
    height:104px!important;
  }
  .kupi-categories{
    grid-template-columns:repeat(4,1fr)!important;
    gap:6px!important;
  }
}

/* KUPI.ME CATEGORIES + LISTINGS + DETAIL V3
   Visual modernization for category pages and ad detail page.
   Does not change database logic.
*/

/* Global page content */
body.kupi-modern-body .container:not(.kupi-nav):not(.kupi-section .container){
  max-width:1180px;
}
body.kupi-modern-body h1,
body.kupi-modern-body .h1,
body.kupi-modern-body .oglas_naslov h1{
  font-family:Inter,Montserrat,Lato,Arial,sans-serif!important;
}

/* All categories page / legacy category blocks */
body.kupi-modern-body .kat_menu,
body.kupi-modern-body .kat_des,
body.kupi-modern-body .kat_filter{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:24px!important;
  box-shadow:0 12px 34px rgba(15,23,42,.075)!important;
}
body.kupi-modern-body .kat_filter .card-header,
body.kupi-modern-body .card-header{
  background:#fff!important;
  border-bottom:1px solid #edf1f7!important;
  color:#0f172a!important;
  font-weight:950!important;
  border-radius:20px 20px 0 0!important;
}
body.kupi-modern-body .subcat,
body.kupi-modern-body .cat-item,
body.kupi-modern-body .kategorija,
body.kupi-modern-body a div.subcat{
  background:#fff!important;
  color:#111827!important;
  border:1px solid #e7edf6!important;
  border-radius:16px!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 14px!important;
  margin:7px 0!important;
  box-shadow:0 7px 18px rgba(15,23,42,.055)!important;
  font-weight:850!important;
}
body.kupi-modern-body .subcat:hover,
body.kupi-modern-body a div.subcat:hover{
  transform:translateY(-1px);
  border-color:#bfdbfe!important;
  box-shadow:0 12px 28px rgba(11,92,255,.11)!important;
  color:#0b5cff!important;
}
body.kupi-modern-body .subcat i{
  color:#0b5cff!important;
  margin-right:8px!important;
}
body.kupi-modern-body .subcat .close{
  color:#ef4444!important;
}

/* Old all-categories orange rows */
body.kupi-modern-body [style*="background:#ff"],
body.kupi-modern-body [style*="background-color:#ff"],
body.kupi-modern-body [style*="background: #ff"]{
  border-radius:16px!important;
}

/* Safer generic rows in pages with orange category boxes */
body.kupi-modern-body .container .row a[href*="/vozila/"] > div,
body.kupi-modern-body .container .row a[href*="/nekretnine/"] > div,
body.kupi-modern-body .container .row a[href*="/mobilni/"] > div,
body.kupi-modern-body .container .row a[href*="/tehnika/"] > div,
body.kupi-modern-body .container .row a[href*="/servis-usluge/"] > div{
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid #e7edf6!important;
  border-radius:16px!important;
  box-shadow:0 7px 18px rgba(15,23,42,.055)!important;
}

/* Listing grid pages: home, category, latest, search */
body.kupi-modern-body .row > .col-md-3.col-6.col-sm-4,
body.kupi-modern-body .row > .col-lg-3.col-md-3,
body.kupi-modern-body .append.row > .col-md-3.col-6.col-sm-4{
  display:flex;
}
body.kupi-modern-body .box-oglas{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-height:302px!important;
  height:auto!important;
  background:#fff!important;
}
body.kupi-modern-body .box-oglas .image{
  flex:0 0 auto!important;
}
body.kupi-modern-body .box-oglas .naziv{
  flex:0 0 auto!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  text-overflow:ellipsis!important;
}
body.kupi-modern-body .box-oglas .cijena{
  margin-top:auto!important;
  line-height:1.15!important;
  color:#0b5cff!important;
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
}
body.kupi-modern-body .box-oglas .cijena .placen,
body.kupi-modern-body .box-oglas .cijena p.placen{
  display:inline-block!important;
  margin:0 0 4px 0!important;
  background:#ff8a00!important;
  color:#fff!important;
  font-size:9px!important;
  padding:4px 7px!important;
}
body.kupi-modern-body .box-oglas .vrijeme{
  margin-top:0!important;
  flex:0 0 auto!important;
  border-radius:0 0 18px 18px!important;
  background:#f8fafc!important;
  color:#536174!important;
}
body.kupi-modern-body .box-oglas .vrijeme i{
  color:#0b5cff!important;
}
body.kupi-modern-body .box-oglas:after{
  content:"♡";
  position:absolute;right:10px;top:10px;
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff;background:rgba(15,23,42,.42);
  backdrop-filter:blur(8px);
  font-size:20px;font-weight:800;
  z-index:5;
}

/* Category listing page shell */
body.kupi-modern-body .oglas-shop{
  margin-top:18px!important;
}
body.kupi-modern-body .oglas-tab-multislider{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:22px!important;
  box-shadow:0 10px 28px rgba(15,23,42,.065)!important;
  padding:14px!important;
}
body.kupi-modern-body .filter,
body.kupi-modern-body .flt_grad,
body.kupi-modern-body .flt_sort,
body.kupi-modern-body .flt_min,
body.kupi-modern-body .flt_max{
  border-radius:14px!important;
  border:1px solid #dbe5f2!important;
}

/* Detail page: transform old view into modern marketplace detail */
body.kupi-modern-body #oglas-wrap.kupi-detail-wrap,
body.kupi-modern-body #oglas-wrap{
  max-width:1180px!important;
  margin:18px auto 0!important;
  padding:0 14px!important;
}
body.kupi-modern-body .oglas_naslov{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:24px!important;
  box-shadow:0 14px 38px rgba(15,23,42,.08)!important;
  padding:18px 22px!important;
  margin-bottom:16px!important;
}
body.kupi-modern-body .oglas_naslov h1{
  margin:0!important;
  font-size:clamp(24px,3vw,38px)!important;
  line-height:1.12!important;
  color:#0f172a!important;
  font-weight:950!important;
  letter-spacing:-1.2px!important;
}
body.kupi-modern-body .oglas_naslov h1 b,
body.kupi-modern-body .oglas_naslov h1 .text-info{
  color:#0b5cff!important;
}
body.kupi-modern-body .oglas-tab.oglas,
body.kupi-modern-body .oglas-tabs{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:26px!important;
  box-shadow:0 18px 52px rgba(15,23,42,.08)!important;
  overflow:hidden!important;
}
body.kupi-modern-body .view-oglas.nav-tabs,
body.kupi-modern-body .nav.view-oglas{
  background:#f8fafc!important;
  border:0!important;
  padding:8px!important;
  display:flex!important;
  gap:8px!important;
}
body.kupi-modern-body .view-oglas .nav-link{
  border:0!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#334155!important;
  font-weight:900!important;
  min-height:42px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 15px!important;
}
body.kupi-modern-body .view-oglas .nav-link.active,
body.kupi-modern-body .view-oglas .nav-link:hover{
  background:#0b5cff!important;
  color:#fff!important;
}
body.kupi-modern-body .oglas-header{
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr)!important;
  gap:22px!important;
  padding:22px!important;
  align-items:start!important;
}
body.kupi-modern-body #nosac-slika{
  background:#f8fafc!important;
  border:1px solid #e6eaf2!important;
  border-radius:24px!important;
  padding:12px!important;
  overflow:hidden!important;
}
body.kupi-modern-body .solo-slika{
  background:#fff!important;
  border-radius:20px!important;
  overflow:hidden!important;
  min-height:360px!important;
  display:grid!important;
  place-items:center!important;
}
body.kupi-modern-body .solo-slika img,
body.kupi-modern-body #ogl_slika{
  max-width:100%!important;
  width:100%!important;
  height:auto!important;
  max-height:520px!important;
  object-fit:contain!important;
  border-radius:18px!important;
}
body.kupi-modern-body #lightgallery,
body.kupi-modern-body .galerija{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
}
body.kupi-modern-body #lightgallery a,
body.kupi-modern-body .galerija a{
  border-radius:12px!important;
  overflow:hidden!important;
  border:1px solid #e5edf8!important;
}
body.kupi-modern-body #lightgallery img{
  width:70px!important;
  height:62px!important;
  object-fit:cover!important;
  border-radius:10px!important;
}
body.kupi-modern-body .oglas-id{
  color:#94a3b8!important;
  font-weight:800!important;
}
body.kupi-modern-body .oglas-header .opis,
body.kupi-modern-body .oglas-header table,
body.kupi-modern-body .oglas-header .table{
  width:100%!important;
}
body.kupi-modern-body .oglas-header .row{
  margin-left:0!important;
  margin-right:0!important;
}
body.kupi-modern-body .oglas-header [class*="col-"]{
  padding-left:0!important;
  padding-right:0!important;
}
body.kupi-modern-body .oglas-header hr{
  border-color:#edf2f7!important;
}
body.kupi-modern-body .oglas-header .text-right{
  color:#0f172a!important;
  font-weight:900!important;
}
body.kupi-modern-body .oglas-header .text-warning,
body.kupi-modern-body .oglas-header .cijena,
body.kupi-modern-body .oglas-header b.text-warning{
  color:#ff8a00!important;
}
body.kupi-modern-body .oglas-header .fa-money-bill,
body.kupi-modern-body .oglas-header .fa-money-bill-wave{
  color:#0b5cff!important;
}
body.kupi-modern-body .prodavac,
body.kupi-modern-body .user-info,
body.kupi-modern-body .autor,
body.kupi-modern-body .oglas-user{
  background:#fff!important;
  border:1px solid #e6eaf2!important;
  border-radius:22px!important;
  padding:16px!important;
  box-shadow:0 10px 28px rgba(15,23,42,.065)!important;
}
body.kupi-modern-body .oglas-header .btn,
body.kupi-modern-body .oglas .btn,
body.kupi-modern-body a[href^="tel:"],
body.kupi-modern-body .private-message,
body.kupi-modern-body .btn-poruka{
  border-radius:16px!important;
  min-height:44px!important;
  font-weight:900!important;
}
body.kupi-modern-body .oglas-header .btn-dark,
body.kupi-modern-body .oglas-header .btn-secondary,
body.kupi-modern-body .oglas-header button,
body.kupi-modern-body .oglas-header .btn{
  box-shadow:none!important;
}
body.kupi-modern-body .oglas-header .btn-dark,
body.kupi-modern-body .oglas-header .btn-secondary{
  background:#0f172a!important;
  color:#fff!important;
  border-color:#0f172a!important;
}
body.kupi-modern-body .oglas-header a[href^="tel:"],
body.kupi-modern-body .oglas-header a[href*="tel"]{
  background:#0b5cff!important;
  color:#fff!important;
}
body.kupi-modern-body .tab-pane{
  padding:0!important;
}
body.kupi-modern-body .oglas-tabs .opis,
body.kupi-modern-body .oglas-tabs .opis_oglasa,
body.kupi-modern-body .oglas-tabs .desc{
  font-size:16px!important;
  line-height:1.75!important;
  color:#334155!important;
}
body.kupi-modern-body .social-share,
body.kupi-modern-body .share,
body.kupi-modern-body .podijeli{
  display:flex!important;
  gap:6px!important;
  flex-wrap:wrap!important;
}
body.kupi-modern-body .social-share a,
body.kupi-modern-body .share a{
  border-radius:10px!important;
  overflow:hidden!important;
}

/* Clean old dark small right buttons on detail */
body.kupi-modern-body #oglas-wrap .col-md-2 .btn,
body.kupi-modern-body #oglas-wrap .col-sm-3 .btn,
body.kupi-modern-body #oglas-wrap .col-lg-2 .btn{
  width:100%!important;
  margin-bottom:8px!important;
  border-radius:15px!important;
}

/* Mobile detail */
@media(max-width:991px){
  body.kupi-modern-body .box-oglas{
    min-height:244px!important;
  }
  body.kupi-modern-body .box-oglas .image{
    height:116px!important;
  }
  body.kupi-modern-body .box-oglas:after{
    width:28px;height:28px;font-size:16px;right:7px;top:7px;
  }
  body.kupi-modern-body .box-oglas .cijena{
    display:block!important;
    font-size:14px!important;
    padding:1px 8px 6px!important;
  }
  body.kupi-modern-body .box-oglas .vrijeme{
    border-radius:0 0 14px 14px!important;
  }
  body.kupi-modern-body #oglas-wrap.kupi-detail-wrap,
  body.kupi-modern-body #oglas-wrap{
    padding:0 8px!important;
    margin-top:10px!important;
  }
  body.kupi-modern-body .oglas_naslov{
    border-radius:18px!important;
    padding:14px!important;
  }
  body.kupi-modern-body .oglas_naslov h1{
    font-size:23px!important;
  }
  body.kupi-modern-body .oglas-header{
    display:block!important;
    padding:10px!important;
  }
  body.kupi-modern-body #nosac-slika{
    border-radius:18px!important;
    padding:8px!important;
    margin-bottom:12px!important;
  }
  body.kupi-modern-body .solo-slika{
    min-height:260px!important;
    border-radius:15px!important;
  }
  body.kupi-modern-body .solo-slika img,
  body.kupi-modern-body #ogl_slika{
    max-height:360px!important;
    border-radius:14px!important;
  }
  body.kupi-modern-body .view-oglas.nav-tabs,
  body.kupi-modern-body .nav.view-oglas{
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    white-space:nowrap!important;
    padding:6px!important;
  }
  body.kupi-modern-body .view-oglas .nav-link{
    min-height:38px!important;
    font-size:12px!important;
    padding:0 10px!important;
  }
  body.kupi-modern-body #lightgallery img{
    width:58px!important;
    height:52px!important;
  }
}
@media(max-width:420px){
  body.kupi-modern-body .box-oglas{
    min-height:232px!important;
  }
  body.kupi-modern-body .box-oglas .image{
    height:108px!important;
  }
  body.kupi-modern-body .box-oglas .naziv{
    min-height:38px!important;
  }
}

/* Big category page orange accordion-like list override by color/class */
body.kupi-modern-body .panel-heading,
body.kupi-modern-body .panel-title,
body.kupi-modern-body .list-group-item{
  border-radius:14px!important;
}
body.kupi-modern-body .panel-heading[style],
body.kupi-modern-body .list-group-item[style]{
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid #e6eaf2!important;
}
