/* BalkanLoop - izgled ostalih ekrana: prozorčići od dna, cijeli ekrani, dobrodošlica, odabir kraja, pretraga, obavijesti i profil.
   Osnova (boje, tok videa, gornja i donja traka) je u style.css. */

/* ------------------------------------------------------------ prozorčići (od dna) */
#overlay { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
#overlay > * { pointer-events: auto; }
.sheet-back { position: absolute; inset: 0; z-index: 5; background: rgba(10, 7, 5, .56); opacity: 0; transition: opacity .22s; }
.sheet-back.open { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 86%; display: flex; flex-direction: column; background: #1d1511; border-radius: 28px 28px 0 0; border-top: 1px solid var(--line); transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -14px 48px rgba(0, 0, 0, .55); }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(251, 241, 227, .2); }
.sheet.open { transform: none; }
.sheet.comments { height: 74%; }
.sheet-head { position: relative; flex: none; display: flex; align-items: center; justify-content: center; padding: 22px 52px 12px; font: 700 17px/1.2 var(--display); border-bottom: 1px solid var(--faint); text-align: center; }
.sheet-head .x { position: absolute; right: 10px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.sheet-head .x:hover { background: rgba(251, 241, 227, .08); }
.sheet-head .x svg { width: 20px; height: 20px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 16px; }
.sheet-body:last-child { padding-bottom: calc(16px + var(--safe-b)); }
.sheet-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--faint); }
.sheet-foot input { flex: 1; min-width: 0; height: 42px; border: 1px solid transparent; border-radius: 21px; background: var(--card2); color: var(--text); padding: 0 16px; outline: none; }
.sheet-foot input:focus { border-color: var(--amber); }
.send { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--amber); display: grid; place-items: center; transition: opacity .15s, transform .1s; }
.send:disabled { opacity: .35; cursor: default; }
.send:not(:disabled):active { transform: scale(.93); }
.send svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.6; }

/* komentari */
.c { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.cb { flex: 1; min-width: 0; }
.ch { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); }
.ch b { color: rgba(251, 241, 227, .94); font-weight: 700; }
.cdel { margin-left: auto; opacity: .55; padding: 2px; }
.cdel:hover { opacity: 1; }
.cdel svg { width: 14px; height: 14px; }
.cb p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.38; word-break: break-word; }
.cl { width: 38px; flex: none; display: grid; justify-items: center; gap: 2px; font-size: 11.5px; color: var(--dim); padding-top: 2px; }
.cl svg { width: 20px; height: 20px; }
.cl.on { color: var(--amber2); }
.cl.on .cpb { fill: var(--amber); stroke: var(--amber); }
.cl.on .cph, .cl.on .cps { stroke: var(--amber); }
.cempty { text-align: center; color: var(--dim); padding: 40px 12px; line-height: 1.6; }
.cmore { text-align: center; color: var(--dim); font-size: 12px; margin: 10px 0 0; }

/* dijeljenje / prijava */
.sgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 10px calc(22px + var(--safe-b)); }
.sgrid button { flex: 0 0 calc(25% - 5px); min-width: 0; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 6px 2px; font-size: 11.5px; font-weight: 700; text-align: center; color: rgba(251, 241, 227, .9); }
.sgrid .sic { width: 54px; height: 54px; border-radius: 19px; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; transition: background .15s, transform .1s; }
.sgrid button:hover .sic { background: var(--card3); }
.sgrid button:active .sic { transform: scale(.94); }
.sgrid .sic svg { width: 24px; height: 24px; }
.sgrid .sic { font-size: 22px; line-height: 1; }

/* BalkanCoins (zadatak #82) - pokloni i kupovina novčića, dijele .sgrid/.sic mrežu sa dijeljenjem iznad */
.coin-bal { display: flex; align-items: center; gap: 6px; margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; color: rgba(251, 241, 227, .9); }
.coin-bal svg { width: 18px; height: 18px; flex: none; }
.coin-bal .cb-n { font-size: 15px; }
.gi-cost, .pk-lbl { font-size: 10.5px; font-weight: 700; color: var(--dim); }
.gi-cost { display: flex; align-items: center; gap: 3px; }
.gi-cost svg { width: 12px; height: 12px; }
.probna-napomena { margin: 0 14px 14px; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--dim); }

