/* =====================================================================
   DATING BALKAN — MODERNI SLOJ 2026
   Iste boje (ljubičasta #7232f2 / #7b2ff7 → #b24592), moderniji izgled:
   mekše sjene, staklasti header, glađe animacije, bolja tipografija,
   istaknutiji logo. Učitava se zadnji pa ima prednost.
   ===================================================================== */

:root{
  --db-purple:#7232f2;
  --db-purple-2:#7b2ff7;
  --db-pink:#b24592;
  --db-radius:22px;
  --db-radius-sm:14px;
  --db-shadow-sm:0 2px 8px rgba(40,20,90,.06);
  --db-shadow:0 10px 30px -12px rgba(76,24,154,.22), 0 2px 6px rgba(40,20,90,.05);
  --db-shadow-lg:0 24px 60px -20px rgba(76,24,154,.35), 0 4px 12px rgba(40,20,90,.06);
  --db-ease:cubic-bezier(.22,.8,.26,1);
}

html{ scroll-behavior:smooth; }
html body{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  letter-spacing:-.005em;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(178,69,146,.07), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(123,47,247,.07), transparent 60%),
    #f4f3f8;
  background-attachment:fixed;
}
html body h1, html body h2, html body h3{ letter-spacing:-.025em; }
html body ::selection{ background:rgba(114,50,242,.18); }

/* tanki moderni scrollbar */
html body *::-webkit-scrollbar{ width:10px; height:10px; }
html body *::-webkit-scrollbar-thumb{ background:rgba(114,50,242,.25); border-radius:99px; border:3px solid transparent; background-clip:content-box; }
html body *::-webkit-scrollbar-thumb:hover{ background-color:rgba(114,50,242,.45); }

/* ---------------- HEADER (staklasti efekt, iste boje) ---------------- */
html body header.db-header{
  background:linear-gradient(120deg, rgba(123,47,247,.96) 0%, rgba(150,58,200,.95) 55%, rgba(178,69,146,.96) 100%);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 30px -10px rgba(123,47,247,.45);
  min-height:76px;
}
html body .nav-link-item{ border-radius:999px; padding:0 12px; transition:background .2s var(--db-ease), color .2s; }
html body .nav-link-item:hover{ background:rgba(255,255,255,.14); }
html body .btn-reg{ transition:transform .2s var(--db-ease), box-shadow .2s; }
html body .btn-reg:hover{ transform:translateY(-1px); box-shadow:0 8px 20px rgba(0,0,0,.18); }
html body .lang-flag{ border-radius:6px; box-shadow:0 0 0 2px rgba(255,255,255,.55), 0 3px 8px rgba(0,0,0,.2); }
html body .lang-link:hover .lang-flag{ transform:translateY(-1px); }
html body .header-avatar{ box-shadow:0 0 0 3px rgba(255,255,255,.25); }

/* ---------------- LOGO — vidljiviji ---------------- */
html body .logo-wrapper a,
html body .logo-wrapper .custom-logo-link{
  display:inline-flex; align-items:center;
  background:#fff;
  padding:7px 16px;
  border-radius:16px;
  box-shadow:0 6px 18px rgba(30,10,70,.22), inset 0 0 0 1px rgba(255,255,255,.9);
  transition:transform .25s var(--db-ease), box-shadow .25s;
}
html body .logo-wrapper a:hover{ transform:translateY(-1px) scale(1.02); box-shadow:0 10px 26px rgba(30,10,70,.28); }
html body .logo-wrapper img,
html body .logo-wrapper .custom-logo{
  max-height:54px !important;
  min-height:38px;
  width:auto; height:auto;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.08)) contrast(1.05) saturate(1.1);
}
/* tekstualni logo (ako slika ne postoji) — bijela pločica, ljubičasta slova */
html body .logo-wrapper a.logo-text{
  font-size:23px !important;
  font-weight:900 !important;
  letter-spacing:-.6px !important;
  color:#7232f2 !important;
  background:#fff;
  padding:10px 18px;
  line-height:1;
}
html body .footer-brand-text{ font-weight:900; letter-spacing:-.4px; }

@media (max-width:768px){
  html body header.db-header{ min-height:68px; }
  html body .logo-wrapper a, html body .logo-wrapper .custom-logo-link{ padding:5px 12px; border-radius:13px; }
  html body .logo-wrapper img, html body .logo-wrapper .custom-logo{ max-height:44px !important; max-width:170px !important; min-height:32px; }
  html body .logo-wrapper a.logo-text{ font-size:18px !important; padding:9px 13px; }
  html body .nav-links{ -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border-radius:20px !important; }
  html body .nav-link-item{ padding:11px 13px; }
}

