/* ============================================================
   theme.css — DARK (default) / LIGHT glass chrome
   - default dark glass matches the dashboard "widget" material
   - [data-theme="light"] falls back to the original white glass
   - notifications & toasts are ALWAYS widget-dark glass (per spec)
   - app windows + their interiors are NOT themed (stay fixed)
   - also: opaque dropdowns, mobile master-detail messaging,
     responsive dialogs
   loaded LAST so it wins over the base white-glass chrome.
   ============================================================ */

/* ============ THEME TOGGLE on login ============ */
/* Docked inside the auth card: matches the form's ghost buttons / inputs —
   a flat hairline surface with no glass blur and no drop shadow, so it reads
   as part of the login / register form rather than a floating control. */
.login-theme{position:fixed;top:18px;inset-inline-end:18px;z-index:8;width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;color:var(--ink);background:rgba(255,255,255,.5);
  border:1px solid var(--hairline);transition:.16s;}
.login-theme:hover{background:rgba(255,255,255,.85);transform:translateY(-1px);}
[data-theme="dark"] .login-theme{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .login-theme:hover{background:rgba(255,255,255,.15);}

/* ============ LANGUAGE PICKER on login / register ============ */
.login-langwrap{position:fixed;}
.login-lang{display:flex;align-items:center;gap:6px;height:44px;padding:0 14px;border-radius:14px;
  color:var(--ink);font-size:13px;font-weight:700;letter-spacing:.02em;background:rgba(255,255,255,.5);
  border:1px solid var(--hairline);transition:.16s;}
.login-lang:hover{background:rgba(255,255,255,.85);transform:translateY(-1px);}
.login-lang svg{opacity:.8;}
.login-lang-flag{font-size:16px;line-height:1;}
[data-theme="dark"] .login-lang{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .login-lang:hover{background:rgba(255,255,255,.15);}
.login-lang-menu{top:54px;inset-inline-start:0;inset-inline-end:auto;}

/* ============ LANGUAGE DROPDOWN: solid surface ============ */
/* The picker floats over the top bar / desktop; a glassy fill let whatever sat
   behind it show through. Give it a fully opaque surface with no blur. */
.lang-menu{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none;}
[data-theme="dark"] .lang-menu{background:#15172a;backdrop-filter:none;-webkit-backdrop-filter:none;}

/* ============ ALWAYS-DARK: notifications shade (widget glass) ============ */
.notif-scrim{position:fixed;inset:0;z-index:158;}
.notif-panel{position:fixed;top:56px;inset-inline-end:14px;inset-inline-start:auto;z-index:160;width:420px;max-width:calc(100vw - 28px);
  max-height:calc(100vh - 84px);display:flex;flex-direction:column;border-radius:20px;overflow:hidden;
  background:rgba(19,21,38,.74);
  backdrop-filter:blur(28px) saturate(155%);-webkit-backdrop-filter:blur(28px) saturate(155%);
  border:1px solid rgba(255,255,255,.16);box-shadow:0 26px 64px -18px rgba(6,8,22,.82);
  animation:notifIn .26s cubic-bezier(.2,.9,.3,1) both;}
@keyframes notifIn{from{opacity:0;transform:translateY(-12px) scale(.985);}to{opacity:1;transform:none;}}
.notif-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.1);}
.notif-head b{display:flex;align-items:center;gap:8px;font-size:14.5px;font-weight:700;color:#fff;}
.notif-head b svg{color:rgba(255,255,255,.66);}
.notif-head-acts{display:flex;align-items:center;gap:4px;}
.notif-clear{font-size:11.5px;font-weight:700;color:#7FB6F5;padding:6px 11px;border-radius:9px;transition:.14s;}
.notif-clear:hover{background:rgba(127,182,245,.16);}
.notif-x{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:rgba(255,255,255,.58);transition:.14s;}
.notif-x:hover{background:rgba(255,255,255,.12);color:#fff;}
.notif-list{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:6px;}
.notif-list::-webkit-scrollbar{width:7px;}
.notif-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:6px;}
.notif-empty{display:flex;flex-direction:column;align-items:center;gap:11px;padding:46px 16px;color:rgba(255,255,255,.4);font-size:13px;}
.notif-item{position:relative;display:flex;align-items:flex-start;gap:11px;padding:11px 12px;border-radius:14px;
  background:rgba(255,255,255,.05);transition:.14s;}
.notif-item:hover{background:rgba(255,255,255,.09);}
img.notif-ico{width:36px;height:36px;flex:none;}
.notif-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding-top:1px;}
.notif-body b{font-size:13px;font-weight:700;color:#fff;line-height:1.4;}
.notif-body span{font-size:11.5px;color:rgba(255,255,255,.58);line-height:1.55;}
.notif-time{font-size:10.5px;color:rgba(255,255,255,.4);white-space:nowrap;margin-top:4px;align-self:flex-end;}
.notif-dismiss{position:absolute;top:8px;inset-inline-end:8px;width:24px;height:24px;border-radius:8px;flex:none;
  display:grid;place-items:center;color:rgba(255,255,255,.42);transition:.14s;opacity:0;}
.notif-item:hover .notif-dismiss{opacity:1;}
.notif-dismiss:hover{background:rgba(255,255,255,.14);color:#fff;}

/* ============ ALWAYS-DARK: toasts (widget glass) ============ */
.toast{background:rgba(19,21,38,.8);
  backdrop-filter:blur(26px) saturate(155%);-webkit-backdrop-filter:blur(26px) saturate(155%);
  border:1px solid rgba(255,255,255,.16);}
.toast-body b{font-size:13.5px;color:#fff;}
.toast-body span{font-size:12px;color:rgba(255,255,255,.62);}
.toast-x{width:26px;height:26px;border-radius:8px;flex:none;display:grid;place-items:center;align-self:flex-start;
  color:rgba(255,255,255,.5);transition:.14s;}
.toast-x:hover{background:rgba(255,255,255,.14);color:#fff;}

/* opaque dropdowns in BOTH themes (kills background bleed-through) */
[data-theme="light"] .tbd-menu,[data-theme="light"] .ds-menu{background:#ffffff;
  box-shadow:0 26px 64px -18px rgba(20,24,45,.5);}

/* dialog top-corner close — dark theme */
[data-theme="dark"] .modal-x{background:rgba(255,255,255,.08);color:rgba(255,255,255,.6);}
[data-theme="dark"] .modal-x:hover{background:rgba(226,87,76,.3);color:#FF9084;}

/* ============================================================
   LIGHT THEME — keep frosted chrome readable over the wallpaper
   ============================================================ */
[data-theme="light"] .login-card{
  background:linear-gradient(165deg,rgba(255,255,255,.6),rgba(255,255,255,.44));
  border:1px solid rgba(255,255,255,.7);
  backdrop-filter:blur(34px) saturate(168%);-webkit-backdrop-filter:blur(34px) saturate(168%);
  box-shadow:var(--shadow-win),inset 0 1px 0 rgba(255,255,255,.65);
}
[data-theme="light"] .modal{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.9);}
[data-theme="light"] .help-card{background:#fff;}
[data-theme="light"] .login-divider{color:var(--ink-faint);}

/* ============================================================
   DARK THEME — chrome surfaces match the widget glass
   ============================================================ */

/* ---- top bar ---- */
[data-theme="dark"] .topbar{background:rgba(15,17,32,.66);border-color:rgba(255,255,255,.1);
  box-shadow:0 2px 20px -6px rgba(6,8,22,.6);}
[data-theme="dark"] .tb-brand{color:#fff;}
[data-theme="dark"] .tb-search{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.5);}
[data-theme="dark"] .tb-search input{color:#fff;}
[data-theme="dark"] .tb-search input::placeholder{color:rgba(255,255,255,.42);}
[data-theme="dark"] .tb-lang{color:rgba(255,255,255,.74);}
[data-theme="dark"] .tb-lang:hover{background:rgba(255,255,255,.12);}
[data-theme="dark"] .tb-ic{color:rgba(255,255,255,.74);}
[data-theme="dark"] .tb-ic:hover{background:rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .tb-power:hover{background:rgba(226,87,76,.3);color:#FF9084;}
[data-theme="dark"] .tb-badge{box-shadow:0 0 0 2px rgba(15,17,32,.95);}

/* ---- device pill + dropdowns ---- */
[data-theme="dark"] .tbd-btn{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .tbd-btn:hover{background:rgba(255,255,255,.16);}
[data-theme="dark"] .tbd-btn svg{color:rgba(255,255,255,.6);}
[data-theme="dark"] .tbd-pair{color:rgba(255,255,255,.55);}
[data-theme="dark"] .tbd-menu,[data-theme="dark"] .ds-menu,[data-theme="dark"] .lang-menu{
  background:rgba(20,22,40,.99);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 26px 64px -18px rgba(6,8,22,.92);}
[data-theme="dark"] .ds-menu-h{color:rgba(255,255,255,.5);}
[data-theme="dark"] .ds-item:hover{background:rgba(255,255,255,.08);}
[data-theme="dark"] .ds-item .ds-meta b{color:#fff;}
[data-theme="dark"] .ds-item .ds-meta span{color:rgba(255,255,255,.5);}
[data-theme="dark"] .ds-on{background:rgba(43,166,240,.22)!important;}
[data-theme="dark"] .ds-add{background:rgba(43,166,240,.18);color:#7FB6F5;}
[data-theme="dark"] .ds-add:hover{background:var(--accent);color:#fff;}

/* ---- login card ---- */
[data-theme="dark"] .login-card{background:rgba(17,19,36,.84);border:1px solid rgba(255,255,255,.14);}
[data-theme="dark"] .login-card h1{color:#fff;}
[data-theme="dark"] .login-sub{color:rgba(255,255,255,.56);}
[data-theme="dark"] .field span{color:rgba(255,255,255,.72);}
[data-theme="dark"] .field input{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(43,166,240,.25);}
[data-theme="dark"] .rem{color:rgba(255,255,255,.72);}
[data-theme="dark"] .btn-ghost{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .btn-ghost:hover{background:rgba(255,255,255,.15);}
[data-theme="dark"] .login-divider{color:rgba(255,255,255,.45);}
[data-theme="dark"] .login-divider::before,[data-theme="dark"] .login-divider::after{
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.3) 50%,transparent);
  box-shadow:0 1px 2px rgba(255,255,255,.08);}
[data-theme="dark"] .social-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .social-btn:hover{background:rgba(255,255,255,.15);}

/* ---- welcome / confirm modal ---- */
[data-theme="dark"] .modal{background:rgba(20,22,40,.92);border:1px solid rgba(255,255,255,.14);}
[data-theme="dark"] .modal h2{color:#fff;}
[data-theme="dark"] .modal p{color:rgba(255,255,255,.66);}
[data-theme="dark"] .step{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .step b{color:#fff;}
[data-theme="dark"] .step span{color:rgba(255,255,255,.5);}
/* onboarding dialogs — dark */
[data-theme="dark"] .onb-lic-head{color:rgba(255,255,255,.62);}
[data-theme="dark"] .onb-way{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .onb-way.feat{background:rgba(43,166,240,.12);border-color:var(--accent);}
[data-theme="dark"] .onb-way b{color:#fff;}
[data-theme="dark"] .onb-way-desc{color:rgba(255,255,255,.6);}
[data-theme="dark"] .onb-foot-note{background:rgba(255,255,255,.05);color:rgba(255,255,255,.6);}
[data-theme="dark"] .onb-step{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .onb-step-txt b{color:#fff;}
[data-theme="dark"] .onb-step-txt span{color:rgba(255,255,255,.58);}
[data-theme="dark"] .install-shot .shot-frame{
  background:linear-gradient(160deg,rgba(43,166,240,.18),rgba(255,255,255,.03));
  border-color:rgba(255,255,255,.12);color:rgba(255,255,255,.45);}
[data-theme="dark"] .shot-cap{color:rgba(255,255,255,.62);}

/* ---- per-section help sheet (dialog) ---- */
[data-theme="dark"] .help-card{background:rgba(20,22,40,.94);border:1px solid rgba(255,255,255,.14);
  box-shadow:0 26px 64px -18px rgba(6,8,22,.85);}
[data-theme="dark"] .help-h b{color:#fff;}
[data-theme="dark"] .help-d{color:rgba(255,255,255,.66);}
[data-theme="dark"] .help-p li{color:rgba(255,255,255,.84);}
[data-theme="dark"] .help-foot{color:rgba(255,255,255,.5);border-top-color:rgba(255,255,255,.12);}
[data-theme="dark"] .help-x{color:rgba(255,255,255,.5);}
[data-theme="dark"] .help-x:hover{background:rgba(255,255,255,.1);color:#fff;}

/* ============================================================
   RESPONSIVE DIALOGS — scroll instead of overflow on short screens
   ============================================================ */
.modal{max-height:90vh;overflow-y:auto;}
.help-sheet{align-items:center;}
.help-card{max-height:calc(100% - 32px);overflow-y:auto;}

/* ============================================================
   MOBILE — master/detail for SMS + messengers
   (tap a thread -> conversation slides in, back button returns)
   ============================================================ */
.mob-back{display:none;}
@media (max-width:760px){
  /* SMS (pane-split: thread-list + convo) */
  .pane-split{flex-direction:column;position:relative;}
  .pane-split>.thread-list{width:100%!important;max-width:none!important;max-height:none!important;
    flex:1;border-bottom:none!important;border-inline-end:none!important;}
  .pane-split>.convo{display:none;}
  .pane-split.mob-convo>.thread-list{display:none;}
  .pane-split.mob-convo>.convo{display:flex;flex:1;}

  /* single messenger (msg-app: msg-list + convo) */
  .msg-app{flex-direction:row!important;}
  .msg-app>.msg-list{width:100%!important;max-width:none!important;flex:1;border-inline-end:none!important;}
  .msg-app>.convo{display:none;}
  .msg-app.mob-convo>.msg-list{display:none;}
  .msg-app.mob-convo>.convo{display:flex;flex:1;}

  .mob-back{display:grid!important;}

  /* dialogs: equal side margins, never wider/taller than the screen */
  .modal-overlay{padding:16px;}
  .modal,.modal.onb{width:100%!important;max-width:100%!important;max-height:88vh;}
  .acc-sheet{max-width:100%!important;}

  /* notifications shade: nearly full-width sheet from the top */
  .notif-panel{top:52px;right:8px;left:8px;width:auto;max-width:none;max-height:calc(100dvh - 64px);}
}

/* ============================================================
   LIGHT THEME — dashboard widgets, dock & empty-state readability
   (widget cards were too translucent over the wallpaper; faint
    Wi-Fi/location/time labels are darkened to match install-status text)
   ============================================================ */
[data-theme="light"] .dash-card{
  background:linear-gradient(165deg,rgba(255,255,255,.7),rgba(255,255,255,.54));
  border:1px solid rgba(255,255,255,.78);
  backdrop-filter:blur(30px) saturate(162%);-webkit-backdrop-filter:blur(30px) saturate(162%);
  box-shadow:0 16px 40px -16px rgba(20,24,45,.34),inset 0 1px 0 rgba(255,255,255,.68);
}
/* faint widget labels + icons -> readable ink-soft (same family as install-status) */
[data-theme="light"] .dash-card .sl-k,
[data-theme="light"] .dash-card .sl-ic,
[data-theme="light"] .dash-card .sys-row span,
[data-theme="light"] .dash-card .rep-k,
[data-theme="light"] .dash-card .inst-k{color:var(--ink-soft)!important;}
[data-theme="light"] .dash-card .inst-ic{color:var(--ink-soft);}
/* values stay full-ink for max contrast */
[data-theme="light"] .dash-card .sl-v,
[data-theme="light"] .dash-card .sys-row b{color:var(--ink)!important;}
[data-theme="light"] .dash-card .dh-meta span,
[data-theme="light"] .dash-card .rep-v{color:var(--ink-soft);}

/* dock / bottom menu adapts to the light theme instead of staying dark */
[data-theme="light"] .dock{
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 16px 40px -14px rgba(20,24,45,.38);
}
[data-theme="light"] .dock .run-dot{background:var(--accent);box-shadow:0 0 0 2px rgba(255,255,255,.7);}
[data-theme="light"] .dock-sep{background:rgba(31,36,51,.14);}

/* "all widgets hidden" empty-state — glassy card + readable copy */
[data-theme="light"] .dash-empty{
  background:rgba(255,255,255,.45);border:1px dashed rgba(31,36,51,.2);
  backdrop-filter:blur(22px) saturate(160%);-webkit-backdrop-filter:blur(22px) saturate(160%);
  box-shadow:0 18px 40px -20px rgba(20,24,45,.4);
}
[data-theme="light"] .dash-empty .de-ic{background:rgba(31,36,51,.07);color:var(--ink-soft);}
[data-theme="light"] .dash-empty>span{color:var(--ink-soft);}

/* ============================================================================
   DARK THEME — APP WINDOWS + their interiors.
   The original template deliberately left app windows light in both themes
   ("app windows + their interiors are NOT themed"). This block completes the
   dark theme so every app follows it, matching the chrome/widgets/dialogs.

   Strategy: redefine the design TOKENS under [data-theme="dark"] so all the
   token-driven text (var(--ink/-soft/-faint)) and hairline borders flip in one
   shot; then override only the surfaces that hard-code light fills
   (rgba(255,255,255,*) / #fff / rgba(31,36,51,*)).
   ============================================================================ */
[data-theme="dark"]{
  --ink:#eef1f8;
  --ink-soft:#aab2c6;
  --ink-faint:#828aa0;
  --hairline:rgba(255,255,255,.1);
  --surface:#1c1f35;
  --accent-soft:rgba(43,166,240,.2);
}

/* ---- window chrome ---- */
[data-theme="dark"] .win-bar{
  background:linear-gradient(180deg,rgba(42,45,72,.95),rgba(28,30,52,.95));
  border-bottom-color:rgba(255,255,255,.08);}
[data-theme="dark"] .win-title{color:#fff;}
[data-theme="dark"] .wc{color:rgba(255,255,255,.66);}
[data-theme="dark"] .wc:hover{background:rgba(255,255,255,.12);color:#fff;}
[data-theme="dark"] .wc-back{background:rgba(255,255,255,.08);color:#fff;}
[data-theme="dark"] .wc-back:hover,[data-theme="dark"] .wc-back:active{background:rgba(255,255,255,.16);}
[data-theme="dark"] .win-body{background:#191b2e;}
[data-theme="dark"] .win-body ::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);}

/* ---- generic app shell ---- */
[data-theme="dark"] .seg{background:rgba(255,255,255,.06);}
[data-theme="dark"] .seg button{color:rgba(255,255,255,.6);}
[data-theme="dark"] .seg button.on{background:rgba(255,255,255,.14);color:#fff;box-shadow:none;}
[data-theme="dark"] .chip{background:rgba(255,255,255,.07);}
[data-theme="dark"] .row:hover{background:rgba(255,255,255,.06);}
[data-theme="dark"] .ic-btn:hover{background:rgba(255,255,255,.1);color:#fff;}
[data-theme="dark"] .row-del:hover{background:rgba(226,87,76,.22);color:#FF9084;}

/* ---- threads / sms / messengers ---- */
[data-theme="dark"] .th-item:hover{background:rgba(255,255,255,.06);}
[data-theme="dark"] .th-on{background:rgba(217,119,87,.2)!important;}
[data-theme="dark"] .convo{background:linear-gradient(180deg,rgba(38,40,62,.5),rgba(28,30,50,.5));}
[data-theme="dark"] .convo-head{background:rgba(255,255,255,.04);}
[data-theme="dark"] .bubble,[data-theme="dark"] .voice,[data-theme="dark"] .img-bubble,
[data-theme="dark"] .file-bubble{background:#2a2d49;color:#eef1f8;box-shadow:0 2px 8px -4px rgba(0,0,0,.5);}
[data-theme="dark"] .bubble.b-me,[data-theme="dark"] .voice.v-me,
[data-theme="dark"] .file-bubble.f-me{background:linear-gradient(150deg,var(--accent),var(--accent-deep));color:#fff;}
[data-theme="dark"] .sender{color:#7FB6F5;}
[data-theme="dark"] .composer{background:rgba(255,255,255,.05);}
[data-theme="dark"] .send-btn.ghost:hover{background:rgba(255,255,255,.1);color:#fff;}
[data-theme="dark"] .msg-rail{background:rgba(255,255,255,.03);}
[data-theme="dark"] .rail-app:hover{background:rgba(255,255,255,.07);}
[data-theme="dark"] .rail-dot{border-color:#191b2e;}
[data-theme="dark"] .msg-list{background:rgba(255,255,255,.02);}
[data-theme="dark"] .monitor-note{background:rgba(255,255,255,.03);}
[data-theme="dark"] .call-source{background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);}

/* ---- buttons / toolbars ---- */
[data-theme="dark"] .btn-soft{background:rgba(255,255,255,.07);color:rgba(255,255,255,.72);}
[data-theme="dark"] .btn-soft:hover{background:rgba(255,255,255,.12);color:#fff;}
[data-theme="dark"] .selbar{background:rgba(255,255,255,.04);}
[data-theme="dark"] .selbar-on{background:rgba(43,166,240,.18);}
[data-theme="dark"] .pill-toggle{background:rgba(255,255,255,.07);color:rgba(255,255,255,.7);}
[data-theme="dark"] .pill-toggle:hover{background:rgba(255,255,255,.12);}
[data-theme="dark"] .toggle{background:rgba(255,255,255,.2);}

/* ---- voice recorder ---- */
[data-theme="dark"] .voice-now{background:rgba(255,255,255,.04);}
[data-theme="dark"] .vn-prog{background:rgba(255,255,255,.12);}

/* ---- maps (find / location): keep the map canvas light, theme the panels ---- */
[data-theme="dark"] .map-card{background:rgba(26,28,48,.94);border-color:rgba(255,255,255,.1);}
[data-theme="dark"] .mc-stats>div{background:rgba(255,255,255,.05);}
[data-theme="dark"] .loc-side{background:#191b2e;}
[data-theme="dark"] .ll-chip{background:rgba(255,255,255,.07);color:rgba(255,255,255,.7);}
[data-theme="dark"] .loc-row:hover{background:rgba(255,255,255,.05);}
[data-theme="dark"] .loc-count,[data-theme="dark"] .loc-rsrc{background:rgba(255,255,255,.07);}
[data-theme="dark"] .lp-btn{background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);}
[data-theme="dark"] .lp-btn:hover:not(:disabled){background:rgba(255,255,255,.12);}

/* ---- wifi / shots / remote-cam / geo / app-mgmt / time ---- */
[data-theme="dark"] .wa-chip{background:rgba(255,255,255,.08);color:rgba(255,255,255,.72);}
[data-theme="dark"] .wifi-stat{background:rgba(255,255,255,.07);}
[data-theme="dark"] .wifi-ic{background:rgba(255,255,255,.07);}
[data-theme="dark"] .ev-ic{background:rgba(255,255,255,.07);color:rgba(255,255,255,.7);}
[data-theme="dark"] .words-hint{background:rgba(255,255,255,.04);}
[data-theme="dark"] .rcam-panel{background:rgba(255,255,255,.04);}
[data-theme="dark"] .rf-btn{background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);}
[data-theme="dark"] .rf-btn:hover:not(:disabled){background:rgba(255,255,255,.11);}
[data-theme="dark"] .geo-side{background:rgba(255,255,255,.03);}
[data-theme="dark"] .zone-row:hover{background:rgba(255,255,255,.06);}
[data-theme="dark"] .tg-cell{background:rgba(255,255,255,.08);}

/* ---- cards (smart / settings / license / download / faq / permissions) ---- */
[data-theme="dark"] .card-block{background:rgba(255,255,255,.04);}
[data-theme="dark"] .word-input input{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);color:#fff;}
[data-theme="dark"] .smart-alert{background:rgba(255,255,255,.05);}
[data-theme="dark"] .smart-alert:hover{background:rgba(255,255,255,.09);}
[data-theme="dark"] .perm-card{background:rgba(255,255,255,.05);}
[data-theme="dark"] .pc-bad{background:rgba(226,87,76,.12);border-color:rgba(226,87,76,.4);}
[data-theme="dark"] .perm-bar{background:rgba(255,255,255,.1);}
[data-theme="dark"] .backup-item{background:rgba(255,255,255,.05);color:rgba(255,255,255,.72);}
[data-theme="dark"] .backup-item:hover{background:rgba(255,255,255,.09);}
[data-theme="dark"] .iv-row{background:rgba(255,255,255,.04);}
[data-theme="dark"] .iv-time{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .timepick{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .tp-sel select{color:#fff;}
[data-theme="dark"] .ul-day{background:rgba(255,255,255,.06);color:rgba(255,255,255,.7);}
[data-theme="dark"] .clip-note{background:rgba(255,255,255,.04);}
[data-theme="dark"] .er-card{background:rgba(255,255,255,.04);}
[data-theme="dark"] .er-steps li{background:rgba(255,255,255,.04);}
[data-theme="dark"] .plan-card{background:rgba(255,255,255,.05);}
[data-theme="dark"] .lic-card{background:rgba(255,255,255,.05);}
[data-theme="dark"] .lic-key{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.2);}
[data-theme="dark"] .lic-bar,[data-theme="dark"] .lh-bar{background:rgba(255,255,255,.12);}
[data-theme="dark"] .lic-dev{background:rgba(255,255,255,.05);}
[data-theme="dark"] .lic-dev.empty{background:rgba(255,255,255,.03);}
[data-theme="dark"] .ld-av.na{background:rgba(255,255,255,.1);}
[data-theme="dark"] .dl-opt{background:rgba(255,255,255,.05);}
[data-theme="dark"] button.dl-opt:hover{background:rgba(255,255,255,.1);}
[data-theme="dark"] .dl-note{background:rgba(255,255,255,.05);}
[data-theme="dark"] .faq-item{background:rgba(255,255,255,.04);}
[data-theme="dark"] .faq-item.is-open{background:rgba(72,198,214,.08);border-color:rgba(72,198,214,.3);}
[data-theme="dark"] .faq-contact{background:rgba(255,255,255,.04);}
[data-theme="dark"] .msgr-opt{background:rgba(255,255,255,.045);}

/* ---- checkout overlay ---- */
[data-theme="dark"] .co-sheet{background:#1c1e33;border-color:rgba(255,255,255,.1);}
[data-theme="dark"] .co-title{color:#fff;}
[data-theme="dark"] .co-x{background:rgba(255,255,255,.06);color:rgba(255,255,255,.6);}
[data-theme="dark"] .co-x:hover{background:rgba(226,87,76,.22);color:#FF9084;}
[data-theme="dark"] .cs-dot{background:rgba(255,255,255,.1);color:rgba(255,255,255,.5);}
[data-theme="dark"] .co-step-line{background:rgba(255,255,255,.1);}
[data-theme="dark"] .co-card{background:rgba(255,255,255,.04);}
[data-theme="dark"] .inv-row{border-top-color:rgba(255,255,255,.1);}
[data-theme="dark"] .pay-row{background:rgba(255,255,255,.05);}
[data-theme="dark"] .pay-row.pay-on{background:rgba(43,166,240,.18);border-color:var(--accent);}
[data-theme="dark"] .pay-radio{border-color:rgba(255,255,255,.3);}
[data-theme="dark"] .co-invoice{background:rgba(255,255,255,.04);}
[data-theme="dark"] .co-agree{background:rgba(255,255,255,.05);}
[data-theme="dark"] .co-accept{background:rgba(255,255,255,.04);}

/* ---- app interiors that reuse the .glass / .glass-strong surface classes
   (these resolve to a LIGHT frosted fill via the base tokens, so they need an
   explicit dark surface inside app windows) ---- */
[data-theme="dark"] .app-search.glass{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);}
[data-theme="dark"] .time-foot.glass{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.1);}
[data-theme="dark"] .voice-now.glass{border-color:rgba(255,255,255,.1);}
[data-theme="dark"] .lb-bar.glass-strong{background:rgba(20,22,40,.82);border-color:rgba(255,255,255,.14);}
[data-theme="dark"] .pc-tip.glass-strong{background:rgba(26,28,48,.97);border-color:rgba(255,255,255,.14);}