.rlist button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; }
.rlist button svg { width: 18px; height: 18px; transform: rotate(180deg); opacity: .5; }
.rnote { font-size: 12.5px; color: var(--dim); margin: 14px 2px 6px; line-height: 1.5; }
.rnote.center { text-align: center; }

/* uređivanje profila, potvrda */
.eform { display: grid; gap: 14px; align-content: start; }
.eform label { display: grid; gap: 6px; font-size: 12.5px; color: var(--dim); font-weight: 700; }
.eform input, .eform textarea, .eform select, .at { width: 100%; background: var(--card2); border: 1px solid transparent; border-radius: 14px; color: var(--text); padding: 11px 13px; outline: none; resize: none; }
.eform select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fbf1e3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.eform input:focus, .eform textarea:focus, .eform select:focus, .at:focus-within { border-color: var(--amber); }
.eform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.at { display: flex; align-items: center; gap: 4px; padding: 0 0 0 13px; }
.at em { font-style: normal; color: var(--dim); }
.at input { border: 0; background: transparent; padding-left: 0; }
.eav { display: grid; justify-items: center; padding-top: 6px; }
.swatches { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }
.sw { width: 30px; height: 30px; border-radius: 11px; background: var(--c); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s, transform .1s; }
.sw:hover { transform: scale(1.1); }
.sw.on { box-shadow: 0 0 0 2px #1d1511, 0 0 0 4px var(--text); }
.err { margin: 0; color: #ff8d7a; font-size: 13px; font-weight: 600; }
.confirm .cbody { padding: 26px 20px calc(20px + var(--safe-b)); text-align: center; }
.cbody h3 { margin: 0 0 6px; font: 700 20px/1.2 var(--display); }
.cbody p { margin: 0 0 20px; color: var(--dim); font-size: 14px; line-height: 1.45; }
.cbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* odabir kraja i grada (dobrodošlica, prozorčić "Tvoj kraj") */
.rpick { display: grid; gap: 4px; text-align: left; }
.rl { margin: 12px 2px 8px; font-weight: 800; font-size: 13px; color: var(--dim); }
.rl small { font-weight: 600; opacity: .8; }
.rchips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sug { margin: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; transition: background .15s, color .15s, border-color .15s; }
.chip svg { width: 14px; height: 14px; color: var(--amber); }
.chip:hover { background: var(--card2); }
.chip.on { background: var(--amber); border-color: transparent; color: var(--ink); }
.chip.on svg { color: var(--ink); }
.chip.stk { padding: 6px 12px; font-size: 20px; line-height: 1; }
.regsheet .sheet-body { display: grid; gap: 12px; align-content: start; }

/* ------------------------------------------------------------ cijeli ekrani (pregled, objava, dobrodošlica) */
.screen { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; background: var(--page); animation: screenIn .26s ease both; }
.screen.out { animation: screenOut .2s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(18px); } }
@keyframes screenOut { to { opacity: 0; transform: translateY(12px); } }
.viewer { --nav-h: 0px; background: #000; }
.vback { position: absolute; top: calc(10px + var(--sat)); left: 10px; z-index: 8; width: 40px; height: 40px; border-radius: 50%; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vback svg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ trake, cijeli ekran (#79): niz kružića postaje niz videa, jedan za drugim */
.stories { background: #000; }
.story-prog { position: absolute; top: var(--sat); left: 8px; right: 8px; z-index: 6; display: flex; gap: 4px; padding-top: 8px; }
.story-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.story-prog i b { --p: 0; position: absolute; inset: 0; width: 100%; transform-origin: left; transform: scaleX(var(--p)); background: #fff; border-radius: 2px; }
.story-prog i.done b { transform: scaleX(1); }
.story-head { position: absolute; top: calc(var(--sat) + 20px); left: 10px; right: 10px; z-index: 6; display: flex; align-items: center; gap: 10px; }
.story-av { flex: none; display: block; line-height: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); border-radius: 34%; }
.story-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.story-who b { font: 700 14px/1.25 var(--display); color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-who span { font-size: 11.5px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.story-x { background: rgba(23, 17, 14, .38); }
.story-media { position: absolute; inset: 0; overflow: hidden; background: #000; }
.story-media img, .story-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.story-sticker { position: absolute; right: 14px; top: calc(112px + var(--sat)); z-index: 3; font-size: 42px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); pointer-events: none; user-select: none; }
.story-textov { position: absolute; left: 14px; right: 70px; top: calc(112px + var(--sat)); z-index: 3; font: 800 15px/1.3 var(--display); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; user-select: none; overflow-wrap: break-word; }
.story-zones { position: absolute; inset: 0; z-index: 4; display: flex; }
.story-prev { flex: 0 0 32%; }
.story-next { flex: 1; }

.uhead { flex: none; display: flex; align-items: center; justify-content: space-between; height: calc(58px + var(--sat)); padding: var(--sat) 8px 0; font: 700 18px/1 var(--display); }
.uhead i { width: 44px; }
.ubody { flex: 1; overflow-y: auto; padding: 8px 18px calc(28px + var(--safe-b)); }
.drop { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 290px; padding: 24px; border: 2px dashed rgba(251, 241, 227, .24); border-radius: 26px; text-align: center; cursor: pointer; background: rgba(251, 241, 227, .02); transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--amber); background: rgba(244, 166, 42, .07); }
.dico { width: 66px; height: 66px; border-radius: 22px; background: var(--amber); color: var(--ink); display: grid; place-items: center; margin-bottom: 8px; box-shadow: 0 10px 30px rgba(244, 166, 42, .28); }
.dico svg { width: 30px; height: 30px; }
.drop b { font: 700 20px/1.2 var(--display); }
.drop span { color: var(--dim); }
.drop small { color: rgba(251, 241, 227, .45); margin-top: 8px; }
.ubtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ubtns .btn { padding: 0 8px; gap: 6px; white-space: nowrap; font-size: 14px; min-width: 0; }
@media (max-width: 340px) {
  .ubtns { gap: 8px; }
  .ubtns .btn { padding: 0 4px; gap: 5px; font-size: 13px; }
  .ubtns .btn svg { width: 16px; height: 16px; }
}
.uhint { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.prev { width: min(46%, 170px); aspect-ratio: 9 / 16; margin: 4px auto 16px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); }
.prev video, .prev-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbl { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 700; font-size: 13px; }
.cnt, .ovcnt { color: var(--dim); font-weight: 600; }
.cap-in, .ov-in { width: 100%; padding: 12px; resize: none; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); outline: none; }
.cap-in:focus, .ov-in:focus { border-color: var(--amber); }
/* #82-slika/#57: red "Muzika" na ekranu objave - isti oblik kao .uplace ispod (ikona + tekst + dugme "Promijeni") */
.umusic { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.umusic svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.umsc { color: var(--text); }
.uplace { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--dim); }
.uplace svg { width: 15px; height: 15px; color: var(--amber); flex: none; }
.uplace b { color: var(--text); }
.uact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; }

/* #57/#82: birač muzike (BT.openMusicSheet, music.js) - .mrow ima DVA odvojena dugmeta (NE ugniježđena): .mplay
   (preslušaj isječak) i .msel (izaberi), isto za video i sliku */
.mlist { display: flex; flex-direction: column; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.mrow + .mrow { border-top: 1px solid var(--line); }
.mplay { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 241, 227, .06); border: 1px solid var(--line); color: var(--text); transition: background .15s, color .15s; }
.mplay svg { width: 18px; height: 18px; }
.mplay:hover { background: rgba(244, 166, 42, .14); color: var(--amber); }
.msel { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 48px; padding: 0 6px; border-radius: 12px; text-align: left; transition: background .15s; }
.msel:hover { background: rgba(251, 241, 227, .05); }
.mrow.on .msel { background: rgba(244, 166, 42, .1); }
.mtxt { display: grid; min-width: 0; }
.mtxt b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtxt small { color: var(--dim); font-size: 12px; }
.mcheck { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--amber); }
.mcheck svg { width: 18px; height: 18px; }
.mempty { padding: 34px 10px; text-align: center; color: var(--dim); font-size: 13.5px; }

/* dobrodošlica */
.welcome { overflow: hidden; z-index: 3; background: var(--page); text-align: center; }
.wbg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px 320px at 12% 6%, rgba(244, 166, 42, .34), transparent 70%), radial-gradient(420px 360px at 98% 34%, rgba(43, 179, 163, .26), transparent 70%), radial-gradient(520px 440px at 20% 102%, rgba(229, 83, 61, .3), transparent 70%); }
.wbg::before, .wbg::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--kilim); background-size: auto 100%; background-repeat: repeat-x; opacity: .95; }
.wbg::before { top: var(--sat); }
.wbg::after { bottom: var(--safe-b); }
.wscroll { position: relative; flex: 1; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; }
.wbody { position: relative; margin: auto; width: 100%; max-width: 380px; display: grid; justify-items: center; gap: 12px; padding: calc(34px + var(--sat)) 26px calc(30px + var(--safe-b)); }
.wstep { display: grid; justify-items: center; gap: 12px; width: 100%; animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.welcome h1 { font-size: 44px; margin-top: 4px; }
.welcome h2 { margin: 6px 0 0; font: 700 30px/1.1 var(--display); }
.wtag { margin: 0; font-size: 17px; font-weight: 600; color: rgba(251, 241, 227, .88); }
.wtext { margin: 0; max-width: 320px; line-height: 1.5; color: var(--dim); }
.wlist { list-style: none; padding: 0; margin: 14px 0 8px; display: grid; gap: 13px; text-align: left; }
.wlist li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: rgba(251, 241, 227, .92); }
.wlist svg { flex: none; box-sizing: content-box; width: 22px; height: 22px; padding: 8px; border-radius: 14px; background: rgba(251, 241, 227, .1); color: var(--amber2); }
.demo { margin: 4px 0 0; font-size: 12px; color: var(--dim); }
.wskip { margin-top: 2px; padding: 8px 12px; font-weight: 700; font-size: 13.5px; color: var(--dim); }

