:root { --bg:#0f1720; --card:#18222e; --fg:#eef2f6; --muted:#93a1b0; --ok:#22c55e; --bad:#ef4444; --acc:#3b82f6; }
[hidden] { display:none !important; }
a.btn { text-decoration:none; display:inline-block; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; background:var(--bg); color:var(--fg);
  font: 17px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
body { display:flex; flex-direction:column; min-height:100dvh; }
main { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; gap:18px; text-align:center; }
h1 { margin:0; font-size:1.6rem; font-weight:650; }
p { margin:0; color:var(--muted); }
.big-btn { width:180px; height:180px; border-radius:50%; border:none; font-size:1.25rem; font-weight:650; color:#fff;
  background:radial-gradient(circle at 30% 30%, #4ade80, #16a34a); box-shadow:0 0 0 0 rgba(34,197,94,.6); cursor:pointer;
  animation:pulse 2s infinite; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.big-btn svg { width:56px; height:56px; }
.big-btn:disabled { animation:none; opacity:.6; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)} 70%{box-shadow:0 0 0 28px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
input[type=text] { width:min(340px,100%); padding:12px 14px; border-radius:12px; border:1px solid #2b3a4a; background:var(--card); color:var(--fg); font-size:1rem; }
.status { min-height:1.4em; font-size:1.05rem; color:var(--fg); }
.status.err { color:#fca5a5; }

/* pokalbio vaizdas */
.call { position:fixed; inset:0; background:#000; display:none; }
.call.on { display:block; }
.call video.remote { width:100%; height:100%; object-fit:cover; background:#000; }
.call video.local { position:absolute; right:12px; top:12px; width:28vw; max-width:180px; aspect-ratio:3/4; object-fit:cover;
  border-radius:12px; border:2px solid rgba(255,255,255,.35); background:#111; transform:scaleX(-1); }
.call video.local.back { transform:none; }
.call .noVideo { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:var(--muted); }
.call .noVideo svg { width:96px; height:96px; opacity:.6; }
.call .top { position:absolute; left:0; right:0; top:0; padding:14px 16px; background:linear-gradient(#000a,#0000); font-size:.95rem; }
.controls { position:absolute; left:0; right:0; bottom:0; padding:18px 12px calc(18px + env(safe-area-inset-bottom));
  display:flex; justify-content:center; gap:16px; background:linear-gradient(#0000,#000b); }
.cbtn { width:62px; height:62px; border-radius:50%; border:none; background:rgba(255,255,255,.18); color:#fff; display:flex;
  align-items:center; justify-content:center; cursor:pointer; backdrop-filter:blur(6px); }
.cbtn svg { width:28px; height:28px; }
.cbtn.off { background:#fff; color:#111; }
.cbtn.hang { background:var(--bad); }
.cbtn.answer { background:var(--ok); }
.unmute { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:14px 22px; border-radius:30px; border:none;
  background:var(--acc); color:#fff; font-size:1rem; }
.row { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.btn { padding:14px 22px; border-radius:14px; border:none; font-size:1rem; font-weight:600; color:#fff; background:var(--acc); cursor:pointer; }
.btn.ok { background:var(--ok); } .btn.bad { background:var(--bad); } .btn.ghost { background:var(--card); }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--bad); margin-right:6px; vertical-align:middle; }
.dot.on { background:var(--ok); }
.card { background:var(--card); border-radius:18px; padding:20px; width:min(420px,100%); }
.ringing { animation:shake .5s infinite; }
@keyframes shake { 0%,100%{transform:rotate(0)} 25%{transform:rotate(-8deg)} 75%{transform:rotate(8deg)} }
small { color:var(--muted); }
.notice { background:#3b2f0b; border:1px solid #a16207; color:#fde68a; border-radius:14px; padding:12px 16px; width:min(420px,100%); white-space:pre-line; }
.tabs { display:flex; gap:6px; justify-content:center; padding:12px; position:sticky; top:0; background:var(--bg); z-index:5; }
.tab { padding:10px 18px; border-radius:12px; border:none; background:var(--card); color:var(--muted); font-size:1rem; font-weight:600; cursor:pointer; }
.tab.on { background:var(--acc); color:#fff; }
.form { width:min(560px,100%); display:flex; flex-direction:column; gap:14px; text-align:left; }
.form label { display:flex; flex-direction:column; gap:6px; font-size:.92rem; color:var(--muted); }
.form input[type=text], .form input[type=password], .form textarea { width:100%; padding:11px 13px; border-radius:12px; border:1px solid #2b3a4a;
  background:var(--card); color:var(--fg); font:inherit; font-size:1rem; }
.form textarea { min-height:70px; resize:vertical; }
.form .chk { flex-direction:row; align-items:center; gap:10px; color:var(--fg); }
.form .chk input { width:20px; height:20px; }
.form h2 { margin:18px 0 0; font-size:1.1rem; color:var(--fg); }
.form .hint { font-size:.82rem; color:var(--muted); margin-top:-8px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:#16a34a; color:#fff; padding:12px 20px; border-radius:12px; z-index:50; }
.toast.err { background:var(--bad); }
.page { flex:1; display:flex; flex-direction:column; align-items:center; padding:12px 20px 60px; gap:14px; }
input[type=password] { width:min(340px,100%); padding:12px 14px; border-radius:12px; border:1px solid #2b3a4a; background:var(--card); color:var(--fg); font-size:1rem; }
