/* ============================================================
   KogaImaVise.com — site.css
   Vizuelni identitet „PODELA": cyan vs. neon pink, tamna arena.  (dizajn v4)
   ============================================================ */

/* ---------- 1. TOKENI ---------- */
:root {
    --bg: #0a0b12;
    --card: #171922;
    --card-2: #1f2230;
    --text: #f4f5f9;
    --muted: #9aa0b2;
    --line: #272b3a;

    --a: #3dd7ff;                    /* Cyan — opcija A */
    --b: #ff3d81;                    /* Magenta — opcija B */
    --a-soft: rgba(61, 215, 255, .13);
    --b-soft: rgba(255, 61, 129, .13);

    --ok: #3ddc8b;
    --err: #ff4d5a;
    --accent: #45dbff;

    --avatar-1: #85e6ff; --avatar-2: #e0a63f;
    --avatar-3: #a8c352; --avatar-4: #3fc98f;
    --avatar-5: #35bfd4; --avatar-6: #7fa8ff;
    --avatar-7: #c793f2; --avatar-8: #f78fb6;

    --radius: 18px;
    --radius-s: 13px;

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --ease-arena: cubic-bezier(.2, .9, .3, 1.15);
}

/* Archivo (variable) — samo za brend elemente. Self-hostovan, latin + latin-ext. */
@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo-latin.woff2') format('woff2');
    font-weight: 500 900; font-style: normal; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
    font-weight: 500 900; font-style: normal; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo-italic-latin.woff2') format('woff2');
    font-weight: 500 900; font-style: italic; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo-italic-latin-ext.woff2') format('woff2');
    font-weight: 500 900; font-style: italic; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. BAZA ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.55 var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.shell { max-width: 560px; margin: 0 auto; padding: 0 16px 90px; }

h1 {
    font: italic 900 24px/1.2 var(--font-display);
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin: 0 0 8px;
}

/* ---------- 3. HEADER ---------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 16px;
    max-width: 560px; margin: 0 auto;
    background: rgba(10, 11, 18, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1c1f2b;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { display: block; height: 24px; width: auto; }
.topbar-auth { display: flex; align-items: center; gap: 4px; }
.me { color: var(--muted); font: 600 13px/1 var(--font-body); padding: 0 8px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 4. DUGMAD ---------- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 48px; padding: 0 20px;
    border-radius: var(--radius-s); border: 0;
    background: var(--text); color: var(--bg);
    font: 700 14.5px/1 var(--font-body);
    text-align: center; text-decoration: none; cursor: pointer;
    transition: transform .12s ease, background .15s ease;
}
.btn-primary:hover { background: #fff; text-decoration: none; }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .38; pointer-events: none; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 48px; padding: 0 20px;
    border-radius: var(--radius-s);
    background: transparent; color: #c9cdd9;
    border: 1.5px solid #3a4056;
    font: 600 14.5px/1 var(--font-body); cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,.03); border-color: #4a5170; text-decoration: none; }

.link-btn {
    background: none; border: 0; padding: 10px 12px;
    color: #c9cdd9; font: 600 13px/1 var(--font-body);
    cursor: pointer; text-decoration: none;
}
.link-btn:hover { color: var(--text); text-decoration: none; }
.link-btn--accent {
    background: var(--text); color: var(--bg);
    font-weight: 700; padding: 11px 16px; border-radius: 999px;
}
.link-btn--accent:hover { background: #fff; color: var(--bg); }
.link-btn:disabled { color: var(--muted); cursor: default; }

/* ---------- 5. CHIPS (kategorije) ---------- */
.chips {
    display: flex; gap: 8px; padding: 12px 0;
    overflow-x: auto; scrollbar-width: none;
    cursor: grab; user-select: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.chips.dragging { cursor: grabbing; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 11px 16px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line);
    color: var(--muted); font: 600 13px/1 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: color .15s, border-color .15s;
}
/* `:hover` je specifičniji od `.chip--active` i gazio mu je boju teksta (belo na belom).
   `(hover: hover)` gasi hover na dodir — na telefonu ostaje „zalepljen" posle tapa. */