/* #203 (26.9.): dugme za jezik na samom ekranu dobrodošlice - gore desno, nenametljivo, da ga vidi
   i onaj ko još nema nalog (u Postavke ne može dok se ne prijavi). */
.wlang { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.16); color: var(--text);
  font-weight: 700; font-size: 12.5px; line-height: 1; backdrop-filter: blur(6px); }
.wlang:hover { background: rgba(0,0,0,.52); }
.wlang svg { width: 16px; height: 16px; }
.wlang-t { white-space: nowrap; }
.w1 { position: relative; }
.wskip:hover { color: var(--text); }
.wpick { width: 100%; margin-top: 4px; }
.wpick .rchips { justify-content: center; }
.wpick .rl { text-align: center; }

/* ------------------------------------------------------------ stranice: otkrij, obavijesti, profil */
.ptop { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: calc(58px + var(--sat)); margin: 0 -16px; padding: var(--sat) 8px 0; background: rgba(23, 17, 14, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ptop h1 { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; font: 700 20px/1 var(--display); white-space: nowrap; }
.ptop i { width: 44px; }
.search { position: relative; margin: 2px 0 4px; }
.search input { width: 100%; height: 48px; padding: 0 44px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); outline: none; }
.search input:focus { border-color: var(--amber); }
.search input::-webkit-search-cancel-button { display: none; }
.search .sic { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); opacity: .6; pointer-events: none; }
.qclr { position: absolute; right: 5px; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); display: grid; place-items: center; border-radius: 50%; }
.qclr svg { width: 18px; height: 18px; }
.sh { margin: 24px 0 10px; font: 700 19px/1.2 var(--display); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; cursor: grab; }
.hscroll.drag { cursor: grabbing; user-select: none; }
.ccard { flex: none; width: 142px; display: grid; justify-items: center; gap: 10px; padding: 14px 10px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.cc-open { display: grid; justify-items: center; gap: 2px; text-align: center; }
.cc-open b { display: flex; align-items: center; gap: 4px; margin-top: 8px; font: 700 italic 15px/1.2 var(--display); }
.cc-open > span:not(.av):not(.cplace) { font-size: 12px; color: var(--dim); }
.cc-open em { font-style: normal; font-size: 11.5px; color: var(--dim); }
.cc-open .cplace { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--amber2); font-weight: 700; }
.cc-open .cplace svg { width: 11px; height: 11px; }