/* ---------------- GUMBI ---------------- */
html body .btn,
html body .btn-primary,
html body .footer-btn,
html body .filter-apply-btn,
html body .spark-vote-btn{
  transition:transform .2s var(--db-ease), box-shadow .2s var(--db-ease), background .2s, color .2s, border-color .2s;
  will-change:transform;
}
html body .btn:hover,
html body .btn-primary:hover,
html body .footer-btn:hover,
html body .filter-apply-btn:hover{ transform:translateY(-2px); }
html body .btn:active,
html body .btn-primary:active{ transform:translateY(0) scale(.98); }
html body .btn-primary{ box-shadow:0 10px 24px -8px rgba(114,50,242,.55); }
html body .btn-primary:hover{ box-shadow:0 16px 32px -10px rgba(114,50,242,.6); }
html body button:focus-visible, html body a:focus-visible, html body input:focus-visible, html body select:focus-visible, html body textarea:focus-visible{
  outline:3px solid rgba(114,50,242,.35); outline-offset:2px;
}

/* ---------------- KARTICE ---------------- */
html body .card-shell,
html body .oglas-card,
html body .testimonial-card,
html body .dating-blog-card,
html body .dbe26-box,
html body .footer-top-card{
  border:1px solid rgba(114,50,242,.08) !important;
  box-shadow:var(--db-shadow) !important;
  transition:transform .3s var(--db-ease), box-shadow .3s var(--db-ease);
}
html body .oglas-card:hover,
html body .testimonial-card:hover,
html body .dating-blog-card:hover{ transform:translateY(-4px); box-shadow:var(--db-shadow-lg) !important; }

/* kartice profila u pretrazi */
html body .user-grid{ gap:22px !important; }
html body .profile-card{
  border-radius:var(--db-radius) !important;
  border:1px solid rgba(114,50,242,.07);
  box-shadow:var(--db-shadow) !important;
  transition:transform .35s var(--db-ease), box-shadow .35s var(--db-ease);
  isolation:isolate;
}
html body .profile-card:hover{ transform:translateY(-6px); box-shadow:var(--db-shadow-lg) !important; }
html body .profile-card > a{ display:block; overflow:hidden; position:relative; }
html body .profile-card > a::after{
  content:""; position:absolute; inset:auto 0 0 0; height:40%;
  background:linear-gradient(to top, rgba(20,8,45,.28), transparent);
  pointer-events:none;
}
html body .profile-card > a img{ transition:transform .6s var(--db-ease); }
html body .profile-card:hover > a img{ transform:scale(1.05); }
html body .profile-card h3{ font-weight:800; font-size:19px; }
html body .profile-card .btn-action{
  width:54px !important; height:54px !important; font-size:20px;
  box-shadow:0 8px 18px -6px rgba(0,0,0,.25);
  transition:transform .2s var(--db-ease), box-shadow .2s;
}
html body .profile-card .btn-action:hover{ transform:translateY(-2px) scale(1.08); }
html body .profile-card .btn-action:active{ transform:scale(.92); }
html body .profile-card .icebreaker-tip{ border-radius:14px !important; }
html body .pagination .page-numbers{ border-radius:12px !important; font-weight:700; transition:transform .2s; min-width:42px; }
html body .pagination .page-numbers:hover{ transform:translateY(-2px); }

/* ---------------- STORY / AKTIVNI ---------------- */
html body .story-avatar-wrap img,
html body .recent-active-avatar img{ transition:transform .3s var(--db-ease); }
html body .online-story-link:hover .story-avatar-wrap img,
html body .recent-active-user:hover .recent-active-avatar img{ transform:scale(1.06); }
html body .recent-active-user{ transition:transform .25s var(--db-ease), box-shadow .25s; }
html body .recent-active-user:hover{ transform:translateY(-2px); }

/* ---------------- FORME ---------------- */
html body input[type="text"], html body input[type="email"], html body input[type="password"],
html body input[type="number"], html body input[type="search"], html body input[type="url"],
html body select, html body textarea{
  transition:border-color .2s, box-shadow .2s, background .2s;
  font-family:inherit;
}
html body input[type="text"]:focus, html body input[type="email"]:focus, html body input[type="password"]:focus,
html body input[type="number"]:focus, html body select:focus, html body textarea:focus{
  border-color:rgba(114,50,242,.55) !important;
  box-shadow:0 0 0 4px rgba(114,50,242,.12) !important;
  outline:none;
}
html body .reg-card{ border:1px solid rgba(255,255,255,.6); box-shadow:0 30px 70px -20px rgba(30,10,70,.45) !important; }

