/* ══════════════════════════════════════════════════
   UNMCG — funkcije.css
   Bedževi funkcija, javni profili, O nama, direktorij
   ══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   BEDŽ (badge) — osnova
   ═══════════════════════════════════════════════════ */
.us-funk-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1.5px solid color-mix(in srgb, var(--funk-color, #64748b) 40%, transparent);
  background: color-mix(in srgb, var(--funk-color, #64748b) 12%, #fff);
  color: color-mix(in srgb, var(--funk-color, #64748b) 80%, #000);
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  white-space: nowrap;
  transition: box-shadow .15s;
}
.us-funk-badge:hover { box-shadow: 0 2px 8px rgba(0,0,0,.13); }

.us-funk-badge .us-funk-icon {
  flex-shrink: 0;
  color: var(--funk-color, #64748b);
}

/* Veličine */
.us-funk-badge--sm { font-size: .72rem; padding: .2rem .5rem; gap: .28rem; }
.us-funk-badge--md { font-size: .78rem; }
.us-funk-badge--lg { font-size: .88rem; padding: .35rem .85rem; gap: .45rem; }

/* Wrap */
.us-funk-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

/* ═══════════════════════════════════════════════════
   ADMIN — ikona-picker grid
   ═══════════════════════════════════════════════════ */
.us-funk-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .35rem;
}
.us-funk-icon-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  padding: .5rem .6rem;
  border: 2px solid #dde3ef;
  border-radius: 8px;
  cursor: pointer;
  font-size: .65rem;
  color: #6b7a99;
  min-width: 58px;
  text-align: center;
  transition: border-color .15s, background .15s;
  background: #fff;
}
.us-funk-icon-pick:hover { border-color: #0a2342; background: #f4f6fa; }
.us-funk-icon-pick.selected { border-color: #c9a84c; background: #fef9ec; color: #0a2342; }
.us-funk-icon-pick svg { color: #1a2b45; }

.us-funk-assign-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}
.us-funk-assign-row .button-link { color: #b91c1c; font-size: .8rem; }

/* ═══════════════════════════════════════════════════
   JAVNI DIREKTORIJ ČLANOVA [unmcg_clanovi]
   ═══════════════════════════════════════════════════ */
.us-clanovi-wrap { font-family: system-ui, sans-serif; max-width: 1100px; margin: 0 auto; }

.us-clanovi-header { margin-bottom: 1.5rem; }
.us-clanovi-header h2 { font-size: 1.75rem; color: #0a2342; margin: 0 0 .3rem; }
.us-clanovi-header p  { color: #6b7a99; margin: 0; }

.us-clanovi-filter {
  display: flex; flex-wrap: wrap; gap: .6rem;
  align-items: center; margin-bottom: 1.25rem;
}

.us-clanovi-count { font-size: .88rem; color: #6b7a99; margin: 0 0 1rem; }

.us-clanovi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Kartica člana */
.us-clan-card {
  background: #fff;
  border: 1px solid #dde3ef;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.us-clan-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.us-clan-photo-link { display: block; margin-bottom: .75rem; }

.us-clan-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #dde3ef;
  display: block;
}
.us-clan-photo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2342, #1a3d6b);
  color: #c9a84c;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  border: 3px solid #dde3ef;
}

.us-clan-name { font-weight: 700; color: #0a2342; text-decoration: none; font-size: .95rem; display: block; margin-bottom: .2rem; }
.us-clan-name:hover { text-decoration: underline; }
.us-clan-skola { font-size: .78rem; color: #6b7a99; margin: 0 0 .5rem; }
.us-clan-info .us-funk-badge-wrap { justify-content: center; }

/* ═══════════════════════════════════════════════════
   JAVNI PROFIL ČLANA
   ═══════════════════════════════════════════════════ */
.us-profil-wrap { max-width: 800px; }

.us-profil-header {
  display: flex; gap: 2rem; align-items: flex-start;
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid #dde3ef;
}

.us-profil-photo {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  border: 4px solid #dde3ef;
  display: block; flex-shrink: 0;
}
.us-profil-photo-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0a2342, #1a3d6b);
  color: #c9a84c;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700;
  border: 4px solid #dde3ef;
}

.us-profil-name  { font-size: 1.6rem; color: #0a2342; margin: 0 0 .3rem; font-weight: 800; }
.us-profil-skola { color: #6b7a99; margin: 0; font-size: .9rem; }

.us-profil-bio {
  background: #f4f6fa;
  border-left: 4px solid #c9a84c;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
}
.us-profil-bio h3 { margin: 0 0 .5rem; font-size: .9rem; color: #6b7a99; text-transform: uppercase; letter-spacing: .06em; }
.us-profil-bio p  { margin: 0; color: #1a2b45; line-height: 1.7; font-size: .93rem; }

.us-profil-section { margin-bottom: 1.75rem; }
.us-profil-section h3 {
  font-size: 1rem; font-weight: 700; color: #0a2342;
  border-bottom: 2px solid #dde3ef; padding-bottom: .4rem; margin-bottom: .85rem;
}
.us-profil-list { list-style: none; padding: 0; margin: 0; }
.us-profil-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .9rem;
  color: #1a2b45;
}
.us-profil-list li:last-child { border-bottom: none; }
.us-profil-list a { color: #0a2342; text-decoration: none; }
.us-profil-list a:hover { text-decoration: underline; color: #c9a84c; }

/* Portal — profil foto upload */
.us-portal-profil-foto { margin-bottom: .75rem; }
.us-portal-foto-img {
  width: 70px; height: 70px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #dde3ef;
}
.us-foto-upload-wrap { display: flex; align-items: center; gap: .75rem; margin: .5rem 0; }
.us-foto-upload-wrap .us-foto-preview {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 2px solid #dde3ef; display: block;
}
.us-foto-upload-wrap .us-foto-placeholder {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #0a2342, #1a3d6b);
  color: #c9a84c; font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #dde3ef;
}

/* ═══════════════════════════════════════════════════
   STRANICA O NAMA [unmcg_o_nama]
   ═══════════════════════════════════════════════════ */
.us-ona-wrap { font-family: system-ui, sans-serif; max-width: 1100px; margin: 0 auto; }

.us-ona-group { margin-bottom: 3rem; }

.us-ona-group-title {
  font-size: 1.25rem; font-weight: 800; color: #0a2342;
  border-left: 4px solid #c9a84c;
  padding-left: .75rem; margin: 0 0 1.25rem;
}

.us-ona-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.us-ona-card {
  background: #fff;
  border: 1px solid #dde3ef;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.us-ona-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

.us-ona-photo-link { display: block; margin-bottom: .85rem; }

.us-ona-photo {
  width: 90px; height: 90px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid #dde3ef; display: block;
}
.us-ona-photo-placeholder {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a2342, #1a3d6b);
  color: #c9a84c; font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid #dde3ef;
}

.us-ona-name {
  font-weight: 700; font-size: .95rem; color: #0a2342;
  text-decoration: none; display: block; margin-bottom: .4rem;
}
.us-ona-name:hover { text-decoration: underline; }

.us-ona-skola { font-size: .78rem; color: #6b7a99; margin: .4rem 0 0; }
.us-ona-bio   { font-size: .78rem; color: #6b7a99; margin: .3rem 0 0; line-height: 1.5;
                display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.us-ona-card .us-funk-badge-wrap { justify-content: center; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .us-clanovi-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .85rem; }
  .us-ona-cards    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .85rem; }
  .us-profil-header { flex-direction: column; align-items: center; text-align: center; }
  .us-profil-name  { font-size: 1.3rem; }
  .us-profil-photo,
  .us-profil-photo-placeholder { width: 90px; height: 90px; }
  .us-clanovi-filter { flex-direction: column; }
  .us-clanovi-filter .us-input,
  .us-clanovi-filter .us-select { width: 100%; }
}
@media (max-width: 480px) {
  .us-clanovi-grid { grid-template-columns: repeat(2, 1fr); }
  .us-ona-cards    { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════
   MOJ PROFIL — [unmcg_moj_profil] (tamnoplavo/zlatno)
   ══════════════════════════════════════════════════ */
.us-mp{max-width:1180px;margin:0 auto;font-family:inherit;display:grid;
  grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start;}
.us-mp-r{position:absolute;opacity:0;pointer-events:none;}

/* ── Lijevi sidebar ── */
.us-mp-side{background:#0a2342;border-radius:18px;padding:1.5rem 1rem;color:#fff;
  border:1px solid rgba(212,175,55,.25);box-shadow:0 14px 40px rgba(10,35,66,.18);position:sticky;top:1rem;}
.us-mp-side-top{text-align:center;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.1);}
.us-mp-side-avatar{width:70px;height:70px;border-radius:50%;margin:0 auto .6rem;overflow:hidden;background:#d4af37;
  border:3px solid rgba(212,175,55,.6);display:flex;align-items:center;justify-content:center;}
.us-mp-side-avatar img{width:100%;height:100%;object-fit:cover;}
.us-mp-side-avatar span{color:#0a2342;font-weight:800;font-size:1.7rem;}
.us-mp-side-name{color:#fff;font-weight:700;font-size:18px;line-height:1.2;}
.us-mp-side-func{color:#d4af37;font-weight:600;font-size:.85rem;margin-top:.25rem;}
.us-mp-menu{display:flex;flex-direction:column;gap:8px;}
.us-mp-menu label{display:block;color:#fff;padding:.6rem .8rem;border-radius:8px;cursor:pointer;
  font-weight:600;font-size:.92rem;white-space:normal;border-left:3px solid transparent;
  transition:background .15s,border-color .15s;}
.us-mp-menu label:hover{background:rgba(255,255,255,.08);}

/* ── Glavni sadržaj ── */
.us-mp-main{min-width:0;overflow:hidden;}

/* Header kartica */
.us-mp-headcard{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;background:#fff;
  border:1px solid #e6e9f0;border-top:3px solid #d4af37;border-radius:20px;padding:1.4rem 1.6rem;
  margin-bottom:1.25rem;box-shadow:0 12px 34px rgba(10,35,66,.1);}
.us-mp-hc-photo{width:96px;height:96px;border-radius:50%;overflow:hidden;flex-shrink:0;background:#d4af37;
  border:3px solid #0a2342;box-shadow:0 0 0 3px rgba(212,175,55,.6);display:flex;align-items:center;justify-content:center;}
.us-mp-hc-photo img{width:100%;height:100%;object-fit:cover;}
.us-mp-hc-photo span{color:#0a2342;font-weight:800;font-size:2.4rem;}
.us-mp-hc-info{flex:1;min-width:200px;}
.us-mp-hc-name{margin:0 0 .2rem;color:#0a2342;font-size:1.5rem;}
.us-mp-hc-line{margin:0;color:#6b7a99;font-size:.9rem;line-height:1.5;}
.us-mp-hc-badges{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem;}
.us-mp-hc-stats{display:flex;gap:.75rem;}
.us-mp-badge{display:inline-block;font-size:.75rem;font-weight:700;padding:.2rem .7rem;border-radius:20px;}
.us-mp-badge.is-ok{background:#0a2342;color:#fff;}
.us-mp-badge.is-off{background:#eef1f6;color:#334155;}
.us-mp-stat{background:#f6f8fc;border:1px solid #e6e9f0;border-radius:12px;padding:.5rem .9rem;text-align:center;min-width:82px;}
.us-mp-stat strong{display:block;font-size:1.3rem;color:#0a2342;}
.us-mp-stat span{font-size:.68rem;color:#6b7a99;text-transform:uppercase;letter-spacing:.04em;}

/* Paneli (sadržaj taba) */
.us-mp-panel{display:none;background:#fff;border:1px solid #e6e9f0;border-radius:16px;
  padding:1.25rem 1.4rem;box-shadow:0 8px 24px rgba(10,35,66,.06);}
#usmp-profil:checked ~ .us-mp-main .p-profil,
#usmp-mat:checked    ~ .us-mp-main .p-mat,
#usmp-funk:checked   ~ .us-mp-main .p-funk,
#usmp-clan:checked   ~ .us-mp-main .p-clan,
#usmp-card:checked   ~ .us-mp-main .p-card,
#usmp-edu:checked    ~ .us-mp-main .p-edu,
#usmp-notif:checked  ~ .us-mp-main .p-notif,
#usmp-set:checked    ~ .us-mp-main .p-set{display:block;}
/* Aktivna menu stavka — zlatni lijevi border + svjetlija pozadina */
#usmp-profil:checked ~ .us-mp-side .us-mp-menu label[for=usmp-profil],
#usmp-mat:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-mat],
#usmp-funk:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-funk],
#usmp-clan:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-clan],
#usmp-card:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-card],
#usmp-edu:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-edu],
#usmp-notif:checked  ~ .us-mp-side .us-mp-menu label[for=usmp-notif],
#usmp-set:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-set]{
  background:rgba(212,175,55,.15);border-left-color:#d4af37;}

/* Obavještenja — badge + kartice */
.us-mp-unread{display:inline-block;background:#d4af37;color:#0a2342;font-size:.72rem;font-weight:800;
  min-width:18px;height:18px;line-height:18px;text-align:center;border-radius:9px;padding:0 5px;}
.us-mp-notif-list{display:flex;flex-direction:column;gap:.6rem;}
.us-mp-notif{display:flex;gap:.75rem;align-items:flex-start;background:#f8fafc;border:1px solid #e6e9f0;
  border-radius:12px;padding:.85rem 1rem;position:relative;transition:background .15s;}
.us-mp-notif.is-unread{background:#fffdf5;border-color:#f0dca0;border-left:3px solid #d4af37;cursor:pointer;}
.us-mp-notif.is-read{opacity:.85;}
.umn-title{font-weight:700;color:#0a2342;}
.umn-date{font-size:.75rem;color:#8fa0bd;margin:.1rem 0 .35rem;}
.umn-text{color:#334155;font-size:.9rem;line-height:1.5;}
.umn-dot{width:9px;height:9px;border-radius:50%;background:#d4af37;flex-shrink:0;margin-top:6px;}

/* Forma / polja — zaobljena 12px, zlatni focus, bold label */
.us-mp label b,.us-mp .us-label{font-weight:700;}
.us-mp input:not([type=radio]):not([type=checkbox]):not([type=file]),
.us-mp select,.us-mp textarea{border:1px solid #cfd6e4;border-radius:12px;padding:.6rem .8rem;background:#fff;
  transition:border-color .15s,box-shadow .15s;}
.us-mp input:focus,.us-mp select:focus,.us-mp textarea:focus{border-color:#d4af37;outline:none;
  box-shadow:0 0 0 3px rgba(212,175,55,.25);}

.us-mp-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.6rem;}
.us-mp-fields > div{background:#f8fafc;border:1px solid #e6e9f0;border-radius:10px;padding:.6rem .8rem;}
.us-mp-fields .k{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#8fa0bd;}
.us-mp-fields .v{font-weight:700;color:#0a2342;}
.us-mp-bio{margin-top:1rem;}
.us-mp-bio h4{margin:0 0 .35rem;color:#0a2342;}

.us-mp-table{width:100%;border-collapse:collapse;font-size:.9rem;}
.us-mp-table th,.us-mp-table td{text-align:left;padding:.55rem .6rem;border-bottom:1px solid #eef1f6;}
.us-mp-table th{color:#6b7a99;font-size:.8rem;text-transform:uppercase;letter-spacing:.03em;}
.us-mp-mstatus{font-size:.72rem;font-weight:700;padding:.15rem .5rem;border-radius:20px;}
.us-mp-mstatus.s-ok{background:#e6f6ec;color:#15803d;}
.us-mp-mstatus.s-wait{background:#fff7e0;color:#9a6b00;}
.us-mp-mstatus.s-no{background:#fdeaea;color:#b91c1c;}
.us-mp-funk-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem;}
.us-mp-funk-list li{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;}
.us-mp-funk-note{color:#6b7a99;font-size:.85rem;}

/* Direktorij: broj materijala na kartici */
.us-clan-mat{margin:.35rem 0 0;font-size:.8rem;color:#6b7a99;}

/* ── Mobilni: sidebar ide gore kao horizontalni profil/meni ── */
@media (max-width:820px){
  .us-mp{grid-template-columns:1fr;}
  .us-mp-side{position:static;padding:1rem 1.1rem;}
  .us-mp-side-top{display:flex;align-items:center;gap:.75rem;text-align:left;padding-bottom:.75rem;}
  .us-mp-side-avatar{margin:0;width:56px;height:56px;}
  .us-mp-side-avatar span{font-size:1.4rem;}
  /* Meni postaje horizontalna tab-navigacija koja se prelama (ne izlazi desno) */
  .us-mp-menu{flex-direction:row;flex-wrap:wrap;gap:8px;overflow:hidden;border-top:1px solid rgba(255,255,255,.1);padding-top:.75rem;}
  .us-mp-menu label{flex:0 1 auto;max-width:150px;text-align:center;
    border-left:none;border-bottom:2px solid transparent;padding:.45rem .7rem;border-radius:8px;}
  /* Aktivan tab na mobilnom → donja zlatna linija */
  #usmp-profil:checked ~ .us-mp-side .us-mp-menu label[for=usmp-profil],
  #usmp-mat:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-mat],
  #usmp-funk:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-funk],
  #usmp-clan:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-clan],
  #usmp-card:checked   ~ .us-mp-side .us-mp-menu label[for=usmp-card],
  #usmp-edu:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-edu],
  #usmp-notif:checked  ~ .us-mp-side .us-mp-menu label[for=usmp-notif],
  #usmp-set:checked    ~ .us-mp-side .us-mp-menu label[for=usmp-set]{
    border-left-color:transparent;border-bottom-color:#d4af37;background:rgba(212,175,55,.15);}
}
@media (max-width:600px){
  .us-mp-headcard{flex-direction:column;text-align:center;}
  .us-mp-hc-stats{width:100%;justify-content:center;}
  .us-mp-fields{grid-template-columns:1fr;}
  .us-mp-table th:nth-child(3),.us-mp-table td:nth-child(3){display:none;}
}

/* ══════════════════════════════════════════════════
   PROFILNA FOTOGRAFIJA — kružna, UNMCG okvir (plavo/zlato)
   ══════════════════════════════════════════════════ */
/* Kružne slike u direktoriju/karticama autora — 64x64 */
.us-clan-photo,.us-clan-photo-placeholder{width:64px;height:64px;border-radius:50%;object-fit:cover;
  border:3px solid #0a2342;box-shadow:0 0 0 2px rgba(201,168,76,.6);}

/* Podešavanja — preview + upload */
.usmp-photo-set h4{margin:0 0 .6rem;color:#0a2342;}
.usmp-photo-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;}
.usmp-photo-preview{width:150px;height:150px;border-radius:50%;object-fit:cover;
  border:3px solid #0a2342;box-shadow:0 0 0 3px rgba(201,168,76,.6);background:#eef1f6;}
.usmp-photo-ph{display:flex;align-items:center;justify-content:center;background:#c9a84c;color:#0a2342;
  font-weight:800;font-size:3rem;}
.usmp-photo-preview.is-hidden,.usmp-photo-ph.is-hidden{display:none;}
.usmp-photo-hint{color:#6b7a99;font-size:.82rem;margin:.4rem 0 .2rem;}
.usmp-photo-msg{font-size:.85rem;font-weight:600;}
.usmp-photo-msg.is-ok{color:#15803d;}
.usmp-photo-msg.is-err{color:#b91c1c;}

/* ══════════════════════════════════════════════════
   DIGITALNA ČLANSKA KARTA (tab u Moj profil)
   ══════════════════════════════════════════════════ */
.us-card{width:340px;max-width:100%;background:linear-gradient(150deg,#0a2342 0%,#13315c 60%,#0a2342 100%);
  color:#fff;border-radius:18px;padding:18px;box-shadow:0 16px 40px rgba(10,35,66,.35);border:1px solid rgba(201,168,76,.5);}
.us-card-top{display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(201,168,76,.35);padding-bottom:12px;}
.us-card-logo{width:40px;height:40px;object-fit:contain;background:#fff;border-radius:8px;padding:2px;}
.us-card-org{font-size:.78rem;font-weight:700;color:#e8d9a8;line-height:1.25;}
.us-card-body{display:flex;gap:12px;align-items:flex-start;padding:14px 0;}
.us-card-photo{width:70px;height:70px;border-radius:12px;overflow:hidden;flex-shrink:0;background:#c9a84c;
  display:flex;align-items:center;justify-content:center;border:2px solid rgba(201,168,76,.7);}
.us-card-photo img{width:100%;height:100%;object-fit:cover;}
.us-card-photo span{color:#0a2342;font-weight:800;font-size:1.8rem;}
.us-card-info{flex:1;min-width:0;}
.us-card-name{font-size:1.15rem;font-weight:800;line-height:1.2;}
.us-card-line{font-size:.82rem;color:#cfe0ff;}
.us-card-status{margin-top:.35rem;font-size:.78rem;font-weight:700;color:#c9a84c;}
.us-card-funks{display:flex;flex-wrap:wrap;gap:4px;margin-top:.4rem;}
.us-card-funk{font-size:.66rem;background:rgba(201,168,76,.18);color:#f0e2b8;border:1px solid rgba(201,168,76,.4);border-radius:20px;padding:1px 7px;}
.us-card-qr{width:96px;height:96px;background:#fff;border-radius:8px;padding:4px;flex-shrink:0;}
.us-card-qr img,.us-card-qr canvas{width:100%!important;height:100%!important;display:block;}
.us-card-foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid rgba(201,168,76,.35);padding-top:10px;}
.us-card-foot .k{display:block;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;color:#9fb2d6;}
.us-card-foot .v{font-weight:800;color:#fff;letter-spacing:.03em;}
@media(max-width:480px){.us-card-body{flex-wrap:wrap;}.us-card-qr{margin-top:6px;}}

/* ===== Javni profil — CV / portfolio ===== */
.us-cv{max-width:860px;margin:0 auto;}
.us-cv-header{position:relative;background:#fff;border-radius:16px;padding:1.75rem;display:flex;gap:1.5rem;align-items:center;
  box-shadow:0 10px 30px rgba(10,35,66,.10);border:1px solid rgba(10,35,66,.07);border-top:4px solid #d4af37;}
.us-cv-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:4px solid #d4af37;box-shadow:0 4px 14px rgba(10,35,66,.18);}
.us-cv-photo-ph{width:120px;height:120px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:2.4rem;font-weight:800;color:#fff;background:linear-gradient(135deg,#0a2342,#163d6e);border:4px solid #d4af37;}
.us-cv-name{font-size:1.6rem;color:#0a2342;margin:0 0 .3rem;display:flex;align-items:center;gap:.5rem;}
.us-cv-active{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;
  background:#1a6b1a;color:#fff;font-size:.8rem;}
.us-cv-line{margin:.1rem 0;color:#5a6172;}
.us-cv-role{font-style:italic;}
.us-cv-badges{margin-top:.6rem;}
.us-cv-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem;}
.us-cv-stats{display:flex;flex-wrap:wrap;gap:1rem;margin:1.25rem 0;}
.us-cv-stat{flex:1 1 120px;background:#fff;border:1px solid rgba(10,35,66,.08);border-radius:12px;padding:1rem;text-align:center;
  box-shadow:0 2px 8px rgba(10,35,66,.06);}
.ucs-n{display:block;font-size:1.5rem;font-weight:800;color:#0a2342;}
.ucs-l{display:block;font-size:.8rem;color:#5a6172;margin-top:.15rem;}
.us-cv-section{background:#fff;border:1px solid rgba(10,35,66,.08);border-radius:14px;padding:1.4rem;margin-bottom:1.25rem;}
.us-cv-section h3{color:#0a2342;margin:0 0 .9rem;font-size:1.15rem;}
.us-cv-bio{color:#3a4a5c;margin:0;}
.us-cv-mat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem;}
.us-cv-mat{display:block;border:1px solid rgba(10,35,66,.08);border-radius:10px;padding:.9rem 1rem;transition:border-color .2s,box-shadow .2s,transform .2s;}
.us-cv-mat:hover{border-color:#d4af37;box-shadow:0 6px 18px rgba(10,35,66,.12);transform:translateY(-2px);}
.us-cv-mat h4{margin:0 0 .4rem;color:#0a2342;font-size:.98rem;}
.us-cv-mat-tags{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.5rem;}
.us-cv-mat-tags span{font-size:.72rem;background:rgba(14,56,110,.08);color:#163d6e;padding:2px 8px;border-radius:999px;}
.us-cv-mat-foot{display:flex;justify-content:space-between;font-size:.82rem;color:#5a6172;}
.us-cv-more{margin-top:1rem;}
.us-cv-edu-list{list-style:none;margin:0;padding:0;}
.us-cv-edu-list li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.6rem 0;border-bottom:1px solid rgba(10,35,66,.06);}
.us-cv-edu-list li:last-child{border-bottom:0;}
.us-cv-edu-date{color:#5a6172;font-size:.82rem;}
.us-cv-edu-status{margin-left:auto;font-size:.72rem;font-weight:700;background:rgba(201,168,76,.15);color:#7a5f10;padding:2px 10px;border-radius:999px;}
@media(max-width:640px){
  .us-cv-header{flex-direction:column;text-align:center;}
  .us-cv-name{justify-content:center;}
  .us-cv-actions{justify-content:center;}
  .us-cv-mat-grid{grid-template-columns:1fr;}
}

/* ===== Moj profil — forme podešavanja (2 kolone) ===== */
.usmp-edit h4,.usmp-pass h4{margin:0 0 .75rem;color:#0a2342;}
.usmp-form.usmp-2col{display:grid;grid-template-columns:1fr 1fr;gap:.85rem 1rem;}
.usmp-form label{display:flex;flex-direction:column;font-size:.85rem;font-weight:600;color:#0a2342;gap:.3rem;}
.usmp-form input,.usmp-form textarea{font:inherit;font-weight:400;padding:.55rem .7rem;border:1px solid #dde3f0;border-radius:8px;background:#fff;}
.usmp-form input:focus,.usmp-form textarea:focus{outline:none;border-color:#c9a84c;box-shadow:0 0 0 3px rgba(201,168,76,.15);}
.usmp-form .usmp-full{grid-column:1 / -1;}
@media(max-width:640px){.usmp-form.usmp-2col{grid-template-columns:1fr;}}