@media (hover: hover) {
    .chip:not(.chip--active):hover { color: var(--text); border-color: #3a4056; text-decoration: none; }
    .chip--active:hover { opacity: .88; }
}
.chip--active {
    background: var(--text); border-color: var(--text);
    color: var(--bg); font-weight: 700;
    transition: color .15s, border-color .15s, opacity .15s;
}

/* ---------- 6. CTA „predloži duel" ---------- */
.suggest-cta {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(120deg, #16202a, #1c1620);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; margin-bottom: 14px;
    color: var(--text); text-decoration: none;
}
.suggest-cta:hover { text-decoration: none; border-color: #3a4056; }
.suggest-cta .cta-mark {
    width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
    background: conic-gradient(from 200deg, var(--a) 0 50%, var(--b) 50% 100%);
    display: grid; place-items: center;
    font: italic 900 20px/1 var(--font-display); color: #fff;
}
.suggest-cta .cta-txt { flex: 1; min-width: 0; color: var(--text); }
.suggest-cta b {
    display: block;
    font: 700 14.5px/1.3 var(--font-body);
    color: var(--text);                       /* naslov je beo */
}
/* samo podnaslov je prigušen — ne ceo omotač (inače <b> nasledi sivu) */
.suggest-cta .cta-txt > span { font: 400 12.5px/1.4 var(--font-body); color: var(--muted); }
.suggest-cta .cta-go {
    flex-shrink: 0; font: 700 13px/1 var(--font-body);
    color: var(--bg); background: var(--text);
    padding: 12px 14px; border-radius: 999px;
}

/* ---------- 7. DUEL KARTICA ---------- */
.duel-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.duel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.duel-card__title { flex: 1; margin: 0; font: 700 17px/1.3 var(--font-body); }
.duel-cat {
    flex-shrink: 0;
    font: 700 10.5px/1 var(--font-body); letter-spacing: .08em;
    color: var(--muted); background: var(--card-2);
    padding: 6px 9px; border-radius: 999px; text-transform: uppercase;
}
.duel-lock {
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
    font: 700 10.5px/1 var(--font-body); letter-spacing: .06em;
    color: var(--a); background: var(--a-soft);
    padding: 6px 9px; border-radius: 999px;
}
.live-badge {
    display: none; align-items: center; gap: 5px; flex-shrink: 0;
    font: 700 10.5px/1 var(--font-body); letter-spacing: .06em; color: #8fe6ff;
}
.voted .live-badge { display: inline-flex; }
.voted .duel-cat, .voted .duel-lock { display: none; }
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--a); display: inline-block;
    animation: live-dot 1.4s ease-in-out infinite;
}
@keyframes live-dot { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* --- Tip 1: SPLIT --- */
.duel-split { display: flex; aspect-ratio: 16 / 11; position: relative; }
.side {
    flex: 1; position: relative; overflow: hidden;
    border: 0; padding: 0; cursor: pointer; background: var(--card-2);
    text-align: left;               /* <button> podrazumevano centrira tekst */
}
.side img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .2s ease, filter .3s ease;
}
.side:active img { transform: scale(1.04); }
@media (hover: hover) { .duel-card:not(.voted) .side:hover img { transform: scale(1.04); } }
.side::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 55%;
    background: linear-gradient(to top, rgba(8,9,12,.88), transparent);
    pointer-events: none;
}
.side--b { border-left: 1px solid var(--bg); }
.side-name {
    position: absolute; bottom: 10px; z-index: 2;
    max-width: calc(100% - 24px);
    font: italic 900 20px/1.1 var(--font-display);
    text-transform: uppercase; color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
    overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.side--a .side-name { left: 12px; text-align: left; }
.side--b .side-name { right: 12px; text-align: right; }
.voted .side-name { display: none; }

.vs-badge {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: conic-gradient(from 200deg, var(--a) 0 50%, var(--b) 50% 100%);
    display: grid; place-items: center; z-index: 3; pointer-events: none;
}
.vs-badge::after {
    content: 'VS';
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg); display: grid; place-items: center;
    font: italic 900 14px/1 var(--font-display); color: var(--text);
}

.voted .side { cursor: default; }
.voted .side img { transform: none; filter: brightness(.55); }
.voted .side.my-vote img { filter: brightness(.78); }

