*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#0F172A;background:#FFFFFF;overscroll-behavior:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
a{color:inherit;text-decoration:none}
.app{max-width:520px;margin:0 auto;height:100%;display:flex;flex-direction:column;position:relative;background:#FFFFFF;overflow:hidden}
.hidden{display:none!important}
.top{padding:16px 16px 10px;display:flex;flex-direction:column;gap:12px;padding-top:calc(16px + env(safe-area-inset-top))}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.logo{width:36px;height:36px;border-radius:11px;background:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}
.title{font-size:22px;font-weight:800;letter-spacing:-.5px}
.sub{font-size:12px;color:#475569}
.ibtn{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;flex:none}
.ibtn:active{background:#F1F5F9}
.search{display:flex;align-items:center;gap:10px;background:#F1F5F9;border-radius:14px;padding:0 14px;height:44px}
.search input{border:none;background:transparent;outline:none;font-size:15px;flex:1;min-width:0}
.pills{display:flex;gap:8px}
.pill{height:36px;padding:0 16px;border-radius:18px;border:1px solid #CBD5E1;font-size:14px;font-weight:600;color:#334155;background:#fff}
.pill.on{background:var(--accent);border-color:var(--accent);color:#fff}
.list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.item{display:flex;align-items:center;gap:12px;padding:8px 16px;min-height:70px;width:100%;text-align:left}
.item:active{background:#F8FAFC}
.item .body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #EEF2F6;padding:8px 0 10px}
.item .name{font-size:16px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .last{font-size:14px;color:#475569;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item .time{font-size:12px;color:#64748B;flex:none}
.item .time.new{color:var(--accent);font-weight:700}
.badge{min-width:22px;height:22px;border-radius:11px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 6px;flex:none}
.av{width:48px;height:48px;border-radius:24px;color:#fff;font-weight:700;font-size:17px;display:flex;align-items:center;justify-content:center;flex:none;position:relative}
.av .dot{position:absolute;right:1px;bottom:1px;width:13px;height:13px;border-radius:7px;background:#22C55E;border:2px solid #fff}
.empty{padding:48px 28px;text-align:center;color:#475569;font-size:15px;line-height:1.6}
.fab{position:absolute;right:18px;bottom:calc(88px + env(safe-area-inset-bottom));width:58px;height:58px;border-radius:18px;background:var(--accent);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(15,23,42,.25)}
.nav{border-top:1px solid #E2E8F0;display:grid;grid-template-columns:repeat(3,1fr);height:calc(68px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;flex:none}
.nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:500;color:#475569}
.nav button.on{color:var(--accent);font-weight:700}
/* sohbet */
.chat{position:absolute;inset:0;background:#EDF1F8;display:flex;flex-direction:column;z-index:5}
.chathead{background:#fff;border-bottom:1px solid #E2E8F0;display:flex;align-items:center;gap:6px;padding:8px 6px;padding-top:calc(8px + env(safe-area-inset-top));flex:none}
.chathead .who{flex:1;min-width:0;display:flex;flex-direction:column;margin-left:4px}
.chathead .who b{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chathead .who span{font-size:12px;color:#475569}
.chathead .who span.on{color:#047857;font-weight:600}
.msgs{flex:1;overflow-y:auto;padding:14px 10px;display:flex;flex-direction:column;gap:5px}
.day{align-self:center;background:#DCE4F2;color:#334155;font-size:12px;font-weight:600;padding:4px 12px;border-radius:10px;margin:6px 0}
.b{max-width:80%;padding:8px 12px 5px;border-radius:18px;display:flex;flex-direction:column;gap:2px;word-wrap:break-word;overflow-wrap:anywhere}
.b.me{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:6px}
.b.them{align-self:flex-start;background:#fff;border-bottom-left-radius:6px}
.b .t{font-size:15px;line-height:1.4;white-space:pre-wrap}
.b .m{align-self:flex-end;font-size:11px;opacity:.85;display:flex;gap:4px;align-items:center}
.compose{background:#fff;border-top:1px solid #E2E8F0;padding:8px 8px calc(10px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:8px;flex:none}
.compose textarea{flex:1;min-height:44px;max-height:120px;border:none;background:#F1F5F9;border-radius:22px;padding:11px 16px;font:inherit;font-size:15px;resize:none;outline:none}
.send{width:46px;height:46px;border-radius:23px;background:var(--accent);display:flex;align-items:center;justify-content:center;flex:none}
/* form/sheet */
.sheet-bg{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;width:100%;max-width:520px;border-radius:22px 22px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.sheet h3{font-size:19px}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#334155}
label.f input{height:48px;border:1px solid #CBD5E1;border-radius:12px;padding:0 14px;font-size:16px;font-weight:500;outline:none}
label.f input:focus{border-color:var(--accent)}
.btn{height:50px;border-radius:14px;background:var(--accent);color:#fff;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px}
.btn.ghost{background:#fff;border:1px solid #CBD5E1;color:#0F172A}
.err{color:#B91C1C;font-size:14px;font-weight:600;min-height:18px}
/* giriş */
.auth{position:fixed;inset:0;background:#F4F7FD;z-index:30;overflow-y:auto}
.auth .in{max-width:420px;margin:0 auto;padding:56px 22px 32px;display:flex;flex-direction:column;gap:24px}
.auth .card{background:#fff;border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:14px;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.auth .bignum{font-size:34px;font-weight:800;letter-spacing:1px;color:var(--accent);text-align:center}
.link{color:var(--accent);font-weight:700}
/* telefon */
.dial{display:flex;flex-direction:column;align-items:center;flex:1;justify-content:flex-end;padding-bottom:12px}
.dial .num{font-size:34px;font-weight:600;letter-spacing:1px;min-height:44px;text-align:center;padding:0 16px}
.dial .match{font-size:14px;font-weight:600;color:var(--accent);min-height:20px;margin-top:4px}
.keys{display:grid;grid-template-columns:repeat(3,76px);gap:14px 26px;margin-top:18px}
.key{width:76px;height:76px;border-radius:38px;background:#F1F5F9;display:flex;flex-direction:column;align-items:center;justify-content:center}
.key:active{background:#E2E8F0}
.key b{font-size:30px;font-weight:500;line-height:1}
.key span{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#475569;min-height:12px}
.callbtn{width:76px;height:76px;border-radius:38px;background:var(--accent);display:flex;align-items:center;justify-content:center;box-shadow:0 10px 22px rgba(21,128,61,.35)}
.seg{display:grid;grid-template-columns:1fr 1fr;background:#F1F5F9;border-radius:14px;padding:4px;gap:4px}
.seg button{height:40px;border-radius:11px;font-size:14px;font-weight:600;color:#475569}
.seg button.on{background:#fff;color:#0F172A;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.round{width:46px;height:46px;border-radius:23px;background:#ECFDF3;display:flex;align-items:center;justify-content:center;flex:none}
/* arama ekranı */
.call{position:fixed;inset:0;z-index:50;background:#0B1220;color:#F8FAFC;display:flex;flex-direction:column;align-items:center;padding:calc(48px + env(safe-area-inset-top)) 28px calc(44px + env(safe-area-inset-bottom));overflow:hidden}
.call video.remote{pointer-events:none;z-index:0;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.call video.local{pointer-events:none;position:absolute;right:14px;top:calc(14px + env(safe-area-inset-top));width:110px;height:160px;object-fit:cover;border-radius:14px;border:2px solid rgba(255,255,255,.4);z-index:3;transform:scaleX(-1);background:#111}
.call .z{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;width:100%}
.call .kind{font-size:14px;font-weight:600;color:#4ADE80}
.call .bigav{width:128px;height:128px;border-radius:64px;font-size:46px;font-weight:700;display:flex;align-items:center;justify-content:center;color:#fff;position:relative;margin:28px 0 18px}
.call .wave{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(74,222,128,.7);animation:ring 2s ease-out infinite}
.call .wave:nth-child(2){animation-delay:.7s}.call .wave:nth-child(3){animation-delay:1.4s}
@keyframes ring{0%{transform:scale(1);opacity:.6}100%{transform:scale(1.9);opacity:0}}
.call .cname{font-size:30px;font-weight:700;text-align:center}
.call .cstat{font-size:17px;color:#CBD5E1;margin-top:6px;font-variant-numeric:tabular-nums}
.call .acts{margin-top:auto;width:100%;position:relative;z-index:2}
.call .two{display:flex;justify-content:space-between;padding:0 16px}
.call .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px 8px;margin-bottom:34px}
.call .cb{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#E2E8F0}
.call .cb i{width:66px;height:66px;border-radius:33px;background:#1E2A44;display:flex;align-items:center;justify-content:center}
.call .cb.on i{background:#F8FAFC}.call .cb.on i svg{stroke:#0F1A2E}
.call .red,.call .green{width:76px;height:76px;border-radius:38px;display:flex;align-items:center;justify-content:center}
.call .red{background:#DC2626}.call .green{background:#16A34A}
.call .shake{animation:shake 1s ease-in-out infinite}
@keyframes shake{0%,100%{transform:rotate(0)}20%{transform:rotate(-14deg)}40%{transform:rotate(14deg)}60%{transform:rotate(-10deg)}80%{transform:rotate(8deg)}}
.call.video-on .bigav,.call.video-on .kind{display:none}
.call.video-on .cname{font-size:22px;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.toast{position:fixed;left:50%;top:calc(16px + env(safe-area-inset-top));transform:translateX(-50%);background:#0F172A;color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;font-weight:600;z-index:60;max-width:90%;text-align:center}
.call.video-on .z{align-items:flex-start;padding-right:120px}.call.video-on .cname{text-align:left}.call.video-on .cstat{text-shadow:0 1px 6px rgba(0,0,0,.6)}
.nav button{position:relative;font-size:11px}
