/* Extra styles for the live site (on top of app.css from the approved design) */
body{padding-bottom:96px}
.phead{padding-top:140px}
.plhero{padding-top:140px}
.adm{padding-top:110px}
.aside{top:110px;height:calc(100vh - 110px)}
.authw .frm{padding-top:130px}
.hero .in{padding-bottom:130px}
.muted{color:var(--muted)}
.ci{display:inline-flex;align-items:center;gap:6px}
.ci .ic{width:15px;height:15px}
.lnk{border:0;background:none;padding:0;color:var(--red);font-weight:700;font-size:13px;display:inline-flex;gap:5px;align-items:center;cursor:pointer}
.lnk .ic{width:14px;height:14px}
.btn.full{width:100%;justify-content:center}
.btn.sm{padding:6px 10px;font-size:12.5px}
.btn .ic{width:17px;height:17px}
.st3{font-size:20px;margin:22px 0 10px}

/* bottom navigation */
.bnav{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);z-index:60;background:rgba(10,24,56,.94);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-radius:999px;padding:6px;display:flex;gap:2px;box-shadow:0 12px 34px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.08);max-width:calc(100% - 20px)}
.bnav a{color:#fff;opacity:.72;border-radius:999px;padding:9px 14px;font-size:13.5px;font-weight:600;white-space:nowrap;display:flex;gap:7px;align-items:center;transition:background .2s,opacity .2s}
.bnav a:hover{opacity:1;background:rgba(255,255,255,.08)}
.bnav a .ic{width:17px;height:17px}
.bnav a.on{background:var(--gold);color:var(--navy);opacity:1}
@media (max-width:900px){
  .bnav{bottom:max(8px,env(safe-area-inset-bottom));padding:5px;gap:0;width:calc(100% - 16px);justify-content:space-between}
  .bnav a{flex-direction:column;gap:3px;padding:7px 4px;font-size:10px;flex:1;min-width:0;border-radius:16px}
  .bnav a span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .bnav a .ic{width:20px;height:20px}
}

/* header user */
.ava-btn{display:block;border-radius:50%}
.uav{display:inline-grid;place-items:center;border-radius:50%;background:#1f4fb8 center/cover no-repeat;color:#fff;font-weight:700;flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.15)}
.uav.ring-gold{box-shadow:0 0 0 2px var(--gold)}
.uav.ring-silver{box-shadow:0 0 0 2px #c9d1dc}
.uav.ring-black{box-shadow:0 0 0 2px #111,0 0 0 4px var(--gold)}
.hr .btn.red{padding:9px 14px}

/* logos */
.tl{width:28px;height:28px;object-fit:contain;flex:none;display:inline-block;vertical-align:middle}
.tl.sm{width:20px;height:20px}
.tl.md{width:36px;height:36px}
.tl-txt{display:inline-grid;place-items:center;background:var(--navy);color:var(--gold);font-family:var(--head);font-size:10px;border-radius:6px}
.crest-img{width:64px;height:64px;object-fit:contain;flex:none;filter:drop-shadow(0 4px 10px rgba(0,0,0,.15))}
.complogo{height:34px;width:auto;margin-bottom:6px;display:inline-block}
:root[data-theme="dark"] .complogo,:root[data-theme="dark"] .tbl .th img{filter:brightness(0) invert(1)}
.tbl .th img{filter:brightness(0) invert(1)}
.cdteams{display:flex;align-items:center;gap:8px}
.cdteams .tl{background:#fff;border-radius:50%;padding:2px}
.cd{text-decoration:none}
.cd .go{background:var(--navy);color:#fff;display:flex;align-items:center;gap:8px;padding:0 20px;font-weight:700;font-size:14px;white-space:nowrap}
.flag{width:16px;height:11px;object-fit:cover;border-radius:2px;display:inline-block;vertical-align:-1px;margin-right:5px}
.res .t{gap:8px}

/* image fallback */
.noimg{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:6px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:rgba(255,255,255,.35);font-family:var(--head);font-size:14px;letter-spacing:1px;text-transform:uppercase}
.noimg .ic{width:34px;height:34px}
.tile.light .noimg{position:relative;height:150px}
.vid .th .noimg{position:absolute}
.noimg.sm{position:relative;width:96px;height:60px;border-radius:7px}
.noimg.sm .ic{width:18px;height:18px}
.noimg.xs{position:relative;display:inline-block;width:60px;height:38px;border-radius:6px}
.hero .noimg.big{position:absolute}
.tile img,.vid .th img{background:var(--navy)}

/* lists */
.toolbar{display:flex;align-items:center;gap:8px;margin:26px 0 18px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:999px;padding:7px 14px;font-size:13.5px;font-weight:600}
.chip.on{background:var(--navy);color:#fff;border-color:var(--navy)}
:root[data-theme="dark"] .chip.on{background:var(--gold);color:var(--navy);border-color:var(--gold)}
.srch{margin-left:auto;width:280px;max-width:100%}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.grid3 .tile.light{min-height:auto}
.grid3 .tile.light img{height:180px}
.empty{grid-column:1/-1;text-align:center;color:var(--muted);padding:50px 0}
.empty .ic{width:42px;height:42px;opacity:.5}
.loading{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);padding:160px 0 80px}
.spin{width:26px;height:26px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--red);animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}
@media (max-width:900px){.grid3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.grid3{grid-template-columns:1fr}.srch{width:100%}}

/* post */
.phead h1{max-width:900px}
.phead .crumb a:hover{color:var(--gold)}
.vplayer{background:#000}
.vplayer iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vplayer img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:1}
.cform .cme{align-self:flex-start}
.cmt .n a:hover{color:var(--red)}
.cmt p{white-space:pre-wrap;word-break:break-word}
.art p{white-space:pre-wrap}

/* matches */
.fx{display:grid;gap:10px}
.fxr{display:grid;grid-template-columns:120px 1fr 90px 1fr 220px;align-items:center;gap:14px;padding:14px 18px}
.fxr.live{box-shadow:0 0 0 2px var(--red),var(--shadow)}
.fxd b{display:block;font-size:14.5px}
.fxd span{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.fxt{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px}
.fxt.r{justify-content:flex-end;text-align:right}
.fxs{text-align:center;font-family:var(--head);font-size:24px}
.fxc{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:600}
.fxc small{flex-basis:100%;color:var(--muted);font-weight:500}
.ldot{width:8px;height:8px;border-radius:50%;background:var(--red);display:inline-block;animation:blink 1s infinite}
@media (max-width:900px){.fxr{grid-template-columns:1fr 70px 1fr;gap:8px}.fxd,.fxc{grid-column:1/-1}.fxd{display:flex;gap:10px;align-items:center}.fxt{font-size:13px}.fxt .tl{width:28px;height:28px}}
.tbl table td,.tbl table th{white-space:nowrap}
.card.tbl{overflow-x:auto}

/* player */
.plhero .ph .phi{width:100%;height:100%;display:grid;place-items:center;font-family:var(--head);font-size:80px;color:var(--gold);background:linear-gradient(135deg,var(--navy2),var(--navy))}
.plhero .crumb{font-size:13px;opacity:.7;display:flex;gap:6px;align-items:center}
.plhero .crumb .ic{width:14px;height:14px}
.pc .av{background-position:center top!important}

/* card page */
.okbox{display:flex;gap:14px;align-items:center;padding:16px 18px;margin-bottom:16px;border-left:4px solid var(--green)}
.okbox>.ic{width:28px;height:28px;color:var(--green)}
.okbox b{display:block}
.okbox span{color:var(--muted);font-size:13.5px}
.okbox a{color:var(--red);font-weight:700;font-size:14px}
.okbox.off{border-left-color:var(--muted)}
.okbox.off>.ic{color:var(--muted)}
.hint{display:flex;gap:8px;align-items:center;font-size:13.5px;color:var(--muted);flex-wrap:wrap}
.hint .ic{width:16px;height:16px}
.hint a{color:var(--red);font-weight:700}
.mc-stage .mc{will-change:transform}

/* login */
.why{display:flex;gap:12px;margin-top:22px;padding:14px;border-radius:12px;background:rgba(34,158,217,.08);font-size:13.5px}
.why .ic{color:#229ed9;width:20px;height:20px;flex:none;margin-top:2px}
.why b{display:block;margin-bottom:2px}
.why span{color:var(--muted)}
.devbox{display:flex;gap:10px;align-items:center;background:rgba(245,196,0,.16);border:1px dashed #b38f00;border-radius:10px;padding:12px;font-size:13.5px;margin:14px 0}
.devbox b{font-family:"Courier New",monospace;font-size:18px;letter-spacing:3px}
.sentok[hidden]{display:none}
.sentok{display:flex;gap:8px;align-items:center;color:var(--green);font-weight:700;margin:12px 0;font-size:14px}
.otp{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.otp input{width:100%;aspect-ratio:1/1.15;border:2px solid var(--line);background:var(--card);color:var(--text);border-radius:12px;text-align:center;font-family:var(--head);font-size:28px;outline:none;transition:border-color .2s}
.otp input:focus{border-color:var(--gold);box-shadow:0 0 0 4px rgba(245,196,0,.18)}
.tgb{margin-top:6px}

/* profile form */
.pform{max-width:860px;padding:26px 20px 60px}
.pform .frm2{padding:24px}
.g2f{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.ta{width:100%;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:12px;font:inherit;resize:vertical}
.frow{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.upl{display:flex}
.cbx input{width:20px;height:20px;accent-color:var(--green)}
small.muted{display:block;margin-top:4px;font-size:12px}
@media (max-width:620px){.g2f{grid-template-columns:1fr!important}}

/* public profile */
.prof-head{background:linear-gradient(120deg,var(--navy) 40%,var(--navy2));color:#fff;padding:140px 0 34px;position:relative;overflow:hidden}
.prof-head:after{content:"";position:absolute;right:-120px;top:-120px;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(245,196,0,.2),transparent 65%)}
.prof-head .wrap{display:flex;gap:28px;align-items:center;position:relative;z-index:2}
.prof-head .uav{box-shadow:0 0 0 4px var(--gold),0 20px 40px rgba(0,0,0,.4)}
.prof-head h1{font-size:44px;margin:0 0 4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.prof-head .mbadge{font-size:13px;padding:4px 10px}
.prof-head .handle{opacity:.7;display:flex;align-items:center;gap:6px}
.prof-head .handle .ic{width:14px;height:14px}
.prof-head p{max-width:560px;opacity:.85;margin:12px 0 16px}
.pstats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:-24px;position:relative;z-index:3}
.pstats .card{padding:16px;display:flex;gap:12px;align-items:flex-start}
.pstats .ii{width:42px;height:42px;border-radius:11px;background:rgba(245,196,0,.16);color:#a88600;display:grid;place-items:center;flex:none}
:root[data-theme="dark"] .pstats .ii{color:var(--gold)}
.pstats small{color:var(--muted);font-size:12px;display:block}
.pstats b{display:block;font-size:17px}
.pstats span{font-size:12.5px;color:var(--green);font-weight:700}
@media (max-width:900px){.pstats{grid-template-columns:1fr 1fr}.prof-head .wrap{flex-direction:column;text-align:center}.prof-head h1{justify-content:center;font-size:32px}.prof-head .handle{justify-content:center}}

/* admin */
.amain .top{flex-wrap:wrap}
.at .pt{display:flex;align-items:center;gap:10px;max-width:420px}
.at .pt span{overflow:hidden;text-overflow:ellipsis;font-weight:600}
.at .tt{display:block;max-width:260px;overflow:hidden;text-overflow:ellipsis}
.at td{vertical-align:middle}
.pan .ph2 form.inp{width:240px}
.frm2 h3{display:flex;gap:8px;align-items:center}
.adm .frm2{margin-bottom:20px}
.mback{position:fixed;inset:0;z-index:80;background:rgba(5,11,26,.6);display:grid;place-items:center;padding:16px;animation:fadein .2s}
.mbox{width:min(760px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;padding:0}
.mh{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid var(--line)}
.mh h3{margin:0}
.mbody{padding:16px 18px;overflow:auto}
.mbox .frow{padding:0 18px 18px}
fieldset{border:1px solid var(--line);border-radius:12px;padding:12px;margin:0 0 12px;display:grid;gap:8px}
legend{font-weight:800;font-size:12.5px;padding:0 6px;color:var(--muted)}
.ib.lt{background:var(--bg);color:var(--text)}

/* toast */
#toast{position:fixed;left:50%;top:120px;transform:translateX(-50%);z-index:90}
.tst{display:flex;gap:10px;align-items:center;background:var(--navy);color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 14px 30px rgba(0,0,0,.3);font-weight:600;font-size:14px;animation:up .3s ease forwards;max-width:calc(100vw - 32px)}
.tst .ic{color:var(--green)}
.tst.bad .ic{color:#ff7b7b}

/* ticker always pinned under header */
.mq.top{display:flex}
.hero{margin-top:0}

@media (max-width:620px){.cd .go span{display:none}.cd .go{padding:0 14px}}

/* logo */
.logo-img{width:44px;height:44px;border-radius:50%;flex:none;box-shadow:0 4px 14px rgba(0,0,0,.3)}
footer .logo-img{width:52px;height:52px}
.face .em-img{width:38px;height:38px;border-radius:50%;flex:none;box-shadow:0 0 0 2px var(--fo)}
.author{display:flex;gap:12px;align-items:center;padding:12px 14px;margin:16px 0}
.author b{display:flex;align-items:center;gap:4px}
.author span{font-size:13px;color:var(--muted)}
.wbtn{background:var(--gold)!important;color:var(--navy)!important}
/* card calculator */
.calc{padding:18px;margin-top:18px}
.calc h3{font-size:18px;margin:0 0 12px;display:flex;gap:8px;align-items:center}
.cbar{display:grid;grid-template-columns:120px 1fr 90px;gap:10px;align-items:center;font-size:13.5px;margin:8px 0}
.cbar div{height:12px;background:var(--bg);border-radius:6px;overflow:hidden}
.cbar i{display:block;height:100%;border-radius:6px;transition:width .6s cubic-bezier(.2,.7,.2,1)}
.cbar i.pr{background:#9aa6bd}.cbar i.vl{background:linear-gradient(90deg,var(--gold),#ffdf5e)}
.cbar b{text-align:right}
.cnet{display:flex;gap:8px;align-items:center;background:rgba(20,160,90,.1);color:var(--green);padding:10px 12px;border-radius:10px;margin-top:10px;font-weight:700}
.cnet b{margin-left:auto;font-size:18px}
.cval{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:6px;font-size:13px}
.cval li{display:flex;justify-content:space-between;gap:10px;color:var(--muted)}
.cval b{color:var(--text);white-space:nowrap}
.blist li{align-items:flex-start}
.blist li div b{font-weight:600;display:block}
.blist li div small{display:block;color:var(--muted);font-size:12.5px}
.faq{display:grid;gap:8px}
.fq{padding:0;cursor:pointer}
.fqq{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;font-weight:700;font-size:14.5px}
.fq.open .fqq .ic{transform:rotate(180deg)}
.fqa{padding:0 16px 14px;color:var(--muted);font-size:14px;line-height:1.6}
.cmp td,.cmp th{text-align:center}
.cmp td:first-child,.cmp th:first-child{text-align:left;white-space:normal}
.cmp td:first-child .ic{width:16px;height:16px;vertical-align:-3px;color:#b38f00}
.cmp .yes{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(20,160,90,.12);color:var(--green)}
.cmp .yes .ic{width:15px;height:15px}
.cmp .nop{color:var(--muted)}
.cmp tr.tot td{background:rgba(245,196,0,.12);font-weight:700}
@media (max-width:620px){.cbar{grid-template-columns:90px 1fr 70px}}

/* ---- card flip: works on iPhone / Telegram browser too (no reliance on backface-visibility) ---- */
.mc,.mc-in,.face{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}
.face{-webkit-backface-visibility:hidden;backface-visibility:hidden}
.face.front{transform:rotateY(0deg) translateZ(1px);visibility:visible;transition:visibility 0s linear .38s}
.face.back{transform:rotateY(180deg) translateZ(1px);visibility:hidden;transition:visibility 0s linear .38s}
.mc.flip .face.front{visibility:hidden}
.mc.flip .face.back{visibility:visible}
.face .holo{will-change:transform}
@media (hover:none){.mc{transform:none!important}}
/* phone sizes */
@media (max-width:620px){
  .mc-stage{max-width:100%}
  .face .top{top:6%;gap:6px}
  .face .em-img{width:28px;height:28px}
  .face .brand{font-size:12.5px;letter-spacing:1px}
  .face .brand small{font-size:6px;letter-spacing:1.6px}
  .face .tierp{font-size:9px;padding:2px 7px;letter-spacing:1.5px}
  .face .photo{top:27%;width:23%;border-radius:10px}
  .face .photo div{border-radius:8px}
  .face .who{left:32%;top:28%;right:29%}
  .face .who .nm{font-size:14px;margin-bottom:5px}
  .face .who .no{font-size:10px;letter-spacing:1px}
  .face .who .meta2{gap:10px;margin-top:5px}
  .face .who .meta2 b{font-size:9.5px}
  .face .who small{font-size:6px}
  .face .qr{top:27%;width:22%;padding:3px;border-radius:7px}
  .face .band{font-size:8px;letter-spacing:2px;height:12%}
  .face.back .bt{font-size:8.5px;line-height:1.4}
  .face.back .bt b{font-size:12px}
  .calc{padding:14px}
}

/* comment form (fix stretched button) */
.cform{display:flex;gap:10px;align-items:flex-end}
.cform textarea{flex:1;min-width:0;width:auto}
.cform .btn{width:auto!important;margin:0!important;padding:12px 16px;flex:none}
@media (max-width:620px){.cform .cme{display:none}}

/* header: messages button */
.mbtn{position:relative}
.mbtn i{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--red);color:#fff;font-style:normal;font-size:10.5px;font-weight:800;display:grid;place-items:center;box-shadow:0 0 0 2px var(--navy)}
.mbtn i[hidden]{display:none}
#userBox{display:flex;align-items:center;gap:8px}
@media (max-width:440px){#themeBtn{display:none}.hbar{gap:6px}.hr{gap:6px}.logo-img{width:40px;height:40px}}

/* profile actions */
.pacts{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:900px){.pacts{justify-content:center}}

/* messages list */
.phead.slim{padding-bottom:22px}
.msgs{max-width:760px;padding-top:18px;padding-bottom:40px}
.srch2{margin-bottom:12px}
.ulist{padding:4px 0;margin-bottom:14px;overflow:hidden}
.urow{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--line)}
.urow:first-child{border-top:0}
.urow:hover{background:rgba(245,196,0,.06)}
.urow .ut{flex:1;min-width:0}
.urow .ut b{display:flex;align-items:center;gap:4px;font-size:15px}
.urow .ut span{display:block;color:var(--muted);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.urow .ut span.unr{color:var(--text);font-weight:700}
.urow .ul{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.urow .ul small{color:var(--muted);font-size:11.5px;white-space:nowrap}
.urow .cnt{font-style:normal;background:var(--red);color:#fff;font-size:11px;font-weight:800;min-width:20px;height:20px;border-radius:10px;display:grid;place-items:center;padding:0 6px}
.mtabs{display:flex;gap:6px;margin:6px 0 12px}
.mtabs button{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:7px 14px;font-weight:700;font-size:13.5px;color:var(--muted)}
.mtabs button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
:root[data-theme="dark"] .mtabs button.on{background:var(--gold);color:var(--navy);border-color:var(--gold)}

/* chat */
body[data-page="chat"]{padding-bottom:0}
body[data-page="chat"] footer,body[data-page="chat"] .bnav{display:none}
.chat{position:fixed;left:0;right:0;top:108px;bottom:0;display:flex;flex-direction:column;max-width:820px;margin:0 auto;background:var(--bg)}
.chead{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--card);border-bottom:1px solid var(--line)}
.chead .cu{flex:1;display:flex;align-items:center;gap:10px;min-width:0}
.chead .cu b{display:flex;align-items:center;gap:4px;font-size:15px}
.chead .cu span{font-size:12.5px;color:var(--muted)}
.thread{flex:1;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:6px;-webkit-overflow-scrolling:touch}
.bub{max-width:78%;align-self:flex-start;background:var(--card);border-radius:16px 16px 16px 4px;padding:8px 12px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.bub.me{align-self:flex-end;background:var(--navy);color:#fff;border-radius:16px 16px 4px 16px}
.bub p{margin:0;white-space:pre-wrap;word-break:break-word;font-size:15px}
.bub small{display:flex;justify-content:flex-end;align-items:center;gap:4px;font-size:11px;opacity:.6;margin-top:2px}
.bub .tick .ic{width:14px;height:14px}
.bub .who2{display:block;font-size:12px;color:var(--gold)}
.cbox{display:flex;gap:8px;align-items:flex-end;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line)}
.cbox textarea{flex:1;min-width:0;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:20px;padding:10px 14px;font:inherit;font-size:15px;resize:none;max-height:120px;outline:none}
.cbox .btn{width:44px!important;height:44px;padding:0;justify-content:center;border-radius:50%;margin:0!important}
.adm-th{max-height:70vh;padding:16px;background:var(--bg)}
.rules p{line-height:1.7;margin:0 0 12px}
.chead .ib{width:38px;height:38px;flex:none;align-self:center;display:grid;place-items:center;border-radius:10px}
.chat{top:110px}

.dlrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.dlrow .btn{padding:8px 12px;font-size:13px}

/* channels + donate */
.comm{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.cm{display:flex;align-items:center;gap:12px;padding:16px;border-radius:var(--r);background:var(--card);box-shadow:var(--shadow);transition:transform .2s}
.cm:hover{transform:translateY(-3px)}
.cm .ii{width:46px;height:46px;border-radius:12px;background:rgba(34,158,217,.12);color:#229ed9;display:grid;place-items:center;flex:none}
.cm>div:nth-child(2){flex:1;min-width:0}
.cm b{display:block;font-size:15px;overflow:hidden;text-overflow:ellipsis}
.cm span{font-size:13px;color:var(--muted)}
.cm>.ic{color:var(--muted)}
.cm.don{background:linear-gradient(135deg,#e3262f,#ff5a7a);color:#fff}
.cm.don .ii{background:rgba(255,255,255,.2);color:#fff}
.cm.don span,.cm.don>.ic{color:rgba(255,255,255,.85)}
footer .fdon{color:#ff7b93!important;font-weight:700}
@media (max-width:900px){.comm{grid-template-columns:1fr}}
.face .qr .qrl{width:28%;height:28%;border-radius:50%;padding:1px;background:#fff}
.face .qr .qrl img{width:100%;height:100%;display:block}

/* membership certificate */
.certpage{padding:130px 0 60px;background:radial-gradient(120% 80% at 50% 0%,#12265a,#050b1a 70%);min-height:100vh}
.certv{display:flex;gap:12px;align-items:center;max-width:980px;margin:0 auto 16px;padding:12px 16px;border-radius:12px;color:#fff}
.certv.ok{background:rgba(20,160,90,.18);border:1px solid rgba(20,160,90,.5)}
.certv.bad{background:rgba(227,38,47,.18);border:1px solid rgba(227,38,47,.5)}
.certv .ic{width:30px;height:30px}
.certv.ok .ic{color:#3ddc84}.certv.bad .ic{color:#ff7b7b}
.certv b{display:block}
.certv span{font-size:12.5px;opacity:.75}
.cert{position:relative;max-width:980px;margin:0 auto;aspect-ratio:1376/768;container-type:inline-size;border-radius:10px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.6);color:#f7e7b0}
.cert .cbg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cert .clogo{position:absolute;left:50%;top:11.6%;width:8.6%;transform:translateX(-50%);border-radius:50%}
.cert .ctext{position:absolute;left:14%;right:14%;top:31%;text-align:center}
.cert .ct1{font-family:var(--head);font-size:4.6cqw;letter-spacing:.5cqw;text-transform:uppercase;background:linear-gradient(180deg,#fff1a8,#f5c400 60%,#b88a00);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.1}
.cert .ct2{font-size:1.5cqw;letter-spacing:.3cqw;text-transform:uppercase;opacity:.8;margin-top:1.4cqw}
.cert .cname{font-family:var(--head);font-size:5cqw;color:#fff;margin:.6cqw 0 .4cqw;line-height:1.15;text-shadow:0 .3cqw 1cqw rgba(0,0,0,.4)}
.cert .ct3{font-size:1.55cqw;opacity:.9;max-width:62cqw;margin:0 auto}
.cert .ct3 b{color:#f5c400}
.cert .crow{display:flex;justify-content:center;gap:5cqw;margin-top:2.6cqw}
.cert .crow small{display:block;font-size:1.05cqw;letter-spacing:.2cqw;text-transform:uppercase;opacity:.65}
.cert .crow b{font-family:"Courier New",monospace;font-size:1.7cqw;color:#fff}
.cert .csign{position:absolute;left:12%;bottom:12%;text-align:left;border-top:1px solid rgba(245,196,0,.6);padding-top:.6cqw;min-width:18cqw}
.cert .csign b{display:block;font-family:var(--head);font-size:1.7cqw;letter-spacing:.2cqw;color:#f5c400}
.cert .csign small{font-size:1.1cqw;opacity:.7}
.certfoot{display:flex;align-items:center;gap:12px;max-width:980px;margin:16px auto 0;padding:12px 16px;border-radius:12px;background:rgba(255,255,255,.06);color:#fff}
.certfoot>div{flex:1}
.certfoot b{display:flex;align-items:center;gap:4px}
.certfoot span{font-size:13px;opacity:.7}
.certfoot .btn{color:#fff;border-color:rgba(255,255,255,.3)}
body[data-page="cert"] .bnav{display:none}

/* certificate layout fix: everything centred in the middle, signature under the details */
.cert .ctext{top:31%;left:18%;right:18%}
.cert .crow{gap:4.5cqw;margin-top:1.8cqw}
.cert .csign{position:static;display:inline-block;margin-top:1.6cqw;padding-top:.5cqw;min-width:16cqw;text-align:center;border-top:1px solid rgba(245,196,0,.55)}
.cert .csign b{font-size:1.5cqw}
.cert .csign small{display:block;font-size:1cqw}

/* ===== bottom navigation v2: light, roomy, labels never cut ===== */
.bnav{background:rgba(255,255,255,.94);border:1px solid rgba(10,24,56,.08);box-shadow:0 10px 30px rgba(10,24,56,.18);padding:6px;gap:4px;border-radius:22px}
:root[data-theme="dark"] .bnav{background:rgba(15,24,48,.94);border-color:rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.45)}
.bnav a{color:#5b6782;opacity:1;flex-direction:column;gap:3px;padding:6px 14px;border-radius:16px;font-size:11.5px;font-weight:700;min-width:64px}
:root[data-theme="dark"] .bnav a{color:#9aa7c4}
.bnav a .bi{position:relative;width:40px;height:30px;border-radius:12px;display:grid;place-items:center;transition:background .2s,transform .2s}
.bnav a .ic{width:22px;height:22px;stroke-width:1.9}
.bnav a .bl{white-space:nowrap}
.bnav a:hover{background:none;color:var(--navy)}
:root[data-theme="dark"] .bnav a:hover{color:#fff}
.bnav a.on{background:none;color:var(--navy)}
:root[data-theme="dark"] .bnav a.on{color:#fff}
.bnav a.on .bi{background:var(--gold);color:var(--navy);transform:translateY(-1px)}
.bnav .bdot{position:absolute;top:2px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px #fff}
@media (max-width:900px){
  .bnav{width:calc(100% - 16px);justify-content:space-between;padding:5px 4px}
  .bnav a{flex:1;min-width:0;padding:4px 0;font-size:10.5px}
  .bnav a .bi{width:44px;height:30px}
}
/* menu sheet */
.sheet-back{position:fixed;inset:0;z-index:85;background:rgba(5,11,26,.45);display:flex;align-items:flex-end;justify-content:center;animation:fadein .2s}
.sheet{width:min(560px,100%);background:var(--card);border-radius:22px 22px 0 0;padding:10px 16px calc(18px + env(safe-area-inset-bottom));animation:up .28s ease forwards;transform:translateY(30px)}
.sgrab{width:44px;height:5px;border-radius:3px;background:var(--line);margin:0 auto 14px}
.sgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.sitem{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:12px;font-weight:600;padding:8px 2px;border-radius:14px}
.sitem:hover{background:var(--bg)}
.sitem .sic{width:52px;height:52px;border-radius:16px;background:var(--bg);display:grid;place-items:center;color:var(--navy)}
:root[data-theme="dark"] .sitem .sic{color:var(--gold)}
.sitem .sic .ic{width:24px;height:24px}
.sitem.don .sic{background:linear-gradient(135deg,#e3262f,#ff5a7a);color:#fff}
.srow{display:flex;justify-content:center;margin-top:12px}
/* ===== Reels ===== */
body[data-page="reels"]{padding-bottom:0}
body[data-page="reels"] footer{display:none}
.reels{position:fixed;left:0;right:0;top:110px;bottom:0;overflow-y:auto;scroll-snap-type:y mandatory;background:#000;-webkit-overflow-scrolling:touch}
.reel{position:relative;height:calc(100vh - 110px);height:calc(100dvh - 110px);scroll-snap-align:start;max-width:480px;margin:0 auto;overflow:hidden;color:#fff;background:#0a1020}
.rmedia{position:absolute;inset:0;display:grid;place-items:center}
.rmedia img{width:100%;height:100%;object-fit:cover}
.rmedia iframe{width:100%;height:100%;border:0;position:relative;z-index:3}
.rnoimg{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(160deg,var(--navy2),#050b1a)}
.rnoimg .ic{width:70px;height:70px;color:rgba(245,196,0,.35)}
.rplay{position:absolute;z-index:2;width:72px;height:72px;border-radius:50%;border:0;background:rgba(227,38,47,.92);color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.rplay .ic{width:30px;height:30px;fill:#fff;margin-left:3px}
.rshade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.2) 45%,transparent 70%),linear-gradient(180deg,rgba(0,0,0,.35),transparent 20%);pointer-events:none}
.rinfo{position:absolute;left:14px;right:78px;bottom:96px;z-index:2}
.rauth{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.rauth b{font-size:15px}
.rinfo h3{font-family:var(--head);text-transform:uppercase;font-size:22px;line-height:1.15;margin:0 0 6px}
.rtext{margin:0 0 6px;font-size:14px;opacity:.9;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}
.rtext.open{-webkit-line-clamp:unset}
.rinfo small{opacity:.6;font-size:12px}
.rrail{position:absolute;right:10px;bottom:110px;z-index:2;display:flex;flex-direction:column;gap:16px}
.rbtn{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:12px;font-weight:700}
.rbtn .ic{width:30px;height:30px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}
.rbtn.on .ic{fill:var(--red);color:var(--red)}
.rfab{position:fixed;right:16px;bottom:100px;z-index:5;width:56px;height:56px;border-radius:50%;background:var(--gold);color:var(--navy);display:grid;place-items:center;box-shadow:0 10px 26px rgba(0,0,0,.4)}
.rfab .ic{width:26px;height:26px}
.empty-reel{display:grid;place-items:center;text-align:center;padding:30px}
.empty-reel .ic{width:56px;height:56px;color:var(--gold)}
.empty-reel p{opacity:.8;max-width:320px;margin:8px auto 18px}
@media (min-width:900px){.rinfo{bottom:40px}.rrail{bottom:60px}.rfab{bottom:40px}}
.rfab{top:124px;bottom:auto;right:14px;width:50px;height:50px}
@media (min-width:900px){.rfab{top:130px;bottom:auto}}

.cbtn{background:var(--gold)!important;color:var(--navy)!important}
@media (max-width:440px){.langs button{padding:5px 5px}}

.agree{display:flex;gap:10px;align-items:flex-start;margin:14px 0 4px;font-size:13.5px;font-weight:500;line-height:1.45;cursor:pointer}
.agree input{width:20px;height:20px;flex:none;margin-top:1px;accent-color:var(--red)}
.agree a{color:var(--red);font-weight:700}

/* gentle popups */
.nudge{position:fixed;z-index:70;left:50%;bottom:100px;width:min(400px,calc(100% - 24px));transform:translate(-50%,24px);opacity:0;transition:.3s cubic-bezier(.2,.7,.2,1);background:var(--card);color:var(--text);border-radius:18px;padding:16px;box-shadow:0 20px 50px rgba(10,24,56,.3);border:1px solid var(--line)}
.nudge.in{transform:translate(-50%,0);opacity:1}
.nudge .nx{position:absolute;top:8px;right:8px;border:0;background:none;color:var(--muted);width:30px;height:30px;display:grid;place-items:center}
.nudge .nh{display:flex;gap:12px;padding-right:20px}
.nudge .nic{width:44px;height:44px;border-radius:12px;background:rgba(245,196,0,.18);color:#b38f00;display:grid;place-items:center;flex:none}
.nudge .nic.don{background:linear-gradient(135deg,#e3262f,#ff5a7a);color:#fff}
.nudge b{display:block;font-size:15px}
.nudge p{margin:3px 0 0;font-size:13.5px;color:var(--muted)}
.nudge .nb{display:flex;gap:8px;margin-top:12px}
.nudge .stars{display:flex;justify-content:center;gap:6px;margin:12px 0 6px}
.nudge .stars button{border:0;background:none;color:var(--line);padding:2px}
.nudge .stars button .ic{width:34px;height:34px}
.nudge .stars button.on{color:var(--gold)}
.nudge .stars button.on .ic{fill:var(--gold)}
.nudge textarea{margin-top:6px}
@media (min-width:900px){.nudge{left:auto;right:24px;bottom:24px;transform:translate(0,24px)}.nudge.in{transform:none}}

/* ===== ☰ burger + drawer menu ===== */
.burger{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px}
.burger span{display:block;width:18px;height:2px;border-radius:2px;background:#fff;transition:.3s}
.burger:hover span:nth-child(2){width:12px;margin-left:6px}
#drawer{position:fixed;inset:0;z-index:95;pointer-events:none}
#drawer.open{pointer-events:auto}
.dback{position:absolute;inset:0;background:rgba(5,11,26,.5);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;transition:opacity .35s ease}
#drawer.open .dback{opacity:1}
.dpanel{position:absolute;top:0;right:0;bottom:0;width:min(380px,88vw);background:var(--card);color:var(--text);display:flex;flex-direction:column;box-shadow:-20px 0 50px rgba(0,0,0,.3);transform:translateX(105%);transition:transform .38s cubic-bezier(.22,.8,.2,1);border-radius:22px 0 0 22px}
#drawer.open .dpanel{transform:none}
.dhead{display:flex;align-items:center;gap:10px;padding:18px 16px 14px;background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;border-radius:22px 0 0 0}
.duser{flex:1;display:flex;align-items:center;gap:12px;min-width:0}
.duser b{display:flex;align-items:center;gap:4px;font-size:16px}
.duser span{font-size:12.5px;opacity:.7}
.dhead .btn{flex:1;justify-content:center}
.dclose{border:0;width:38px;height:38px;border-radius:11px;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;flex:none}
.dbody{flex:1;overflow-y:auto;padding:8px 12px 24px;-webkit-overflow-scrolling:touch}
.dsec{margin-top:12px}
.dsec>small{display:block;font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted);margin:0 8px 6px}
.dlink{display:flex;align-items:center;gap:12px;padding:9px 8px;border-radius:12px;font-weight:600;font-size:14.5px;opacity:0;transform:translateX(18px);transition:background .2s}
#drawer.open .dlink{animation:din .4s cubic-bezier(.22,.8,.2,1) forwards}
#drawer.open .dsec:nth-child(1) .dlink{animation-delay:.08s}#drawer.open .dsec:nth-child(2) .dlink{animation-delay:.14s}
#drawer.open .dsec:nth-child(3) .dlink{animation-delay:.2s}#drawer.open .dsec:nth-child(4) .dlink{animation-delay:.26s}
@keyframes din{to{opacity:1;transform:none}}
.dlink:hover{background:var(--bg)}
.dlink .dic{width:36px;height:36px;border-radius:11px;background:var(--bg);display:grid;place-items:center;color:var(--navy);flex:none}
:root[data-theme="dark"] .dlink .dic{color:var(--gold)}
.dlink .dic .ic{width:19px;height:19px}
.dlink>span:nth-child(2){flex:1}
.dlink .dext{width:16px;height:16px;color:var(--muted)}
.dlink.gold .dic{background:var(--gold);color:var(--navy)}
.dlink.don .dic{background:linear-gradient(135deg,#e3262f,#ff5a7a);color:#fff}
.dlangs{display:flex;gap:6px;flex-wrap:wrap;padding:0 4px}
.dlangs button{flex:1;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:10px;padding:9px 0;font-weight:700;font-size:13.5px;min-width:52px}
.dlangs button.on{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.drow{display:flex;gap:8px;padding:0 4px}
.drow .btn{flex:1;justify-content:center}
.dfoot{font-size:11.5px;color:var(--muted);text-align:center;margin:18px 0 0}
body.noscroll{overflow:hidden}
/* phone header: language + theme + search live in the menu */
@media (max-width:620px){#langs,#themeBtn,.hr a.ib.hide-sm{display:none!important}}

/* ===== chat v2: replies, media, reactions, voice, typing ===== */
.chat.kb{z-index:70;top:0}
.chead .cu span.typing{color:var(--green);font-weight:600;display:inline-flex;align-items:center;gap:6px}
.tdots{display:inline-flex;gap:3px}
.tdots i{width:5px;height:5px;border-radius:50%;background:currentColor;animation:td 1.2s infinite}
.tdots i:nth-child(2){animation-delay:.15s}.tdots i:nth-child(3){animation-delay:.3s}
@keyframes td{0%,60%,100%{opacity:.25;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.bub{position:relative}
.bub.media{padding:4px}
.bub.media small{position:absolute;right:10px;bottom:8px;background:rgba(0,0,0,.45);color:#fff;opacity:1;padding:1px 6px;border-radius:8px}
.bimg{display:block;max-width:100%;max-height:340px;border-radius:12px;cursor:zoom-in;background:var(--bg)}
.bvid{display:block;max-width:100%;max-height:360px;border-radius:12px;background:#000}
.baud{display:flex;align-items:center;gap:8px;padding:4px 2px;min-width:230px}
.baud .ic{width:20px;height:20px;flex:none}
.baud audio{height:36px;max-width:240px}
.brep{border-left:3px solid var(--gold);background:rgba(245,196,0,.12);border-radius:8px;padding:4px 8px;margin-bottom:6px;font-size:13px;cursor:pointer}
.bub.me .brep{background:rgba(255,255,255,.12)}
.brep b{display:block;font-size:12px;color:var(--gold)}
.brep span{display:block;opacity:.85;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.breact{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.rx{border:0;background:var(--bg);border-radius:12px;padding:2px 7px;font-size:14px;display:inline-flex;align-items:center;gap:3px}
.rx b{font-size:11px;color:var(--muted)}
.rx.mine{background:rgba(245,196,0,.3);box-shadow:inset 0 0 0 1px var(--gold)}
.bub.me .rx{background:rgba(255,255,255,.15);color:#fff}
.bub.me .rx b{color:rgba(255,255,255,.8)}
.bact{position:absolute;top:50%;transform:translateY(-50%);right:-34px;width:28px;height:28px;border-radius:50%;border:0;background:var(--card);color:var(--muted);display:grid;place-items:center;opacity:0;transition:opacity .15s;box-shadow:var(--shadow)}
.bub.me .bact{right:auto;left:-34px}
.bact .ic{width:16px;height:16px}
.bub:hover .bact{opacity:1}
@media (hover:none){.bact{display:none}}
.bmenu{position:absolute;z-index:5;bottom:calc(100% + 6px);left:0;background:var(--card);color:var(--text);border-radius:16px;box-shadow:0 14px 40px rgba(0,0,0,.25);padding:6px;animation:up .18s ease forwards;min-width:250px}
.bub.me .bmenu{left:auto;right:0}
.bmr{display:flex;gap:2px}
.bmr button{border:0;background:none;font-size:24px;padding:4px 5px;border-radius:10px;transition:transform .12s}
.bmr button:hover{transform:scale(1.25);background:var(--bg)}
.bmreply{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;padding:9px 8px;font-weight:600;font-size:14px;border-top:1px solid var(--line);margin-top:4px;color:var(--text)}
.bmreply .ic{width:17px;height:17px}
.bub.flash{animation:flash 1.2s ease}
@keyframes flash{0%,100%{box-shadow:none}30%{box-shadow:0 0 0 3px var(--gold)}}
.replybar,.recbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:var(--card);border-top:1px solid var(--line)}
.replybar[hidden],.recbar[hidden],.cbox[hidden]{display:none}
.replybar>div{flex:1;min-width:0;border-left:3px solid var(--gold);padding-left:8px}
.replybar b{display:block;font-size:12.5px;color:#a88600}
.replybar span{display:block;font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recbar{padding:12px 14px calc(12px + env(safe-area-inset-bottom))}
.recbar span:not(.rdot){flex:1;color:var(--muted);font-size:14px}
.recbar b{font-variant-numeric:tabular-nums}
.rdot{width:10px;height:10px;border-radius:50%;background:var(--red);animation:blink 1s infinite}
.cbox .attach{cursor:pointer;flex:none;width:44px;height:44px;border-radius:50%}
.cbox .mic[hidden],.cbox .snd[hidden]{display:none}
.viewer{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.92);display:grid;place-items:center;animation:fadein .2s}
.viewer img{max-width:96vw;max-height:90vh;border-radius:8px}
.viewer .ib{position:absolute;top:16px;right:16px}

/* single card page */
.buy.one{grid-template-columns:1fr 1fr}
.pricebox{display:flex;align-items:baseline;gap:8px;margin:4px 0 16px}
.pricebox b{font-family:var(--head);font-size:48px;line-height:1;color:var(--text)}
.pricebox span{color:var(--muted);font-weight:600}
.blist.big{gap:12px;margin-bottom:22px}
.blist.big li{font-size:16px;gap:12px;align-items:center}
.blist.big li .ic{width:22px;height:22px;color:#b38f00;flex:none}
:root[data-theme="dark"] .blist.big li .ic{color:var(--gold)}
@media (max-width:900px){.buy.one{grid-template-columns:1fr}}
/* trusted source badge */
.vbadge{display:inline-grid;place-items:center;margin-left:4px;color:#1d9bf0;vertical-align:-2px}
.vbadge .ic{width:15px!important;height:15px!important;fill:#1d9bf0;stroke:#fff}

/* ===== chat v3 ===== */
.mhead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.gava{background:linear-gradient(135deg,#1f4fb8,#a259ff)!important;font-family:var(--head)}
.brow{display:flex;align-items:flex-end;gap:6px;max-width:100%}
.brow.me{justify-content:flex-end}
.brow .bub{max-width:78%}
.bava{flex:none;margin-bottom:2px}
.bwho{display:flex;align-items:center;gap:3px;font-size:12.5px;font-weight:700;color:#1f4fb8;margin-bottom:2px}
:root[data-theme="dark"] .bwho{color:#7fa6ff}
.bub.stk{background:none!important;box-shadow:none!important;padding:0}
.bub.stk small{background:rgba(0,0,0,.4);color:#fff;opacity:1;padding:1px 6px;border-radius:8px;width:max-content;margin-left:auto}
.bstk{width:150px;height:150px;object-fit:contain;display:block}
.pinbar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:var(--card);border-bottom:1px solid var(--line);cursor:pointer}
.pinbar[hidden]{display:none}
.pinbar>.ic{color:var(--gold);width:18px;height:18px;flex:none}
.pinbar div{min-width:0;border-left:3px solid var(--gold);padding-left:8px}
.pinbar b{display:block;font-size:12px;color:#a88600}
.pinbar span{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tawrap{flex:1;min-width:0;position:relative;display:flex}
.tawrap textarea{flex:1;padding-right:44px!important}
.stkbtn{position:absolute;right:6px;bottom:6px;border:0;background:none;color:var(--muted);width:32px;height:32px;display:grid;place-items:center}
.stkbtn .ic{width:22px;height:22px}
.stkpanel{background:var(--card);border-top:1px solid var(--line);max-height:280px;overflow-y:auto;padding:10px}
.stkpanel[hidden]{display:none}
.stkgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px}
.stkgrid button{border:0;background:none;border-radius:12px;padding:6px;aspect-ratio:1}
.stkgrid button:hover{background:var(--bg)}
.stkgrid img,.stkgrid video{width:100%;height:100%;object-fit:contain}
.bmi{display:flex;align-items:center;gap:8px;width:100%;border:0;background:none;padding:9px 8px;font-weight:600;font-size:14px;color:var(--text);border-top:1px solid var(--line)}
.bmi .ic{width:17px;height:17px}
/* attachment preview sheet (inside the chat, like Telegram) */
.attsheet{position:absolute;left:0;right:0;bottom:0;z-index:6;background:var(--card);border-radius:20px 20px 0 0;box-shadow:0 -14px 40px rgba(0,0,0,.25);transform:translateY(100%);transition:transform .25s cubic-bezier(.2,.8,.2,1);max-height:85%;display:flex;flex-direction:column}
.attsheet.in{transform:none}
.atthead{display:flex;align-items:center;gap:10px;padding:10px 12px}
.attgrid{display:grid;gap:4px;padding:0 12px;overflow-y:auto}
.attgrid.n1{grid-template-columns:1fr}.attgrid.n2{grid-template-columns:1fr 1fr}.attgrid.n3{grid-template-columns:1fr 1fr 1fr}
.attgrid img,.attgrid video{width:100%;max-height:52vh;object-fit:cover;border-radius:10px;background:#000}
.attgrid.n1 img,.attgrid.n1 video{object-fit:contain}
.attfile{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px}
.attfoot{display:flex;gap:8px;align-items:flex-end;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.attfoot textarea{flex:1;border:1px solid var(--line);background:var(--bg);color:var(--text);border-radius:20px;padding:10px 14px;font:inherit;resize:none}
.attfoot .btn{width:46px;height:46px;border-radius:50%;padding:0;justify-content:center}
.spin.sm{width:18px;height:18px;border-width:2px;border-color:rgba(255,255,255,.4);border-top-color:#fff}
.chat{position:fixed}
/* chat backgrounds (Gold) */
.chat.bg-navy .thread{background:linear-gradient(160deg,#0a1838,#12265a)}
.chat.bg-gold .thread{background:linear-gradient(160deg,#fff6d6,#f5d873)}
.chat.bg-bernabeu .thread{background:radial-gradient(120% 60% at 50% 0%,#1f4fb8 0%,#0a1838 60%,#050b1a)}
.chat.bg-night .thread{background:linear-gradient(180deg,#0b0f1e,#1c1035)}
.chat.bg-sunset .thread{background:linear-gradient(160deg,#ff9a8b,#ff6a88 50%,#ff99ac)}
.chat.bg-mint .thread{background:linear-gradient(160deg,#d4fc79,#96e6a1)}
.chat.bg-grass .thread{background:repeating-linear-gradient(90deg,#2f8f3a 0 40px,#2a8034 40px 80px)}
.chat.bg-navy .bwho,.chat.bg-bernabeu .bwho,.chat.bg-night .bwho,.chat.bg-grass .bwho{color:#9fc0ff}
/* group sheet + pickers */
.sheet.tall{max-height:88vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px}
.sheet h3{margin:0 0 6px}
.ginfo{display:flex;gap:14px;align-items:center;margin-bottom:6px}
.ginfo h3{margin:0}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.plist{display:flex;flex-direction:column;gap:2px;margin-top:8px;max-height:260px;overflow-y:auto}
.prow{display:flex;align-items:center;gap:10px;border:0;background:none;padding:8px;border-radius:12px;text-align:left;color:var(--text)}
.prow:hover{background:var(--bg)}
.prow span{flex:1;font-weight:600;font-size:14px}
.prow small{display:block;color:var(--muted);font-weight:500}
.prow>.ic{color:var(--muted)}
.prow.on>.ic{color:var(--green)}
/* Gold style settings */
.goldstyle{margin-top:18px;padding:16px;border-radius:14px;background:rgba(245,196,0,.1);border:1px solid rgba(245,196,0,.4)}
.goldstyle h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:18px}
.palette,.bgpick{display:flex;flex-wrap:wrap;gap:8px}
.pc2{width:34px;height:34px;border-radius:50%;border:2px solid var(--line);background:var(--card);display:grid;place-items:center;color:var(--muted)}
.pc2.on{box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--navy)}
.namepv{font-family:var(--head);font-size:24px;text-transform:uppercase;margin:10px 0 4px}
.bgc{width:56px;height:56px;border-radius:12px;border:2px solid var(--line);background:var(--bg)}
.bgc.on{box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--navy)}
.bgc.bg-navy{background:linear-gradient(160deg,#0a1838,#12265a)}.bgc.bg-gold{background:linear-gradient(160deg,#fff6d6,#f5d873)}
.bgc.bg-bernabeu{background:radial-gradient(120% 60% at 50% 0%,#1f4fb8,#0a1838 60%,#050b1a)}.bgc.bg-night{background:linear-gradient(180deg,#0b0f1e,#1c1035)}
.bgc.bg-sunset{background:linear-gradient(160deg,#ff9a8b,#ff6a88 50%,#ff99ac)}.bgc.bg-mint{background:linear-gradient(160deg,#d4fc79,#96e6a1)}
.bgc.bg-grass{background:repeating-linear-gradient(90deg,#2f8f3a 0 12px,#2a8034 12px 24px)}

/* ===== match centre ===== */
a.card.res,a.card.fxr,a.card.match{color:inherit;display:grid}
a.card.match{display:block}
a.card.res:hover,a.card.fxr:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(10,24,56,.14)}
.mhero{background:radial-gradient(120% 90% at 50% 0%,#1f4fb8,#0a1838 60%,#050b1a);color:#fff;padding:130px 0 28px;text-align:center}
.mcomp{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:14px;opacity:.9}
.mcomp img{height:26px;filter:brightness(0) invert(1)}
.mscore{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px auto 10px;max-width:640px}
.mteam{display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff}
.mteam b{font-family:var(--head);font-size:20px;text-transform:uppercase}
.mlogo{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.4))}
.mres small{display:inline-flex;align-items:center;gap:6px;font-size:13px;opacity:.8;margin-top:4px}
.mnum{font-family:var(--head);font-size:64px;line-height:1}
.mnum span{opacity:.5;margin:0 6px}
.mvs{font-family:var(--head);font-size:40px;opacity:.8}
.mscorers{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:640px;margin:6px auto 0;font-size:13px;opacity:.85}
.mscorers div{display:flex;flex-direction:column;gap:2px}
.mscorers div:first-child{align-items:flex-end;text-align:right}.mscorers div:last-child{align-items:flex-start;text-align:left}
.mcd{display:flex;justify-content:center;margin-top:8px}
.mcd .nums{display:flex;gap:10px}
.mcd .n{background:rgba(255,255,255,.1);border-radius:10px;padding:8px 12px;min-width:62px}
.mcd .n b{display:block;font-family:var(--head);font-size:28px}
.mcd .n span{font-size:11px;opacity:.7}
.mmeta{display:flex;justify-content:center;align-items:center;gap:6px;font-size:13px;opacity:.7;margin-top:14px;flex-wrap:wrap}
.mmeta .ic{width:14px;height:14px}
.mtl{padding:8px 0}
.tlr{display:grid;grid-template-columns:52px 34px 1fr;align-items:center;padding:9px 16px;border-top:1px solid var(--line)}
.tlr:first-child{border-top:0}
.tlr.away{direction:rtl}.tlr.away .tlp{text-align:right}
.tlm{font-weight:800;color:var(--muted);font-size:13px;direction:ltr}
.tli{font-size:18px;text-align:center}
.tlp b{display:block;font-size:14.5px}
.tlp small{color:var(--muted);font-size:12.5px}
.stt{padding:14px 16px}
.sthead{display:flex;justify-content:space-between;margin-bottom:6px}
.str{display:grid;grid-template-columns:60px 1fr 60px;align-items:center;gap:6px;padding:8px 0;text-align:center}
.str>b{font-size:15px}
.str>span{font-size:13px;color:var(--muted);font-weight:600}
.sbar{grid-column:1/-1;display:flex;gap:4px;height:6px}
.sbar i{display:block;height:100%;border-radius:3px;background:var(--line)}
.sbar i.h{margin-left:auto}
.sbar i.lead{background:var(--gold)}
.lus{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.lu{padding:14px}
.luh{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.luh b{display:block;font-size:15px}
.luh span{font-size:12.5px;color:var(--muted)}
.lus1{display:block;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:12px 0 4px}
.lup{display:flex;align-items:center;gap:10px;padding:6px 0;border-top:1px solid var(--line);font-size:14px}
.lup i{font-style:normal;width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;flex:none}
.lup.bench i{background:var(--bg);color:var(--text)}
.lup span{flex:1}
.lup small{color:var(--muted);font-size:12px}
.forms{display:grid;gap:14px}
.fr{padding:14px}
.frow2{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.fg{text-align:center;padding:8px 4px;border-radius:10px;background:var(--bg)}
.fg b{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;color:#fff;font-size:13px}
.fg.w b{background:var(--green)}.fg.l b{background:var(--red)}.fg.d b{background:#9aa6bd}
.fg span{display:block;font-weight:700;font-size:13px;margin-top:4px}
.fg small{color:var(--muted);font-size:11.5px}
@media (max-width:620px){.mlogo{width:60px;height:60px}.mnum{font-size:48px}.mteam b{font-size:15px}.lus{grid-template-columns:1fr}.mhero{padding-top:124px}}

.bub.deleted{opacity:.6;border:1px dashed var(--muted)}
.bdel{display:flex;align-items:center;gap:4px;font-size:11.5px;font-weight:700;color:var(--red);margin-bottom:3px}
.bdel .ic{width:13px;height:13px}
.bmi.danger{color:var(--red)}

/* presence */
.uav{position:relative}
.uav.on::after{content:"";position:absolute;right:2%;bottom:2%;width:26%;height:26%;min-width:9px;min-height:9px;max-width:14px;max-height:14px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px var(--card)}
#cstatus.onl{color:#22c55e;font-weight:600}
.urow .ut em{display:block;font-style:normal;font-size:11.5px;color:var(--muted)}
.urow .ut em.onl{color:#22c55e;font-weight:600}
.pseen{font-size:13px;opacity:.75;margin-bottom:2px}
.pseen.onl{color:#4ade80;opacity:1;font-weight:700}

.chat.bg-img .thread{background:linear-gradient(rgba(0,0,0,.06),rgba(0,0,0,.06)),var(--chatbg) center/cover no-repeat}
.bgpick.big{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.bgpick.big .bgc{width:100%;height:auto;aspect-ratio:3/4;border-radius:14px}
.bgc.gal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;background:var(--bg) center/cover no-repeat;color:var(--muted);font-size:12px;font-weight:700}
.bgc.gal .ic{width:26px;height:26px}
.bgc.gal[style] span{background:rgba(0,0,0,.5);color:#fff;padding:2px 8px;border-radius:8px;margin-top:auto;margin-bottom:8px}

.srcline{margin:18px 0 6px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.srcline b{color:var(--text)}

.acts .pdel{color:var(--red);margin-left:auto}

/* season leaders */
.ldgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px}
.ldc{padding:16px;border-radius:20px}
.ldh{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.ldh .ic{width:20px;height:20px}
.ldh b{font-size:17px;font-weight:800}
.ldh span{margin-left:auto;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.ldc.g .ldh .ic{color:#3b82f6}.ldc.a .ldh .ic{color:#22c55e}.ldc.r .ldh .ic{color:#f5b301}
.ldr{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--bg);margin-top:8px;color:inherit}
.ldr>i{font-style:normal;font-weight:800;color:var(--muted);width:16px;text-align:center}
.ldr img,.ldno{width:46px;height:46px;border-radius:50%;object-fit:cover;object-position:top;background:#fff;flex:none}
.ldno{display:grid;place-items:center;background:var(--line);font-weight:800}
.ldr>div{flex:1;min-width:0}.ldr>div b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.ldr>div small{color:var(--muted);font-size:12.5px}
.ldr em{font-style:normal;text-align:right;display:flex;flex-direction:column;align-items:flex-end;line-height:1.05}
.ldr em strong{font-size:24px;font-weight:800}.ldr em small{font-size:11px;color:var(--muted)}
.ldc.g em strong{color:#3b82f6}.ldc.a em strong{color:#22c55e}.ldc.r em strong{color:#e0a000}
.ldc.g .ldr.top{background:rgba(59,130,246,.1)}.ldc.a .ldr.top{background:rgba(34,197,94,.1)}.ldc.r .ldr.top{background:rgba(245,179,1,.12)}
.ldnote{font-size:12px;margin-top:10px;display:flex;gap:6px;align-items:flex-start}.ldnote .ic{width:14px;height:14px;flex:none;margin-top:2px}
/* predict card */
.nudge.pred{padding:14px 14px 12px}
.pnh{display:flex;align-items:center;gap:8px;margin-bottom:10px;padding-right:26px}.pnh .ic{width:18px;height:18px;color:var(--red)}
.pnh b{font-weight:800}.pnh span{margin-left:auto;font-size:12px;color:var(--muted)}
.pgrid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.pt{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0}
.pt img{width:40px;height:40px;object-fit:contain}.pt b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pscore{display:flex;align-items:center;gap:6px}.pscore>span{font-weight:800;font-size:22px}
.pst{display:flex;flex-direction:column;align-items:center}
.pst button{border:0;background:var(--bg);color:var(--text);width:40px;height:28px;border-radius:9px;display:grid;place-items:center}
.pst strong{font-size:28px;font-weight:800;line-height:1.25;min-width:30px;text-align:center}
.pnote{font-size:11.5px;color:var(--muted);text-align:center;margin:8px 0 10px}
/* intro */
.intro-back{align-items:center}
.sheet.intro{text-align:center;max-height:92vh;overflow:auto}
.inlogo{width:76px;height:76px;margin:4px auto 6px;display:block}
.insub{color:var(--muted);margin:4px 0 14px}
.inlist{display:flex;flex-direction:column;gap:8px;text-align:left;margin-bottom:12px}
.inlist div{display:flex;gap:10px;align-items:center;background:var(--bg);border-radius:12px;padding:10px 12px;font-size:14px}
.inlist .ic{width:20px;height:20px;color:var(--red);flex:none}
.inrules{text-align:left;font-size:13px;margin-bottom:10px;background:var(--bg);border-radius:12px;padding:10px 12px}
.inrules summary{cursor:pointer;font-weight:700;display:flex;gap:8px;align-items:center}.inrules summary .ic{width:16px;height:16px}
.inrules p{margin:8px 0 0;color:var(--muted)}
.sheet.intro .agree{justify-content:center;margin-bottom:12px;text-align:left}
.sheet.intro #ingo{width:100%}.sheet.intro #ingo:disabled{opacity:.45}

/* predictions page */
.pbox{padding:16px;border-radius:20px}
.pbox.empty{text-align:center;color:var(--muted);padding:30px 16px}.pbox.empty .ic{width:30px;height:30px}
.pbox .pt img{width:54px;height:54px}.pbox .pt b{font-size:14px}
.pbox .pst strong{font-size:36px}.pbox .pst button{width:48px;height:32px}
.pmine{display:flex;align-items:center;gap:6px;justify-content:center;font-size:13px;margin:0 0 12px;color:var(--muted)}.pmine .ic{width:16px;height:16px;color:#22c55e}.pmine b{color:var(--text)}
.psh{font-size:20px;margin:24px 0 10px;display:flex;align-items:center}.psh span{margin-left:auto;font-family:inherit;font-size:14px;color:var(--red);font-weight:800}
.plist{padding:6px 12px;border-radius:18px}
.prow{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.prow:last-child{border:0}
.prow>i{font-style:normal;font-weight:800;color:var(--muted);width:18px;text-align:center}
.prow.m0>i{color:#e0a000}.prow.m1>i{color:#9ca3af}.prow.m2>i{color:#c2763a}
.prow>div{flex:1;min-width:0}.prow>div b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prow>div small{color:var(--muted);font-size:12px}
.prow em{font-style:normal;font-weight:800;font-size:16px}
.prow .ppts{font-size:20px;color:var(--red)}
.pp{min-width:38px;text-align:center;border-radius:9px;padding:3px 6px;font-weight:800;font-size:13px}
.pp.ok{background:rgba(34,197,94,.14);color:#16a34a}.pp.no{background:var(--bg);color:var(--muted)}.pp.wait{color:var(--muted)}.pp .ic{width:15px;height:15px}
.uav.ph{width:36px;height:36px;border-radius:50%;background:var(--bg);display:grid;place-items:center;color:var(--muted)}
.predbtn{width:100%;margin-top:12px;justify-content:center;padding:13px 18px;border-radius:14px;font-size:15px}

/* prediction corner widget */
.predw{position:fixed;z-index:65;right:14px;bottom:24px;display:flex;align-items:center;gap:10px;padding:10px 34px 10px 12px;border-radius:16px;background:var(--card);color:var(--text);border:1px solid var(--line);box-shadow:0 14px 34px rgba(10,24,56,.25);transform:translateY(20px);opacity:0;transition:.3s cubic-bezier(.2,.7,.2,1);max-width:calc(100% - 28px)}
.predw.in{transform:none;opacity:1}
.pwl{display:flex;align-items:center;gap:3px;flex:none}.pwl img{width:28px;height:28px;object-fit:contain}.pwl span{font-weight:800;color:var(--muted)}
.pwt{display:flex;flex-direction:column;line-height:1.2;min-width:0}.pwt b{font-size:14px;font-weight:800;color:var(--red)}.pwt small{font-size:11.5px;color:var(--muted);white-space:nowrap}
.pwx{position:absolute;top:4px;right:4px;border:0;background:none;color:var(--muted);width:26px;height:26px;display:grid;place-items:center;padding:0}.pwx .ic{width:15px;height:15px}
@media (max-width:900px){.predw{bottom:96px;right:12px}}

/* channels */
.gava.ch{display:grid;place-items:center;background:linear-gradient(135deg,var(--navy,#0a1838),#1e3a8a);color:#f5c518}
.gava.ch .ic{width:46%;height:46%}
.mhbtn{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.btn.wl{color:#fff;border-color:rgba(255,255,255,.4)}
.mtabs{overflow-x:auto}
.urow .chb{flex:none}
.cbox[hidden]{display:none!important}
.chjoin{padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line);display:flex;justify-content:center}
.chjoin .btn{width:100%;max-width:420px;justify-content:center}
.chabout{font-size:14px;color:var(--muted);margin:6px 0 0;white-space:pre-wrap}
/* sending… */
.brow.pending .bub{opacity:.65}
/* one-time prediction */
.pscore.locked strong{font-size:40px;font-weight:800;min-width:34px;text-align:center}
.gava.ch svg,.gava.ch .ic{color:#f5c518!important;stroke:#f5c518!important;opacity:1!important}

/* verified tick (admins) */
.vtick{display:inline-flex;vertical-align:middle;margin-left:4px;color:#1d9bf0;font-style:normal}
.vtick .ic,.vtick svg{width:1em;height:1em;min-width:15px;min-height:15px;fill:#1d9bf0;stroke:#fff}
/* photo viewer */
.viewer{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.97);animation:fadein .18s;display:block;transition:background .15s}
.viewer.out{opacity:0;transition:opacity .18s}
.vtop{position:absolute;top:0;right:0;left:0;display:flex;justify-content:flex-end;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 12px 12px;z-index:2;background:linear-gradient(rgba(0,0,0,.55),transparent)}
.vtop .ib{background:rgba(255,255,255,.14);color:#fff;border:0}
.vstage{position:absolute;inset:0;display:grid;place-items:center;overflow:hidden}
.vstage img{max-width:100vw;max-height:100vh;object-fit:contain;cursor:zoom-in;user-select:none;-webkit-user-select:none;transition:transform .12s}
.viewer.zoom .vstage{overflow:auto;place-items:start;-webkit-overflow-scrolling:touch}
.viewer.zoom .vstage img{max-width:none;max-height:none;width:220vw;cursor:zoom-out}
.vplayer img,.rmedia img,.art img,.prof-head .uav img{cursor:zoom-in}
/* admin on phones: menu as one scrolling row */
@media (max-width:900px){
  .adm{display:block;padding-top:110px}
  .aside{position:sticky;top:110px;z-index:20;height:auto!important;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:8px 10px;scrollbar-width:none}
  .aside::-webkit-scrollbar{display:none}
  .aside a{flex:none;padding:8px 12px;font-size:13px;white-space:nowrap;border-radius:10px}
  .amain{padding:16px 12px 120px!important}
  .amain .top{flex-wrap:wrap;gap:8px}
  .amain .top .h{font-size:26px;width:100%}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .kpi{padding:12px!important}
  .pan{overflow-x:auto}
  .at{min-width:640px}
}
/* admin visits */
.vpad{padding:16px}
.vh{font-size:18px;margin:0 0 12px}
.vbars{display:flex;align-items:flex-end;gap:6px;height:170px;overflow-x:auto}
.vbars>div{flex:1;min-width:22px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px}
.vbars i{display:block;width:100%;background:linear-gradient(var(--red),#ff7a7a);border-radius:6px 6px 2px 2px}
.vbars b{font-size:11px}.vbars small{font-size:10px;color:var(--muted)}
.vgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:14px}
.vgrid .pan{margin:0}
.vact{max-height:460px;overflow:auto}
.vrow{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);color:inherit}
.vrow:last-child{border:0}
.vic .ic{width:16px;height:16px}
.vrow>div{flex:1;min-width:0}.vrow b{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vrow small{color:var(--muted);font-size:12px}
.vrow em{font-style:normal;font-size:11.5px;color:var(--muted);white-space:nowrap}
.vline{display:flex;justify-content:space-between;align-items:center;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.vline span{display:flex;align-items:center;gap:6px}.vline .ic{width:15px;height:15px}
.vbars>div{max-width:44px}
@media (max-width:900px){.kpi{gap:10px!important;align-items:center}.kpi .ii{width:36px!important;height:36px!important;flex:none}.kpi span{font-size:12px;line-height:1.25}.kpi b{font-size:22px!important}}

.vtick.gold{color:#e0a800}.vtick.gold .ic,.vtick.gold svg{fill:#f5c400;stroke:#fff}

.predw.hid,.predw.away{transform:translateY(160%)!important;opacity:0!important;pointer-events:none}
@media (max-width:560px){
  .pstats .card{flex-direction:column;align-items:flex-start;gap:8px}
  .pstats .card>div:not(.ii){min-width:0;width:100%}
  .pstats .card span,.pstats .card b{overflow-wrap:anywhere}
  .predw{padding:8px 30px 8px 10px;gap:8px}.pwl img{width:24px;height:24px}.pwt b{font-size:13px}
}

/* channel posts */
.chrow{justify-content:center}
.bub.chpost{max-width:min(560px,94%);width:100%;background:var(--card);color:var(--text);border-radius:16px;padding:10px 12px 0}
.chhead{display:flex;align-items:center;gap:7px;margin-bottom:6px}.chhead b{font-size:13.5px;color:#1f6fd1}
.chmeta{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.chmeta .ic{width:13px;height:13px;margin-right:3px}.chv{display:inline-flex;align-items:center}
.chsign{margin-right:auto;font-weight:600}
.edt{font-style:italic;opacity:.75;margin-right:4px}
.chbar{display:flex;align-items:center;border-top:1px solid var(--line);margin:8px -12px 0}
.chbar button{border:0;background:none;color:#1f6fd1;padding:10px 12px;display:flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;cursor:pointer}
.chbar .chc{flex:1}.chbar .chc span{flex:1;text-align:left}.chbar .ic{width:17px;height:17px}
.chbar .chs{border-left:1px solid var(--line)}
/* comments sheet */
.cmpost{background:var(--bg);border-radius:12px;padding:10px 12px;font-size:13.5px;color:var(--muted);margin-bottom:10px;white-space:pre-wrap}
.cmlist{max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:4px 0 10px}
.cmrow{display:flex;gap:10px;align-items:flex-start}.cmrow>div{flex:1;min-width:0}
.cmrow b{font-size:13.5px}.cmrow p{margin:2px 0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.cmrow small{color:var(--muted);font-size:11.5px}
.cmrow .bstk{width:90px;height:90px}.cmrow .bimg{max-height:200px}
.cmform{display:flex;gap:8px;position:sticky;bottom:0;background:var(--card);padding-top:8px}
.cmform input{flex:1;border:1px solid var(--line);border-radius:12px;padding:11px 12px;background:var(--bg);color:var(--text);font:inherit}
.cmjoin{text-align:center;padding:10px}
/* channel info */
.chinfo{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;margin-bottom:8px}
.chinfo .h{margin:6px 0 0;font-size:24px}
.chava{position:relative;display:inline-block}.chava.edit{cursor:pointer}
.chava .cam{position:absolute;right:-2px;bottom:-2px;width:30px;height:30px;border-radius:50%;background:var(--red);color:#fff;display:grid;place-items:center;box-shadow:0 0 0 3px var(--card)}
.chava .cam .ic{width:16px;height:16px}
.chlink{display:flex;align-items:center;gap:8px;background:var(--bg);border-radius:12px;padding:6px 6px 6px 12px;margin:10px 0}
.chlink>.ic{width:16px;height:16px;color:var(--muted);flex:none}.chlink span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px;color:#1f6fd1}
.swrow{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 2px;cursor:pointer}
.swrow span{display:flex;align-items:center;gap:8px}.swrow .ic{width:17px;height:17px}.swrow input{width:20px;height:20px;accent-color:var(--red)}
.chsec{background:var(--bg);border-radius:12px;padding:10px 12px;margin:8px 0}
.chsec summary{font-weight:700;cursor:pointer;display:flex;align-items:center;gap:8px}.chsec summary .ic{width:17px;height:17px}
.chq{margin-bottom:10px}
.cmform .btn{width:auto!important;flex:none;padding:0 16px}

/* channel menu rows (Telegram style) */
.mgroup{background:var(--bg);border-radius:14px;margin:10px 0;overflow:hidden}
.mrow{display:flex!important;align-items:center;gap:12px;width:100%;border:0;background:none;color:var(--text);padding:13px 14px;font:inherit;font-size:15px;text-align:left;cursor:pointer;border-bottom:1px solid var(--line)}
.mgroup .mrow:last-child{border-bottom:0}
.mrow .mico{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:rgba(31,111,209,.12);color:#1f6fd1;flex:none}
.mrow .mico .ic{width:18px;height:18px}
.mrow .mlab{flex:1;font-weight:600}
.mrow em{font-style:normal;color:var(--muted);font-weight:700}
.mrow .mchev .ic{width:17px;height:17px;color:var(--muted)}
.mrow input[type=checkbox]{width:22px;height:22px;accent-color:var(--red)}
.mrow.accent{color:#1f6fd1}.mrow.danger{color:var(--red)}.mrow.danger .mico{background:rgba(227,38,47,.12);color:var(--red)}
.shead{display:flex;align-items:center;gap:10px;margin-bottom:12px}.shead .h{margin:0;font-size:22px}
#modal .urow .btn.sm{flex:none;white-space:nowrap}
/* quick reactions on channel posts */
.chbar .chr{border-left:1px solid var(--line)}
.bub{position:relative}
.rqpick{position:absolute;right:8px;bottom:46px;z-index:5;display:flex;gap:2px;background:var(--card);border-radius:999px;padding:6px 8px;box-shadow:0 10px 30px rgba(0,0,0,.25);animation:fadein .15s}
.rqpick button{border:0;background:none;font-size:24px;line-height:1;padding:4px;cursor:pointer;transition:transform .12s}
.rqpick button:active,.rqpick button:hover{transform:scale(1.25)}
.chpost .breact{margin-top:6px}

/* day in review */
.dgday{padding:0;margin-bottom:12px;overflow:hidden}
.dgday>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;cursor:pointer;list-style:none}
.dgday>summary::-webkit-details-marker,.dgit>summary::-webkit-details-marker{display:none}
.dgday>summary b{display:flex;align-items:center;gap:8px;font-size:16px}.dgday>summary b .ic{width:18px;height:18px;color:var(--red)}
.dgday>summary span{color:var(--muted);font-size:13px}
.dgit{border-top:1px solid var(--line)}
.dgit>summary{display:flex;align-items:flex-start;gap:10px;padding:12px 16px;cursor:pointer;list-style:none}
.dgit>summary>div{flex:1;min-width:0}.dgit small{display:block;color:var(--muted);font-size:12px;font-weight:700}.dgit b{font-size:14.5px;line-height:1.35}
.dgic{width:30px;height:30px;border-radius:9px;background:rgba(227,38,47,.1);color:var(--red);display:grid;place-items:center;flex:none}.dgic .ic{width:16px;height:16px}
.dgch{width:18px;height:18px;color:var(--muted);transition:transform .2s;flex:none;margin-top:6px}.dgit[open] .dgch{transform:rotate(180deg)}
.dgit p{margin:0 16px 8px 56px;padding:10px 12px;border-left:3px solid var(--gold);background:var(--bg);border-radius:0 10px 10px 0;font-size:14px;line-height:1.5}
.dglink{display:inline-flex;align-items:center;gap:6px;margin:0 16px 12px 56px;font-size:13px;font-weight:700;color:var(--red)}.dglink .ic{width:14px;height:14px}

/* ---- Telegram-like voice messages ---- */
.vmsg{display:flex;align-items:center;gap:10px;min-width:220px;max-width:280px;padding:4px 2px 2px}
.vplay{width:46px;height:46px;border-radius:50%;border:0;flex:none;display:grid;place-items:center;background:var(--gold);color:#0a1838;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.bub.me .vplay{background:#fff;color:var(--navy)}
.vplay .ic{width:22px;height:22px;fill:currentColor}
.vbody{flex:1;min-width:0}
.vwave{display:flex;align-items:center;gap:2px;height:30px;cursor:pointer}
.vwave i{flex:1;min-width:2px;max-width:4px;border-radius:2px;background:currentColor;opacity:.35;transition:opacity .1s}
.vwave i.on{opacity:1;background:var(--gold)}
.bub.me .vwave i.on{background:#fff}
.vmeta{display:flex;align-items:center;gap:6px;font-size:12px;opacity:.75;margin-top:2px}
.vtime{display:inline-flex;align-items:center;gap:4px}.vtime .ic{width:12px;height:12px}
.vdot{width:6px;height:6px;border-radius:50%;background:var(--gold);display:inline-block}
.vmsg.playing .vplay{transform:scale(1.04)}
/* ---- Telegram-like photos: edge to edge, time over the picture ---- */
.bub.media{padding:3px;overflow:hidden}
.bub.media .bimg,.bub.media .bvid{border-radius:13px;width:100%;max-width:300px;max-height:400px;object-fit:cover}
.bub:not(.media) .bimg,.bub:not(.media) .bvid{margin:-5px -9px 6px;width:calc(100% + 18px);max-width:none;border-radius:13px 13px 6px 6px}
.bub.media small{right:9px;bottom:9px;padding:2px 7px;border-radius:10px;background:rgba(0,0,0,.5);backdrop-filter:blur(4px)}
.bub.stk{background:none!important;box-shadow:none}
.bstk{width:170px;height:170px}
/* ---- sticker panel tabs ---- */
.stktabs{display:flex;gap:6px;padding:8px 10px 0}
.stktabs button{border:0;background:var(--bg);color:var(--text);border-radius:12px;padding:6px 12px;font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px;cursor:pointer}
.stktabs button img{width:20px;height:20px;border-radius:50%}
.stktabs button.on{background:var(--navy);color:#fff}
.stkgrid img,.stkgrid video{width:100%;aspect-ratio:1;object-fit:contain}
/* ---- reaction animation ---- */
.rx.pop{animation:rxpop .45s cubic-bezier(.2,1.8,.4,1)}
@keyframes rxpop{0%{transform:scale(.4)}60%{transform:scale(1.35)}100%{transform:scale(1)}}
.rfly{position:fixed;z-index:300;pointer-events:none;animation:rfly var(--d,1s) ease-out forwards}
@keyframes rfly{0%{transform:translate(0,0) scale(.6);opacity:1}100%{transform:translate(var(--dx,0),-120px) scale(1.2);opacity:0}}

/* Android app download bar */
.apkbar{position:fixed;left:50%;z-index:49;width:min(520px,calc(100% - 20px));transform:translate(-50%,-12px);opacity:0;transition:.3s;display:flex;align-items:center;gap:10px;padding:10px 10px 10px 12px;background:var(--card);color:var(--text);border-radius:16px;box-shadow:0 12px 30px rgba(10,24,56,.25);border:1px solid var(--line)}
.apkbar.in{transform:translate(-50%,0);opacity:1}
.apkbar img{width:40px;height:40px;border-radius:50%;flex:none}
.apkbar>div{flex:1;min-width:0;line-height:1.25}.apkbar b{display:block;font-size:14px}.apkbar span{font-size:12px;color:var(--muted)}
.apkbar .btn{flex:none;white-space:nowrap}
.apkbar.away{display:none}
.bub.voice{min-width:250px}.bub.voice small{margin-top:-14px}
/* chat photos: show the whole picture (no cropping), like Telegram */
.bub.media .bimg,.bub.media .bvid{width:auto;height:auto;max-width:min(300px,100%);max-height:420px;object-fit:contain;display:block}
.bub:not(.media) .bimg{width:calc(100% + 18px);height:auto;object-fit:contain;max-height:420px}
.bimg{background:transparent}

/* admin: app downloads + QR */
.dlrow{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-start}
.dlq{display:flex;flex-direction:column;gap:8px;width:200px;flex:none}
.dlq img{width:200px;border-radius:16px;display:block}
.dlst{flex:1;min-width:240px}
.dlnums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0 10px}
.dlnums div{background:rgba(31,79,184,.07);border-radius:12px;padding:8px 10px}
.dlnums b{display:block;font-size:22px}.dlnums small{color:#6b7280;font-size:12px}
@media (max-width:640px){.dlq{width:100%}.dlq img{width:100%;max-width:320px;margin:0 auto}}