.bar--a, .bar--b {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    height: 0;
    border-top: 0 solid transparent;   /* linija se pojavi tek posle glasa */
    transition: height .6s var(--ease-arena);
    pointer-events: none;
}
.bar--a { background: linear-gradient(to top, rgba(61,215,255,.85), rgba(61,215,255,.18)); }
.bar--b { background: linear-gradient(to top, rgba(255,61,129,.8), rgba(255,61,129,.15)); }
.voted .bar--a { border-top: 3px solid var(--a); }
.voted .bar--b { border-top: 3px solid var(--b); }
.voted .bar--a, .voted .bar--b { animation: bar-pulse 2s ease-in-out infinite; }
.voted .bar--b { animation-delay: .4s; }
@keyframes bar-pulse { 0%,100% { opacity: .92; } 50% { opacity: 1; } }

.pct--a, .pct--b {
    position: absolute; bottom: 12px; z-index: 2;
    opacity: 0; transition: opacity .3s ease .2s;
    pointer-events: none;
}
.voted .pct--a, .voted .pct--b { opacity: 1; }
.pct--a { left: 12px; text-align: left; max-width: calc(100% - 24px); }
.pct--b { right: 12px; text-align: right; max-width: calc(100% - 24px); }
.pct-num {
    display: block;
    font: italic 900 30px/1 var(--font-display);
    font-variant-numeric: tabular-nums;
    color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4);
}
.pct-votes { display: block; font: 700 11.5px/1.4 var(--font-body); color: rgba(255,255,255,.9); }
.pct-name {
    display: block; margin-top: 4px;
    font: italic 900 16px/1.2 var(--font-display);
    text-transform: uppercase; color: #fff;
    overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-vote-tag {
    position: absolute; top: 10px; z-index: 2;
    display: none; align-items: center; gap: 5px;
    background: var(--a); color: #041a20;
    font: 800 10px/1 var(--font-body); letter-spacing: .08em;
    padding: 6px 9px; border-radius: 999px;
}
.side.my-vote .my-vote-tag { display: inline-flex; }
.side--b .my-vote-tag { background: var(--b); color: #2a0512; }
.side--a .my-vote-tag { left: 10px; }
.side--b .my-vote-tag { right: 10px; }

/* --- Tip 2: NADVLAČENJE KONOPCA --- */
.tug-names {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px; padding: 6px 16px 0;
}
.tug-names .name--a, .tug-names .name--b {
    /* Dugačak naziv ostaje u svojoj polovini i seče se posle 2 reda —
       bez ovoga bi se dve opcije slile jedna u drugu. */
    max-width: calc(50% - 7px);
    font: italic 900 18px/1.15 var(--font-display);
    text-transform: uppercase;
    overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tug-names .name--a { color: var(--a); }
.tug-names .name--b { color: var(--b); text-align: right; }

.rope { position: relative; height: 58px; margin: 2px 16px 0; }
.rope::before {
    content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px;
    border-left: 1px dashed #3a3f52;
}
.rope-a, .rope-b {
    position: absolute; top: 50%; height: 8px; transform: translateY(-50%);
    width: 50%;
    transition: width .6s var(--ease-arena);
}
.rope-a { left: 0; border-radius: 4px 0 0 4px; background: linear-gradient(90deg, var(--a-soft), var(--a)); }
.rope-b { right: 0; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--b), var(--b-soft)); }
.rope-weave {
    position: absolute; left: 0; right: 0; top: 50%; height: 8px;
    transform: translateY(-50%); border-radius: 4px;
    background: repeating-linear-gradient(100deg, rgba(0,0,0,.28) 0 5px, transparent 5px 10px);
    pointer-events: none;
}
.knot {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%,-50%);
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--text); border: 4px solid var(--bg);
    box-shadow: 0 0 0 2px var(--text), 0 4px 14px rgba(0,0,0,.5);
    transition: left .6s var(--ease-arena);
    z-index: 2;
}
/* Čvor podrhtava u smeru u kom vodeća strana gura front. */
.voted .knot--push-a { animation: knot-tug-a 1.1s ease-in-out infinite; }
.voted .knot--push-b { animation: knot-tug-b 1.1s ease-in-out infinite; }
@keyframes knot-tug-a {
    0%, 100% { transform: translate(-50%,-50%); }
    50%      { transform: translate(-50%,-50%) translateX(5px); }
}
@keyframes knot-tug-b {
    0%, 100% { transform: translate(-50%,-50%); }
    50%      { transform: translate(-50%,-50%) translateX(-5px); }
}
.rope-chev {
    position: absolute; top: 50%; left: 50%; transform: translateY(-50%);
    display: none; gap: 2px; font: 900 15px/1 var(--font-body);
    pointer-events: none;
}
.voted .rope-chev { display: flex; }
.rope-chev span { animation: chev-pulse .9s linear infinite; }
.rope-chev span:nth-child(2) { animation-delay: .15s; }
.rope-chev span:nth-child(3) { animation-delay: .3s; }
.rope-chev--a { color: var(--a); }
.rope-chev--b { color: var(--b); }
@keyframes chev-pulse { 0%,100% { opacity: .15; } 50% { opacity: 1; } }

