
@font-face{font-family:'Noto Sans Tamil';font-weight:400;font-display:swap;src:url(/fonts/noto-sans-tamil-tamil-400-normal.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Noto Sans Tamil';font-weight:600;font-display:swap;src:url(/fonts/noto-sans-tamil-tamil-600-normal.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Baloo Thambi 2';font-weight:700;font-display:swap;src:url(/fonts/baloo-thambi-2-tamil-700-normal.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Baloo Thambi 2';font-weight:800;font-display:swap;src:url(/fonts/baloo-thambi-2-tamil-800-normal.woff2) format('woff2');unicode-range:U+0964-0965,U+0B82-0BFA,U+200C-200D,U+20B9,U+25CC}
@font-face{font-family:'Baloo Thambi 2';font-weight:800;font-display:swap;src:url(/fonts/baloo-thambi-2-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF}
@font-face{font-family:Inter;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:Inter;font-weight:500;font-display:swap;src:url(/fonts/inter-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}
@font-face{font-family:Inter;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122}

:root{--accent:#1e40af;--accent2:#0ea5e9;--orange:#f97316;--bg:#f1f5f9;--panel:#fff;--text:#0f172a;--muted:#64748b;--out:#dbeafe;--in:#fff;--line:#e2e8f0;--warn:#b45309;--bad:#dc2626;--fs:15px}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:Inter,'Noto Sans Tamil',sans-serif;background:var(--bg);color:var(--text);font-size:var(--fs);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
button{font:inherit}
.app{display:flex;height:100%;max-width:1150px;margin:0 auto;background:var(--panel);box-shadow:0 0 30px rgba(0,0,0,.06)}
.side{width:370px;border-right:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.top{background:linear-gradient(100deg,#0b1f4d,var(--accent));color:#fff;padding:12px 14px;display:flex;align-items:center;gap:8px;min-height:60px}
.top h1{font-size:20px;font-weight:600;flex:1}
.iconbtn{background:none;border:0;color:inherit;font-size:19px;cursor:pointer;min-width:38px;height:38px;border-radius:19px;padding:0 8px}
.iconbtn:hover{background:rgba(255,255,255,.15)}
.tabs{display:flex;background:linear-gradient(100deg,#0b1f4d,var(--accent));color:#bfdbfe}
.tabs button{flex:1;background:none;border:0;color:inherit;padding:10px;font-size:14px;cursor:pointer;border-bottom:3px solid transparent}
.tabs button.on{color:#fff;border-color:var(--orange)}
.search{padding:8px 12px 4px}
.search input{width:100%;padding:9px 14px;border-radius:20px;border:0;background:var(--bg);font:inherit;outline:none}
.chips{display:flex;gap:6px;padding:6px 12px 8px;overflow-x:auto;border-bottom:1px solid var(--line);scrollbar-width:none}
.chips button{border:0;background:var(--bg);padding:6px 12px;border-radius:16px;font-size:13px;cursor:pointer;white-space:nowrap;color:#334155}
.chips button.on{background:var(--accent);color:#fff}
.list{flex:1;overflow-y:auto}
.row{display:flex;gap:12px;padding:10px 14px;cursor:pointer;align-items:center}
.row:hover,.row.on{background:#eff6ff}
.av{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:600;flex-shrink:0;font-size:17px}
.meta{flex:1;min-width:0;border-bottom:1px solid var(--line);padding-bottom:10px}
.l1,.l2{display:flex;justify-content:space-between;gap:8px;align-items:center}
.name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.time{font-size:12px;color:var(--muted);flex-shrink:0}
.prev{font-size:.93em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.badge{background:var(--orange);color:#fff;border-radius:10px;font-size:12px;padding:1px 7px}
.star{color:#f59e0b;font-size:13px}
.sect{font-size:12px;font-weight:600;color:var(--accent);padding:10px 14px 4px;text-transform:uppercase;letter-spacing:.04em}
.main{flex:1;display:flex;flex-direction:column;min-width:0;background:#e8eef8;position:relative}
.main .top .av{width:40px;height:40px;font-size:15px}
.sub{font-size:12px;opacity:.85}
.msgs{flex:1;overflow-y:auto;padding:14px 6%;display:flex;flex-direction:column;gap:4px;background-image:radial-gradient(rgba(30,64,175,.07) 1px,transparent 1px);background-size:18px 18px}
.day{align-self:center;background:#fff;font-size:12px;color:var(--muted);padding:4px 10px;border-radius:8px;margin:8px 0}
.b{max-width:78%;padding:6px 10px 4px;border-radius:10px;line-height:1.4;box-shadow:0 1px 1px rgba(0,0,0,.08);word-wrap:break-word;cursor:pointer}
.b.out{align-self:flex-end;background:var(--out);border-top-right-radius:2px}
.b.in{align-self:flex-start;background:var(--in);border-top-left-radius:2px}
.b.bad{border:1.5px solid #fca5a5}
.tx{white-space:pre-wrap}
.b .t{font-size:11px;color:var(--muted);float:right;margin:6px 0 0 10px}
.from{font-size:13px;font-weight:600;margin-bottom:2px}
.fw{font-size:12px;color:var(--muted);font-style:italic;margin-bottom:2px}
.media{background:#f1f5f9;border-radius:8px;padding:18px 12px;margin:2px 0 6px;display:flex;gap:8px;align-items:center;min-width:200px}
.media span{font-size:13px;flex:1}.media small{font-size:11px;color:var(--muted)}
.voice{display:flex;align-items:center;gap:8px;min-width:210px;margin:2px 0}
.play{width:34px;height:34px;border-radius:50%;border:0;background:var(--accent);color:#fff;cursor:pointer;flex-shrink:0}
.wave{flex:1;height:6px;background:#cbd5e1;border-radius:3px;overflow:hidden}.wave i{display:block;height:100%;background:var(--accent);transition:width .1s linear}
.voice small{font-size:12px;color:var(--muted)}
.tr{border:0;background:none;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer;padding:2px 0}
.trtext{background:#eff6ff;border-left:3px solid var(--accent2);padding:6px 8px;border-radius:4px;font-size:.93em;margin:4px 0}
.scam{background:#fef2f2;color:#991b1b;font-size:13px;padding:6px 8px;border-radius:6px;margin-top:6px;line-height:1.35}
.bar{background:#fff7ed;color:#9a3412;font-size:13px;padding:8px 12px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #fed7aa}
.bar.arch{background:#ecfeff;color:#155e75;border-color:#a5f3fc}
.bar span{flex:1}
.bar button,.btn{border:0;background:var(--accent);color:#fff;padding:6px 12px;border-radius:14px;cursor:pointer;font-size:13px;white-space:nowrap}
.btn.ghost{background:var(--bg);color:var(--text)}
.btn.red{background:var(--bad)}
.schedbar{background:#f8fafc;border-top:1px solid var(--line);font-size:13px;padding:6px 12px;max-height:110px;overflow:auto}
.schedbar div{display:flex;justify-content:space-between;gap:8px;padding:3px 0;color:#334155}
.schedbar a{color:var(--bad);cursor:pointer}
.comp{display:flex;gap:6px;padding:8px 10px;background:#f0f2f1;align-items:flex-end}
.comp textarea{flex:1;resize:none;border:0;border-radius:22px;padding:11px 16px;font:inherit;outline:none;max-height:120px}
.comp .iconbtn{color:var(--muted);height:46px}
.send{width:46px;height:46px;border-radius:50%;border:0;background:var(--accent);color:#fff;font-size:20px;cursor:pointer;flex-shrink:0}
.emo{position:relative}
.emopanel{position:absolute;bottom:52px;left:0;background:#fff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.15);padding:8px;display:none;grid-template-columns:repeat(8,34px);gap:2px;z-index:5}
.emopanel.show{display:grid}
.emopanel button{border:0;background:none;font-size:22px;cursor:pointer;border-radius:6px}
.empty{flex:1;display:grid;place-items:center;text-align:center;color:var(--muted);padding:30px}
.logo{width:90px;height:90px;border-radius:26px;background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;font-size:42px;display:grid;place-items:center;margin:0 auto 18px}
.empty h2{color:var(--text);font-weight:600;margin-bottom:6px}
.back{display:none}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;place-items:center;z-index:20;padding:16px}
.modal.show{display:grid}
.card{background:#fff;border-radius:14px;padding:20px;width:min(420px,100%);max-height:85vh;overflow:auto}
.card h3{margin-bottom:12px}
.card input,.card textarea,.card select{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;font:inherit;margin-bottom:12px}
.card .btns{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.card p{margin-bottom:10px;line-height:1.5}
.card ul{margin:0 0 12px 18px;line-height:1.6}
.opt{display:block;width:100%;text-align:left;border:0;background:var(--bg);padding:12px;border-radius:10px;margin-bottom:8px;cursor:pointer}
.opt:hover{background:#dbeafe}
.settings{flex:1;overflow-y:auto;padding:16px;background:var(--bg)}
.box{background:#fff;border-radius:12px;padding:16px;margin-bottom:14px}
.box h3{font-size:16px;margin-bottom:4px}
.box .hint{color:var(--muted);font-size:13px;margin-bottom:12px;line-height:1.45}
.line{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.line:first-of-type{border-top:0}
.line .lbl{flex:1;min-width:0}
.line small{display:block;color:var(--muted);font-size:12px}
.meter{height:8px;background:var(--bg);border-radius:4px;overflow:hidden;margin-top:5px}
.meter i{display:block;height:100%;background:var(--accent2)}
.big{font-size:26px;font-weight:600;color:var(--accent)}
.sw{position:relative;width:46px;height:26px;flex-shrink:0}
.sw input{opacity:0;width:0;height:0}
.sw span{position:absolute;inset:0;background:#cbd5e1;border-radius:13px;cursor:pointer;transition:.2s}
.sw span:before{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s}
.sw input:checked+span{background:var(--accent)}
.sw input:checked+span:before{transform:translateX(20px)}
.ok{background:#f0fdf4;color:#166534;padding:10px;border-radius:8px;font-size:14px;margin-bottom:10px}
.warncard{background:#fffbeb;border:1px solid #fcd34d;color:#78350f;padding:12px;border-radius:10px;font-size:14px;line-height:1.5;margin-top:10px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#0f172a;color:#fff;padding:12px 16px;border-radius:12px;display:none;gap:12px;align-items:center;z-index:30;max-width:92vw;box-shadow:0 6px 24px rgba(0,0,0,.25)}
.toast.show{display:flex}
.toast button{background:var(--accent2);border:0;color:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}
.callbtn{display:none}

/* 3D emoji, icons, avatars, photos */
img.emj{width:1.35em;height:1.35em;vertical-align:-.32em;margin:0 .04em;display:inline-block}
.b.jumbo{background:transparent!important;box-shadow:none}
.b.jumbo .tx img.emj{width:52px;height:52px;vertical-align:middle;filter:drop-shadow(0 4px 4px rgba(0,0,0,.18))}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.ic3{width:26px;height:26px;display:block;filter:drop-shadow(0 2px 2px rgba(0,0,0,.28))}
body.easy .ic3{width:32px;height:32px}
.star-off{filter:grayscale(1) brightness(1.7) opacity(.8) drop-shadow(0 2px 2px rgba(0,0,0,.28))}
.av{overflow:hidden;background:#e2e8f0;box-shadow:0 2px 6px rgba(15,23,42,.18)}
.av img{width:100%;height:100%;display:block}
.av.ring{outline:3px solid var(--accent2);outline-offset:2px}
.photo{position:relative;width:270px;max-width:100%;aspect-ratio:3/2;border-radius:8px;overflow:hidden;margin:2px 0 6px;background:#cbd5e1;cursor:zoom-in}
.photo img{width:100%;height:100%;display:block;object-fit:cover}
.photo.lq img{filter:blur(.6px) saturate(.85)}
.psz{position:absolute;right:6px;bottom:6px;background:rgba(15,23,42,.6);color:#fff;font-size:11px;padding:2px 7px;border-radius:9px}
.psz img.emj{width:14px;height:14px;vertical-align:-2px}
.pov{position:absolute;inset:0;display:grid;place-items:center}
.pov i{width:54px;height:54px;border-radius:50%;background:rgba(15,23,42,.5);color:#fff;display:grid;place-items:center;font-style:normal;font-size:22px;box-shadow:0 0 0 3px rgba(255,255,255,.65)}
.inp{flex:1;min-height:46px;max-height:120px;overflow-y:auto;background:#fff;border-radius:22px;padding:11px 16px;outline:none;white-space:pre-wrap;word-break:break-word;line-height:1.45;cursor:text;-webkit-user-select:text;user-select:text}
.inp:empty:before{content:attr(data-ph);color:var(--muted);pointer-events:none}
.inp img.emj{width:22px;height:22px;vertical-align:-5px}
.send,.play{background:radial-gradient(circle at 35% 28%,#60a5fa,#1d4ed8 58%,#1e3a8a)!important;box-shadow:inset 0 2px 3px rgba(255,255,255,.45),inset 0 -3px 6px rgba(0,0,0,.25),0 4px 10px rgba(30,64,175,.35)}
.emopanel{grid-template-columns:repeat(8,40px)!important;gap:2px;max-height:260px;overflow-y:auto}
.emopanel button{width:40px;height:40px;display:grid;place-items:center;padding:0}
.emopanel img.emj{width:30px;height:30px;margin:0;vertical-align:0;transition:transform .12s}
.emopanel button:hover img.emj{transform:scale(1.25)}
.search{position:relative}.search>img{position:absolute;left:22px;top:50%;transform:translateY(-38%);width:20px;height:20px;pointer-events:none}.search input{padding-left:42px}
.chips img.emj{width:16px;height:16px;vertical-align:-3px}
.sect img.emj,.name img.emj{width:15px;height:15px;vertical-align:-2px}
.lightbox img{width:100%;border-radius:12px;display:block}
/* live 3D logo tile */
.t3{position:relative;width:var(--s);height:var(--s);perspective:calc(var(--s)*3);margin:0 auto}
.t3 .rot{position:absolute;inset:0;transform-style:preserve-3d;animation:sway 5.5s ease-in-out infinite}
.t3 i,.t3 .face,.t3 .shine{position:absolute;inset:0;border-radius:21.5%;display:block}
.t3 .face{width:100%;height:100%}
.t3 .shine{background-image:linear-gradient(118deg,rgba(255,255,255,0) 30%,rgba(255,255,255,.3) 45%,rgba(255,255,255,0) 60%);background-size:300% 100%;animation:shine 5.5s ease-in-out infinite}
.t3 .tsh{position:absolute;left:10%;right:10%;bottom:-22%;height:13%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.5),rgba(0,0,0,0));filter:blur(5px);animation:tsh 5.5s ease-in-out infinite}
@keyframes sway{0%,100%{transform:rotateY(-30deg) rotateX(12deg)}50%{transform:rotateY(30deg) rotateX(6deg)}}
@keyframes shine{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes tsh{0%,100%{transform:translateX(7%) scaleX(.9)}50%{transform:translateX(-7%) scaleX(.9)}}
@media (prefers-reduced-motion:reduce){.t3 .rot,.t3 .shine,.t3 .tsh{animation:none}.t3 .rot{transform:rotateY(-24deg) rotateX(10deg)}}

/* live chat */
.srv{font-size:12px;color:var(--muted);padding:6px 14px;border-bottom:1px solid var(--line);display:flex;gap:4px;align-items:center;flex-wrap:wrap}
.srv img.emj{width:14px;height:14px;vertical-align:-2px}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22c55e;margin-left:6px;vertical-align:middle;box-shadow:0 0 0 2px #fff}
.e2e{align-self:center;max-width:92%;background:#fef9c3;color:#713f12;font-size:12px;line-height:1.45;padding:7px 12px;border-radius:9px;text-align:center;margin:6px 0 10px}
.e2e img.emj{width:15px;height:15px;vertical-align:-3px}
.avgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.avgrid.six{grid-template-columns:repeat(6,1fr);gap:6px}
.avpick{border:3px solid transparent;border-radius:50%;padding:0;background:none;cursor:pointer;aspect-ratio:1;overflow:hidden;transition:transform .12s}
.avpick:hover{transform:scale(1.06)}.avpick img{width:100%;height:100%;display:block;border-radius:50%}
.avpick.on{border-color:var(--accent);box-shadow:0 0 0 3px #bfdbfe}
.plist{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto;margin:8px 0}
.prow{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;border:0;background:var(--bg);cursor:pointer;text-align:left;font:inherit;color:inherit;width:100%}
.prow:hover:not(:disabled){background:#dbeafe}.prow:disabled,.prow.dis{opacity:.5;cursor:not-allowed}
.prow .pav,.pav{width:42px;height:42px;border-radius:50%;flex-shrink:0}
.prow small{display:block;color:var(--muted);font-size:12px}.prow small img.emj{width:12px;height:12px}
.prow input{width:20px;height:20px;margin:0;accent-color:var(--accent);flex-shrink:0}
.aiout{background:#eff6ff;border-radius:10px;padding:12px 14px;line-height:1.7;margin-bottom:10px;min-height:60px}
.tx.del{color:var(--muted);font-style:italic}
.pend{color:var(--muted)}
.mic.on{background:#fee2e2!important;animation:pulse 1s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 6px rgba(239,68,68,.2)}}
.dictp{padding:6px 14px;font-size:13px;color:var(--accent);background:#eff6ff;font-style:italic}
.photo.live{aspect-ratio:4/3;max-height:340px;background:#1e293b;cursor:zoom-in}
.photo.live img{object-fit:contain}
.photo .pload{position:absolute;inset:0;display:grid;place-items:center;color:#cbd5e1;font-size:13px}
.photo .pload img.emj{width:16px;height:16px}
.ro{padding:14px;text-align:center;font-size:13px;color:var(--muted);background:#f0f2f1}
.invite{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-top:8px;font-size:14px}
.invite ol{margin:6px 0 0 18px;line-height:1.7}
.moreinv{margin-top:6px}.moreinv summary{cursor:pointer;color:var(--accent);font-size:14px;padding:6px 0}
.startcard{display:block;width:calc(100% - 28px);margin:10px 14px;padding:14px;border:2px dashed #93c5fd;border-radius:14px;background:#eff6ff;color:var(--accent);font:inherit;font-weight:600;cursor:pointer}
.clk{cursor:pointer}
/* Brand */
.brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0}
.brand img{border-radius:10px;box-shadow:0 0 0 2px rgba(255,255,255,.35);flex-shrink:0}
.brand h1{font-family:'Baloo Thambi 2','Noto Sans Tamil',sans-serif;font-weight:800;font-size:24px;line-height:1;flex:none}
.brand h1 small{font-family:'Noto Sans Tamil',sans-serif;font-weight:400;font-size:13px;opacity:.85;margin-left:4px}
.wm{font-family:'Baloo Thambi 2','Noto Sans Tamil',sans-serif;font-weight:800;background:linear-gradient(120deg,#38bdf8,#2563eb 55%,#1e3a8a);-webkit-background-clip:text;background-clip:text;color:transparent}
.empty .wm{font-size:44px;line-height:1.1;margin-top:14px}
.empty .soft{color:#1e3a8a;font-weight:600;margin-bottom:8px}
.empty .t3{margin-bottom:30px}
.about{display:flex;gap:14px;align-items:center}
.about img{flex-shrink:0}
.about .wm{font-size:28px;line-height:1}
.splash{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:radial-gradient(circle at 50% 38%,#12306e,#050b1f 75%);color:#fff;text-align:center;transition:opacity .5s;cursor:pointer}
.splash.hide{opacity:0;pointer-events:none}
.splash .t3{animation:pop .9s cubic-bezier(.2,1.4,.4,1) both;margin-bottom:34px}
.splash .t3:before{content:'';position:absolute;inset:-40%;border-radius:50%;background:radial-gradient(closest-side,rgba(56,189,248,.45),rgba(56,189,248,0))}
.splash h1{font-family:'Baloo Thambi 2','Noto Sans Tamil',sans-serif;font-weight:800;font-size:56px;line-height:1;margin-top:22px;animation:up .6s .35s both}
.splash .soft{display:flex;align-items:center;justify-content:center;gap:10px;font-size:17px;margin-top:6px;animation:up .6s .5s both}
.splash .soft i{width:34px;height:3px;border-radius:2px;background:linear-gradient(90deg,#fdba74,#f97316)}
.splash .tag{margin-top:14px;font-size:15px;color:#93c5fd;animation:up .6s .65s both}
@keyframes pop{from{transform:scale(.4) rotate(-25deg);opacity:0}to{transform:none;opacity:1}}
@keyframes up{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
/* Easy mode */
body.easy{--fs:19px}
body.easy .av{width:60px;height:60px;font-size:22px}
body.easy .tabs,body.easy .chips button[data-f=fw],body.easy .chips button[data-f=scam]{display:none}
body.easy .row{padding:14px}
body.easy .send{width:58px;height:58px}
body.easy .callbtn{display:inline-flex;background:#22c55e;font-size:17px;padding:0 14px;height:44px;border-radius:22px}
body.easy .top h1{font-size:24px}
@media(max-width:760px){
 .side{width:100%;border:0}
 .main{display:none}
 .app.open .side{display:none}
 .app.open .main{display:flex}
 .back{display:block}
}

/* ---- own server: login, calls, voice ---- */
#auth{position:fixed;inset:0;z-index:40;display:none;background:radial-gradient(circle at 50% 30%,#12306e,#050b1f 75%);overflow:auto;padding:20px}
#auth.show{display:flex}
.aucard{margin:auto;background:#fff;border-radius:22px;padding:26px 22px;width:min(420px,100%);box-shadow:0 20px 60px rgba(0,0,0,.4);text-align:center}
.aucard h3{margin:14px 0 6px;font-size:20px}
.aucard .hint{color:var(--muted);font-size:14px;margin-bottom:14px;line-height:1.5}
.auhead .t3{margin-bottom:26px}.auhead .wm{font-size:40px;line-height:1.1}.auhead .soft{color:#1e3a8a;font-size:14px}
.phrow{display:flex;align-items:center;gap:8px;background:var(--bg);border-radius:14px;padding:4px 6px 4px 14px;margin-bottom:14px}
.phrow span{font-weight:600;color:#334155}
.phrow input{flex:1;border:0;background:none;font:inherit;font-size:18px;padding:12px 6px;outline:none;min-width:0}
.phrow.small{margin:6px 0 10px}.phrow.small input{font-size:15px;padding:10px 4px}
.btn.big{width:100%;padding:14px;font-size:16px;border-radius:14px;color:#fff;font-weight:600}
.otp{width:100%;text-align:center;font-size:24px;letter-spacing:.35em;padding:12px;border:2px solid var(--line);border-radius:14px;margin-bottom:14px;font-family:inherit}
.otp:focus{border-color:var(--accent);outline:none}
.tiny{font-size:12px;color:var(--muted);margin-top:14px}.tiny a{color:var(--accent);cursor:pointer;font-weight:600}
.devotp{background:#fef9c3;color:#713f12;border-radius:10px;padding:8px;margin-bottom:12px;font-size:14px}
.spin{width:40px;height:40px;border:4px solid #dbeafe;border-top-color:var(--accent);border-radius:50%;margin:20px auto;animation:sp 1s linear infinite}@keyframes sp{to{transform:rotate(360deg)}}
#auName,#pfName,#pfAbout,#gName,#delPh{width:100%;padding:12px;border:1px solid var(--line);border-radius:12px;font:inherit;margin-bottom:12px}
#callUI{position:fixed;inset:0;z-index:45;display:none;flex-direction:column;align-items:center;justify-content:space-between;padding:60px 20px 40px;background:radial-gradient(circle at 50% 30%,#1e3a8a,#050b1f 75%);color:#fff}
#callUI.show{display:flex}
#cuRemote{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000;opacity:0;pointer-events:none}
#callUI.video #cuRemote{opacity:1}
#cuLocal{position:absolute;right:16px;top:16px;width:110px;height:150px;object-fit:cover;border-radius:14px;border:2px solid rgba(255,255,255,.6);display:none;background:#111;z-index:2}
#callUI.video #cuLocal{display:block}
.cuInfo{text-align:center;z-index:1}
.cuInfo img{width:140px;height:140px;border-radius:50%;animation:ring 2s infinite}
#callUI.video .cuInfo img{display:none}
@keyframes ring{0%,100%{box-shadow:0 0 0 8px rgba(255,255,255,.08),0 0 0 16px rgba(255,255,255,.04)}50%{box-shadow:0 0 0 14px rgba(255,255,255,.12),0 0 0 28px rgba(255,255,255,.05)}}
.cuInfo h2{margin-top:18px;font-size:26px}.cuInfo p{opacity:.85;margin-top:6px}
.cuBtns{display:flex;gap:26px;z-index:1}
.cbtn{width:66px;height:66px;border-radius:50%;border:0;font-size:24px;color:#fff;cursor:pointer;display:grid;place-items:center;background:rgba(255,255,255,.18)}
.cbtn.red{background:#ef4444}.cbtn.green{background:#22c55e}.cbtn.off{background:#fff;color:#0f172a}
.recbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#fef2f2}.recbar .rt{flex:1;color:#b91c1c;font-weight:600}
.mini{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;width:30px;height:30px;cursor:pointer;flex-shrink:0}
.callic img.emj{width:18px;height:18px}
code{background:#f1f5f9;padding:2px 6px;border-radius:6px;font-size:12px}
.voice .play{font-size:14px}
.toast{z-index:60;width:max-content}
#chead .name,#chead .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chead .clk{overflow:hidden}
.comp{align-items:flex-end}
.comp .inp{flex:1;min-width:0}
.comp .send.mic{background:transparent;box-shadow:none;width:44px;height:44px}
.comp .send.mic img{width:30px;height:30px}
.comp.has-text .send.mic,.comp:not(.has-text) .send.go{display:none}
.attach{position:relative}
.attachpanel{position:absolute;bottom:52px;right:-40px;background:#fff;border-radius:16px;box-shadow:0 10px 30px rgba(15,23,42,.22);padding:6px;display:none;flex-direction:column;min-width:190px;z-index:6}
.attachpanel.show{display:flex}
.attachpanel button{display:flex;align-items:center;gap:10px;border:0;background:none;padding:12px 14px;border-radius:12px;font:inherit;font-size:15px;text-align:left;cursor:pointer;color:var(--ink,#0f172a)}
.attachpanel button:hover,.attachpanel button:active{background:#eef2ff}
.attachpanel .emj{width:26px;height:26px}
.replybar{display:flex;align-items:center;gap:8px;background:#f0f2f1;padding:8px 10px 0}
.replybar .q,.b .quote{flex:1;min-width:0;border-left:4px solid var(--accent);background:rgba(37,99,235,.08);border-radius:8px;padding:6px 10px;display:flex;flex-direction:column;font-size:13px}
.replybar .q span,.b .quote span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#475569}
.b .quote{margin:-2px -4px 6px;cursor:pointer}
.b.out .quote{background:rgba(255,255,255,.55)}
.b .fwd{font-size:12px;font-style:italic;color:#64748b;margin-bottom:3px;display:flex;align-items:center;gap:4px}
.b .fwd .emj{width:14px;height:14px}
.b.hasrx{margin-bottom:18px}
.b .rx{position:absolute;bottom:-16px;right:10px;background:#fff;border-radius:14px;padding:2px 7px;box-shadow:0 2px 8px rgba(15,23,42,.18);display:flex;align-items:center;gap:2px;cursor:pointer}
.b.in .rx{right:auto;left:10px}
.b .rx .emj{width:18px;height:18px}
.b .rx small{font-size:11px;color:#475569;margin:0 2px 0 1px}
.b{position:relative}
.b.flash{animation:flash 1.6s}
@keyframes flash{0%,60%{box-shadow:0 0 0 4px rgba(250,204,21,.85)}100%{box-shadow:none}}
.rxpick{display:flex;justify-content:space-between;background:#f1f5f9;border-radius:30px;padding:6px 8px;margin:6px 0 10px}
.rxpick button{border:0;background:none;font-size:28px;line-height:1;padding:4px 6px;border-radius:50%;cursor:pointer}
.rxpick button .emj{width:34px;height:34px}
.rxpick button.on{background:#dbeafe}
.emj.mute{width:15px;height:15px;opacity:.7;vertical-align:-2px}
.settings .line{flex-wrap:wrap}
.settings .line .lbl{flex:1 1 170px}
.opt.danger{color:#b91c1c}
.attachpanel button{white-space:nowrap}
.langsw{display:flex;justify-content:center;gap:6px;margin:0 0 12px}
.langsw button{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:20px;padding:7px 16px;font:inherit;font-size:14px;cursor:pointer}
.langsw button.on{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.box .langsw{justify-content:flex-start;margin:8px 0 0}
#callUI .cuInfo #cuSt img.emj{width:1.3em;height:1.3em;border-radius:0;animation:none;display:inline-block;vertical-align:-.3em;margin:0 3px 0 0}
.otp[placeholder*="PIN"]::placeholder{letter-spacing:.04em;font-size:17px}
#viewer{position:fixed;inset:0;z-index:50;background:rgba(2,6,23,.96);display:none;flex-direction:column}
#viewer.show{display:flex}
#viewer .vbar{display:flex;align-items:center;gap:8px;padding:10px 12px;color:#fff}
#viewer .vbar span{flex:1}
#viewer .vbar button,#viewer .vbar a{border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:50%;font-size:20px;display:grid;place-items:center;cursor:pointer;text-decoration:none}
#viewer img{flex:1;min-height:0;width:100%;object-fit:contain;cursor:zoom-in;touch-action:pinch-zoom}
#viewer img.zoom{object-fit:none;cursor:zoom-out;overflow:auto}
.aucard label.terms{display:flex;gap:10px;align-items:flex-start;text-align:left;font-size:13px;color:#334155;margin:0 0 14px;line-height:1.55;cursor:pointer}
.aucard label.terms input{width:22px;height:22px;margin-top:1px;flex-shrink:0;accent-color:var(--accent)}
.aucard label.terms a{color:var(--accent);font-weight:600}
.aucard label.terms.need{color:#b91c1c;animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.ro a{color:var(--accent);font-weight:600;cursor:pointer;text-decoration:underline}
.box .lbl a{color:var(--accent);font-weight:600}
.btn.danger{color:#b91c1c}