/* ---------------- FILTER MODAL ---------------- */
html body #filterModal{ -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
html body .filter-modal-card{ box-shadow:0 30px 80px -20px rgba(30,10,70,.45) !important; animation:dbPop .35s var(--db-ease); }
@keyframes dbPop{ from{ opacity:0; transform:translateY(14px) scale(.98); } to{ opacity:1; transform:none; } }

/* ---------------- MATCH OVERLAY ---------------- */
html body #matchOverlay{ -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
html body .match-images-row img{ box-shadow:0 0 0 5px rgba(255,255,255,.9), 0 18px 40px rgba(0,0,0,.3); }

/* ---------------- CHAT ---------------- */
html body .chat-bubble{ box-shadow:0 6px 16px -8px rgba(76,24,154,.35); }

/* ---------------- DONJA MOBILNA NAVIGACIJA ---------------- */
@media (max-width:768px){
  html body .mobile-nav{
    background:rgba(255,255,255,.88) !important;
    -webkit-backdrop-filter:saturate(170%) blur(16px); backdrop-filter:saturate(170%) blur(16px);
    border-top:1px solid rgba(114,50,242,.08) !important;
    box-shadow:0 -8px 24px -12px rgba(76,24,154,.25) !important;
  }
}

/* ---------------- NJEŽNO POJAVLJIVANJE SEKCIJA ---------------- */
@media (prefers-reduced-motion:no-preference){
  html body .db-reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s var(--db-ease), transform .6s var(--db-ease); }
  html body .db-reveal.db-in{ opacity:1; transform:none; }
}
@media (prefers-reduced-motion:reduce){
  html body *{ transition:none !important; animation:none !important; }
}

/* ---------------- ZADANA PROFILNA SLIKA (srce) — puna vidljivost ---------------- */
html body img[src*="default-profile"]{
  opacity:1 !important;
  background:#fff;
  object-fit:contain !important;
}
html body .profile-card > a img[src*="default-profile"]{ padding:18px; }

/* =====================================================================
   ZAGLAVLJE — uredniji raspored (računalo)
   ===================================================================== */
html body .db-nav-admin .db-admin-ico{ font-size:15px; line-height:1; }

