/* mojatajna.com */
:root {
  --bg: #160B27; --card: #1F1033; --card2: #241338; --line: #33204F; --chip: #2A1845;
  --text: #F2E9FF; --soft: #CDB8EE; --muted: #A991CF; --dim: #8E78B3;
  --pink: #FF4D8D; --pink2: #FF7AAA; --pinkbg: #3D1430; --gold: #FFC94D; --white: #FFFFFF;
  --r: 20px; --r-sm: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Poppins, system-ui, sans-serif; font-size: 15px; line-height: 1.55; }
a { color: var(--pink); }
a:hover { color: var(--pink2); }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--white); line-height: 1.25; }
code { background: var(--bg); padding: 2px 8px; border-radius: 8px; font-size: 15px; color: var(--gold); letter-spacing: 1px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); text-decoration: none; }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1 1 auto; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Raspored */
.shell { display: flex; justify-content: center; gap: 28px; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.side-left { flex: 0 0 240px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 0; display: flex; flex-direction: column; gap: 20px; scrollbar-width: none; }
.side-right { flex: 0 0 320px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 26px 0; display: flex; flex-direction: column; gap: 16px; scrollbar-width: none; }
.main-col { flex: 1 1 560px; max-width: 660px; min-width: 0; padding: 26px 0 60px; }
.main { display: flex; flex-direction: column; gap: 14px; }
.logo { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; color: var(--white); text-decoration: none; padding-left: 6px; }
.logo span { color: var(--pink); }
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 34px; width: auto; display: block; }
.m-header .logo-img { height: 30px; }
.admin-top .logo-img, .login-box .logo-img { height: 28px; display: inline-block; }
.logo:hover { color: var(--white); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a, .side-cats a { min-height: 46px; border-radius: var(--r-sm); display: flex; align-items: center; gap: 12px; padding: 0 14px; text-decoration: none; color: var(--soft); font-weight: 500; }
.side-nav a:hover, .side-cats a:hover { background: var(--card2); color: var(--white); }
.side-nav a.on { background: var(--card2); color: var(--white); font-weight: 600; }
.side-cats { display: flex; flex-direction: column; gap: 2px; }
.side-cats a { min-height: 42px; font-size: 14px; }
.side-cats a.on { background: var(--bg); color: var(--fg); border: 1.5px solid var(--fg); }
.side-label { font-size: 12px; font-weight: 600; color: var(--dim); padding: 0 8px 4px; letter-spacing: .5px; }
.ni { font-size: 18px; width: 22px; text-align: center; }
.pill { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--bg); background: var(--pink); border-radius: 999px; padding: 1px 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; padding: 0 6px; color: var(--dim); }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--soft); }
.socials { display: flex; align-items: center; gap: 8px; padding: 0 6px; margin: 4px 0 12px; }
.socials-label { font-size: 12px; color: var(--dim); margin-right: 2px; }
.soc { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--chip); color: var(--white); text-decoration: none; transition: background .15s, transform .15s; }
.soc:hover { background: var(--pink); color: var(--white); transform: translateY(-1px); }

.m-header, .bottom-nav, .m-footer, .only-mobile { display: none; }
@media (min-width: 821px) { .main > .chips { display: none; } }
.d-search { display: flex; align-items: center; gap: 10px; background: var(--card2); border-radius: 16px; padding: 0 8px 0 16px; min-height: 50px; color: var(--muted); margin-bottom: 14px; }
.d-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px; }
.d-search input::placeholder { color: var(--dim); }
.d-me { text-decoration: none; }