.tug-actions { display: flex; gap: 10px; padding: 8px 16px 4px; }
.tug-btn {
    flex: 1; min-width: 0; min-height: 50px; border-radius: var(--radius-s);
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; cursor: pointer; position: relative;
    font: 700 14px/1 var(--font-body); color: var(--text);
    background: var(--card-2); border: 1.5px solid var(--line);
    transition: border-color .15s, background .15s, transform .12s;
}
/* Hover samo dok se još može glasati — inače posle glasa (a na dodiru i „zalepljeno")
   gubitničko dugme zasvetli isto kao „moj glas". */
@media (hover: hover) {
    .duel-card:not(.voted) .tug-btn--a:hover { border-color: var(--a); background: var(--a-soft); }
    .duel-card:not(.voted) .tug-btn--b:hover { border-color: var(--b); background: var(--b-soft); }
}
.tug-btn:active { transform: scale(.97); }
.voted .tug-btn { cursor: default; transform: none; }
.voted .tug-btn--a.my-vote { border-color: var(--a); background: var(--a-soft); }
.voted .tug-btn--b.my-vote { border-color: var(--b); background: var(--b-soft); }
.tug-label {
    display: flex; align-items: center; gap: 7px;
    flex: 1; min-width: 0;                 /* da dugačko ime ne izgura rezultat */
    text-align: left;
}
.tug-name {
    min-width: 0; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.tug-check { display: none; flex-shrink: 0; }
.my-vote .tug-check { display: block; }
.tug-btn--a .tug-check { color: var(--a); }
.tug-btn--b .tug-check { color: var(--b); }
.tug-res { flex-shrink: 0; margin-left: 10px; text-align: right; opacity: 0; transition: opacity .3s ease .2s; }
.voted .tug-res { opacity: 1; }
.tug-pct { display: block; font: italic 900 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.tug-btn--a .tug-pct { color: var(--a); }
.tug-btn--b .tug-pct { color: var(--b); }
.tug-votes { display: block; font: 600 10.5px/1.3 var(--font-body); color: var(--muted); }

/* „+1" koji izleti kad stigne živi glas */
.plus-one {
    position: absolute; right: 44px; top: 4px; z-index: 3;
    font: 800 11px/1 var(--font-body);
    animation: plus-up 1.8s ease-out forwards;
    pointer-events: none;
}
.tug-btn--a .plus-one, .side--a .plus-one { color: #8fe6ff; }
.tug-btn--b .plus-one, .side--b .plus-one { color: #ff85b0; }
.side .plus-one { right: auto; left: 12px; top: auto; bottom: 60px; }
@keyframes plus-up {
    0%   { transform: translateY(6px); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* --- Footer kartice --- */
.card-foot {
    display: flex; align-items: center; gap: 18px;
    padding: 12px 16px; color: var(--muted); font: 600 13px/1 var(--font-body);
}
.total-votes, .comment-num-wrap { display: inline-flex; align-items: center; gap: 6px; }
.comment-link { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.comment-link:hover { color: var(--text); text-decoration: none; }
.card-foot .ico { width: 17px; height: 17px; display: block; }
.share-btn {
    margin-left: auto; background: none; border: 0; cursor: pointer;
    color: #c9cdd9; min-width: 44px; min-height: 44px; margin-right: -12px;
    display: grid; place-items: center;
}
.share-btn:hover { color: var(--text); }

/* ---------- 8. FEED: prazno stanje, skeleton ---------- */
.empty-state {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 48px 24px; text-align: center; color: var(--muted);
}
.empty-state .mark {
    width: 52px; height: 52px; border-radius: 16px;
    background: var(--card); border: 1px solid var(--line);
    display: grid; place-items: center;
    font: italic 900 24px/1 var(--font-display); color: #3a4056;
}
.skeleton {
    border-radius: var(--radius); background: var(--card);
    border: 1px solid var(--line); height: 320px;
    position: relative; overflow: hidden; margin-bottom: 14px;
}
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.04) 50%, transparent 70%);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
#feed-sentinel { height: 1px; }

/* ---------- 9. BOTTOM SHEET (komentari) ---------- */
.sheet {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(4,5,8,.6);
    opacity: 0; transition: opacity .25s ease;
}
.sheet.open { opacity: 1; }
.sheet-panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-height: 78%; min-height: 45%;
    background: var(--card);
    border-radius: 22px 22px 0 0; border-top: 1px solid #2c3040;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2,.9,.3,1);
}
.sheet.open .sheet-panel { transform: translateY(0); }
.sheet-grab {
    width: 36px; height: 4px; border-radius: 2px; background: #3a3f52;
    margin: 10px auto 0; border: 0; padding: 0; cursor: pointer;
}
.sheet-head {
    display: flex; align-items: center; justify-content: center; position: relative;
    padding: 10px 16px 12px; border-bottom: 1px solid #232633;
    font: 700 15.5px/1 var(--font-body);
}
.sheet-title { margin: 0; font: inherit; }
.sheet-close {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: var(--muted);
    font-size: 1.05rem; cursor: pointer;
    min-width: 44px; min-height: 44px;
}
.sheet-close:hover { color: var(--text); }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px; -webkit-overflow-scrolling: touch; }
body.sheet-lock { overflow: hidden; }

@media (min-width: 720px) {
    .sheet-panel {
        left: 50%; right: auto; bottom: 50%;
        transform: translate(-50%, 50%) scale(.96); opacity: 0;
        width: 480px; max-height: 640px; border-radius: 22px;
        border: 1px solid #2c3040;
        transition: transform .25s ease, opacity .25s ease;
    }
    .sheet.open .sheet-panel { transform: translate(-50%, 50%) scale(1); opacity: 1; }
    .sheet-grab { display: none; }
}

/* --- Komentari --- */
.comment { display: flex; gap: 10px; margin-bottom: 16px; }
.replies .comment { padding-left: 34px; }
.replies .avatar { width: 28px; height: 28px; font-size: 11px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    font: 800 14px/1 var(--font-body); color: var(--bg);
    user-select: none;
}
.avatar--sm { width: 32px; height: 32px; font-size: 12.5px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { font: 400 13px/1 var(--font-body); color: var(--muted); }
.comment-meta b { color: var(--text); font-weight: 650; font-size: 13.5px; margin-right: 6px; }
.comment-text { font: 400 14.5px/1.5 var(--font-body); color: #e6e8ef; margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
.comment-reply-btn {
    background: none; border: 0; padding: 8px 0; cursor: pointer;
    font: 600 12.5px/1 var(--font-body); color: var(--muted);
}
.comment-reply-btn:hover { color: var(--text); }
.like-btn {
    background: none; border: 0; cursor: pointer; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--muted); font: 600 11px/1 var(--font-body);
    min-width: 44px; min-height: 44px; padding-top: 4px;
}
.like-btn svg { fill: none; stroke: currentColor; }
.like-btn.liked { color: var(--err); }
.like-btn.liked svg { fill: var(--err); stroke: var(--err); animation: like-pop .15s ease; }
@keyframes like-pop { 50% { transform: scale(1.3); } }
.thread-empty { color: var(--muted); text-align: center; padding: 24px 0; font-size: 13.5px; }

/* --- Composer --- */
.composer { border-top: 1px solid #232633; padding: 10px 16px 16px; }
.reply-hint {
    display: flex; align-items: center; gap: 8px;
    font: 400 12.5px/1 var(--font-body); color: var(--muted);
    padding: 2px 2px 8px;
}
.composer-emoji { display: flex; justify-content: space-between; padding: 0 6px 10px; }
.composer-emoji button {
    background: none; border: 0; cursor: pointer;
    font-size: 20px; min-width: 36px; min-height: 36px;
}
.composer-row { display: flex; align-items: center; gap: 10px; }
.composer-row textarea {
    flex: 1 1 0; min-width: 0;
    height: 44px; max-height: 110px; border-radius: 22px;
    background: var(--card-2); border: 1px solid var(--line);
    padding: 12px 16px; color: var(--text);
    font: 400 14px/1.35 var(--font-body);
    resize: none;
    overflow-y: auto;          /* dugačak tekst se i dalje skroluje… */
    scrollbar-width: none;     /* …ali se traka ne vidi */
}
.composer-row textarea::-webkit-scrollbar { display: none; }
.composer-row textarea::placeholder { color: var(--muted); }
.composer-row textarea:focus { outline: none; border-color: var(--accent); }
.composer-send {
    flex-shrink: 0;
    background: none; border: 0; cursor: pointer;
    font: 700 13.5px/1 var(--font-body); color: var(--accent);
    min-height: 44px; padding: 0 4px;
}
.composer-send:hover { color: var(--text); }

/* --- Zaključano (neulogovan) --- */
.locked {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; padding: 32px 24px; text-align: center;
}
.locked-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--card-2); border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--muted);
}
.locked h3 { font: 700 17px/1.3 var(--font-body); margin: 0; }
.locked p { font: 400 13.5px/1.55 var(--font-body); color: var(--muted); max-width: 250px; margin: 0; }
.locked .btn-primary { max-width: 240px; }
.locked-alt { font: 400 12.5px/1 var(--font-body); color: var(--muted); margin: 0; }

/* ---------- 10. FORME ---------- */
.auth-card {
    position: relative;
    max-width: 420px; margin: 24px auto;
    padding: 26px 22px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius);
}
.auth-card--wide { max-width: 480px; }
.auth-close {
    position: absolute; top: 12px; right: 12px;
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: 50%; color: var(--muted); text-decoration: none;
}
.auth-close:hover { background: var(--card-2); color: var(--text); text-decoration: none; }
.auth-title { font: italic 900 24px/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 6px; }
.auth-sub { margin: 0 0 22px; color: var(--muted); font: 400 13.5px/1.5 var(--font-body); }
.auth-msg { margin: 12px 0 0; font: 500 12.5px/1.4 var(--font-body); color: var(--muted); min-height: 1.2em; }
.auth-msg--error { color: var(--err); }
.auth-alt { text-align: center; color: var(--muted); font: 400 12.5px/1 var(--font-body); margin: 18px 0 0; }
/* Red tihih akcija ispod koda: „Pošalji ponovo" levo, „Promeni nalog"/„Nazad" desno.
   `.link-btn` u header-u nosi padding zbog tap-targeta — ovde ga gasimo da se poravna sa redom. */
.auth-links {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-top: 14px;
}
/* Kad je akcija sama u redu, centriraj je — inače visi uz levu ivicu. */
.auth-links:has(> :only-child) { justify-content: center; }
.auth-links .link-btn {
    padding: 0; color: var(--muted); font: 500 13px/1 var(--font-body);
    text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: #3a4056;
}
.auth-links .link-btn:hover { color: var(--text); text-decoration-color: var(--muted); }
.auth-links .resend { padding: 0; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font: 600 12.5px/1 var(--font-body); color: var(--muted); }
.field input, .field select, .field textarea {
    height: 52px; border-radius: 14px; width: 100%;
    background: var(--card-2); border: 1.5px solid var(--line);
    padding: 0 16px; color: var(--text); font: 400 15px/1 var(--font-body);
    transition: border-color .15s;
}
.field select { appearance: none; padding-right: 40px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 23px, calc(100% - 14px) 23px;
    background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.field input:hover { border-color: #3a4056; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field.is-valid input { border-color: var(--ok); }
.field.is-error input { border-color: var(--err); }
.field-msg { font: 500 12.5px/1.4 var(--font-body); color: var(--muted); }
.field.is-valid .field-msg { color: var(--ok); }
.field.is-error .field-msg { color: var(--err); }
.field-msg:empty, .field-validation-valid, .validation-summary-valid { display: none; }

/* polje sa statusom (live provera username-a) */
.input-wrap { position: relative; }
.input-wrap input { padding-right: 46px; }
.field-status {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center;
}
.field-check { color: var(--ok); display: flex; }
.field-clear {
    display: grid; place-items: center; padding: 0;
    background: none; border: 0;
    color: var(--err); cursor: pointer;
}
.field-clear:hover { opacity: .75; }

.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid #3a4056; border-top-color: var(--accent);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* znak brenda i progres u auth karticama */
.auth-mark { display: block; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px; }
.auth-progress { display: flex; gap: 5px; margin-bottom: 18px; }
.auth-progress i { display: block; width: 22px; height: 4px; border-radius: 2px; background: var(--line); }
.auth-progress i.on { background: var(--a); }

/* 6-cifreni kod — brojevi kao rezultat na semaforu */
.code-row { display: flex; gap: 8px; }
.code-row input {
    flex: 1 1 0; min-width: 0; max-width: 52px;
    height: 54px; padding: 0;
    border-radius: 12px; text-align: center;
    background: var(--card-2); border: 1.5px solid var(--line);
    font: italic 900 22px/1 var(--font-display); color: var(--text);
    transition: border-color .15s;
}
.code-row input.filled { border-color: #3a4056; }
.code-row input:focus { border-color: var(--accent); outline: none; }
.is-error .code-row input { border-color: var(--err); }

.step-2 { border-top: 1px dashed var(--line); padding-top: 18px; margin-top: 22px; }
.step-2-label {
    font: 600 12.5px/1 var(--font-body); color: var(--muted);
    letter-spacing: .04em; margin-bottom: 12px;
}
.resend {
    background: none; border: 0; padding: 12px 0 0; cursor: pointer;
    font: 400 13px/1 var(--font-body); color: var(--muted);
}
.resend:hover:not(:disabled) { color: var(--text); }
.resend:disabled { cursor: default; }
.resend .t { color: #5c6172; font-variant-numeric: tabular-nums; }

/* predlozi slobodnih imena */
.suggestions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.sug-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; min-height: 44px; padding: 0 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    color: var(--text); font: 600 14px/1 var(--font-body);
    cursor: pointer; text-align: left;
}
.sug-row:hover { border-color: var(--ok); }
.sug-check { color: var(--ok); display: flex; }

.flash-ok {
    background: rgba(61,220,139,.12); border: 1px solid var(--ok); color: var(--ok);
    padding: 12px 14px; border-radius: 12px;
    font: 600 13px/1.4 var(--font-body); margin-bottom: 18px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.more-link { display: block; text-align: center; color: var(--muted); font: 600 13px/1 var(--font-body); padding: 16px 0; }
.more-link:hover { color: var(--text); text-decoration: none; }
.single-duel { padding-top: 8px; }

/* ---------- 11. TOAST · COOKIE · FOOTER ---------- */
.toast {
    position: fixed; left: 50%; bottom: 88px; z-index: 60;
    transform: translateX(-50%) translateY(12px);
    background: var(--card-2); border: 1px solid #2c3040; border-radius: 999px;
    padding: 12px 18px; font: 600 13.5px/1 var(--font-body);
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    opacity: 0; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.cookie-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    max-width: 536px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--card-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    font: 400 12.5px/1.45 var(--font-body); color: #c9cdd9;
}
.cookie-text { flex: 1 1 200px; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
    padding: 11px 14px; border-radius: 999px; cursor: pointer;
    font: 700 12.5px/1 var(--font-body); border: 1px solid var(--line);
    background: transparent; color: var(--muted);
}
.cookie-btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }

.site-foot {
    max-width: 560px; margin: 20px auto 96px; padding: 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    border-top: 1px solid var(--line);
    font: 400 12px/1 var(--font-body); color: var(--muted);
}
.site-foot a, .site-foot .linky {
    color: var(--muted); background: none; border: 0; padding: 0;
    font: inherit; cursor: pointer; text-decoration: none;
}
.site-foot a:hover, .site-foot .linky:hover { color: var(--text); }
.site-foot .dot { color: var(--line); }

/* ---------- 12. PRAVNE STRANE ---------- */
.prose { max-width: 34em; padding-top: 8px; }
.prose h1 { font: italic 900 24px/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 4px; }
.prose p, .prose li { font: 400 15px/1.75 var(--font-body); color: #c9cdd9; }
.prose h2 { font: 700 16px/1.3 var(--font-body); color: var(--text); margin: 24px 0 8px; }
.prose ul { padding-left: 18px; }
.prose .updated { display: block; font: 500 12px/1 var(--font-body); color: #5c6172; margin-bottom: 20px; }
.prose .note {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; font: 400 13px/1.6 var(--font-body); color: var(--muted);
    margin-bottom: 20px;
}