@media (min-width:769px){
  html body header.db-header{ min-height:74px; }
  html body .header-container{ width:94%; max-width:1320px; padding:9px 0; gap:18px; }

  /* logo — kompaktna bijela pločica, okomito centrirana */
  html body .logo-wrapper a,
  html body .logo-wrapper .custom-logo-link{ padding:5px 14px; border-radius:15px; }
  html body .logo-wrapper img,
  html body .logo-wrapper .custom-logo{ max-height:46px !important; min-height:0; }

  /* zastavice u jednoj pločici */
  html body .language-switcher{
    gap:4px; padding:5px; border-radius:999px;
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18);
  }
  html body .lang-link{ padding:3px; border-radius:999px; transition:background .2s; }
  html body .lang-link:hover{ background:rgba(255,255,255,.18); }
  html body .lang-flag{ width:24px; height:16px; object-fit:cover; border-radius:4px; box-shadow:0 1px 3px rgba(0,0,0,.25); }

  /* navigacija: jednaka visina i razmaci */
  html body .nav-links{ gap:6px; flex-wrap:nowrap; }
  html body .nav-links > *{ flex-shrink:0; }

  /* redoslijed: Discover · Poruke · Prijatelji · Obavijesti | Admin · Profil · Odjava */
  html body .db-nav-discover{ order:1; }
  html body .db-nav-messages{ order:2; }
  html body .db-nav-friends{ order:3; }
  html body .db-nav-notifications{ order:4; }
  html body .db-nav-admin{ order:6; }
  html body .db-nav-profile{ order:7; }
  html body .db-nav-logout{ order:8; }
  html body .db-nav-notifications::after{
    content:""; order:5; width:1px; height:26px; background:rgba(255,255,255,.28); margin:0 6px;
  }

  /* tekstualni linkovi */
  html body .nav-link-item{
    height:42px; min-height:42px; padding:0 15px; border-radius:999px;
    font-size:14.5px; font-weight:700; color:#fff; gap:6px;
  }
  html body .nav-link-item:hover{ background:rgba(255,255,255,.16); }

  /* okrugli gumbi s ikonom (prijatelji, obavijesti) */
  html body .friend-btn,
  html body .db-nav-notifications{
    width:42px; height:42px; min-height:42px; padding:0 !important;
    display:inline-flex; align-items:center; justify-content:center;
    border-radius:50%; font-size:18px;
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16);
    transition:background .2s, transform .2s;
  }
  html body .friend-btn:hover,
  html body .db-nav-notifications:hover{ background:rgba(255,255,255,.26); transform:translateY(-1px); }
  html body .db-nav-notifications{ position:relative; overflow:visible; }
  html body .db-nav-notifications::after{ position:absolute; left:calc(100% + 6px); top:8px; }
  html body .db-nav-notifications{ margin-right:14px; }

  /* značke s brojem */
  html body .friend-count,
  html body #dbu-notification-bubble,
  html body #unread-bubble{
    top:-4px !important; right:-4px !important; min-width:18px; height:18px; line-height:14px;
    padding:0 5px !important; border-radius:99px; font-size:10px; font-weight:800;
    background:#ff315f !important; color:#fff; border:2px solid #8a3be0 !important; box-sizing:border-box;
  }
  html body .db-nav-messages{ position:relative; }
  html body #unread-bubble{ right:2px !important; top:0 !important; }

  /* ADMIN gumb */
  html body .db-nav-admin{
    background:#fff; color:#7232f2 !important; font-weight:800;
    box-shadow:0 6px 16px -6px rgba(30,10,70,.35);
    padding:0 16px 0 13px;
  }
  html body .db-nav-admin:hover{ background:#f5f0ff; transform:translateY(-1px); }

  /* profil */
  html body .db-nav-profile{
    height:44px; min-height:44px; padding:3px 4px 3px 14px; gap:9px;
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.18); font-weight:700; font-size:14.5px;
  }
  html body .db-nav-profile:hover{ background:rgba(255,255,255,.24); }
  html body .db-nav-profile .header-avatar{ width:36px; height:36px; border:2px solid #fff; }

  /* odjava */
  html body .btn-logout{
    height:42px; min-height:42px; padding:0 18px; font-size:14px;
    background:transparent; border:1.5px solid rgba(255,255,255,.55);
  }
  html body .btn-logout:hover{ background:rgba(255,255,255,.14); border-color:#fff; }
}

/* srednji ekrani — manje teksta da sve stane u jedan red */
@media (min-width:769px) and (max-width:1180px){
  html body .header-container{ width:97%; gap:10px; }
  html body .nav-link-item{ padding:0 11px; font-size:13.5px; }
  html body .db-nav-profile > span{ display:none; }
  html body .db-nav-profile{ padding:3px; }
  html body .lang-flag{ width:20px; height:14px; }
}

/* mobilni izbornik — admin gumb istaknut */
@media (max-width:768px){
  html body .db-nav-admin{ background:#fff !important; color:#7232f2 !important; font-weight:800; gap:8px; }
  html body .db-nav-admin .db-admin-txt::after{ content:" panel"; }
}

/* ---------------- INBOX — oznaka nepročitanih poruka ---------------- */
html body .inbox-unread-dot{
  width:auto !important; min-width:20px; height:20px !important; padding:0 5px;
  top:-3px !important; right:-3px !important;
  display:flex; align-items:center; justify-content:center;
  font-size:10.5px; font-weight:800; color:#fff; line-height:1;
  border-radius:99px !important;
  animation:dbDotIn .3s var(--db-ease);
}
@keyframes dbDotIn{ from{ transform:scale(.4); opacity:0; } to{ transform:none; opacity:1; } }
html body .inbox-chat-link.is-unread .inbox-chat-meta h4{ font-weight:900; }
html body .inbox-chat-link.is-unread .inbox-chat-meta p{ color:#1d1631; font-weight:700; }

/* =====================================================================
   NASLOVNICA — preglednije i kompaktnije (manje praznina)
   ===================================================================== */

/* --- gost: hero bez praznog prostora --- */
html body .hero-guest{ min-height:auto; padding:96px 20px 46px; }
html body .hero-content-guest{ padding:40px 40px 36px; }
html body .hero-content-guest h1{ margin:16px 0 12px; }
html body .hero-content-guest p{ margin:0 auto 22px; }

/* --- prijavljeni korisnik --- */
html body .front-main{ padding:22px 0 6px; }
html body .front-main > .card-shell,
html body .front-main > .zodiac-empty-note{ margin-bottom:18px; }

/* Aktivni sada — kompaktno */
html body .online-section{ padding:20px 22px !important; }
html body .online-section .section-title-wrap{ margin-bottom:6px; }
html body .online-section h3{ margin:2px 0 0; }
html body .online-section .online-stories{ padding-top:6px; }
html body .online-section .empty-note{ margin:4px 0 0; font-size:13.5px; color:#7a7390; }
html body .recent-active-head{ margin-top:14px !important; padding-top:14px !important; }

/* Horoskop + Dnevni spark jedno do drugog */
html body .front-duo{
  display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; align-items:stretch;
}
html body .front-duo > *{ margin:0 !important; min-width:0; }
html body .front-duo > .zodiac-match-card,
html body .front-duo > .zodiac-fallback-card,
html body .front-duo > .spark-container{ padding:22px !important; height:100%; }
html body .front-duo .zodiac-match-inner{ flex-wrap:wrap; gap:14px; }
html body .front-duo .zodiac-match-inner > a{ margin-left:auto; }
html body .front-duo .zodiac-empty-note{ display:flex; align-items:center; justify-content:center; text-align:center;
  background:#fff; border-radius:22px; padding:22px; border:1px solid rgba(114,50,242,.08); box-shadow:var(--db-shadow); }
html body .front-duo .spark-header{ margin-bottom:10px; }
html body .front-duo .spark-question{ margin:6px 0 12px; }
html body .front-duo .spark-options-row{ gap:10px; }
@media (max-width:900px){ html body .front-duo{ grid-template-columns:1fr; } }

/* razdjelnik i gradovi */
html body .front-divider{ display:none; }
html body .top-locations{ margin:6px 0 14px; }
html body .people-header{ margin-bottom:18px; align-items:center; }
html body .people-header h2{ margin:2px 0 0; }

/* mreža profila — gušća, manje praznog prostora */
html body .user-grid{ grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)) !important; gap:18px !important; }
html body .profile-card{ margin-bottom:0 !important; }
html body .profile-card > a img{ height:270px !important; }
html body .profile-card > div{ padding:14px 16px 16px !important; }
html body .profile-card h3{ font-size:17px; line-height:1.25; }
html body .profile-card h3 + p{ margin:4px 0 10px !important; font-size:13.5px; }
html body .profile-card .icebreaker-tip{ margin-bottom:12px !important; }
html body .profile-card .btn-action{ width:48px !important; height:48px !important; }
html body #user-display-grid .pagination{ margin-top:6px !important; }

/* Dating centar unutar glavnog dijela */
html body .front-main .dbe26{ margin:26px 0 0; padding:0; max-width:none; }
html body .front-main .dbe26-top{ margin-bottom:4px; }
html body .front-main .dbe26-box{ margin:14px 0; padding:20px; border-radius:22px; }
html body .front-main .dbe26-grid{ gap:16px; }
html body .front-main .dbe26-grid > .dbe26-box{ margin:14px 0 0; }
html body .front-main .dbe26-row{ padding-top:8px; }

/* Osobni oglasi */
html body .oglasi-sekcija{ padding:44px 0 !important; margin-top:24px !important; }
html body .oglasi-head{ margin-bottom:16px !important; }
html body .oglas-tabs{ margin-bottom:18px !important; }
html body .oglasi-grid{ gap:16px !important; }

/* Iskustva i blog — kraće sekcije (za goste); prijavljenima se ne prikazuju */
html body .testimonials-section, html body .dating-blog-section{ padding:46px 0 !important; }
html body .testimonials-head, html body .dating-blog-head{ margin-bottom:22px !important; }
html body.logged-in .testimonials-section,
html body.logged-in .dating-blog-section{ display:none; }

/* podnožje bliže sadržaju */
html body .site-footer{ margin-top:30px !important; padding-top:44px !important; }

@media (max-width:768px){
  html body .hero-guest{ padding:84px 14px 30px; }
  html body .hero-content-guest{ padding:28px 20px; }
  html body .user-grid{ grid-template-columns:1fr 1fr !important; gap:12px !important; }
  html body .profile-card > a img{ height:190px !important; }
  html body .profile-card > div{ padding:10px 10px 12px !important; }
  html body .profile-card h3{ font-size:15px; }
  html body .profile-card .icebreaker-tip{ display:none; }
  html body .profile-card .btn-action{ width:40px !important; height:40px !important; font-size:16px; }
  html body .profile-card > div > div:last-child{ gap:12px !important; }
  html body .oglasi-sekcija, html body .testimonials-section, html body .dating-blog-section{ padding:32px 0 !important; }
}
@media (max-width:360px){ html body .user-grid{ grid-template-columns:1fr !important; } }

/* mreža: 12 profila po stranici = 4 / 3 / 2 stupca (bez "rupa" u zadnjem redu) */
@media (min-width:1100px){ html body .user-grid{ grid-template-columns:repeat(4, minmax(0,1fr)) !important; } }
@media (min-width:769px) and (max-width:1099px){ html body .user-grid{ grid-template-columns:repeat(3, minmax(0,1fr)) !important; } }
/* gumbi uvijek na dnu kartice — kartice u redu jednake visine bez praznina */
html body .profile-card{ display:flex; flex-direction:column; }
html body .profile-card > div:not(:first-child){ flex:1; display:flex; flex-direction:column; }
html body .profile-card > div:not(:first-child) > div:last-child{ margin-top:auto; }
html body .profile-card > div:first-child{ position:absolute !important; }
html body .user-grid > .pagination{ grid-column:1 / -1; }
html body .online-section .online-stories:has(> .empty-note){ padding-top:0; }
/* Daily picks — kartice popunjavaju cijeli red */
html body .front-main .dbe26-row > .dbe26-card:not(.small){ flex:1 1 0; max-width:none; min-width:150px; }
html body .front-main .dbe26-card img{ object-fit:cover; }
/* sav sadržaj odmah vidljiv */
html body .db-reveal{ opacity:1 !important; transform:none !important; }

/* Osobni oglasi — kartice u redu jednake visine, gumbi na dnu */
html body .oglasi-grid{ align-items:stretch !important; }
html body .oglas-item{ display:flex; }
html body .oglas-item[style*="display: none"]{ display:none !important; }
html body .oglas-card{ flex:1; display:flex !important; flex-direction:column; justify-content:space-between; }
html body .oglas-card > div:first-child{ flex:1; }
@media (max-width:768px){
  /* gumbi iznad mreže u jednom redu */
  html body .people-header{ margin-bottom:12px !important; }
  html body .people-header-actions{ flex-direction:row !important; flex-wrap:nowrap; gap:8px !important; }
  html body .people-header-actions .btn{ flex:1; width:auto !important; padding:10px 6px !important; font-size:12.5px !important; min-height:40px; white-space:nowrap; }
  html body .people-header-actions .btn span{ display:none; }
  /* manja oznaka postotka na malim karticama */
  html body .profile-card > div:first-child{ top:8px !important; right:8px !important; padding:4px 8px !important; font-size:10.5px !important; border-radius:9px !important; }
  html body .front-duo .zodiac-avatar-wrap img{ width:72px; height:72px; }
}

/* ---------------- izbornik: 📸 Priča i 💎 Premium ---------------- */
@media (min-width:769px){
  html body .db-nav-story{ order:1; }
  html body .db-nav-premium{
    order:6; font-weight:800;
    background:linear-gradient(120deg,rgba(255,255,255,.26),rgba(255,255,255,.08)) !important;
    border:1px solid rgba(255,255,255,.4); box-shadow:inset 0 1px 0 rgba(255,255,255,.3);
  }
  html body .db-nav-premium:hover{ background:rgba(255,255,255,.3) !important; }
}
@media (min-width:769px) and (max-width:1280px){
  html body .db-story-txt, html body .db-prem-txt{ display:none; }
}
@media (max-width:768px){
  html body .db-nav-premium{ background:linear-gradient(120deg,#7b2ff7,#b24592) !important; color:#fff !important; font-weight:800; }
}

/* 🎁 pozovi prijatelja — okrugli gumb u izborniku */
@media (min-width:769px){
  html body .db-nav-invite{ order:4; width:42px; height:42px; min-height:42px; padding:0 !important; justify-content:center; border-radius:50%; font-size:18px;
    background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.16); }
  html body .db-nav-invite .mobile-menu-label{ display:none; }
  html body .db-nav-invite:hover{ background:rgba(255,255,255,.26); }
}

/* =====================================================================
   INBOX — chat stane u ekran, polje za pisanje uvijek vidljivo
   ===================================================================== */
html body .inbox-page{ padding:14px 0 18px !important; }
html body .inbox-shell{ width:min(96%,1280px) !important; }
html body .inbox-wrapper{
  height:calc(100vh - 74px - 32px); height:calc(100dvh - 74px - 32px);
  min-height:520px !important; max-height:900px;
}
html body .inbox-sidebar{ display:flex; flex-direction:column; min-height:0; }
html body .inbox-sidebar-head{ padding-top:20px !important; padding-bottom:12px !important; }
html body .inbox-sidebar-head p{ margin-bottom:0; }
html body .inbox-list{ flex:1; min-height:0; overflow-y:auto; }
html body .chat-window{ min-height:0; height:100%; }
html body .chat-header{ padding:12px 20px !important; flex-shrink:0; }
html body .chat-messages-container{ flex:1 1 auto !important; height:auto !important; min-height:0; padding:18px 20px !important; }
html body .chat-status:empty{ display:none; }

/* jedan kompaktni red alata */
html body .chat-tools{
  display:flex !important; flex-wrap:nowrap !important; gap:6px !important; align-items:center;
  padding:8px 16px 0 !important; overflow-x:auto; scrollbar-width:none; flex-shrink:0;
}
html body .chat-tools::-webkit-scrollbar{ display:none; }
html body .chat-tools .chat-tool-btn,
html body .chat-tools button{
  height:36px; padding:0 12px !important; font-size:13px !important; border-radius:999px !important; white-space:nowrap; flex-shrink:0;
}
html body .chat-tools select{ height:36px; max-width:150px; padding:0 10px !important; font-size:13px !important; border-radius:999px !important; flex-shrink:0; }
html body .dbu-chat-tools{ display:block !important; padding:0 !important; margin:0 !important; border:0 !important; background:none !important; }
html body .dbu-chat-tools > button, html body .dbu-chat-tools > .dbu-recording:not(.active):not(.open){ display:none !important; }
html body .emoji-panel, html body .gif-panel, html body .dbu-tool-panel.open{ max-height:200px; overflow-y:auto; margin:8px 16px 0 !important; flex-shrink:0; }
html body .chat-compose{ padding:10px 16px 14px !important; flex-shrink:0; gap:10px !important; }
html body .chat-compose textarea#message-text{ min-height:46px !important; }

@media (max-width:768px){
  html body .inbox-page{ padding:6px 0 0 !important; }
  html body .inbox-shell{ width:100% !important; padding:0 6px; box-sizing:border-box; }
  html body .inbox-wrapper{
    height:calc(100vh - 68px - 65px - 12px); height:calc(100dvh - 68px - 65px - 12px);
    min-height:420px !important; border-radius:22px !important;
  }
  html body .chat-header{ padding:10px 12px !important; }
  html body .chat-header img{ width:40px !important; height:40px !important; }
  html body .chat-call-btn{ width:38px !important; height:38px !important; }
  html body .chat-messages-container{ padding:12px !important; }
  html body .chat-tools{ padding:6px 10px 0 !important; }
  html body .chat-tools .chat-tool-btn, html body .chat-tools button, html body .chat-tools select{ height:34px; font-size:12.5px !important; padding:0 10px !important; }
  html body .chat-compose{ padding:8px 10px 10px !important; }
  html body #send-msg-btn{ min-width:0 !important; padding:12px 16px !important; }
  html body:has(.inbox-wrapper) .site-footer{ display:none; } /* samo u porukama: chat zauzima cijeli ekran */
}

/* ===== Footer: logo stranice umjesto ikone ===== */
html body .footer-site-logo{ margin:0 0 16px; }
html body .footer-site-logo a{ display:inline-flex; align-items:center; text-decoration:none; }
html body .footer-site-logo img.custom-logo{
  display:block; height:auto; width:auto; max-height:56px; max-width:240px;
  object-fit:contain; filter:none !important;
}
html body .footer-site-logo .logo-text{ font-size:24px; font-weight:900; color:#7232f2; letter-spacing:-.02em; }
@media(max-width:768px){ html body .footer-site-logo img.custom-logo{ max-height:46px; max-width:200px; } }

/* ===== Profil: preglednije složen ===== */
@media (min-width:1025px){
  html body .author-profile-grid{ grid-template-columns:minmax(320px,400px) minmax(0,1fr) !important; gap:32px !important; }
}
html body .profile-details .author-progress{ margin-bottom:18px !important; }
html body .profile-details .author-title{ font-size:clamp(28px,3.2vw,36px) !important; }
html body .profile-details .user-badges{ margin-top:8px !important; }
html body .dbp-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; margin-top:10px; font-size:15px; }
html body .dbp-meta-city{ color:#4b5563; font-weight:600; }
html body .dbp-meta .author-online-inline{ margin:0 !important; font-size:15px; }
html body .profile-details .author-chip{ margin-bottom:14px !important; padding:10px 16px !important; }
html body .profile-details .author-box{ margin-bottom:14px !important; padding:14px 18px !important; }
html body .profile-details .author-box-title{ margin:0 0 8px !important; }
html body .profile-details .author-friends-wrap{ margin:4px 0 16px !important; text-align:left !important; }

html body .dbp-info{ display:flex; flex-direction:column; gap:14px; }
html body .dbp-card{
  background:#fff; border:1px solid #eeeaf7; border-radius:20px; padding:18px 20px;
  box-shadow:0 4px 18px rgba(80,40,160,.05);
}
html body .dbp-h{
  margin:0 0 12px !important; font-size:16px !important; font-weight:800 !important; color:#111827 !important;
  display:flex; align-items:center; gap:8px; letter-spacing:-.01em; border:0 !important; padding:0 !important;
}
html body .dbp-about-text{ margin:0 0 8px; color:#374151; font-size:15.5px; line-height:1.65; }
html body .dbp-about-text:last-child{ margin-bottom:0; }
html body .dbp-about-empty{ margin:0; color:#9ca3af; font-style:italic; font-size:15px; }

html body .dbp-facts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
html body .dbp-fact{
  display:flex; align-items:flex-start; gap:10px; background:#faf8ff; border:1px solid #f0ebfb;
  border-radius:14px; padding:10px 12px; min-width:0;
}
html body .dbp-fact.wide{ grid-column:1 / -1; }
html body .dbp-fact-ic{
  flex:none; width:34px; height:34px; border-radius:10px; background:#fff; display:flex; align-items:center;
  justify-content:center; font-size:17px; box-shadow:0 1px 4px rgba(80,40,160,.08);
}
html body .dbp-fact-body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
html body .dbp-fact-label{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#6b5f8a; }
html body .dbp-fact-val{ font-size:15px; font-weight:700; color:#1f2937; line-height:1.35; overflow-wrap:anywhere; }
html body .dbp-pills{ display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
html body .dbp-pill{
  background:#efe7ff; color:#6d28d9; font-weight:700; font-size:13px; padding:5px 11px; border-radius:999px;
}
@media (max-width:1280px) and (min-width:1025px){ html body .dbp-facts{ grid-template-columns:1fr; } }
@media (max-width:420px){ html body .dbp-facts{ grid-template-columns:1fr; } }
html body .author-mobile-surface .dbp-info{ margin-top:14px; }
/* Profil na mobitelu/tabletu: slika -> ime i podaci -> Q&A (bez dugog listanja do imena) */
@media (max-width:1024px){
  html body .author-profile-grid{ display:flex !important; flex-direction:column; }
  html body .author-profile-grid > .profile-gallery{ display:contents; }
  html body .profile-gallery > .author-gallery-main{ order:1; }
  html body .profile-gallery > .author-gallery-grid{ order:2; }
  html body .profile-gallery > .author-actions-col{ order:3; margin-top:0 !important; }
  html body .author-profile-grid > .profile-details{ order:4; }
  html body .profile-gallery > .author-section-card{ order:5; margin-bottom:0 !important; }
  html body .author-gallery-main{ max-height:62vh; }
  html body .author-profile-grid > *, html body .profile-gallery > *{ width:100%; box-sizing:border-box; align-self:stretch; }
}
@media (max-width:420px){
  html body .dbp-facts{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  html body .dbp-fact{ padding:9px 11px; }
  html body .dbp-fact:not(.wide) .dbp-fact-ic{ display:none; }
  html body .dbp-fact-ic{ width:30px; height:30px; font-size:15px; }
  html body .dbp-fact-label{ font-size:10.5px; }
  html body .dbp-fact-val{ font-size:14px; }
  html body .author-actions-col .author-btn{ white-space:nowrap; font-size:14px; }
  html body .dbp-card{ padding:16px 14px; }
}


/* ===== Logo u zaglavlju: prozirno, bez bijele pločice ===== */
html body .logo-wrapper a,
html body .logo-wrapper .custom-logo-link{
  background:transparent !important; padding:0 !important; border-radius:0 !important; box-shadow:none !important;
}
html body .logo-wrapper a:hover{ transform:translateY(-1px) scale(1.02); box-shadow:none !important; }
html body .logo-wrapper img,
html body .logo-wrapper .custom-logo{
  height:50px !important; max-height:50px !important; min-height:0 !important; width:auto !important; max-width:none !important;
  filter:drop-shadow(0 2px 6px rgba(30,10,70,.25)) !important;
}
html body .logo-wrapper a.logo-text{ background:transparent !important; color:#fff !important; padding:0 !important; }
@media (max-width:1024px){ html body .logo-wrapper img, html body .logo-wrapper .custom-logo{ height:42px !important; max-height:42px !important; } }
@media (max-width:768px){ html body .logo-wrapper img, html body .logo-wrapper .custom-logo{ height:38px !important; max-height:38px !important; } }
