:root {
    --tamna-pozadina: #04080e;
    --plava-boja: #0066ff;
    --svijetlo-plava: #3385ff;
    --tekst-bijeli: #ffffff;
    --tekst-sivi: #8a99ad;
    --forma-bg: rgba(20, 27, 38, 0.6);
    --border-boja: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background: url('slike/pozadina.png') center top/cover no-repeat;
    background-attachment: fixed; /* Slika je fiksna na čitavom sajtu */
    background-color: var(--tamna-pozadina);
    color: var(--tekst-bijeli);
    overflow-x: hidden;
}

/* HEADER / NAVIGACIJA - Centrirana verzija */
.glavni-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 6%;
    position: absolute;
    width: 100%;
    z-index: 10;
}

/* Gurnut ćemo meni u apsolutni centar u odnosu na čitavu širinu ekrana */
.nav-meni {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.nav-meni a {
    color: var(--tekst-sivi);
    text-decoration: none;
    margin: 0 20px; /* Jednak razmak s lijeve i desne strane svakog linka */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-meni a:hover, .nav-meni a.aktivno {
    color: var(--tekst-bijeli);
}

/* Osiguravamo da akcije (Prijava/Registracija) ostanu zakucane u desnom uglu */
.header-akcije {
    display: flex;
    gap: 15px;
    margin-left: auto; /* Gura dugmad skroz desno bez obzira na centriran meni */
}

.btn-prijava {
    color: var(--tekst-bijeli);
    text-decoration: none;
    border: 1px solid var(--border-boja);
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-prijava:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-registracija {
    color: var(--tekst-bijeli);
    text-decoration: none;
    background: var(--plava-boja);
    padding: 10px 24px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-registracija:hover {
    background: var(--svijetlo-plava);
}



.hero-sekcija {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 140px; 
    padding-bottom: 40px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(4,8,14,0.4) 0%, rgba(4,8,14,0.85) 100%);
    z-index: 1;
}

.hero-sadrzaj {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.centralni-logo {
    height: 170px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.hero-sadrzaj h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.plavi-tekst {
    color: var(--plava-boja);
}

.podnaslov {
    font-size: 1.15rem;
    color: var(--tekst-sivi);
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

.svijetlo-plavi-tekst {
    color: #4da6ff;
}

/* GLAVNA DUGMAD */
.hero-akcije-dugmad {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-glavni-plavi, .btn-glavni-trans {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--tekst-bijeli);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 15px 32px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-glavni-plavi {
    background: var(--plava-boja);
}

.btn-glavni-plavi:hover {
    background: var(--svijetlo-plava);
}

.btn-glavni-trans {
    background: rgba(4, 8, 14, 0.6);
    border: 1px solid var(--border-boja);
}

.btn-glavni-trans:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* FILTER FORMA (Dole) - Pojednostavljena verzija */
.filter-kontejner {
    width: 100%;
    background: var(--forma-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-boja);
    padding: 25px 30px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.filter-polje {
    flex: 1;
    text-align: left;
}

.filter-polje label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--tekst-sivi);
    margin-bottom: 10px;
    letter-spacing: 0.8px;
}

.filter-polje label i {
    color: var(--plava-boja);
}

/* Stil za unos vrijednosti i padajući meni */
.unos-vrijednosti, .izbor-zamjene {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--tekst-bijeli);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.izbor-zamjene {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%238a99ad'><path d='M0 3l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.unos-vrijednosti:focus, .izbor-zamjene:focus {
    border-color: var(--plava-boja);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

.ikona-razmjene-forme {
    color: var(--tekst-sivi);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.btn-pronadji-match {
    background: var(--plava-boja);
    color: var(--tekst-bijeli);
    border: none;
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 0.5px;
}

.btn-pronadji-match:hover {
    background: var(--svijetlo-plava);
    transform: translateY(-1px);
}

/* TRI KORAKA NA SAMOM DNU */
.koraci-sekcija {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    padding: 0 20px;
}

.korak-kartica {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    flex: 1;
}

.korak-ikona {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 1px solid rgba(0, 102, 255, 0.4);
    background: rgba(0, 102, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--plava-boja);
}

.korak-tekst h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.korak-tekst p {
    font-size: 0.8rem;
    color: var(--tekst-sivi);
}

.linija-razdvajanja {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 30px;
}

/* ODZIVNOST ZA TELEFONE I TABLETE */
@media (max-width: 1024px) {
    .filter-kontejner {
        flex-wrap: wrap;
    }
    .filter-polje {
        min-width: 45%;
    }
    .btn-pronadji-match {
        width: 100%;
        justify-content: center;
    }
    .koraci-sekcija {
        flex-direction: column;
        gap: 30px;
    }
    .linija-razdvajanja {
        display: none;
    }
}

@media (max-width: 768px) {
    .glavni-header {
        flex-direction: column;
        gap: 15px;
    }
    .nav-meni {
        justify-content: center;
        margin-bottom: 5px;
    }
    .nav-meni a {
        margin: 0 12px;
    }
    .hero-sadrzaj h1 {
        font-size: 2.2rem;
    }
    .hero-akcije-dugmad {
        flex-direction: column;
        width: 100%;
    }
    .filter-kontejner {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .filter-polje, .btn-pronadji-match {
        width: 100%;
    }
    .ikona-razmjene-forme {
        margin: 5px 0;
        transform: rotate(90deg);
    }
    .btn-pronadji-match {
        margin-top: 10px;
        justify-content: center;
    }
}
/* ==========================================
   SEKCIJA SA AKTUELNIM OGLASIMA / VOZILIMA 
   ========================================== */
.oglasi-sekcija {
    padding: 80px 6%;
    /* 0.75 omogućava da se garaža i auta jasno vide iza kartica */
    background-color: rgba(4, 8, 14, 0.75); 
    backdrop-filter: blur(8px); /* Fino zamućenje za moderan glassmorphism efekat */
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    position: relative;
    z-index: 3;
}

.sekcija-header {
    text-align: center;
    margin-bottom: 50px;
}

.sekcija-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sekcija-header p {
    color: var(--tekst-sivi);
    font-size: 1rem;
}

/* Rešetka (Grid) koja automatski slaže 3 kartice u liniju */
.oglasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Stil same kartice auta */
.oglas-kartica {
    background: #090f17;
    border: 1px solid var(--border-boja);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.oglas-kartica:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.15);
}

/* Slike unutar kartice i pozicioniranje bedža */
.oglas-slika-kontejner {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.oglas-slika {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.oglas-kartica:hover .oglas-slika {
    transform: scale(1.05); /* Blagi zoom slike na hover */
}

/* Dizajn bedževa (tagova) */
.bedz-zamjene {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Različite boje za različite tipove zamjene */
.bedz-zamjene.skuplje {
    background: #ff9900; /* Narandžasta za skuplje */
    color: #ffffff;
}

.bedz-zamjene.jeftinije {
    background: var(--plava-boja); /* Električno plava za jeftinije */
    color: #ffffff;
}

.bedz-zamjene.kljuc {
    background: #00cc66; /* Zelena za ključ za ključ */
    color: #ffffff;
}

/* Detalji o vozilu tekst */
.oglas-detalji {
    padding: 20px;
}

.oglas-naslov {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.oglas-info-linija {
    display: flex;
    gap: 20px;
    color: var(--tekst-sivi);
    font-size: 0.85rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.oglas-info-linija i {
    color: var(--plava-boja);
    margin-right: 5px;
}

/* Donja linija: Cijena + Akciono dugme */
.oglas-cijena-linija {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cijena-okvir {
    display: flex;
    flex-direction: column;
}

.cijena-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--tekst-sivi);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cijena-iznos {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--tekst-bijeli);
}

/* Dugme sa desne strane za brzu ponudu zamjene */
.btn-ponudi-zamjenu {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-boja);
    color: var(--tekst-bijeli);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ponudi-zamjenu:hover {
    background: var(--plava-boja);
    border-color: var(--plava-boja);
    color: white;
    transform: scale(1.05);
}

/* Mobilna odzivnost za grid */
@media (max-width: 480px) {
    .oglasi-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   MODAL (ISKAČUĆI PROZOR) STILOVI
   ========================================== */
.modal-skrin {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(4, 8, 14, 0.6); /* Zatamnjenje pozadine */
    backdrop-filter: blur(15px); /* Brutalno zamućenje pozadine */
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Osigurava da je iznad apsolutno svega na sajtu */
    opacity: 0;
    pointer-events: none; /* Modal je nevidljiv i ne može se kliknuti dok nije aktivan */
    transition: opacity 0.4s ease;
}

/* Kada dodamo klasu .aktivan preko JavaScripta */
.modal-skrin.aktivan {
    opacity: 1;
    pointer-events: auto;
}

.modal-kontejner {
    background: #090f17;
    border: 1px solid var(--border-boja);
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.15);
    /* Efekat glatkog ulaza samog prozora */
    transform: translateY(-30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-skrin.aktivan .modal-kontejner {
    transform: translateY(0) scale(1);
}

/* Dugme za zatvaranje X */
.zatvori-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--tekst-sivi);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.zatvori-modal:hover {
    color: var(--tekst-bijeli);
}

/* Sadržaj unutar modala */
.modal-sadrzaj {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modal-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.modal-sadrzaj h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.modal-podnaslov {
    font-size: 0.85rem;
    color: var(--tekst-sivi);
    margin-bottom: 30px;
    max-width: 90%;
}

/* Forma i polja unutar modala */
.auth-forma {
    width: 100%;
    text-align: left;
}

.forma-polje-modal {
    width: 100%;
    margin-bottom: 20px;
}

/* Klasa kojom preko JS-a sklanjamo polje "Ime" kada nam ne treba */
.forma-polje-modal.skriveno {
    display: none;
}

.forma-polje-modal label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--tekst-sivi);
    margin-bottom: 8px;
    letter-spacing: 0.8px;
}

.forma-polje-modal label i {
    color: var(--plava-boja);
}

.forma-polje-modal input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.forma-polje-modal input:focus {
    border-color: var(--plava-boja);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.1);
}

/* Glavno dugme unutar modala */
.btn-auth-akcija {
    width: 100%;
    background: var(--plava-boja);
    color: white;
    border: none;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-auth-akcija:hover {
    background: var(--svijetlo-plava);
}

/* Tekst na dnu "Nemate profil? Registrujte se" */
.prebaci-auth {
    margin-top: 25px;
    font-size: 0.85rem;
    color: var(--tekst-sivi);
}

.prebaci-auth a {
    color: var(--plava-boja);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.2s;
}

.prebaci-auth a:hover {
    color: var(--svijetlo-plava);
    text-decoration: underline;
}
/* Osiguravamo da glavni interfejs chata ima čvrst raspored i visinu */
.chat-interfejs {
    display: grid !important;
    grid-template-columns: 380px 1fr;
    height: calc(100vh - 140px) !important; /* Dajemo fiksnu visinu cijelom interfejsu u odnosu na ekran */
    overflow: hidden;
}

/* Desni prozor chata preuzima punu visinu */
.chat-prozor {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
}

/* Naš novi omotač za poruke i input */
.chat-scroller-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important; /* Uzima sav preostali prostor ispod prozor-headera */
    height: calc(100% - 85px) !important; /* Oduzima tačnu visinu zaglavlja chata */
    overflow: hidden !important;
}

/* Kutija u kojoj se prikazuju balončići poruka */
#porukeSadrzajKutija {
    flex: 1 !important;
    overflow-y: auto !important; /* Aktivira skroler samo ovdje */
    padding: 24px;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
}

/* Zona na dnu gdje je input forma */
.chat-input-zona {
    margin-top: auto !important; /* Magnet koji drži formu na dnu */
    padding: 20px;
    background: rgba(4, 10, 22, 0.4);
    width: 100%;
    box-sizing: border-box;
}
/* ==========================================
   AUTOMATCH GLOBALNI HEADER + PRETRAGA
   Dodati na dno style.css
   ========================================== */

body { padding-top: 82px; }

.am-topbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
    width: 100%; height: 82px;
    z-index: 9999;
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 34px !important;
    box-sizing: border-box;
    background: rgba(4, 10, 22, 0.84) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.18) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,0.28);
}

.am-nav-left, .am-nav-center, .am-nav-right { display: flex; align-items: center; }
.am-nav-left { justify-content: flex-start; }
.am-nav-center { justify-content: center; }
.am-nav-right { justify-content: flex-end; position: relative; }

.am-nav-btn, .am-home-btn, .am-user-btn, .am-login-btn {
    border: 1px solid rgba(0,212,255,0.24);
    border-radius: 999px;
    min-height: 43px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.55px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    font-family: inherit;
}

.am-nav-btn, .am-login-btn { color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.055); }
.am-home-btn { color: #06101f !important; background: linear-gradient(135deg, #00d4ff, #7cf4ff); border-color: rgba(255,255,255,0.24); box-shadow: 0 12px 32px rgba(0, 212, 255, 0.20); }
.am-user-btn { color: white; background: rgba(0,212,255,0.10); min-width: 145px; position: relative; }
.am-search-header-btn { margin-right: 10px; background: rgba(0, 212, 255, 0.09); color: #ffffff; }
.am-search-header-btn:hover { background: rgba(0, 212, 255, 0.16); }
.am-nav-btn:hover, .am-home-btn:hover, .am-user-btn:hover, .am-login-btn:hover { transform: translateY(-2px); border-color: rgba(0,212,255,0.52); box-shadow: 0 16px 38px rgba(0,212,255,0.20); }

.am-user-avatar, .am-login-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,212,255,0.7); background: linear-gradient(135deg,#333b48,#202735); }

.am-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 230px;
    background: rgba(8,18,35,0.97);
    border: 1px solid rgba(0,212,255,0.24);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.48);
    padding: 10px;
    display: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.am-dropdown.aktivan { display: block; }
.am-dropdown a, .am-dropdown button { width: 100%; border: none; background: transparent; color: rgba(255,255,255,0.86); display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 12px; text-decoration: none; cursor: pointer; font-size: 0.92rem; font-weight: 750; text-align: left; font-family: inherit; }
.am-dropdown a:hover, .am-dropdown button:hover { background: rgba(0,212,255,0.10); color: #00d4ff; }
.am-dropdown .am-danger { color: #ff6b6b; }
.am-dropdown .am-danger:hover { background: rgba(255,77,77,0.10); color: #ff8b8b; }
.am-dropdown-divider { height: 1px; background: rgba(255,255,255,0.09); margin: 8px 4px; }

.am-user-area, .am-guest-area { display: none; }
.am-topbar.authenticated .am-user-area { display: inline-flex; }
.am-topbar:not(.authenticated) .am-guest-area { display: inline-flex; }
.am-mobile-label { display: inline; }

.am-brand-link { display: inline-flex; align-items: center; gap: 11px; color: white; text-decoration: none; font-weight: 950; letter-spacing: 0.7px; font-size: 1rem; }
.am-brand-logo { width: 42px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(0,212,255,0.25)); }

.am-notification-badge { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ff2d55; color: white; font-size: 0.72rem; font-weight: 950; display: none; align-items: center; justify-content: center; border: 2px solid rgba(4, 10, 22, 0.98); box-shadow: 0 0 16px rgba(255, 45, 85, 0.55); line-height: 1; }
.am-dropdown-link-with-badge { justify-content: space-between !important; }
.am-dropdown-link-with-badge span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.am-menu-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ff2d55; color: white; font-size: 0.72rem; font-weight: 950; display: none; align-items: center; justify-content: center; }

/* Globalna pretraga */
.pretraga-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 12000; display: none; align-items: center; justify-content: center; padding: 20px; }
.pretraga-modal.aktivan { display: flex; }
.pretraga-box { width: min(780px, 100%); max-height: 88vh; overflow-y: auto; background: radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 35%), rgba(6, 18, 35, 0.94); border: 1px solid rgba(0, 212, 255, 0.35); border-radius: 24px; padding: 30px; box-shadow: 0 0 55px rgba(0, 212, 255, 0.2), 0 30px 80px rgba(0,0,0,0.45); animation: pretragaUlaz 0.22s ease; }
@keyframes pretragaUlaz { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.pretraga-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.pretraga-box h2 { color: white; margin: 0 0 8px 0; font-size: 1.7rem; }
.pretraga-box h2 i { color: #00d4ff; }
.pretraga-box p { color: rgba(255,255,255,0.55); margin: 0; line-height: 1.5; }
.zatvori-pretragu { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: white; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.35rem; flex-shrink: 0; }
.zatvori-pretragu:hover { border-color: rgba(0, 212, 255, 0.45); color: #00d4ff; }
#inputPretraga { width: 100%; padding: 15px 16px; border-radius: 13px; border: 1px solid rgba(0, 212, 255, 0.38); background: rgba(0, 0, 0, 0.35); color: white; outline: none; font-size: 1rem; margin-bottom: 20px; box-shadow: inset 0 0 18px rgba(0, 212, 255, 0.04); }
#inputPretraga:focus { border-color: #00d4ff; box-shadow: 0 0 20px rgba(0, 212, 255, 0.14); }
.rezultati-pretrage { display: flex; flex-direction: column; gap: 10px; }
.rezultat-item { display: flex; gap: 14px; align-items: center; padding: 13px; border-radius: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); text-decoration: none; transition: 0.2s; }
.rezultat-item:hover { background: rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.35); transform: translateY(-1px); }
.rezultat-item img, .rezultat-avatar { width: 64px; height: 64px; border-radius: 13px; object-fit: cover; background: linear-gradient(135deg, #00d4ff, #0055ff); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.rezultat-info h4 { color: white; margin: 0 0 6px 0; font-size: 1rem; }
.rezultat-info span { color: rgba(255,255,255,0.55); font-size: 0.85rem; line-height: 1.4; }
.prazna-pretraga { text-align: center; padding: 28px 15px; color: rgba(255,255,255,0.56) !important; }
.pretraga-labela { color: #00d4ff; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 10px 0 4px 0; }

@media (max-width: 720px) {
    .am-topbar { height: 74px; padding: 0 12px !important; gap: 8px; }
    body { padding-top: 74px !important; }
    .am-nav-btn, .am-home-btn, .am-user-btn, .am-login-btn { min-height: 40px; padding: 0 12px; font-size: 0.78rem; }
    .am-user-btn { min-width: 0; }
    .am-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .am-mobile-label { display: none; }
    .am-brand-link span { display: none; }
    .am-brand-logo { width: 38px; height: 38px; }
    .am-search-header-btn { margin-right: 6px; }
    .am-dropdown { right: 0; width: 220px; }
    .pretraga-box { padding: 22px; }
    .rezultat-item { align-items: flex-start; }
}

/* ==========================================
   INDEX.HTML CLEANUP - stilovi prebačeni iz index.html
   ========================================== */
.sakriveno {
    display: none !important;
}

.index-page .oglasi-loading,
.index-page .oglasi-prazno {
    color: rgba(255,255,255,0.6);
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
}

.index-page .oglasi-loading {
    color: rgba(255,255,255,0.5);
}

.index-page .oglasi-greska {
    color: #ff4d4d;
    text-align: center;
    grid-column: 1 / -1;
    padding: 20px;
}

.index-page .oglas-kartica {
    display: block;
    text-decoration: none;
}

.index-page .oglas-slika-kontejner {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.index-page .oglas-slika {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.index-page .oglas-kartica:hover .oglas-slika {
    transform: scale(1.035);
}

.index-page .broj-slika-bedz {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(6, 11, 20, 0.78);
    color: #fff;
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 3;
}

.index-page .oglas-detalji {
    padding: 15px;
}

.index-page .oglas-naslov {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.index-page .oglas-cijena {
    color: #00d4ff;
    font-weight: 700;
    margin-bottom: 10px;
}

.index-page .oglas-meta {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.index-page .oglas-zamjena-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

.auth-separator div {
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.auth-separator span {
    padding: 0 10px;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-google-auth {
    width: 100%;
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-google-auth:hover {
    background: #f1f1f1;
}

.google-ikona {
    width: 18px;
    height: 18px;
}

/* Mobile homepage polish: hero dugmad i koraci */
@media (max-width: 720px) {
    .index-page .hero-akcije-dugmad {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .index-page .hero-akcije-dugmad a,
    .index-page .hero-akcije-dugmad .btn-glavni-plavi,
    .index-page .hero-akcije-dugmad .btn-glavni-trans {
        width: auto !important;
        min-width: 225px !important;
        max-width: 285px !important;
        padding: 12px 18px !important;
        font-size: 0.82rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
    }

    .index-page .koraci-sekcija {
        width: min(92vw, 360px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px !important;
        text-align: center !important;
    }

    .index-page .korak-kartica {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 18px 16px !important;
        margin: 0 auto !important;
    }

    .index-page .korak-tekst,
    .index-page .korak-tekst h3,
    .index-page .korak-tekst p {
        text-align: center !important;
    }

    .index-page .korak-ikona {
        margin: 0 auto 10px auto !important;
    }

    .index-page .linija-razdvajanja {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .index-page .hero-akcije-dugmad a,
    .index-page .hero-akcije-dugmad .btn-glavni-plavi,
    .index-page .hero-akcije-dugmad .btn-glavni-trans {
        min-width: 205px !important;
        max-width: 250px !important;
        padding: 11px 15px !important;
        font-size: 0.76rem !important;
    }

    .index-page .koraci-sekcija {
        width: min(90vw, 330px) !important;
    }
}
body.artikal-page {
            min-height: 100vh;
            background:
                linear-gradient(rgba(6,11,20,0.85), rgba(6,11,20,0.95)),
                url('slike/pozadina.png') center/cover fixed no-repeat;
            margin: 0;
            padding: 0;
            padding-top: 82px; /* Prilagođeno fiksnom globalnom headeru */
        }

        /* Wrapper i Grid sadržaja stranice */
        .artikal-wrapper {
            max-width: 1300px;
            margin: 40px auto 50px auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .artikal-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 30px;
            align-items: start;
        }

        @media(max-width:1000px){
            .artikal-grid { grid-template-columns: 1fr; }
        }

        /* Glassmorphism kartice */
        .glass-kartica {
            background: rgba(8, 18, 35, 0.54);
            border: 1px solid rgba(0, 212, 255, 0.26);
            border-radius: 20px;
            backdrop-filter: blur(18px) saturate(145%);
            -webkit-backdrop-filter: blur(18px) saturate(145%);
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }

        .galerija-kartica { padding: 20px; }

        .glavna-slika {
            width: 100%;
            height: 520px;
            border-radius: 18px;
            overflow: hidden;
            position: relative;
            cursor: zoom-in;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .glavna-slika img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .glavna-slika:hover img { transform: scale(1.02); }

        .slike-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-top: 15px;
        }

        @media(max-width:700px){
            .slike-grid { grid-template-columns: repeat(3, 1fr); }
            .glavna-slika { height: 320px; }
        }

        .mala-slika {
            height: 95px;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            transition: 0.2s;
        }

        .mala-slika:hover, .mala-slika.aktivna {
            border-color: #00d4ff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
        }

        .mala-slika img { width: 100%; height: 100%; object-fit: cover; }

        .detalji-kartica {
            padding: 28px;
            position: sticky;
            top: 110px;
        }

        .cijena-bedz {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(0, 212, 255, 0.15);
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.3);
            padding: 10px 18px;
            border-radius: 999px;
            font-weight: 700;
            margin-bottom: 20px;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
        }

        .naslov-vozila {
            color: white;
            font-size: 2.2rem;
            margin: 0 0 10px 0;
            line-height: 1.2;
        }

        .lokacija {
            color: rgba(0, 212, 255, 0.8);
            margin-bottom: 25px;
            font-size: 1rem;
            font-weight: 500;
        }

        .lokacija i { margin-right: 5px; }

        .spec-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
            margin-bottom: 28px;
        }

        .spec-box {
            background: rgba(6, 11, 20, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.15);
            border-radius: 14px;
            padding: 15px;
            transition: 0.2s;
        }

        .spec-box:hover {
            border-color: rgba(0, 212, 255, 0.4);
            background: rgba(6, 11, 20, 0.8);
        }

        .spec-box span {
            display: block;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.72rem;
            margin-bottom: 7px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 700;
        }

        .spec-box strong { color: white; font-size: 1.05rem; }

        .sekcija {
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 20px;
        }

        .sekcija h3 {
            color: white;
            margin: 0 0 12px 0;
            font-size: 1.15rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .sekcija h3 i { color: #00d4ff; font-size: 1rem; }

        .sekcija p {
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.7;
            font-size: 0.95rem;
            margin: 0;
            background: rgba(6, 11, 20, 0.3);
            padding: 12px;
            border-radius: 10px;
        }

        .oprema-kontejner { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

        .oprema-tag {
            background: rgba(0, 212, 255, 0.06);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: #fff;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .oprema-tag i { color: #00d4ff; font-size: 0.8rem; }

        .vlasnik-kartica {
            margin-top: 30px;
            padding: 20px;
            border-radius: 16px;
            background: rgba(6, 11, 20, 0.5);
            border: 1px solid rgba(0, 212, 255, 0.15);
        }

        .vlasnik-top { display: flex; align-items: center; gap: 14px; }

        .vlasnik-avatar {
            width: 62px;
            height: 62px;
            border-radius: 50%;
            background: linear-gradient(135deg, #00d4ff, #0055ff);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            border: 2px solid #00d4ff;
        }

        .vlasnik-avatar img { width: 100%; height: 100%; object-fit: cover; }

        .vlasnik-link {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: inherit;
            border-radius: 14px;
            transition: 0.2s ease;
        }

        .vlasnik-link:hover .vlasnik-ime {
            color: #00d4ff;
            text-shadow: 0 0 12px rgba(0, 212, 255, 0.25);
        }

        .vlasnik-link:hover .vlasnik-avatar { box-shadow: 0 0 18px rgba(0, 212, 255, 0.35); }

        .vlasnik-ime { color: white; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
        .vlasnik-info { color: rgba(255, 255, 255, 0.55); font-size: 0.85rem; }

        .akcije-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

        .btn-glavni {
            border: none;
            border-radius: 12px;
            padding: 15px;
            font-weight: 800;
            cursor: pointer;
            transition: 0.2s;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-kontakt { background: linear-gradient(135deg, #00d4ff, #00ff87); color: #06101d; }
        .btn-kontakt:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); }
        .btn-zamjena { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: white; }
        .btn-zamjena:hover { background: rgba(255, 255, 255, 0.1); border-color: #00d4ff; }

        .sigurnost-box {
            margin-top: 25px;
            background: rgba(255, 174, 0, 0.08);
            border: 1px solid rgba(255, 204, 102, 0.2);
            border-radius: 14px;
            padding: 16px;
            color: #ffd98b;
            font-size: 0.87rem;
            line-height: 1.6;
            display: flex;
            gap: 10px;
            align-items: flex-start;
        }

        .ucitavanje { color: #00d4ff; text-align: center; padding: 150px 20px; font-size: 1.3rem; font-weight: 600; }

        .zamjena-display-card {
            position: relative;
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 16px;
            padding: 17px 16px;
            color: #fff;
            overflow: hidden;
            box-shadow: 0 14px 36px rgba(0,0,0,0.22);
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 10px;
        }

        .zamjena-display-card::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 38%);
            pointer-events: none;
        }

        .zamjena-display-card i, .zamjena-display-card div { position: relative; }
        .zamjena-display-card i { font-size: 1.55rem; width: 34px; text-align: center; }
        .zamjena-display-card strong { display: block; font-size: 0.98rem; line-height: 1.2; margin-bottom: 4px; }
        .zamjena-display-card span { display: block; font-size: 0.80rem; color: rgba(255,255,255,0.78); }

        .zamjena-skuplje { background: linear-gradient(135deg, #0f9f6e, #064e3b); }
        .zamjena-jeftinije { background: linear-gradient(135deg, #f59e0b, #7c2d12); }
        .zamjena-kljuc { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
        .zamjena-svejedno { background: linear-gradient(135deg, #2563eb, #312e81); }

        /* LIGHTBOX STILOVI */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(4, 8, 15, 0.95);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
            user-select: none;
        }

        .lightbox-slika {
            max-width: 85%;
            max-height: 85vh;
            border-radius: 8px;
            box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
            object-fit: contain;
            animation: fadeIn 0.3s ease;
        }

        .lightbox-X { position: absolute; top: 30px; right: 40px; color: white; font-size: 2.5rem; cursor: pointer; transition: 0.2s; }
        .lightbox-X:hover { color: #00d4ff; transform: scale(1.1); }
        .lightbox-strelica { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 3rem; cursor: pointer; padding: 20px; transition: 0.2s; background: rgba(255, 255, 255, 0.03); border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; }
        .lightbox-strelica:hover { color: #00d4ff; background: rgba(0, 212, 255, 0.1); }
        .strelica-lijeva { left: 40px; }
        .strelica-desna { right: 40px; }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

/* Utility klase za artikal.html */
.artikal-page .is-hidden,
.artikal-page .sekcija-oprema-hidden {
    display: none !important;
}

.artikal-page .artikal-lijeva-kolona {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.artikal-page .oprema-naslov {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.artikal-page .oprema-naslov i {
    color: #00d4ff;
}

.artikal-page .spec-box-full {
    grid-column: span 2;
}

.artikal-page .lightbox.aktivan {
    display: flex;
}
body.galerija-page {
padding-top: 82px;
            min-height: 100%;
}

body.galerija-page {
background:
                linear-gradient(rgba(3, 8, 18, 0.74), rgba(3, 8, 18, 0.91)),
                url("slike/pozadina.png") center center / cover fixed no-repeat !important;
            color: #fff;
}

body.galerija-page::before {
content: "";
            position: fixed;
            inset: 0;
            background:
                radial-gradient(circle at 18% 10%, rgba(0, 212, 255, 0.15), transparent 34%),
                radial-gradient(circle at 82% 24%, rgba(0, 120, 255, 0.11), transparent 36%),
                rgba(0, 0, 0, 0.16);
            pointer-events: none;
            z-index: -1;
}

body.galerija-page .galerija-wrapper {
max-width: 1320px;
            margin: 105px auto 60px auto;
            padding: 0 20px;
}

body.galerija-page .galerija-hero {
background:
                radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 38%),
                rgba(8, 18, 35, 0.58);
            border: 1px solid rgba(0, 212, 255, 0.24);
            border-radius: 22px;
            padding: 34px;
            backdrop-filter: blur(18px) saturate(145%);
            -webkit-backdrop-filter: blur(18px) saturate(145%);
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
            margin-bottom: 24px;
}

body.galerija-page .galerija-hero h1 {
color: white;
            font-size: clamp(2rem, 4vw, 3.2rem);
            margin: 0 0 10px 0;
            line-height: 1.1;
}

body.galerija-page .galerija-hero p {
color: rgba(255,255,255,0.62);
            font-size: 1rem;
            max-width: 760px;
            line-height: 1.6;
            margin: 0;
}

body.galerija-page .plava-boja {
color: #00d4ff;
}

body.galerija-page .filter-panel {
background: rgba(8, 18, 35, 0.54);
            border: 1px solid rgba(0, 212, 255, 0.22);
            border-radius: 20px;
            padding: 22px;
            backdrop-filter: blur(18px) saturate(145%);
            -webkit-backdrop-filter: blur(18px) saturate(145%);
            box-shadow: 0 20px 70px rgba(0, 0, 0, 0.32);
            margin-bottom: 26px;
}

body.galerija-page .filter-top {
display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
            margin-bottom: 18px;
}

body.galerija-page .filter-top h2 {
color: white;
            font-size: 1.2rem;
            margin: 0;
}

body.galerija-page .filter-top span {
color: rgba(255,255,255,0.5);
            font-size: 0.9rem;
}

body.galerija-page .filter-grid {
display: grid;
            grid-template-columns: 1.4fr repeat(5, 1fr);
            gap: 14px;
}

body.galerija-page .filter-polje-galerija label {
display: block;
            color: rgba(255,255,255,0.72);
            font-size: 0.72rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.7px;
            margin-bottom: 8px;
}

body.galerija-page .filter-polje-galerija input, body.galerija-page .filter-polje-galerija select {
width: 100%;
            min-height: 46px;
            background: rgba(255,255,255,0.07);
            border: 1px solid rgba(255,255,255,0.13);
            border-radius: 10px;
            color: white;
            padding: 11px 12px;
            outline: none;
}

body.galerija-page .filter-polje-galerija option {
background: #07111f;
            color: white;
}

body.galerija-page .filter-polje-galerija input:focus, body.galerija-page .filter-polje-galerija select:focus {
border-color: #00d4ff;
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

body.galerija-page .filter-akcije {
display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 16px;
}

body.galerija-page .btn-filter, body.galerija-page .btn-reset {
border: none;
            border-radius: 10px;
            padding: 12px 18px;
            font-weight: 800;
            cursor: pointer;
            transition: 0.2s;
}

body.galerija-page .btn-filter {
background: linear-gradient(135deg, #00d4ff, #00ff87);
            color: #06101d;
}

body.galerija-page .btn-reset {
background: rgba(255,255,255,0.06);
            color: white;
            border: 1px solid rgba(255,255,255,0.12);
}

body.galerija-page .btn-filter:hover, body.galerija-page .btn-reset:hover {
transform: translateY(-1px);
}

body.galerija-page .galerija-info-red {
display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            margin-bottom: 18px;
            color: rgba(255,255,255,0.62);
}

body.galerija-page .sort-box {
display: flex;
            align-items: center;
            gap: 10px;
}

body.galerija-page .sort-box select {
background: rgba(8, 18, 35, 0.7);
            border: 1px solid rgba(0, 212, 255, 0.2);
            color: white;
            padding: 10px 12px;
            border-radius: 10px;
            outline: none;
}

body.galerija-page .sort-box option {
background: #07111f;
}

body.galerija-page .galerija-grid {
display: grid;
            grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
            gap: 22px;
}

body.galerija-page .galerija-kartica {
display: block;
            text-decoration: none;
            color: inherit;
            overflow: hidden;
            background: rgba(8, 18, 35, 0.58);
            border: 1px solid rgba(0, 212, 255, 0.16);
            border-radius: 18px;
            backdrop-filter: blur(16px) saturate(140%);
            -webkit-backdrop-filter: blur(16px) saturate(140%);
            box-shadow: 0 18px 60px rgba(0,0,0,0.28);
            transition: 0.22s;
}

body.galerija-page .galerija-kartica:hover {
transform: translateY(-5px);
            border-color: rgba(0, 212, 255, 0.42);
            box-shadow: 0 22px 70px rgba(0, 212, 255, 0.12), 0 18px 60px rgba(0,0,0,0.34);
}

body.galerija-page .kartica-slika-wrap {
height: 205px;
            position: relative;
            overflow: hidden;
            background: rgba(0,0,0,0.28);
}

body.galerija-page .kartica-slika-wrap img {
width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.28s;
}

body.galerija-page .galerija-kartica:hover .kartica-slika-wrap img {
transform: scale(1.045);
}

body.galerija-page .broj-slika-bedz {
position: absolute;
            left: 12px;
            bottom: 12px;
            background: rgba(6, 11, 20, 0.78);
            color: #fff;
            border: 1px solid rgba(0, 212, 255, 0.35);
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 0.78rem;
            font-weight: 800;
            backdrop-filter: blur(8px);
            z-index: 3;
}

body.galerija-page .cijena-bedz {
position: absolute;
            right: 12px;
            top: 12px;
            background: linear-gradient(135deg, #00d4ff, #00ff87);
            color: #06101d;
            border-radius: 999px;
            padding: 8px 11px;
            font-size: 0.82rem;
            font-weight: 900;
            box-shadow: 0 0 18px rgba(0,212,255,0.22);
}

body.galerija-page .kartica-body {
padding: 16px;
}

body.galerija-page .kartica-body h3 {
color: white;
            font-size: 1.08rem;
            margin: 0 0 8px 0;
            line-height: 1.35;
}

body.galerija-page .kartica-lokacija {
color: rgba(255,255,255,0.5);
            font-size: 0.85rem;
            margin-bottom: 12px;
}

body.galerija-page .kartica-specs {
display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 9px;
            margin-bottom: 12px;
}

body.galerija-page .kartica-spec {
background: rgba(255,255,255,0.045);
            border: 1px solid rgba(255,255,255,0.075);
            border-radius: 10px;
            padding: 9px;
            color: rgba(255,255,255,0.74);
            font-size: 0.83rem;
}

body.galerija-page .kartica-spec i {
color: #00d4ff;
            margin-right: 5px;
}

body.galerija-page .zamjena-info {
border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 12px;
            color: rgba(255,255,255,0.55);
            font-size: 0.84rem;
            line-height: 1.45;
}

body.galerija-page .zamjena-info i {
color: #00ff87;
}

body.galerija-page .prazno-stanje, body.galerija-page .loading-stanje {
grid-column: 1 / -1;
            text-align: center;
            padding: 70px 20px;
            background: rgba(8, 18, 35, 0.45);
            border: 1px solid rgba(0, 212, 255, 0.18);
            border-radius: 18px;
            color: rgba(255,255,255,0.65);
}

body.galerija-page .prazno-stanje i, body.galerija-page .loading-stanje i {
color: #00d4ff;
            font-size: 2.4rem;
            margin-bottom: 14px;
}

body.galerija-page .btn-home-desno {
text-decoration: none;
            color: #06101d !important;
            background: linear-gradient(135deg, #00d4ff, #00ff87);
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 0.86rem;
            font-weight: 900;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 20px rgba(0,212,255,0.18);
}

body.galerija-page .btn-home-desno:hover {
transform: translateY(-1px);
}

@media (max-width: 1050px) {
body.galerija-page .filter-grid {
grid-template-columns: repeat(3, 1fr);
}


        
}
@media (max-width: 760px) {
body.galerija-page .galerija-wrapper {
margin-top: 30px; padding: 0 15px;
}

body.galerija-page .galerija-hero, body.galerija-page .filter-panel {
padding: 22px;
}

body.galerija-page .filter-grid {
grid-template-columns: 1fr;
}

body.galerija-page .filter-top, body.galerija-page .galerija-info-red, body.galerija-page .filter-akcije {
flex-direction: column; align-items: stretch;
}

body.galerija-page .btn-filter, body.galerija-page .btn-reset {
width: 100%;
}


        
}

body.galerija-page .filter-naslov-ikona {
    color: #00d4ff;
}
body.korisnik-page {
    padding-top: 82px;
    min-height: 100vh;
    background:
        linear-gradient(rgba(6,11,20,0.88), rgba(6,11,20,0.95)),
        url('slike/pozadina.png') center/cover fixed no-repeat;
    font-family: Arial, sans-serif;
    color: white;
}

body.korisnik-page .is-hidden {
    display: none !important;
}

body.korisnik-page .btn-pocetna,
body.korisnik-page .user-nav-profil {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s ease;
}

body.korisnik-page .btn-pocetna {
    background: linear-gradient(135deg, #00d4ff, #7cf4ff);
    color: #06101f;
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.22);
}

body.korisnik-page .btn-pocetna:hover,
body.korisnik-page .user-nav-profil:hover {
    transform: translateY(-2px);
}

body.korisnik-page .user-nav-profil {
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.22);
    color: white;
}

body.korisnik-page .user-nav-profil img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

body.korisnik-page .korisnik-wrapper {
    max-width: 1450px;
    margin: 120px auto 50px auto;
    padding: 0 20px;
}

body.korisnik-page .profil-top {
    background: rgba(8, 18, 35, 0.62);
    border: 1px solid rgba(0,212,255,0.18);
    border-radius: 28px;
    padding: 35px;
    backdrop-filter: blur(18px);
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.38);
}

body.korisnik-page .profil-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00d4ff;
    background: linear-gradient(135deg, #00d4ff, #004cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    flex-shrink: 0;
}

body.korisnik-page .profil-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.korisnik-page .profil-info h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

body.korisnik-page .username-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(0,212,255,0.12);
    border: 1px solid rgba(0,212,255,0.22);
    color: #00d4ff;
    font-weight: 800;
    margin-bottom: 18px;
}

body.korisnik-page .verifikacija-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    margin: 0 0 16px 10px;
    vertical-align: middle;
}

body.korisnik-page .verifikacija-badge.verifikovan {
    background: rgba(0, 255, 135, 0.13);
    border: 1px solid rgba(0, 255, 135, 0.32);
    color: #00ff87;
    box-shadow: 0 0 18px rgba(0, 255, 135, 0.12);
}

body.korisnik-page .verifikacija-badge.nije-verifikovan {
    background: rgba(255, 174, 0, 0.12);
    border: 1px solid rgba(255, 204, 102, 0.28);
    color: #ffcc66;
}

body.korisnik-page .profil-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.korisnik-page .meta-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px 16px;
    color: rgba(255,255,255,0.86);
    font-size: 0.92rem;
}

body.korisnik-page .sekcija-naslov {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 1.45rem;
}

body.korisnik-page .sekcija-naslov i {
    color: #00d4ff;
}

body.korisnik-page .vozila-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

body.korisnik-page .vozilo-kartica {
    background: rgba(8, 18, 35, 0.62);
    border: 1px solid rgba(0,212,255,0.14);
    border-radius: 22px;
    overflow: hidden;
    backdrop-filter: blur(18px);
    transition: 0.22s ease;
    cursor: pointer;
    box-shadow: 0 16px 45px rgba(0,0,0,0.28);
}

body.korisnik-page .vozilo-kartica:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.38);
    box-shadow: 0 22px 55px rgba(0,212,255,0.14);
}

body.korisnik-page .vozilo-slika {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

body.korisnik-page .vozilo-body {
    padding: 20px;
}

body.korisnik-page .vozilo-naslov {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

body.korisnik-page .vozilo-cijena {
    color: #00d4ff;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 16px;
}

body.korisnik-page .vozilo-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

body.korisnik-page .spec-mini {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
}

body.korisnik-page .spec-mini strong {
    display: block;
    color: white;
    margin-top: 3px;
    font-size: 0.92rem;
}

body.korisnik-page .nema-oglasa {
    padding: 50px 25px;
    text-align: center;
    background: rgba(8, 18, 35, 0.58);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    color: rgba(255,255,255,0.6);
}

body.korisnik-page .nema-oglasa-ikona {
    font-size: 2.3rem;
    margin-bottom: 14px;
    color: #00d4ff;
}

body.korisnik-page .nema-oglasa-naslov {
    margin-bottom: 10px;
}

body.korisnik-page .ucitavanje {
    text-align: center;
    padding: 160px 20px;
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: 700;
}

body.korisnik-page .am-kontakt-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 85, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00d4ff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 750;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.22s ease;
    margin-top: 15px;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.08);
}

body.korisnik-page .am-kontakt-btn:hover {
    background: linear-gradient(135deg, #00d4ff, #0055ff);
    color: #06101f;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.25);
}

body.korisnik-page .am-kontakt-btn i {
    font-size: 0.95rem;
    transition: transform 0.2s;
}

body.korisnik-page .am-kontakt-btn:hover i {
    transform: translate(2px, -2px) scale(1.05);
}

@media(max-width:900px){
    body.korisnik-page .profil-top {
        flex-direction: column;
        text-align: center;
    }

    body.korisnik-page .profil-meta {
        justify-content: center;
    }
}

@media(max-width:700px){
    body.korisnik-page .profil-avatar {
        width: 120px;
        height: 120px;
    }

    body.korisnik-page .profil-info h1 {
        font-size: 2rem;
    }
}
body.login-page {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(6, 11, 20, 0.82), rgba(6, 11, 20, 0.94)),
        url('slike/pozadina.png') center / cover fixed no-repeat;
    color: white;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: Arial, sans-serif;
}

body.login-page .auth-page-card {
    width: min(460px, 100%);
    background:
        radial-gradient(circle at top left, rgba(0, 212, 255, 0.16), transparent 38%),
        rgba(8, 18, 35, 0.72);
    border: 1px solid rgba(0, 212, 255, 0.26);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

body.login-page .auth-logo {
    display: block;
    width: 120px;
    max-height: 90px;
    object-fit: contain;
    margin: 0 auto 18px auto;
    filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.25));
}

body.login-page .auth-page-card h1 {
    margin: 0 0 8px 0;
    text-align: center;
    font-size: 1.8rem;
}

body.login-page .auth-page-card p {
    margin: 0 0 24px 0;
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
    line-height: 1.5;
}

body.login-page .form-group {
    margin-bottom: 15px;
}

body.login-page .form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 8px;
    text-transform: uppercase;
}

body.login-page .form-group input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    padding: 12px;
    outline: none;
}

body.login-page .form-group input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}

body.login-page .btn-auth {
    width: 100%;
    border: none;
    border-radius: 11px;
    min-height: 48px;
    font-weight: 950;
    cursor: pointer;
    color: #06101d;
    background: linear-gradient(135deg, #00d4ff, #00ff87);
    margin-top: 6px;
}

body.login-page .btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 212, 255, 0.18);
}

body.login-page .btn-auth:disabled,
body.login-page .btn-google:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
}

body.login-page .btn-google {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border-radius: 11px;
    border: none;
    background: #ffffff;
    color: #1f2937;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

body.login-page .btn-google:hover {
    background: #f1f1f1;
    transform: translateY(-1px);
}

body.login-page .btn-google img {
    width: 20px;
    height: 20px;
}

body.login-page .switch-auth {
    margin-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

body.login-page .switch-auth a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 900;
}

body.login-page .switch-auth a:hover {
    text-decoration: underline;
}

body.login-page .back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    margin-bottom: 18px;
    font-weight: 800;
}

body.login-page .back-home:hover {
    color: #00d4ff;
}

body.login-page .register-only {
    display: none;
}

body.login-page.register-mode .register-only {
    display: block;
}

body.login-page .login-separator {
    margin: 18px 0 0 0;
}
/* ==========================================
   OBJAVI.HTML - izdvojeni stilovi
   Dodati na dno style.css
   ========================================== */

/* Elektro-plava (neon / #00d4ff) estetika aplikacije */
        body.objavi-page .objavi-kontejner { 
            max-width: 1000px; 
            margin: 40px auto; 
            padding: 40px; 
            background: rgba(10, 25, 47, 0.85); 
            border: 1px solid rgba(0, 212, 255, 0.15); 
            border-radius: 12px; 
            backdrop-filter: blur(10px); 
            display: none; /* Sakriveno dok Firebase ne potvrdi da je korisnik ulogovan */
        }
        body.objavi-page .sekcija-naslov-forma { 
            font-size: 1.25rem; 
            font-weight: 600; 
            color: #00d4ff; 
            margin: 30px 0 15px 0; 
            border-left: 4px solid #00d4ff; 
            padding-left: 10px; 
            text-transform: uppercase; 
            letter-spacing: 1px; 
        }
        body.objavi-page .oprema-grupa-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
            gap: 12px; 
            margin-top: 15px; 
        }
        body.objavi-page .oprema-lebel { 
            display: flex; 
            align-items: center; 
            background: rgba(255,255,255,0.03); 
            border: 1px solid rgba(255,255,255,0.08); 
            padding: 12px 15px; 
            border-radius: 6px; 
            cursor: pointer; 
            color: #fff; 
            font-size: 0.9rem; 
            transition: all 0.2s ease; 
        }
        body.objavi-page .oprema-lebel input { 
            margin-right: 12px; 
            width: 16px; 
            height: 16px; 
            accent-color: #00d4ff; 
        }
        body.objavi-page .oprema-lebel:hover { 
            background: rgba(0, 212, 255, 0.05); 
            border-color: rgba(0, 212, 255, 0.3); 
        }
        body.objavi-page .forma-polje-modal textarea { 
            width: 100%; 
            height: 120px; 
            background: rgba(255, 255, 255, 0.05); 
            border: 1px solid rgba(255, 255, 255, 0.1); 
            border-radius: 6px; 
            padding: 12px; 
            color: white; 
            font-family: inherit; 
            font-size: 0.95rem; 
            resize: vertical; 
        }
        body.objavi-page .forma-polje-modal textarea:focus { 
            border-color: #00d4ff; 
            outline: none; 
            background: rgba(255, 255, 255, 0.08); 
        }
        body.objavi-page .slike-upload-zona { 
            border: 2px dashed rgba(0, 212, 255, 0.3); 
            padding: 30px; 
            text-align: center; 
            border-radius: 8px; 
            background: rgba(0, 212, 255, 0.02); 
            cursor: pointer; 
            transition: all 0.3s ease; 
        }
        body.objavi-page .slike-upload-zona:hover { 
            border-color: #00d4ff; 
            background: rgba(0, 212, 255, 0.05); 
        }
        body.objavi-page .plava-boja {
            color: #00d4ff;
        }

        /* Pozicioniranje zaglavlja da ne smeta formi */
        body.objavi-page .glavni-header {
            position: sticky;
            top: 0;
            z-index: 1000;
            width: 100%;
        }
        body.objavi-page {
            padding-top: 82px;
        }
        body.objavi-page .objavi-kontejner {
            margin-top: 110px;
        }
        @media (max-width: 768px) {
            body.objavi-page .glavni-header {
                position: relative;
            }
            body.objavi-page .objavi-kontejner {
                margin: 25px 15px;
                padding: 25px 18px;
            }
        }

        /* Pozadinska slika stranice */
        html, body.objavi-page {
            min-height: 100%;
        }
        body.objavi-page {
            background:
                linear-gradient(rgba(3, 8, 18, 0.72), rgba(3, 8, 18, 0.86)),
                url("slike/pozadina.png") center center / cover fixed no-repeat !important;
            color: #fff;
        }
        body.objavi-page::before {
            content: "";
            position: fixed;
            inset: 0;
            background:
                radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.16), transparent 32%),
                radial-gradient(circle at 80% 30%, rgba(0, 120, 255, 0.10), transparent 36%),
                rgba(0, 0, 0, 0.18);
            pointer-events: none;
            z-index: -1;
        }

        /* Glass blur forma */
        body.objavi-page .objavi-kontejner { 
            background: rgba(8, 18, 35, 0.54) !important;
            border: 1px solid rgba(0, 212, 255, 0.26) !important;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.38);
            backdrop-filter: blur(18px) saturate(145%) !important;
            -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
        }

        body.objavi-page .forma-grid-2x,
        body.objavi-page .forma-grid-3x,
        body.objavi-page .forma-grid-4x {
            display: grid;
            gap: 18px;
            margin-bottom: 18px;
        }
        body.objavi-page .forma-grid-2x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        body.objavi-page .forma-grid-3x { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        body.objavi-page .forma-grid-4x { grid-template-columns: repeat(4, minmax(0, 1fr)); }

        body.objavi-page .forma-polje-modal label {
            display: block;
            color: rgba(255,255,255,0.82);
            font-size: 0.78rem;
            font-weight: 700;
            margin-bottom: 8px;
            letter-spacing: 0.6px;
        }
        body.objavi-page .forma-polje-modal select,
        body.objavi-page .forma-polje-modal input {
            width: 100%;
            min-height: 46px;
            background: rgba(255, 255, 255, 0.07);
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-radius: 8px;
            color: #fff;
            padding: 11px 12px;
            outline: none;
        }
        body.objavi-page .forma-polje-modal select:focus,
        body.objavi-page .forma-polje-modal input:focus,
        body.objavi-page .forma-polje-modal textarea:focus {
            border-color: #00d4ff;
            box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
        }
        body.objavi-page .forma-polje-modal option {
            background: #07111f;
            color: #fff;
        }

        /* Loading dugme */
        body.objavi-page .btn-auth-akcija.loading {
            opacity: 0.88;
            cursor: wait !important;
            pointer-events: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }
        body.objavi-page .loading-spinner {
            width: 18px;
            height: 18px;
            border: 3px solid rgba(6, 11, 20, 0.22);
            border-top-color: #060b14;
            border-radius: 50%;
            display: inline-block;
            animation: automatchSpin 0.8s linear infinite;
        }
        @keyframes automatchSpin {
            to { transform: rotate(360deg); }
        }

        @media (max-width: 980px) {
            body.objavi-page .forma-grid-4x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            body.objavi-page .forma-grid-3x { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 620px) {
            body.objavi-page .forma-grid-2x,
            body.objavi-page .forma-grid-3x,
            body.objavi-page .forma-grid-4x {
                grid-template-columns: 1fr;
            }
        }


        /* Objavi header: samo elegantno dugme Početna desno */
        body.objavi-page .objavi-header-clean {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
            padding: 18px 34px;
            background: rgba(3, 8, 18, 0.70);
            border-bottom: 1px solid rgba(0, 212, 255, 0.14);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        body.objavi-page .objavi-header-spacer {
            flex: 1;
        }
        body.objavi-page .objavi-nav-single {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 0;
            margin-left: auto;
        }
        body.objavi-page .objavi-nav-single a::after {
            display: none !important;
        }
        body.objavi-page .btn-pocetna-elegant {
            display: inline-flex !important;
            align-items: center;
            justify-content: center;
            gap: 9px;
            padding: 11px 18px !important;
            border-radius: 999px;
            color: #06101f !important;
            background: linear-gradient(135deg, #00d4ff, #7cf4ff);
            border: 1px solid rgba(255,255,255,0.24);
            box-shadow: 0 12px 32px rgba(0, 212, 255, 0.22);
            font-weight: 900 !important;
            letter-spacing: 0.8px;
            text-decoration: none !important;
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }
        body.objavi-page .btn-pocetna-elegant:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 38px rgba(0, 212, 255, 0.34);
            filter: brightness(1.05);
        }

        /* Dugmad za uslove zamjene */
        body.objavi-page .zamjena-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 14px;
            margin-top: 10px;
        }
        body.objavi-page .zamjena-opcija {
            position: relative;
            min-height: 112px;
            border: 1px solid rgba(255,255,255,0.16);
            border-radius: 16px;
            padding: 16px 14px;
            color: #fff;
            text-align: left;
            cursor: pointer;
            overflow: hidden;
            box-shadow: 0 14px 36px rgba(0,0,0,0.22);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }
        body.objavi-page .zamjena-opcija::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 38%);
            pointer-events: none;
        }
        body.objavi-page .zamjena-opcija i {
            position: relative;
            font-size: 1.45rem;
            margin-bottom: 12px;
            display: block;
        }
        body.objavi-page .zamjena-opcija strong {
            position: relative;
            display: block;
            font-size: 0.95rem;
            line-height: 1.2;
            margin-bottom: 6px;
        }
        body.objavi-page .zamjena-opcija span {
            position: relative;
            display: block;
            font-size: 0.76rem;
            line-height: 1.35;
            color: rgba(255,255,255,0.78);
        }
        body.objavi-page .zamjena-opcija:hover,
        body.objavi-page .zamjena-opcija.aktivna {
            transform: translateY(-3px);
            border-color: rgba(255,255,255,0.45);
            box-shadow: 0 18px 46px rgba(0,0,0,0.30);
        }
        body.objavi-page .zamjena-opcija.aktivna::after {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            top: 12px;
            right: 12px;
            width: 26px;
            height: 26px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: rgba(255,255,255,0.92);
            color: #06101f;
            font-size: 0.78rem;
        }
        body.objavi-page .zamjena-skuplje { background: linear-gradient(135deg, #0f9f6e, #064e3b); }
        body.objavi-page .zamjena-jeftinije { background: linear-gradient(135deg, #f59e0b, #7c2d12); }
        body.objavi-page .zamjena-kljuc { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
        body.objavi-page .zamjena-svejedno { background: linear-gradient(135deg, #2563eb, #312e81); }

        @media (max-width: 920px) {
            body.objavi-page .zamjena-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            body.objavi-page .objavi-header-clean { padding: 15px 18px; }
        }
        @media (max-width: 560px) {
            body.objavi-page .zamjena-grid { grid-template-columns: 1fr; }
            body.objavi-page .objavi-header-clean { justify-content: flex-end; gap: 10px; }
            body.objavi-page .header-akcije span { display: none; }
        }

body.objavi-page .objavi-kontejner.forma-vidljiva {
    display: block;
}

body.objavi-page .objavi-page-title {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 5px;
}

body.objavi-page .objavi-page-subtitle {
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
}

body.objavi-page .upload-ikona {
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 10px;
}

body.objavi-page .slike-upload-zona h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

body.objavi-page .slike-upload-zona p {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

body.objavi-page .objavi-zamjena-polje {
    margin-bottom: 20px;
}

body.objavi-page .objavi-submit-btn {
    margin-top: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: #00d4ff;
    color: #060b14;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

body.objavi-page .objavi-submit-btn:hover {
    background: #7cf4ff;
}

body.objavi-page .is-hidden {
    display: none !important;
}

body.objavi-page .objavi-user-chip {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    align-self: center;
    margin-right: 10px;
}

body.objavi-page .objavi-user-chip i {
    color: #00d4ff;
    margin-right: 5px;
}

body.objavi-page .objavi-logout-btn {
    border-color: rgba(255, 77, 77, 0.4);
    color: #ff4d4d;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: 0.85rem;
}

body.objavi-page .objavi-limit-box {
    text-align: center;
    padding: 40px 20px;
}

body.objavi-page .objavi-limit-box > i {
    font-size: 3.5rem;
    color: #ff4d4d;
    margin-bottom: 20px;
}

body.objavi-page .objavi-limit-box h2 {
    color: white;
    margin-bottom: 10px;
}

body.objavi-page .objavi-limit-box p {
    color: rgba(255,255,255,0.6);
    max-width: 500px;
    margin: 0 auto 25px auto;
}

body.objavi-page .objavi-limit-link {
    text-decoration: none;
    display: inline-block;
}
/* ==========================================
   PORUKE PAGE - AutoMatch chat
   Dodati na dno style.css
   ========================================== */

/* ==========================================
   PORUKE PAGE - AutoMatch chat
   Dodati na dno style.css
   ========================================== */

body.poruke-page {
    min-height: 100vh;
    background:
        linear-gradient(rgba(6,11,20,0.85), rgba(6,11,20,0.95)),
        url('slike/pozadina.png') center/cover fixed no-repeat;
    margin: 0;
    padding: 0;
    padding-top: 82px;
    font-family: inherit;
    overflow: hidden;
}

body.poruke-page .is-hidden {
    display: none !important;
}

body.poruke-page .poruke-wrapper {
    max-width: 1400px;
    height: calc(100vh - 120px);
    margin: 20px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

body.poruke-page .chat-interfejs {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    height: 100% !important;
    background: rgba(8, 18, 35, 0.54);
    border: 1px solid rgba(0, 212, 255, 0.26);
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
}

body.poruke-page .chat-lista-kontejner {
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    flex-direction: column;
    background: rgba(4, 10, 22, 0.3);
    min-width: 0;
}

body.poruke-page .chat-lista-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    color: white;
}

body.poruke-page .chat-lista-header h2 {
    margin: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.poruke-page .chat-lista-header h2 i {
    color: #00d4ff;
}

body.poruke-page .chat-skroler {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

body.poruke-page .chat-lista-prazno {
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 40px 10px;
}

body.poruke-page .chat-stavka {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

body.poruke-page .chat-stavka:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.1);
}

body.poruke-page .chat-stavka.aktivna {
    background: rgba(0, 212, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}

body.poruke-page .chat-stavka.neprocitana {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.42);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

body.poruke-page .chat-stavka.neprocitana .stavka-naslov,
body.poruke-page .chat-stavka.neprocitana .stavka-korisnik,
body.poruke-page .chat-stavka.neprocitana .stavka-zadnja-poruka {
    font-weight: 900;
    color: #ffffff;
}

body.poruke-page .chat-stavka.neprocitana .stavka-vrijeme {
    color: #00d4ff;
    font-weight: 900;
}

body.poruke-page .neprocitano-badge {
    min-width: 21px;
    height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(255, 59, 59, 0.45);
    margin-left: 8px;
}

body.poruke-page .stavka-slika {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.poruke-page .stavka-info {
    flex: 1;
    min-width: 0;
}

body.poruke-page .stavka-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 8px;
}

body.poruke-page .stavka-naslov {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.poruke-page .stavka-vrijeme {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

body.poruke-page .stavka-korisnik {
    color: #00d4ff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 2px;
}

body.poruke-page .stavka-zadnja-poruka {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.poruke-page .chat-prozor {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: rgba(6, 11, 20, 0.2);
    overflow: hidden !important;
}

body.poruke-page .aktivni-chat-stanje {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

body.poruke-page .prozor-header {
    padding: 16px 24px;
    background: rgba(8, 18, 35, 0.6);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.poruke-page .prozor-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body.poruke-page .header-detalji {
    min-width: 0;
}

body.poruke-page .header-detalji h3 {
    color: white;
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}

body.poruke-page .header-detalji h3 a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

body.poruke-page .header-detalji h3 a:hover {
    color: #00d4ff;
}

body.poruke-page .header-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

body.poruke-page .header-vlasnik {
    color: rgba(255, 255, 255, 0.5);
}

body.poruke-page .header-vlasnik strong {
    color: #00d4ff;
}

body.poruke-page .header-cijena {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

body.poruke-page .poruke-sadrzaj {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
}

body.poruke-page .poruka-red {
    display: flex;
    width: 100%;
}

body.poruke-page .poruka-red.dolazna {
    justify-content: flex-start;
}

body.poruke-page .poruka-red.odlazna {
    justify-content: flex-end;
}

body.poruke-page .poruka-balon {
    max-width: 60%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    color: white;
    word-break: break-word;
}

body.poruke-page .dolazna .poruka-balon {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

body.poruke-page .odlazna .poruka-balon {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 85, 255, 0.25));
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.05);
}

body.poruke-page .poruka-info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 174, 0, 0.1);
    border: 1px solid rgba(255, 204, 102, 0.2);
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    color: #ffd98b;
    font-size: 0.88rem;
}

body.poruke-page .poruka-vrijeme {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 5px;
    text-align: right;
}

body.poruke-page .odlazna .poruka-vrijeme {
    color: rgba(0, 212, 255, 0.6);
}

body.poruke-page .chat-input-zona {
    padding: 20px;
    background: rgba(4, 10, 22, 0.4);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    margin-top: auto !important;
}

body.poruke-page .input-forma {
    display: flex;
    gap: 12px;
    background: rgba(6, 11, 20, 0.7);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    padding: 6px 12px;
    align-items: center;
}

body.poruke-page .input-forma:focus-within {
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

body.poruke-page .input-forma input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 10px 4px;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    min-width: 0;
}

body.poruke-page .input-forma input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

body.poruke-page .btn-posalji {
    background: linear-gradient(135deg, #00d4ff, #0055ff);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.18s;
    font-size: 1rem;
    flex-shrink: 0;
}

body.poruke-page .btn-posalji:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

body.poruke-page .prazan-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px;
}

body.poruke-page .prazan-chat i {
    font-size: 3.5rem;
    color: rgba(0, 212, 255, 0.2);
    margin-bottom: 15px;
}

body.poruke-page .poruke-prazno-stanje {
    text-align: center;
    color: rgba(255,255,255,0.45);
    padding: 35px 15px;
}

body.poruke-page .poruke-prazno-stanje i {
    color: #00d4ff;
    font-size: 2rem;
    margin-bottom: 12px;
}

body.poruke-page .zatvori-chat-mobilni {
    display: none !important;
}

@media(max-width: 900px) {
    body.poruke-page {
        overflow: hidden;
    }

    body.poruke-page .poruke-wrapper {
        height: calc(100vh - 94px);
        margin: 10px auto;
        padding: 0 10px;
    }

    body.poruke-page .chat-interfejs {
        grid-template-columns: 1fr !important;
    }

    body.poruke-page .chat-lista-kontejner {
        display: flex !important;
        border-right: none;
    }

    body.poruke-page .chat-prozor {
        display: none !important;
    }

    body.poruke-page .chat-interfejs.otvoren-razgovor .chat-lista-kontejner {
        display: none !important;
    }

    body.poruke-page .chat-interfejs.otvoren-razgovor .chat-prozor {
        display: flex !important;
    }

    body.poruke-page .chat-interfejs:not(.otvoren-razgovor) .chat-prozor {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    body.poruke-page .zatvori-chat-mobilni {
        display: inline-flex !important;
        min-width: 42px;
        padding: 0 12px;
        flex-shrink: 0;
    }

    body.poruke-page .poruka-balon {
        max-width: 82%;
    }

    body.poruke-page .prozor-header {
        padding: 12px 14px;
    }

    body.poruke-page .header-sub {
        font-size: 0.78rem;
    }
}
body.objavi-page .objavi-full-row {
    grid-column: 1 / -1;
}
/* INDEX POZADINA - DESKTOP */
body.index-page {
    background:
        linear-gradient(rgba(4, 8, 14, 0.25), rgba(4, 8, 14, 0.88)),
        url('slike/pozadina.png') center 42% / cover no-repeat fixed !important;
    background-color: #04080e !important;
}

/* INDEX POZADINA - MOBITEL */
/* INDEX POZADINA - MOBITEL */
@media (max-width: 768px) {
    body.index-page {
        background-color: #04080e !important;
        background-image:
            linear-gradient(rgba(4, 8, 14, 0.10), rgba(4, 8, 14, 0.72)),
            url('slike/pozadina-mobile.png') !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        background-size: 100% auto !important;
        background-attachment: scroll !important;
    }

    .index-page .hero-overlay {
        background: linear-gradient(
            rgba(4, 8, 14, 0.08),
            rgba(4, 8, 14, 0.70)
        ) !important;
    }
}