:root{--accent:#f28db3}
*{box-sizing:border-box}
html,body{margin:0; height:100%; background:transparent; overflow:hidden; font-family:"Segoe UI",Manrope,system-ui,sans-serif; user-select:none}
.phone{position:fixed; right:3vw; bottom:-800px; width:330px; height:690px; border-radius:48px; padding:11px; background:#0d0b0f; box-shadow:0 0 0 2px #2a2530, 0 30px 80px rgba(0,0,0,.6); transition:bottom .45s cubic-bezier(.32,.72,0,1)}
.phone.open{bottom:3vh}
.demo{display:grid; place-items:center}
.demo .phone{position:relative; right:auto; bottom:auto}
.screen{position:relative; width:100%; height:100%; border-radius:38px; overflow:hidden; color:var(--fg); background:var(--bg);
  --bg:#141016; --card:#211b24; --card2:#2b2330; --fg:#f7eef3; --dim:#b3a3ad; --line:rgba(255,255,255,.08)}
.phone[data-theme="light"] .screen{--bg:#f6f1f4; --card:#ffffff; --card2:#efe6eb; --fg:#1d141a; --dim:#6f5f69; --line:rgba(0,0,0,.08)}
.status{position:absolute; top:0; left:0; right:0; height:44px; display:flex; align-items:center; justify-content:space-between; padding:0 26px; font-size:13px; font-weight:700; z-index:5}
.island{width:92px; height:26px; border-radius:20px; background:#000}
.sig{display:flex; align-items:flex-end; gap:2px} .sig i{width:3px; background:currentColor; border-radius:2px} .sig i:nth-child(1){height:5px} .sig i:nth-child(2){height:8px} .sig i:nth-child(3){height:11px} .sig b{margin-left:5px; font-size:11px}
.view{position:absolute; inset:44px 0 26px; overflow-y:auto; scrollbar-width:none}
.view::-webkit-scrollbar{display:none}
.homebar{position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:120px; height:5px; border-radius:9px; border:0; background:var(--fg); opacity:.5; cursor:pointer; z-index:6}
.toast{position:absolute; top:-90px; left:12px; right:12px; z-index:9; padding:12px 14px; border-radius:18px; background:rgba(40,32,44,.94); color:#fff; backdrop-filter:blur(8px); transition:top .35s cubic-bezier(.32,.72,0,1); font-size:13px}
.toast.on{top:48px}
.toast b{display:block; font-size:13px} .toast span{display:block; opacity:.8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* home */
.home{position:absolute; inset:-44px 0 -26px; padding:70px 22px 30px; background:var(--wall)}
.home .time{text-align:center; color:#fff; text-shadow:0 2px 14px rgba(0,0,0,.35)}
.home .time b{display:block; font-size:62px; font-weight:300; letter-spacing:-.03em; line-height:1}
.home .time span{font-size:14px; opacity:.9}
.apps{display:grid; grid-template-columns:repeat(3,1fr); gap:22px 10px; margin-top:44px}
.app{display:flex; flex-direction:column; align-items:center; gap:7px; border:0; background:none; color:#fff; font:600 12px/1 inherit; cursor:pointer; text-shadow:0 1px 6px rgba(0,0,0,.4)}
.app .ic{position:relative; width:58px; height:58px; border-radius:17px; display:grid; place-items:center; box-shadow:0 6px 18px rgba(0,0,0,.25)}
.app .ic svg{width:28px; height:28px; fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round}
.app .badge{position:absolute; top:-5px; right:-5px; min-width:20px; height:20px; border-radius:10px; background:#ff3b5c; color:#fff; font-size:11px; display:grid; place-items:center; padding:0 5px}
.dock{position:absolute; left:14px; right:14px; bottom:34px; padding:12px; border-radius:28px; background:rgba(255,255,255,.18); backdrop-filter:blur(14px); display:flex; justify-content:space-around}
.dock .app > span:not(.ic){display:none}

/* app shell */
.bar{display:flex; align-items:center; gap:8px; padding:8px 16px 12px}
.bar h2{margin:0; font-size:26px; font-weight:800; flex:1}
.back{border:0; background:none; color:var(--accent); font:600 15px inherit; cursor:pointer; padding:4px 0}
.plus{border:0; width:32px; height:32px; border-radius:50%; background:var(--accent); color:#1a0a12; font:800 20px/1 inherit; cursor:pointer}
.list{margin:0; padding:0 12px; list-style:none; display:grid; gap:2px}
.row{display:flex; align-items:center; gap:12px; padding:11px 10px; border-radius:14px; cursor:pointer}
.row:hover{background:var(--card)}
.av{width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--accent),#8cc8ff); display:grid; place-items:center; color:#1a0a12; font-weight:800; flex:none}
.row .tx{flex:1; min-width:0} .row b{display:block; font-size:15px} .row small{display:block; color:var(--dim); font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.row .t{font-size:11px; color:var(--dim)}
.empty{color:var(--dim); text-align:center; padding:40px 24px; font-size:14px}
.field{display:grid; gap:6px; padding:0 16px 12px; font-size:12px; color:var(--dim); font-weight:600}
.field input,.field textarea{width:100%; border:1px solid var(--line); background:var(--card); color:var(--fg); border-radius:12px; padding:11px 12px; font:inherit; font-size:15px; font-weight:400; outline:none}
.field input:focus,.field textarea:focus{border-color:var(--accent)}
.btn{display:block; width:calc(100% - 32px); margin:6px 16px; padding:13px; border-radius:14px; border:0; background:var(--accent); color:#1a0a12; font:700 15px inherit; cursor:pointer; text-align:center}
.btn.ghost{background:var(--card); color:var(--fg)} .btn.red{background:#ff3b5c; color:#fff}

/* chat */
.chat{display:flex; flex-direction:column; height:100%}
.msgs{flex:1; overflow-y:auto; padding:6px 14px; display:flex; flex-direction:column; gap:6px; scrollbar-width:none}
.bub{max-width:76%; padding:9px 13px; border-radius:18px; font-size:14px; line-height:1.35; background:var(--card2); align-self:flex-start; word-wrap:break-word}
.bub.me{align-self:flex-end; background:var(--accent); color:#1a0a12}
.compose{display:flex; gap:8px; padding:8px 12px}
.compose input{flex:1; border:1px solid var(--line); background:var(--card); color:var(--fg); border-radius:20px; padding:10px 14px; font:inherit; font-size:14px; outline:none}
.compose button{width:40px; height:40px; border-radius:50%; border:0; background:var(--accent); cursor:pointer; display:grid; place-items:center}
.compose svg{width:18px; height:18px; fill:none; stroke:#1a0a12; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}

/* dialer + call */
.num{font-size:34px; text-align:center; min-height:48px; margin:10px 0 6px; letter-spacing:.04em; font-weight:300}
.pad{display:grid; grid-template-columns:repeat(3,70px); gap:14px 22px; justify-content:center}
.pad button{width:70px; height:70px; border-radius:50%; border:0; background:var(--card2); color:var(--fg); font:400 28px inherit; cursor:pointer}
.pad button:active{background:var(--accent)}
.callbtn{display:block; margin:18px auto 0; width:70px; height:70px; border-radius:50%; border:0; background:#34c759; cursor:pointer; display:grid; place-items:center}
.callbtn svg,.endbtn svg{width:30px; height:30px; fill:#fff}
.call{position:absolute; inset:0; padding:90px 24px 60px; background:linear-gradient(180deg,#2a1630,#0d0a10); color:#fff; text-align:center; display:flex; flex-direction:column; align-items:center}
.call .av{width:96px; height:96px; font-size:36px; margin-bottom:18px}
.call h3{margin:0; font-size:28px; font-weight:600} .call p{margin:8px 0 0; opacity:.75}
.call .acts{margin-top:auto; display:flex; gap:60px}
.endbtn{width:70px; height:70px; border-radius:50%; border:0; background:#ff3b30; cursor:pointer; display:grid; place-items:center}
.endbtn svg{transform:rotate(135deg)}

/* bank */
.bankcard{margin:4px 16px 16px; padding:20px; border-radius:22px; color:#fff; background:linear-gradient(135deg,var(--accent),#7b5cff); box-shadow:0 14px 30px rgba(0,0,0,.25)}
.bankcard small{opacity:.85} .bankcard b{display:block; font-size:34px; margin-top:4px; letter-spacing:-.01em}
.amt{font-variant-numeric:tabular-nums; font-weight:700} .amt.in{color:#34c759} .amt.out{color:#ff6b86}
.note{margin:4px 16px 10px; font-size:13px; color:var(--dim)} .note.ok{color:#34c759} .note.bad{color:#ff6b86}

/* chirp */
.post{margin:0 12px 10px; padding:14px; border-radius:18px; background:var(--card)}
.post header{display:flex; gap:10px; align-items:center; margin-bottom:8px} .post header .av{width:34px; height:34px; font-size:14px}
.post header b{font-size:14px} .post header small{display:block; color:var(--dim); font-size:12px}
.post p{margin:0; font-size:14px; line-height:1.45}

/* settings */
.walls{display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:0 16px 14px}
.walls button{aspect-ratio:9/16; border-radius:12px; border:2px solid transparent; cursor:pointer}
.walls button.on{border-color:var(--accent)}
.toggle{display:flex; justify-content:space-between; align-items:center; margin:0 16px; padding:14px; border-radius:14px; background:var(--card); font-size:15px}
.seg{display:flex; gap:4px; padding:3px; border-radius:10px; background:var(--card2)} .seg button{border:0; background:none; color:var(--dim); padding:6px 12px; border-radius:8px; font:600 13px inherit; cursor:pointer} .seg button.on{background:var(--accent); color:#1a0a12}
.mynum{margin:14px 16px; padding:14px; border-radius:14px; background:var(--card); font-size:14px; color:var(--dim)} .mynum b{color:var(--fg)}
