/* ============================================================
   مساعد ميم المحلي — visual system
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

:root{
  --bg:#070b0c;
  --panel:rgba(255,255,255,.045);
  --panel-2:rgba(255,255,255,.08);
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.17);
  --text:#e9f4f1;
  --muted:#8ba09c;
  --accent:#2fe0a0;
  --accent-ink:#04241a;
  --accent-soft:rgba(47,224,160,.14);
  --amber:#f5b544;
  --danger:#ff5d5d;
}

html, body { height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size:15px;
  line-height:1.5;
  overflow:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body::before{
  content:'';
  position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(72vw 46vh at 50% -10%, rgba(47,224,160,.15), transparent 70%),
    radial-gradient(52vw 42vh at 100% 106%, rgba(70,120,255,.10), transparent 70%);
}
button, input, select { font:inherit; color:inherit; }
button{
  cursor:pointer; border:0; background:none;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}
input, select { user-select:text; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

.app{
  position:relative; z-index:1;
  height:100vh; height:100dvh;
  display:flex; flex-direction:column;
  min-height:0;
}

/* ---------------- top bar ---------------- */
.topbar{
  flex:none;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  width:100%; max-width:1180px; margin:0 auto;
  padding:10px 16px 8px;
}
.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand-mark{
  width:38px; height:38px; flex:none;
  border-radius:12px;
  display:grid; place-items:center;
  background:linear-gradient(150deg, rgba(47,224,160,.9), rgba(17,110,86,.85));
  color:#032018;
  box-shadow:0 6px 18px rgba(47,224,160,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.brand-mark svg{ width:21px; height:21px; }
.brand-txt{ min-width:0; }
.brand-txt h1{
  margin:0; font-size:16px; font-weight:700; letter-spacing:-.01em;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.brand-txt p{
  margin:1px 0 0; font-size:11px; color:var(--muted);
  display:flex; align-items:center; gap:5px; white-space:nowrap;
}
.dot{
  width:6px; height:6px; border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(47,224,160,.18);
  animation:blip 2.6s ease-in-out infinite;
}
@keyframes blip{ 0%,100%{opacity:1} 50%{opacity:.35} }

.top-actions{ display:flex; gap:6px; flex:none; }
.icon-btn{
  width:38px; height:38px; border-radius:12px;
  display:grid; place-items:center;
  background:var(--panel);
  border:1px solid var(--line);
  color:#c9dbd6;
  transition:background .15s, color .15s, transform .1s, border-color .15s;
}
.icon-btn svg{ width:19px; height:19px; }
.icon-btn:hover{ background:var(--panel-2); color:#fff; }
.icon-btn:active{ transform:scale(.94); }
.icon-btn[aria-pressed="true"]{ color:var(--accent); border-color:rgba(47,224,160,.4); background:var(--accent-soft); }
#btnMute .ic-off{ display:none; }
#btnMute[aria-pressed="true"] .ic-on{ display:none; }
#btnMute[aria-pressed="true"] .ic-off{ display:block; }

/* ---------------- layout ---------------- */
.layout{
  flex:1; min-height:0;
  width:100%; max-width:1180px; margin:0 auto;
  padding:0 16px 10px;
  display:flex; gap:26px;
}
.main{
  flex:1; min-width:0; min-height:0;
  display:flex; flex-direction:column; gap:10px;
}

/* ---------------- hero / orb ---------------- */
.hero{
  flex:none;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:6px 0 2px;
}
.orb{
  position:relative;
  width:clamp(76px, 19vw, 98px);
  aspect-ratio:1;
  border-radius:50%;
  display:grid; place-items:center;
  background:radial-gradient(circle at 34% 28%, #7cffd0 0%, #2fe0a0 32%, #12836a 68%, #063a2f 100%);
  box-shadow:
    0 0 0 1px rgba(47,224,160,.4),
    0 14px 44px rgba(47,224,160,.3),
    inset 0 2px 12px rgba(255,255,255,.28),
    inset 0 -8px 22px rgba(0,0,0,.35);
  transition:transform .18s ease, box-shadow .25s ease;
}
.orb-core{ display:grid; place-items:center; color:#03251c; }
.orb-core svg{ width:30%; height:30%; }
.orb:active{ transform:scale(.95); }
.orb-ring{
  position:absolute; inset:-9px; border-radius:50%;
  border:1px solid rgba(47,224,160,.34);
  animation:pulse 3.4s ease-out infinite;
  pointer-events:none;
}
.orb-ring.r2{ animation-delay:1.7s; }
@keyframes pulse{
  0%{ transform:scale(.94); opacity:.75; }
  70%{ transform:scale(1.22); opacity:0; }
  100%{ transform:scale(1.22); opacity:0; }
}
body.listening .orb{
  box-shadow:0 0 0 2px rgba(47,224,160,.7), 0 14px 60px rgba(47,224,160,.55), inset 0 2px 12px rgba(255,255,255,.35);
}
body.listening .orb-ring{ animation-duration:1.1s; }
body.speaking .orb{ transform:scale(1.04); }

.status{
  margin:0; font-size:12.5px; color:#a9c2bc; text-align:center;
  max-width:92%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

/* ---------------- device chips ---------------- */
.chips{
  flex:none;
  display:flex; flex-wrap:wrap; gap:6px;
  justify-content:center;
}
.chip{
  height:38px;
  display:inline-flex; align-items:center; gap:6px;
  padding:0 12px;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--line);
  color:#9fb5b0;
  font-size:12.5px;
  font-weight:500;
  transition:background .16s, color .16s, border-color .16s, transform .1s;
}
.chip svg{ width:16px; height:16px; flex:none; }
.chip:hover{ background:var(--panel-2); color:#dff0eb; }
.chip:active{ transform:scale(.96); }
.chip.on{
  background:var(--accent-soft);
  border-color:rgba(47,224,160,.42);
  color:#a9ffdd;
}
.chip.chip-flash.on{
  background:rgba(245,181,68,.15);
  border-color:rgba(245,181,68,.5);
  color:#ffd88a;
}
.chip-vol{
  gap:2px; padding:0 6px; background:rgba(255,255,255,.03);
}
.chip-vol button{
  width:30px; height:30px; border-radius:999px;
  display:grid; place-items:center;
  font-size:16px; font-weight:600; color:#cfe0dc;
  background:rgba(255,255,255,.06);
}
.chip-vol button:active{ background:rgba(47,224,160,.28); }
.vol-val{
  min-width:44px; text-align:center;
  font-size:12px; font-variant-numeric:tabular-nums; color:#dff0eb;
}

/* ---------------- transcript ---------------- */
.transcript{
  flex:1; min-height:0;
  overflow-y:auto;
  display:flex; flex-direction:column; gap:11px;
  padding:4px 2px 6px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.16) transparent;
}
.transcript::-webkit-scrollbar{ width:6px; }
.transcript::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.14); border-radius:99px; }

.msg{ display:flex; flex-direction:column; gap:4px; max-width:min(88%, 520px); animation:msgIn .24s ease-out; }
@keyframes msgIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.msg.user{ align-self:flex-start; align-items:flex-start; }
.msg.bot{ align-self:flex-end; align-items:flex-end; }
.msg-label{ font-size:10.5px; color:#6f8783; padding:0 8px; }
.bubble{
  padding:10px 13px;
  border-radius:16px;
  font-size:14px;
  line-height:1.6;
  word-break:break-word;
}
.msg.user .bubble{
  background:var(--accent-soft);
  border:1px solid rgba(47,224,160,.28);
  color:#ccfff0;
  border-start-start-radius:5px;
}
.msg.bot .bubble{
  background:var(--panel);
  border:1px solid var(--line);
  color:#dbe9e5;
  border-start-end-radius:5px;
}

/* ---------------- dock ---------------- */
.dock{ flex:none; display:flex; flex-direction:column; gap:8px; }
.suggestions{
  display:flex; gap:7px; overflow-x:auto;
  padding-bottom:1px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.suggestions::-webkit-scrollbar{ display:none; }
.sug{
  white-space:nowrap;
  height:34px;
  padding:0 13px;
  border-radius:999px;
  background:rgba(255,255,255,.035);
  border:1px solid var(--line);
  color:#b9cdc8;
  font-size:12.5px;
  transition:background .15s, color .15s, transform .1s;
}
.sug:hover{ background:rgba(47,224,160,.12); color:#c8ffe9; border-color:rgba(47,224,160,.3); }
.sug:active{ transform:scale(.96); }

.inputbar{
  display:flex; align-items:center; gap:8px;
  padding:6px;
  border-radius:18px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:border-color .18s, box-shadow .18s;
}
.inputbar:focus-within{
  border-color:rgba(47,224,160,.5);
  box-shadow:0 0 0 3px rgba(47,224,160,.12);
}
.inputbar input{
  flex:1; min-width:0;
  background:transparent; border:0; outline:none;
  padding:9px 6px;
  font-size:15px;
  color:var(--text);
}
.inputbar input::placeholder{ color:#6f8580; }
.send-btn{
  width:46px; height:46px; flex:none;
  border-radius:14px;
  display:grid; place-items:center;
  background:linear-gradient(150deg, #3ff0b0, #17b98a);
  color:#03241a;
  box-shadow:0 8px 22px rgba(47,224,160,.28);
  transition:transform .1s, filter .15s;
}
.send-btn svg{ width:21px; height:21px; }
.send-btn:hover{ filter:brightness(1.06); }
.send-btn:active{ transform:scale(.94); }

/* ---------------- aside (desktop) ---------------- */
.aside{ display:none; }
@media (min-width:1024px){
  .aside{
    display:flex; flex-direction:column; gap:14px;
    width:296px; flex:none;
    min-height:0;
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.03);
    border:1px solid var(--line);
  }
  .aside-head p{ margin:8px 0 0; font-size:12px; color:var(--muted); line-height:1.65; }
  .aside-badge{
    display:inline-block;
    font-size:11px; font-weight:600;
    padding:4px 10px; border-radius:999px;
    color:#8bffd4; background:rgba(47,224,160,.13);
    border:1px solid rgba(47,224,160,.3);
  }
  .aside-body{ overflow-y:auto; min-height:0; display:flex; flex-direction:column; gap:16px; padding-inline-end:2px; }
  .lib-group h3{
    margin:0 0 7px; font-size:11.5px; font-weight:600; color:#7e948f;
    letter-spacing:.01em;
  }
  .lib-list{ display:flex; flex-direction:column; gap:3px; }
  .lib-item{
    text-align:start;
    padding:7px 10px;
    border-radius:10px;
    font-size:12.5px;
    color:#b7cbc6;
    border:1px solid transparent;
    transition:background .14s, color .14s, border-color .14s;
  }
  .lib-item:hover{ background:rgba(47,224,160,.1); color:#d6ffee; border-color:rgba(47,224,160,.22); }
}

/* ---------------- device overlay ---------------- */
.device-overlay{
  position:fixed; inset:0; z-index:50;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; padding:12px;
  background:rgba(4,8,9,.9);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  animation:fadeIn .18s ease-out;
}
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }

.device{
  width:100%; max-width:420px;
  flex:1 1 auto; min-height:0;
  max-height:min(84dvh, 760px);
  display:flex; flex-direction:column;
  background:#05090a;
  border:1px solid var(--line-2);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.7);
  animation:deviceIn .26s cubic-bezier(.2,.9,.3,1);
}
@keyframes deviceIn{ from{ opacity:0; transform:translateY(18px) scale(.97); } to{ opacity:1; transform:none; } }

.d-status{
  flex:none;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:8px 16px 6px;
  font-size:11.5px; color:#cfe0dc;
  font-variant-numeric:tabular-nums;
}
.d-time{ font-weight:600; letter-spacing:.02em; }
.d-icons{ display:flex; align-items:center; gap:7px; color:#cfe0dc; }
.d-icons svg{ width:13px; height:13px; }
.d-bat{ font-size:10.5px; opacity:.85; }

.d-body{ flex:1; min-height:0; overflow-y:auto; position:relative; }
.d-body::-webkit-scrollbar{ width:5px; }
.d-body::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.13); border-radius:99px; }
.d-homebar{ flex:none; display:grid; place-items:center; padding:8px 0 9px; }
.d-homebar span{ width:104px; height:4px; border-radius:99px; background:rgba(255,255,255,.26); }

.home-btn{
  flex:none;
  display:inline-flex; align-items:center; gap:7px;
  height:42px; padding:0 18px;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--line-2);
  color:#dcece8; font-size:13px; font-weight:500;
  transition:background .15s, transform .1s;
}
.home-btn svg{ width:16px; height:16px; }
.home-btn:active{ transform:scale(.96); }
.home-btn:hover{ background:rgba(255,255,255,.12); }

/* ---------------- mock screens ---------------- */
.mock{ min-height:100%; display:flex; flex-direction:column; font-size:13px; color:#e7f1ee; }
.mock-title{ font-size:16px; font-weight:600; padding:14px 16px 6px; }
.mock-note{
  margin:14px 16px 18px; padding-top:10px;
  font-size:10.5px; color:#7e948f;
  border-top:1px solid var(--line);
}
.mock-empty{ padding:40px 16px; text-align:center; color:var(--muted); font-size:13px; }

/* WhatsApp */
.wa{ background:#0b141a; }
.wa-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; background:#1f2c34;
}
.wa-title{ font-weight:600; font-size:15px; color:#e9edef; }
.wa-dots{ color:#8696a0; letter-spacing:2px; font-size:14px; }
.wa-tabs{ display:flex; gap:16px; padding:9px 14px 0; background:#1f2c34; font-size:11.5px; color:#8696a0; }
.wa-tabs span{ padding-bottom:8px; }
.wa-tabs .on{ color:#25d366; font-weight:600; box-shadow:inset 0 -2px 0 #25d366; }
.wa-list{ flex:1; overflow-y:auto; }
.wa-row{ display:flex; align-items:center; gap:10px; padding:9px 14px; border-bottom:1px solid rgba(255,255,255,.045); }
.wa-av{
  width:38px; height:38px; flex:none; border-radius:50%;
  display:grid; place-items:center;
  color:#06231a; font-weight:700; font-size:15px;
}
.wa-txt{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.wa-txt b{ font-size:13px; font-weight:600; color:#e9edef; }
.wa-txt small{ font-size:11.5px; color:#8696a0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wa-time{ font-size:10px; color:#8696a0; flex:none; align-self:flex-start; padding-top:3px; }
.wa-fab{
  margin:10px auto 14px; width:46px; height:46px; border-radius:50%;
  display:grid; place-items:center; font-size:22px;
  background:#25d366; color:#06231a;
  box-shadow:0 6px 18px rgba(37,211,102,.3);
}

/* Camera */
.cam{ background:#08090a; }
.cam-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; font-size:11px; color:#cfe0dc; background:#101314;
}
.cam-view{
  flex:1; position:relative; overflow:hidden;
  background:radial-gradient(circle at 62% 32%, #33443f 0%, #16211f 55%, #080d0c 100%);
  transition:background .35s;
}
.cam.flash-on .cam-view{
  background:radial-gradient(circle at 50% 38%, #fff6d0 0%, #6b7361 42%, #101614 100%);
}
.cam-view::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.07), transparent 28%, transparent 72%, rgba(0,0,0,.45));
  pointer-events:none;
}
.cam-grid{
  position:absolute; inset:9%;
  border:1px solid rgba(255,255,255,.14);
  background-image:
    repeating-linear-gradient(to right, transparent 0, transparent calc(33.333% - 1px), rgba(255,255,255,.12) calc(33.333% - 1px), rgba(255,255,255,.12) 33.333%),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(33.333% - 1px), rgba(255,255,255,.12) calc(33.333% - 1px), rgba(255,255,255,.12) 33.333%);
}
.cam-hint{
  position:absolute; bottom:14px; inset-inline:0; text-align:center;
  font-size:10.5px; color:rgba(255,255,255,.55);
}
.cam-bottom{
  flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; background:#0b0f0e;
}
.cam-thumb{ width:34px; height:34px; border-radius:9px; background:linear-gradient(140deg,#2b3a55,#5b3a8a); }
.cam-flip{ color:#cfe0dc; font-size:19px; }
.cam-shutter{
  width:56px; height:56px; border-radius:50%;
  border:3px solid rgba(255,255,255,.85);
  background:rgba(255,255,255,.16);
  transition:transform .1s, background .15s;
}
.cam-shutter:active{ transform:scale(.9); background:rgba(255,255,255,.6); }
.cam-flashfx{
  position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none;
  animation:flashFx .32s ease-out;
}
@keyframes flashFx{ 0%{opacity:.9} 100%{opacity:0} }

/* YouTube */
.yt{ background:#0a0a0b; }
.yt-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; background:#0f0f10; }
.yt-logo{ color:#ff2d2d; font-weight:700; font-size:15px; }
.yt-head small{ color:#8b9b97; font-size:11px; margin-inline-start:auto; }
.yt-item{ padding:10px 0 4px; }
.yt-thumb{ height:92px; margin:0 14px; border-radius:10px; }
.yt-thumb.t1{ background:linear-gradient(135deg,#1d3b2f,#2fe0a0 140%); }
.yt-thumb.t2{ background:linear-gradient(135deg,#3a2a55,#8b5bff 150%); }
.yt-thumb.t3{ background:linear-gradient(135deg,#4a2b1a,#f5b544 160%); }
.yt-item b{ display:block; padding:8px 14px 0; font-size:12.5px; font-weight:600; }
.yt-item small{ display:block; padding:2px 14px 0; font-size:11px; color:#8b9b97; }

/* Phone dialer */
.dial{ background:#0a0f10; }
.dial-display{
  padding:18px 16px 8px; text-align:center;
  font-size:26px; letter-spacing:.16em; min-height:56px;
  color:#eaf6f2; direction:ltr; font-variant-numeric:tabular-nums;
  word-break:break-all;
}
.dial-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; padding:6px 30px 0; }
.dial-key{
  height:50px; border-radius:50%;
  background:rgba(255,255,255,.07);
  color:#eaf6f2; font-size:17px; font-weight:500;
  display:grid; place-items:center;
  transition:background .12s, transform .1s;
}
.dial-key:active{ background:rgba(47,224,160,.28); transform:scale(.94); }
.dial-call{
  margin:14px auto; width:58px; height:58px; border-radius:50%;
  background:#2fe0a0; color:#04241a;
  display:grid; place-items:center;
  box-shadow:0 8px 22px rgba(47,224,160,.3);
}
.dial-call svg{ width:24px; height:24px; }
.dial-recent{ padding:0 16px 12px; }
.dial-recent h4{ margin:0 0 6px; font-size:11px; font-weight:600; color:#7e948f; }
.recent-row{ display:flex; align-items:center; gap:8px; padding:6px 0; font-size:12px; color:#c4d6d1; }
.recent-row span:last-child{ margin-inline-start:auto; color:#7e948f; font-size:10.5px; }

/* Messages */
.sms{ background:#0d1112; }
.sms-head{ display:flex; align-items:center; gap:8px; padding:12px 14px; background:#171c1e; font-size:13.5px; font-weight:600; }
.sms-av{ width:30px; height:30px; border-radius:50%; background:#b07cff; display:grid; place-items:center; color:#1a0b33; font-weight:700; font-size:13px; }
.sms-body{ flex:1; padding:14px; display:flex; flex-direction:column; gap:8px; overflow-y:auto; }
.sms-b{ max-width:78%; padding:8px 12px; border-radius:14px; font-size:12.5px; line-height:1.5; }
.sms-b.in{ align-self:flex-start; background:rgba(255,255,255,.08); color:#e2eeea; border-start-start-radius:4px; }
.sms-b.out{ align-self:flex-end; background:rgba(47,224,160,.18); color:#ccfff0; border-start-end-radius:4px; }
.sms-bar{ flex:none; display:flex; gap:8px; padding:10px 12px; background:#171c1e; align-items:center; color:#7e948f; font-size:12px; }
.sms-bar span{ flex:1; padding:8px 12px; border-radius:999px; background:rgba(255,255,255,.06); }

/* Maps */
.map{ flex:1; position:relative; background:#0d1613; overflow:hidden; }
.map-roads{
  position:absolute; inset:-10%;
  background-image:
    linear-gradient(90deg, transparent 45%, #1e3a2f 45%, #1e3a2f 55%, transparent 55%),
    linear-gradient(0deg, transparent 28%, #24443a 28%, #24443a 34%, transparent 34%),
    linear-gradient(58deg, transparent 66%, #1a322a 66%, #1a322a 72%, transparent 72%),
    linear-gradient(122deg, transparent 18%, #1a322a 18%, #1a322a 22%, transparent 22%);
  opacity:.9;
}
.map-pin{
  position:absolute; left:47%; top:40%;
  width:16px; height:16px;
  border-radius:50% 50% 50% 0;
  background:var(--accent);
  transform:rotate(-45deg);
  box-shadow:0 0 0 7px rgba(47,224,160,.16);
}
.map-search{
  position:absolute; top:12px; inset-inline:14px;
  display:flex; align-items:center; gap:8px;
  padding:9px 14px; border-radius:999px;
  background:rgba(8,14,12,.86);
  border:1px solid rgba(255,255,255,.1);
  font-size:12px; color:#a9c2bc;
}
.map-card{
  position:absolute; bottom:14px; inset-inline:14px;
  padding:12px 14px; border-radius:14px;
  background:rgba(8,14,12,.9);
  border:1px solid rgba(255,255,255,.1);
  font-size:12px;
}
.map-card b{ display:block; font-size:13px; margin-bottom:2px; }
.map-card small{ color:#7e948f; font-size:11px; }

/* Clock */
.clock{ background:linear-gradient(180deg,#101a1c,#080d0e); align-items:center; }
.clock-time{
  font-size:52px; font-weight:300; letter-spacing:-.02em;
  color:#eafff8; padding:26px 0 0; direction:ltr;
  font-variant-numeric:tabular-nums;
}
.clock-sub{ font-size:12px; color:#8ba09c; margin-top:2px; }
.clock-alarms{ width:100%; padding:22px 16px 0; display:flex; flex-direction:column; gap:8px; }
.alarm-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  font-size:12.5px;
}
.alarm-row small{ color:#8ba09c; font-size:11px; }

/* Music */
.music{ background:linear-gradient(180deg,#1a1120,#0a070d); align-items:center; padding-top:22px; }
.music-art{
  width:150px; height:150px; border-radius:18px;
  background:linear-gradient(140deg,#ff6b9a,#8b5bff 60%,#2fe0a0 130%);
  box-shadow:0 20px 50px rgba(139,91,255,.35);
}
.music-title{ margin-top:16px; font-size:15px; font-weight:600; }
.music-sub{ font-size:11.5px; color:#9a8fae; margin-top:2px; }
.music-bar{ width:76%; height:4px; border-radius:99px; background:rgba(255,255,255,.12); margin-top:18px; overflow:hidden; }
.music-bar i{ display:block; height:100%; width:38%; background:#ff6b9a; border-radius:99px; }
.music-ctrls{ display:flex; align-items:center; gap:22px; margin-top:18px; color:#e9d9f2; font-size:19px; }
.music-play{
  width:52px; height:52px; border-radius:50%;
  background:rgba(255,255,255,.12);
  display:grid; place-items:center; color:#fff;
}
.music-play:active{ background:rgba(255,107,154,.4); }

/* Settings */
.set{ background:#0b1214; }
.set-group{
  margin:8px 12px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.set-row{ display:flex; align-items:center; gap:10px; padding:11px 13px; border-bottom:1px solid var(--line); }
.set-row:last-child{ border-bottom:0; }
.set-ic{ width:20px; display:grid; place-items:center; color:#a9c2bc; }
.set-ic svg{ width:17px; height:17px; }
.set-label{ flex:1; font-size:12.5px; color:#dbe9e5; }
.switch{
  width:44px; height:26px; flex:none;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  position:relative;
  transition:background .18s;
}
.switch span{
  position:absolute; top:3px; inset-inline-start:3px;
  width:20px; height:20px; border-radius:50%;
  background:#fff;
  transition:inset-inline-start .18s ease;
}
.switch.on{ background:var(--accent); }
.switch.on span{ inset-inline-start:21px; }
.range{ width:104px; flex:none; accent-color:#2fe0a0; }

/* Call screen */
.call-body{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:24px 16px; background:radial-gradient(circle at 50% 22%, #10322a, #050a09 72%);
}
.call-av{
  width:88px; height:88px; border-radius:50%;
  display:grid; place-items:center;
  font-size:32px; font-weight:700;
  color:#04241a;
  background:linear-gradient(150deg,#7cffd0,#12836a);
  box-shadow:0 0 0 8px rgba(47,224,160,.1);
  animation:callPulse 2.2s ease-in-out infinite;
}
@keyframes callPulse{ 0%,100%{ box-shadow:0 0 0 8px rgba(47,224,160,.1); } 50%{ box-shadow:0 0 0 16px rgba(47,224,160,.05); } }
.call-name{ font-size:19px; font-weight:600; margin-top:10px; }
.call-num{ font-size:12px; color:#8ba09c; direction:ltr; }
.call-state{ font-size:12.5px; color:#7cffd0; margin-top:4px; font-variant-numeric:tabular-nums; }
.call-actions{ margin-top:26px; display:flex; gap:18px; }
.call-btn{
  width:62px; height:62px; border-radius:50%;
  display:grid; place-items:center;
  color:#fff;
}
.call-btn svg{ width:26px; height:26px; }
.call-btn.end{ background:#ff4d4d; box-shadow:0 10px 26px rgba(255,77,77,.35); }
.call-btn.end:active{ transform:scale(.94); }

/* ---------------- sheets ---------------- */
.sheet{
  position:fixed; inset:0; z-index:80;
  display:flex; align-items:flex-end; justify-content:center;
  background:rgba(3,6,7,.68);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
  animation:fadeIn .18s ease-out;
}
.sheet-panel{
  width:100%; max-width:560px;
  max-height:86dvh;
  overflow-y:auto;
  background:#0c1416;
  border:1px solid var(--line-2);
  border-radius:24px 24px 0 0;
  padding:18px 18px 24px;
  animation:sheetUp .26s cubic-bezier(.2,.9,.3,1);
}
@keyframes sheetUp{ from{ transform:translateY(28px); opacity:.4; } to{ transform:none; opacity:1; } }
@media (min-width:640px){
  .sheet{ align-items:center; }
  .sheet-panel{ border-radius:22px; max-height:82dvh; }
}
.sheet-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sheet-head h2{ margin:0; font-size:17px; font-weight:700; }
.sheet-desc{ margin:8px 0 14px; font-size:12.5px; color:var(--muted); line-height:1.65; }
.sheet-foot{ margin:16px 0 0; font-size:11px; color:#6f8783; line-height:1.7; border-top:1px solid var(--line); padding-top:12px; }

.lib-group{ margin-bottom:14px; }
.lib-group h3{ margin:0 0 6px; font-size:11.5px; font-weight:600; color:#7e948f; }
.lib-list{ display:flex; flex-wrap:wrap; gap:6px; }
.lib-chip{
  padding:8px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.045);
  border:1px solid var(--line);
  color:#c1d6d0;
  font-size:12.5px;
  transition:background .14s, color .14s, border-color .14s, transform .1s;
}
.lib-chip:hover{ background:rgba(47,224,160,.12); color:#c8ffe9; border-color:rgba(47,224,160,.3); }
.lib-chip:active{ transform:scale(.96); }

/* shortcuts form */
.sc-form{ display:flex; flex-direction:column; gap:10px; margin-bottom:18px; }
.field{ display:flex; flex-direction:column; gap:5px; }
.field > span{ font-size:11.5px; color:#8ba09c; padding-inline-start:4px; }
.field input, .field select{
  width:100%;
  padding:11px 14px;
  border-radius:13px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  color:var(--text);
  font-size:14px;
  outline:none;
  transition:border-color .16s, box-shadow .16s;
  appearance:none;
}
.field input:focus, .field select:focus{
  border-color:rgba(47,224,160,.5);
  box-shadow:0 0 0 3px rgba(47,224,160,.12);
}
.field select{ background-image:linear-gradient(45deg, transparent 50%, #8ba09c 50%), linear-gradient(135deg, #8ba09c 50%, transparent 50%); background-position:calc(0% + 16px) 50%, calc(0% + 21px) 50%; background-size:5px 5px, 5px 5px; background-repeat:no-repeat; }
.primary-btn{
  height:46px;
  border-radius:14px;
  background:linear-gradient(150deg,#3ff0b0,#17b98a);
  color:#03241a;
  font-size:14px;
  font-weight:600;
  box-shadow:0 8px 22px rgba(47,224,160,.24);
  transition:transform .1s, filter .15s;
}
.primary-btn:active{ transform:scale(.98); }
.primary-btn:hover{ filter:brightness(1.06); }
.form-error{
  margin:0; font-size:12px; color:#ff8f8f;
  background:rgba(255,93,93,.1);
  border:1px solid rgba(255,93,93,.28);
  border-radius:10px; padding:8px 12px;
}

.sc-list{ display:flex; flex-direction:column; gap:8px; }
.sc-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 13px;
  border-radius:13px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}
.sc-item .sc-phrase{ font-size:13px; font-weight:600; color:#d6fff1; }
.sc-item .sc-arrow{ color:#5d736f; font-size:12px; }
.sc-item .sc-target{ flex:1; min-width:0; font-size:11.5px; color:#8ba09c; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sc-del{
  width:32px; height:32px; flex:none; border-radius:10px;
  display:grid; place-items:center;
  color:#ff8f8f;
  background:rgba(255,93,93,.1);
  border:1px solid rgba(255,93,93,.2);
  transition:background .14s, transform .1s;
}
.sc-del svg{ width:15px; height:15px; }
.sc-del:active{ transform:scale(.92); }
.sc-empty{ font-size:12.5px; color:#7e948f; text-align:center; padding:18px 8px; line-height:1.7; }

/* ---------------- toast ---------------- */
.toast{
  position:fixed; z-index:120;
  left:50%; bottom:104px; transform:translateX(-50%);
  max-width:min(88vw, 420px);
  padding:10px 16px;
  border-radius:999px;
  background:rgba(12,20,22,.96);
  border:1px solid var(--line-2);
  color:#dfeeea;
  font-size:12.5px;
  text-align:center;
  box-shadow:0 12px 34px rgba(0,0,0,.5);
  animation:toastIn .2s ease-out;
}
@keyframes toastIn{ from{ opacity:0; transform:translate(-50%, 8px); } to{ opacity:1; transform:translate(-50%,0); } }

/* ---------------- small screens ---------------- */
@media (max-height:640px){
  .hero{ padding:2px 0 0; }
  .orb{ width:clamp(64px, 15vw, 78px); }
  .status{ font-size:11.5px; }
  .chips{ gap:5px; }
  .chip{ height:34px; font-size:11.5px; padding:0 10px; }
  .chip-vol button{ width:26px; height:26px; }
}
@media (max-width:420px){
  .brand-txt h1{ font-size:15px; }
  .icon-btn{ width:36px; height:36px; }
  .bubble{ font-size:13.5px; }
}
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}