/* Dugmad */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 16px; border: none; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-pink { background: var(--pink); color: var(--bg); }
.btn-pink:hover { background: var(--pink2); color: var(--bg); }
.btn-ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--chip); color: var(--white); }
.btn-dark { background: #33204F; color: var(--text); }
.btn-block { width: 100%; }
.btn-big { min-height: 56px; font-size: 17px; border-radius: 18px; }
.btn-sm { min-height: 38px; font-size: 13px; padding: 0 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; color: #E4D6FA; text-decoration: none; font-size: 20px; border: none; }
.icon-btn.disabled { opacity: .3; }
.link-pink { background: none; border: none; color: var(--pink); font-weight: 600; font-size: 13px; padding: 8px 0; }
.link-muted { background: none; border: none; color: var(--dim); font-size: 13px; padding: 10px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Kategorije i tabovi */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 42px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: var(--bg); color: var(--fg); border: 1.5px solid transparent; }
.chip-all { background: var(--card2) !important; color: var(--text); }
.chip.on { border-color: var(--fg); }
.chip-all.on { background: var(--text) !important; color: var(--bg); border-color: var(--text); }
.chip:hover { color: var(--fg); filter: brightness(1.15); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--card2); }
.tabs a { min-height: 46px; display: flex; align-items: center; text-decoration: none; color: var(--dim); font-weight: 600; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--white); border-bottom-color: var(--pink); }
.tabs a:hover { color: var(--white); }