/* red kružića sa trakama (#79), na vrhu "Otkrij" - "Tvoja traka" pa tuđe, kao u toku pretrage */
.hscroll.strail { gap: 14px; padding-top: 2px; }
.scard { flex: none; width: 68px; display: grid; justify-items: center; gap: 7px; text-align: center; }
.scard b { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: var(--text); }
.sc-ring { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 34%; padding: 2.5px; background: linear-gradient(135deg, var(--amber), var(--paprika)); }
.sc-ring.seen { background: var(--faint); }
.sc-ring.add { background: var(--card2); border: 1.5px dashed var(--glass-line); }
.sc-ring .plus { width: 57px; height: 57px; border-radius: 34%; background: var(--card2); display: grid; place-items: center; color: var(--dim); }
.sc-ring .plus svg { width: 22px; height: 22px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { position: relative; aspect-ratio: 3 / 4.1; border-radius: 20px; background: var(--card); overflow: hidden; }
.g3 .tile { aspect-ratio: 3 / 4.3; border-radius: 13px; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(16, 12, 10, .8), transparent); pointer-events: none; }
.topen { position: absolute; inset: 0; width: 100%; height: 100%; }
.topen img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.tile:hover .topen img { transform: scale(1.05); }
.tv { position: absolute; left: 10px; bottom: 9px; z-index: 1; display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 6px #000; pointer-events: none; }
.g3 .tv { left: 7px; bottom: 6px; }
.tv svg { width: 13px; height: 13px; }
.tcity { position: absolute; left: 8px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 3px; max-width: calc(100% - 16px); padding: 3px 9px 3px 6px; border-radius: 12px; background: rgba(16, 12, 10, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 11.5px; font-weight: 700; pointer-events: none; }
.tcity svg { width: 11px; height: 11px; flex: none; color: var(--amber); }
.tcity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* #57: značka naljepnice na pločici u mreži (profil/pretraga); kad je uz nju i .tcity, pomjeri je udesno da se ne preklapaju */
.tsticker { position: absolute; left: 8px; top: 8px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(16, 12, 10, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 16px; line-height: 1; pointer-events: none; }
.tsticker + .tcity { left: 40px; }
.tdel { position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(16, 12, 10, .68); }
.tdel svg { width: 16px; height: 16px; }
.empty-s { display: grid; justify-items: center; gap: 6px; padding: 52px 24px; text-align: center; color: var(--dim); }
.empty-s b { color: var(--text); font: 700 18px/1.2 var(--display); }

.nlist { display: grid; }
.n { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--line); }
.n[data-vid] { cursor: pointer; }
.n.new { background: rgba(244, 166, 42, .1); border-radius: 16px; padding-inline: 10px; border-bottom-color: transparent; }
.nlogo { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.nlogo svg { width: 40px; height: 40px; stroke: none; }
.nb { flex: 1; min-width: 0; }
.nb p { margin: 0; font-size: 14px; line-height: 1.4; }
.nb span { font-size: 12px; color: var(--dim); }

.phead { display: grid; justify-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.pname { display: flex; align-items: center; gap: 6px; margin-top: 10px; font: 700 26px/1.15 var(--display); }
.pid { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13.5px; color: var(--dim); }
.pplace { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 12.5px; }
.pplace svg { width: 13px; height: 13px; color: var(--amber); }
button.pplace:hover { background: var(--card2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 10px 0 6px; padding: 12px 4px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 22px/1.2 var(--display); }
.stat span { font-size: 12.5px; color: var(--dim); }
.pbtns { display: flex; gap: 8px; margin: 6px 0 2px; }
.pbtns .btn { padding: 0 14px; white-space: nowrap; }
.bio { margin: 8px 0 0; max-width: 300px; font-size: 14px; line-height: 1.45; color: rgba(251, 241, 227, .88); }
.card { margin: 16px 0 0; padding: 14px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.ich { font: 700 17px/1.2 var(--display); }
.card p { margin: 4px 0 10px; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.ib { display: grid; grid-template-columns: 124px 1fr; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; font-weight: 700; }
.ib span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib i { height: 8px; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--amber), var(--amber2)); }
.ptabs { display: flex; margin: 18px -16px 12px; border-bottom: 1px solid var(--faint); }
.ptabs button { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; font-weight: 700; font-size: 13px; color: rgba(251, 241, 227, .5); }
.ptabs button svg { width: 18px; height: 18px; }
.ptabs button.on { color: var(--text); }
.ptabs button.on::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--amber); }

/* sitnice */
.linkbtn { flex: none; margin-left: auto; padding: 4px 2px; font-weight: 800; font-size: 13px; color: var(--amber2); }
.linkbtn:hover { text-decoration: underline; }

/* ------------------------------------------------------------ nalog: pravljenje, potvrda e-pošte, "Moj nalog" */
.wico { width: 66px; height: 66px; margin: 8px 0 6px; display: grid; place-items: center; color: var(--ink); background: var(--amber); border-radius: 24px; transform: rotate(45deg) scale(.82); box-shadow: 0 12px 34px rgba(244, 166, 42, .3); }
.wico svg { width: 30px; height: 30px; transform: rotate(-45deg); }
.wico.ok { color: #fff; background: var(--teal); box-shadow: 0 12px 34px rgba(43, 179, 163, .32); }
.wtext b { color: var(--text); overflow-wrap: anywhere; }
.wnote { margin: 2px 0 0; max-width: 320px; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.wreg .wtext { margin-bottom: 2px; }
.linkbtn.inline { display: inline; margin: 0; padding: 0; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:disabled { color: var(--dim); text-decoration: none; cursor: default; }

/* obrazac */
.aform { width: 100%; margin-top: 4px; text-align: left; gap: 13px; }
.fld { display: grid; gap: 6px; }
.fld > label { font-size: 12.5px; font-weight: 700; color: var(--dim); }
.fld.bad input, .fld.bad .at { border-color: #ff8d7a; }
.fmsg { display: block; font-size: 12.5px; line-height: 1.4; }
.fmsg:empty { display: none; }
.fhint, .fsug { color: var(--dim); }
.ferr { color: #ff8d7a; font-weight: 600; }
.fok { color: #5fd6c7; font-weight: 700; }
.fok svg { display: inline-block; width: 13px; height: 13px; margin: -2px 5px 0 0; vertical-align: middle; stroke-width: 3; }
.fsug .linkbtn { font-weight: 800; }

/* potvrda kodom: "poruka" s kodom (samo u probnom načinu) */
.mailcard { position: relative; width: 100%; display: grid; justify-items: center; gap: 9px; padding: 15px 12px 13px; border-radius: 22px; border: 1.5px dashed rgba(244, 166, 42, .6); background: linear-gradient(165deg, rgba(244, 166, 42, .17), rgba(244, 166, 42, .05)); }
.mc-badge { padding: 3px 11px; border-radius: 999px; background: var(--amber); color: var(--ink); font: 800 11px/1.5 system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.mc-txt { margin: 0; font-size: 12.5px; color: var(--dim); }
.mc-code { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; transition: opacity .2s, filter .2s; }
.mc-code span { flex: 0 1 38px; min-width: 0; height: 52px; display: grid; place-items: center; border-radius: 13px; background: var(--card); border: 1px solid var(--line); font: 800 29px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--amber2); font-variant-numeric: tabular-nums; }
.mc-code i { flex: 0 0 8px; }
.mc-code.flash span { animation: codeIn .5s ease both; }
.mc-code.flash span:nth-child(2) { animation-delay: .04s; } .mc-code.flash span:nth-child(3) { animation-delay: .08s; }
.mc-code.flash span:nth-child(5) { animation-delay: .12s; } .mc-code.flash span:nth-child(6) { animation-delay: .16s; } .mc-code.flash span:nth-child(7) { animation-delay: .2s; }
@keyframes codeIn { from { transform: translateY(-10px) scale(.86); opacity: 0; } }
.mc-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mc-btns .btn svg { width: 15px; height: 15px; }
.mc-life { margin: 0; font-size: 12px; color: var(--dim); }
.mc-life b { color: var(--text); font-variant-numeric: tabular-nums; }
.mailcard.dead .mc-code { opacity: .3; filter: grayscale(1); }
.eform input.codein { text-align: center; font: 800 27px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .28em; text-indent: .28em; padding: 12px 13px; font-variant-numeric: tabular-nums; }
.eform input.codein::placeholder { color: rgba(251, 241, 227, .26); }
.eform input.codein.bad { border-color: #ff8d7a; }
.eform input.codein:disabled { opacity: .5; }
.codein.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.resend { margin-top: 0; }

/* podaci naloga (dobrodošlica i profil) */
.acct { text-align: left; }
.acct .ahead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.arow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.arow span { flex: none; color: var(--dim); }
.arow b { min-width: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.wacct { width: 100%; margin: 4px 0 6px; padding-top: 4px; padding-bottom: 6px; }
.wacct .arow:first-child { border-top: 0; }
.okchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(43, 179, 163, .16); color: #5fd6c7; font: 800 11.5px/1.4 system-ui, sans-serif; white-space: nowrap; font-style: normal; }
.okchip svg { width: 12px; height: 12px; stroke-width: 3; }
.abtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.abtns .btn { flex: 1 1 auto; height: 38px; padding: 0 12px; font-size: 13.5px; white-space: nowrap; }
.eml { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: 14px; background: rgba(251, 241, 227, .04); border: 1px dashed var(--line); }
.eml > div { min-width: 0; display: grid; gap: 2px; }
.eml span { font-size: 12.5px; color: var(--dim); font-weight: 700; }
.eml b { font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }

/* prijava: izbor načina (e-pošta ili davatelj), probna prijava, dovršavanje naloga, brisanje naloga */
.popts { width: 100%; display: grid; gap: 10px; margin-top: 6px; }
.pv { justify-content: flex-start; gap: 12px; height: 50px; padding: 0 14px 0 10px; font-size: 14.5px; }
.pv .pv-t { flex: 1; min-width: 0; padding-right: 6px; text-align: center; line-height: 1.2; }
.pv-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(251, 241, 227, .1); color: var(--amber2); font: 800 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pv-ico svg { width: 17px; height: 17px; }
.btn.primary .pv-ico { background: rgba(26, 17, 8, .14); color: var(--ink); }
.por { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 12px; color: var(--dim); }
.por::before, .por::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wopt .swap { margin-top: 4px; font-size: 13.5px; }
.wprov .mailcard { gap: 6px; }
.pform-host { width: 100%; }
.wfinish .eml { width: 100%; text-align: left; flex-direction: column; align-items: flex-start; gap: 8px; }
.wfinish .eml > div { width: 100%; }
.wfinish .okchip { white-space: normal; }
.adel { margin: 10px 0 0; text-align: center; }
.linkbtn.danger { margin: 0; padding: 6px 8px; color: #ff8d7a; font-weight: 700; font-size: 12.5px; }

/* #208 (27.9.): polje za pretragu u biraču kraja - pojavilo se kad je spisak narastao na 245 zemalja. */
.rpick .rsearch { width: 100%; margin: 0 0 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--text);
  font: 15px/1.3 inherit; -webkit-appearance: none; appearance: none; }
.rpick .rsearch::placeholder { color: rgba(255,255,255,.45); }
.rpick .rsearch:focus { outline: none; border-color: var(--amber, #f4a62a); background: rgba(255,255,255,.09); }
.rpick .rcities .rsearch { margin-top: 4px; }