/* Kartice */
.feed { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--card); border-radius: 24px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.avatar { width: 48px; height: 48px; border-radius: 15px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; background: var(--card2); }
.avatar-admin { background: #241338; border: 1.5px solid var(--gold); }
.avatar-admin img { width: 74%; height: auto; display: block; }
.who { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nick { font-weight: 600; color: var(--white); text-decoration: none; font-size: 15px; }
a.nick:hover { color: var(--pink2); }
.code { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; letter-spacing: .5px; }
.nick-admin { color: var(--gold); }
.code-admin { background: var(--gold); color: var(--bg); }
.tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 11px; text-decoration: none; white-space: nowrap; }
.tag:hover { filter: brightness(1.15); }
.card-text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.card-text:hover { color: var(--white); }
.card-text-big { font-size: 18px; font-weight: 500; color: var(--white); }
.more { color: var(--pink); font-weight: 600; font-size: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.card-featured { background: #2B1247; border: 1.5px solid var(--pink); }
.card-featured:hover { color: var(--text); background: #331556; }
.badge-gold { font-size: 13px; font-weight: 600; color: var(--bg); background: var(--gold); border-radius: 999px; padding: 4px 12px; }
.rx-line { display: flex; gap: 14px; }
.card-compact { gap: 8px; }
.card-row { flex-direction: row; align-items: center; gap: 12px; }
.big-emoji { font-size: 28px; }
.quote { margin: 0; background: var(--bg); border-radius: 16px; padding: 14px; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }

/* Reakcije */
.reactions { display: flex; gap: 6px; }
.rx { flex: 1 1 0; min-width: 0; height: 44px; border-radius: 14px; border: 1.5px solid transparent; background: var(--chip); color: var(--soft); display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 600; transition: transform .12s, background .15s; }
.rx:hover { background: #33204F; }
.rx.on { border-color: var(--pink); background: var(--pinkbg); color: var(--white); }
.rx.pop { animation: pop .3s; }
.rx-e { font-size: 18px; }
@keyframes pop { 50% { transform: scale(1.18); } }

/* Paneli desno */
.panel { background: var(--card2); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.panel-title { color: var(--white); }
.rank { display: flex; gap: 12px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--chip); color: var(--text); font-size: 14px; line-height: 1.5; }
.rank:hover { color: var(--white); }
.rank-n { font-size: 18px; font-weight: 700; color: var(--pink); }
.rank-label { color: var(--gold); font-weight: 700; padding: 4px 4px 0; }

/* Poruke */
.flash { border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
.flash-ok { background: #12301A; color: #7EE29A; }
.flash-err { background: #3A1418; color: #FF9E9E; }
.flash-gold { background: #3A3010; color: #FFE7A3; border: 1px solid var(--gold); }
.flash-care { background: #2B1247; color: var(--text); border: 1px solid #B48CFF; }
.notice { background: #2B1247; border-radius: 16px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: #E4D6FA; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px); background: var(--white); color: var(--bg); font-weight: 600; font-size: 14px; padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.empty { text-align: center; padding: 50px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-emoji { font-size: 56px; }
.empty p { color: var(--soft); max-width: 440px; margin: 0 0 6px; }
.adult-blur { background: repeating-linear-gradient(45deg, #241338, #241338 10px, #2A1845 10px, #2A1845 20px); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.adult-blur p { margin: 0; filter: blur(4px); user-select: none; }

/* Forme */
.page-title { margin: 0 0 4px; font-size: 26px; }
.section-title { font-size: 18px; margin: 18px 0 2px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; border: none; padding: 0; margin: 0; }
.field-label { font-weight: 600; color: var(--white); font-size: 14px; padding: 0; }
.form input[type=text], .form input:not([type]), .form input[type=email], .form input[type=password], .form input[type=url], .form textarea, .form select,
.comment-form textarea, .comment-form input, .search-form input, .nick-fields input {
  width: 100%; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); padding: 13px 15px; outline: none; font-size: 16px; }
.form textarea, .comment-form textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: var(--pink) !important; }
::placeholder { color: var(--dim); }
.counter { align-self: flex-end; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cat-opt input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt span { min-height: 48px; border-radius: 14px; display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 600; font-size: 14px; background: var(--bg); color: var(--fg); border: 1.5px solid transparent; opacity: .8; cursor: pointer; }
.cat-opt { position: relative; }
.cat-opt input:checked + span { border-color: var(--fg); opacity: 1; }
.cat-opt input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--pink); }
.seg { display: flex; gap: 6px; padding: 4px; background: var(--card); border-radius: 16px; }
.seg label, .seg a { flex: 1 1 0; position: relative; }
.seg span, .seg a { min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--soft); cursor: pointer; text-decoration: none; text-align: center; padding: 0 6px; }
.seg input:checked + span, .seg a.on { background: var(--pink); color: var(--bg); }
.seg-big span { min-height: 48px; }
.nick-box { background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.nick-box input { background: var(--bg) !important; }
.nick-box details { display: flex; flex-direction: column; gap: 8px; }
.nick-box details input { margin-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.check input { width: 20px; height: 20px; accent-color: var(--pink); margin-top: 2px; flex-shrink: 0; }
.search-form { display: flex; gap: 8px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.detail-actions { display: flex; gap: 8px; }
.detail-actions .btn { flex: 1; }

/* Komentari */
.comments { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.comments h2 { font-size: 18px; margin: 6px 0; }
.cm { display: flex; gap: 10px; }
.cm .avatar { width: 40px; height: 40px; font-size: 24px; border-radius: 13px; }
.cm-reply { margin-left: 46px; }
.cm-bubble { flex: 1; min-width: 0; background: var(--card); border-radius: 4px 18px 18px 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cm-admin .cm-bubble { border: 1px solid var(--gold); background: #241a10; }
.cm-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.cm-actions { display: flex; gap: 4px; }
.cm-actions button { background: none; border: none; color: var(--muted); font-size: 12px; padding: 6px 8px 2px 0; min-height: 32px; }
.cm-actions button:hover, .cm-actions button.on { color: var(--pink); }
.comment-form { display: flex; flex-direction: column; gap: 10px; background: var(--card2); border-radius: 20px; padding: 14px; margin-top: 6px; }
.nick-fields { display: flex; flex-direction: column; gap: 8px; }
.nick-fields[hidden] { display: none; }
.replying { font-size: 13px; color: var(--soft); display: flex; justify-content: space-between; align-items: center; }
.replying button { background: none; border: none; color: var(--muted); }

/* Sudi tajni */
.judge { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.judge-card { position: relative; background: var(--card); border-radius: 28px; padding: 22px; min-height: 280px; display: flex; flex-direction: column; gap: 16px; touch-action: pan-y; user-select: none; transition: transform .25s, opacity .25s; border: 1.5px solid var(--line); }
.judge-text { margin: 0; font-size: 19px; line-height: 1.65; font-weight: 500; color: var(--white); overflow-wrap: anywhere; }
.judge-stamp { position: absolute; top: 24px; font-weight: 800; font-size: 22px; padding: 4px 12px; border-radius: 10px; border: 3px solid; opacity: 0; transform: rotate(-12deg); pointer-events: none; }
.judge-yes { right: 20px; color: #7EE29A; }
.judge-no { left: 20px; color: #FF8A8A; transform: rotate(12deg); }
.judge-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.jh-no, .jh-yes { padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.jh-no { background: var(--chip); color: var(--soft); }
.jh-yes { background: rgba(255, 77, 141, .16); color: var(--pink); }
.jh-mid { color: var(--dim); font-weight: 500; font-size: 12px; text-align: center; }
.jh-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .jh-touch { display: inline; }
  .jh-desk { display: none; }
  .judge-card { animation: judge-nudge 1.4s ease-in-out .6s 1; }
}
@keyframes judge-nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-26px) rotate(-3deg); }
  60% { transform: translateX(26px) rotate(3deg); }
}
.judge-btns { display: flex; gap: 10px; }
.judge-btns .btn { flex: 1; }

/* Profil */
.profile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 8px 0 6px; }
.profile h1 { margin: 6px 0 0; font-size: 24px; display: flex; align-items: center; gap: 8px; }
.profile h1 .code { font-size: 13px; padding: 2px 8px; }
.profile-avatar { width: 96px; height: 96px; border-radius: 32px; border: 3px solid; display: flex; align-items: center; justify-content: center; font-size: 56px; line-height: 1; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 420px; margin-top: 6px; }
.stats div { background: var(--card); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; }
.stats strong { font-size: 20px; color: var(--white); }
.stats span { font-size: 12px; color: var(--muted); }
.own-box { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 6px; }
.seg-tabs { margin: 6px 0; }

/* Arhiva */
.cal { background: var(--card); border-radius: 24px; padding: 16px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--white); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal-dn { font-size: 12px; color: var(--dim); font-weight: 600; }
.cal-d { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; color: var(--dim); text-decoration: none; }
.cal-d small { font-size: 10px; color: var(--pink); line-height: 1; }
.cal-d.has { background: var(--card2); color: var(--white); font-weight: 600; }
.cal-d.has:hover, .cal-d.on { background: var(--pink); color: var(--bg); }
.cal-d.on small, .cal-d.has:hover small { color: var(--bg); }
.pager { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }

/* Pravne stranice */
.legal { background: var(--card); border-radius: 24px; padding: 24px; line-height: 1.75; }
.legal h1 { margin-top: 0; font-size: 26px; }
.legal h2 { font-size: 18px; margin-top: 26px; }
.legal li { margin-bottom: 6px; }
.legal p, .legal li { color: var(--soft); }
.legal strong { color: var(--white); }

/* Mobitel */
@media (max-width: 1100px) {
  .side-right { display: none; }
  .only-mobile { display: block; }
}
@media (max-width: 820px) {
  body { font-size: 15px; }
  .shell { display: block; padding: 0; }
  .side-left { display: none; }
  .main-col { max-width: none; padding: 0 14px 110px; }
  .m-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 10px; position: sticky; top: 0; z-index: 20; background: var(--bg); }
  .m-header .logo { font-size: 25px; padding-left: 0; }
  .m-header-actions { display: flex; gap: 8px; }
  .d-search { display: none; }
  .m-footer { display: block; padding: 24px 0 10px; border-top: 1px solid var(--card2); margin-top: 20px; }
  .m-footer .foot-links, .m-footer .socials { justify-content: center; }
  .chips { margin: 0 -14px; padding: 0 14px 4px; }
  .card { padding: 16px; }
  .card-text { font-size: 16px; }
  .rx { height: 44px; font-size: 12px; gap: 3px; }
  .rx-e { font-size: 17px; }
  .bottom-nav { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 68px; border-radius: 24px; background: var(--card2); border: 1px solid var(--line); align-items: center; justify-content: space-around; z-index: 30; }
  .bottom-nav a { width: 58px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--muted); font-size: 11px; gap: 1px; }
  .bottom-nav a span { font-size: 20px; }
  .bottom-nav a.on { color: var(--white); }
  .bottom-nav .bn-plus { width: 58px; height: 58px; margin-top: -26px; border-radius: 20px; background: var(--pink); color: var(--bg); border: 4px solid var(--bg); }
  .bottom-nav .bn-plus:hover { color: var(--bg); }
  .legal { padding: 18px; }
  .page-title { font-size: 23px; }
}
@media (max-width: 360px) {
  .rx-n { font-size: 11px; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Admin */
.admin-body { background: #120921; }
.admin-wrap { max-width: 1180px; margin: 0 auto; padding: 20px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.admin-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-top .logo { font-size: 24px; }
.admin-badge { background: var(--gold); color: var(--bg); font-weight: 700; font-size: 12px; border-radius: 8px; padding: 3px 8px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin-nav a { flex-shrink: 0; min-height: 42px; padding: 0 14px; border-radius: 12px; display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--soft); background: var(--card); font-weight: 600; font-size: 14px; }
.admin-nav a.on { background: var(--pink); color: var(--bg); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: var(--card); border-radius: 18px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.kpi strong { display: block; font-size: 26px; color: var(--white); }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi-alert { border: 1.5px solid var(--pink); }
.a-card { background: var(--card); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.a-card textarea { min-height: 120px; }
.a-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.a-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.a-flag { font-size: 12px; font-weight: 600; background: #3A1418; color: #FF9E9E; border-radius: 8px; padding: 3px 8px; }
.a-flag-soft { background: #3A3010; color: #FFE7A3; }
.a-score { font-weight: 700; color: var(--gold); }
.a-note { font-size: 13px; color: var(--soft); background: var(--bg); border-radius: 12px; padding: 8px 12px; }
.a-original { font-size: 13px; color: var(--muted); }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th, .a-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 20px; padding: 6px 12px; }
.btn-ok { background: #1E5B32; color: #E6FFED; }
.btn-ok:hover { background: #26703E; color: #fff; }
.btn-no { background: #5B1E28; color: #FFE6EA; }
.btn-no:hover { background: #702632; color: #fff; }
.btn-gold { background: var(--gold); color: var(--bg); }
.login-box { max-width: 380px; margin: 10vh auto; background: var(--card); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.qr-secret { word-break: break-all; }

/* Reklame */
.ad { background: var(--card); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; max-width: 100%; }
.ad > *:not(.ad-label) { max-width: 100%; }
.ad iframe, .ad img { max-width: 100%; }
.ad-label { font-size: 10px; font-weight: 600; color: var(--dim); letter-spacing: .5px; text-transform: uppercase; align-self: flex-start; }

/* Custom ikone u meniju (bijele PNG, boja prati tekst) */
.ni-img { display: inline-block; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; flex-shrink: 0; }
.side-nav .ni-img { margin: 0 1px; }
.bottom-nav .ni-img { width: 22px; height: 22px; margin-bottom: 3px; }

/* Birač avatara */
.profile-avatar-btn { position: relative; cursor: pointer; padding: 0; font-family: inherit; }
.profile-avatar-btn:hover { filter: brightness(1.15); }
.avatar-edit { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 10px; background: var(--pink); font-size: 14px; display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg); }
.avatar-picker { width: 100%; max-width: 460px; background: var(--card); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.avatar-picker-head { display: flex; justify-content: space-between; align-items: center; color: var(--white); }
.avatar-picker-head button { background: none; border: none; color: var(--muted); font-size: 18px; width: 44px; height: 44px; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.avatar-grid button { aspect-ratio: 1; border-radius: 14px; border: 2px solid transparent; font-size: 26px; display: flex; align-items: center; justify-content: center; padding: 0; min-height: 44px; }
.avatar-grid button:hover { border-color: var(--line); transform: scale(1.06); }
.avatar-grid button.on { border-color: var(--pink); }
@media (max-width: 360px) { .avatar-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Ikone u naslovima */
.ih { display: inline-flex; align-items: center; gap: 10px; }
.page-title.ih .ni-img { width: 26px; height: 26px; color: var(--pink); }
.panel-head .ih .ni-img { width: 18px; height: 18px; color: var(--pink); }
.btn .ni-img { width: 18px; height: 18px; }

.sos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; }
.sos li { background: var(--bg); border-radius: 12px; padding: 8px 12px; margin: 0; }

.cm-del { margin: 0 0 0 auto; display: inline; }
.cm-actions .js-confirm-del { color: #FF8A8A; }
.cm-actions .js-confirm-del:hover { color: #FFB3B3; }

/* Anketa */
.poll { background: var(--bg); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.poll-q { font-weight: 600; color: var(--white); font-size: 15px; }
.poll-opts { display: flex; flex-direction: column; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; min-height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card2); color: var(--text); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 600; font-size: 15px; text-align: left; }
.poll:not(.voted) .poll-opt:hover { border-color: var(--pink); }
.poll-opt:disabled { cursor: default; color: var(--text); }
.poll-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #3A2266; transition: width .6s ease; }
.poll-opt.on { border-color: var(--pink); }
.poll-opt.on .poll-bar { background: var(--pinkbg); }
.poll-label, .poll-pct { position: relative; }
.poll-add summary { cursor: pointer; }
.poll-add input { margin-top: 10px; }
.poll-add[open] { display: flex; flex-direction: column; gap: 6px; }
/* Praćenje */
.track-box { background: var(--card2); border: 1.5px solid var(--pink); border-radius: 20px; padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 480px; }
.track-box p { margin: 0; color: var(--soft); }
.track-url { display: flex; gap: 8px; }
.track-url input { flex: 1; min-width: 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); padding: 10px 12px; font-size: 13px; }
.stats-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none; }
.stats-5 span { font-size: 18px; }

/* Obavještenja */
.bell { position: relative; }
.bell-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--pink); color: var(--bg); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--bg); }
.bell-ni { display: inline-flex; justify-content: center; }
.notif { color: var(--text); font-size: 14px; line-height: 1.5; }
.notif-new { border: 1.5px solid var(--pink); background: #2B1247; }
/* Značke */
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 520px; }
.badge-chip { font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--white); }
.badge-chip.locked { opacity: .35; filter: grayscale(1); }
.badge-chip span { font-size: 16px; }

/* Uvod kategorije */
.cat-intro h1 { margin: 0; font-size: 22px; }
.cat-intro p { margin: 4px 0 0; color: var(--soft); font-size: 14px; }
.crumbs { font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pink); }

/* Analitika */
.kpi { position: relative; }
.dl { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dl.up { color: #7EE29A; }
.dl.down { color: #FF8A8A; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #2A1845; stroke-width: 1; }
.chart .ax { fill: #8E78B3; font-size: 11px; font-family: Poppins, sans-serif; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--soft); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-label { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; }
.bar-val { color: var(--white); font-weight: 600; white-space: nowrap; }
.bar-val em { font-style: normal; color: var(--dim); font-weight: 400; font-size: 11px; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 140px; align-items: end; }
.hour { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hour span { width: 100%; background: var(--pink); border-radius: 3px 3px 0 0; min-height: 3px; }
.hour em { font-style: normal; font-size: 10px; color: var(--dim); height: 12px; }
.funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.funnel div { background: var(--bg); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; }
.funnel b { font-size: 22px; color: var(--white); }
.funnel span { font-size: 12px; color: var(--muted); }

/* Instaliraj aplikaciju */
.sheet-bg { position: fixed; inset: 0; background: rgba(10, 4, 20, .72); z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.sheet-bg[hidden] { display: none; }
.sheet { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.sheet h2 { margin: 4px 0 0; font-size: 19px; }
.sheet p { margin: 0; }
.sheet-icon { border-radius: 16px; }
.sheet-steps { text-align: left; margin: 6px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--text); font-size: 15px; align-self: stretch; }
.sheet .ios-steps { display: none; }
.sheet-bg.ios .ios-steps { display: flex; }
.sheet-bg.ios .other-steps { display: none; }
.kbd { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: 14px; }
@media (display-mode: standalone) { .js-install { display: none !important; } }

/* Zaglavlje stranice */
.page-head { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px; margin: 4px 0 2px; }
.ph-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; background: var(--pinkbg); color: var(--pink); display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.ph-icon .ni-img { width: 26px; height: 26px; color: var(--pink); margin: 0; }
.ph-text { min-width: 0; }
.ph-text h1 { margin: 0; font-size: 21px; line-height: 1.25; color: var(--white); }
.ph-text p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--soft); }
@media (max-width: 820px) {
  .m-header { padding-bottom: 14px; }
  .page-head { margin-top: 2px; }
  .legal { margin-top: 2px; }
}
.legal > h1:first-child { display: none; }
