/* ==========================================================================
   Adi SMM — Interface skin v6.0  ("Midnight Indigo")
   Presentation layer only. Light + dark themes via CSS variables.
   Theme is chosen by html[data-theme="light|dark"] (set by ui/skin.js).
   Every rule is prefixed with `body` to beat Tailwind's single-class utilities.
   ========================================================================== */

:root,html[data-theme="light"]{
  color-scheme:light;
  --bg:#f2f4fa; --surface:#ffffff; --surface-2:#f6f8fd; --surface-3:#eceff9;
  --glass:#ffffff;
  --text:#0d1226; --text-2:#38426a; --muted:#566186; --faint:#6a7597;
  --line:#e2e7f3; --line-2:#ccd5ea;
  --accent:#3d5afe; --accent-hi:#5671ff; --accent-ink:#2a41d4; --fill:#3d5afe; --fill-hi:#5671ff;
  --accent-soft:#e9edff; --accent-soft-2:#d4dcff; --accent-glow:rgba(61,90,254,.55);
  --ok:#0f9d6b; --ok-ink:#0b7f56; --ok-soft:#e1f6ec;
  --warn-ink:#8a5a00; --warn-soft:#fdf3da;
  --danger:#d92d4f; --danger-ink:#b4233f; --danger-soft:#fde9ee;
  --inv-bg:#0d1226; --inv-text:#ffffff;
  --hero-a:#0a1130; --hero-b:#1a2a86; --hero-glow:rgba(120,145,255,.5);
  --shadow-1:0 1px 2px rgba(13,18,38,.04),0 10px 24px -14px rgba(13,18,38,.16);
  --shadow-2:0 16px 34px -16px rgba(13,18,38,.32);
  --font:'Manrope',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Noto Sans','Helvetica Neue',Arial,sans-serif;
  --r-card:22px; --r-panel:18px; --r-ctl:14px;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#080b14; --surface:#10162a; --surface-2:#161e38; --surface-3:#1e2848;
  --glass:#121932;
  --text:#f2f5ff; --text-2:#cdd5f0; --muted:#a0abd0; --faint:#8b97bf;
  --line:#1f2a4a; --line-2:#2c3a66;
  --accent:#7a92ff; --accent-hi:#92a5ff; --accent-ink:#b4c1ff; --fill:#4f68f5; --fill-hi:#667dff;
  --accent-soft:#18224d; --accent-soft-2:#243272; --accent-glow:rgba(122,146,255,.45);
  --ok:#22b884; --ok-ink:#52e0ac; --ok-soft:#0d2a21;
  --warn-ink:#f2c14e; --warn-soft:#2a2210;
  --danger:#ef476f; --danger-ink:#ff8fa6; --danger-soft:#32141f;
  --inv-bg:#f2f5ff; --inv-text:#0d1226;
  --hero-a:#101a52; --hero-b:#3a3fd6; --hero-glow:rgba(150,170,255,.35);
  --shadow-1:0 0 0 1px rgba(255,255,255,.02) inset;
  --shadow-2:0 10px 24px -14px rgba(0,0,0,.8);
}

/* ---------- Base ---------- */
html{-webkit-text-size-adjust:100%;scroll-behavior:auto}
body.min-h-screen{
  font-family:var(--font);color:var(--text);
  background:
    radial-gradient(70% 280px at 50% 0,var(--accent-soft) 0,transparent 100%) no-repeat,
    var(--bg);
  letter-spacing:-.004em;-webkit-font-smoothing:antialiased;
}
body [id]{scroll-margin-top:96px}
body h1,body h2,body h3{letter-spacing:-.025em}
body .font-black{font-weight:800}
body ::selection{background:var(--accent-soft-2)}
body a:focus-visible,body button:focus-visible,body summary:focus-visible,
body input:focus-visible,body select:focus-visible,body textarea:focus-visible{
  outline:3px solid var(--accent-glow);outline-offset:2px}
body .adi-ic{display:block;flex:none}

/* ---------- Tailwind palette → theme tokens ---------- */
body .bg-white{background-color:var(--surface)}
body .bg-slate-50{background-color:var(--surface-2)}
body .bg-slate-100{background-color:var(--surface-3)}
body .bg-slate-200{background-color:var(--line-2)}
body .bg-slate-900{background-color:var(--inv-bg);color:var(--inv-text);font-weight:700}
body .text-slate-300{color:var(--faint)}
body .text-slate-400{color:var(--faint)}
body .text-slate-500{color:var(--muted)}
body .text-slate-600{color:var(--text-2)}
body .text-slate-700{color:var(--text-2)}
body .text-slate-800,body .text-slate-900,body .text-slate-950{color:var(--text)}
body .text-emerald-300{color:var(--accent-ink)}
body .text-emerald-600,body .text-emerald-700,body .text-emerald-800,body .text-emerald-900{color:var(--accent-ink)}
body .bg-emerald-50{background-color:var(--accent-soft)}
body .bg-emerald-100{background-color:var(--accent-soft-2)}
body .bg-emerald-50\/70{background-color:var(--accent-soft)}
body .bg-amber-50,body .bg-amber-100{background-color:var(--warn-soft)}
body .text-amber-700,body .text-amber-800,body .text-amber-900{color:var(--warn-ink)}
body .bg-rose-50,body .bg-rose-100{background-color:var(--danger-soft)}
body .text-rose-600,body .text-rose-700,body .text-rose-800{color:var(--danger-ink)}
body .border-slate-100,body .border-emerald-100{border-color:var(--line)}
body .border-slate-200{border-color:var(--line-2)}
body .border-rose-100{border-color:var(--danger-soft)}
body .ring-slate-100,body .ring-slate-200,body .ring-emerald-100,body .ring-emerald-200,body .ring-amber-200,body .ring-rose-200{--tw-ring-color:var(--line)}
body .ring-white{--tw-ring-color:var(--bg)}
body .divide-slate-100>:not([hidden])~:not([hidden]){border-color:var(--line)}
body .accent-emerald-600{accent-color:var(--accent)}

/* Radius hierarchy */
body .rounded-3xl{border-radius:24px}
body .rounded-2xl{border-radius:var(--r-panel)}
body .rounded-xl{border-radius:var(--r-ctl)}

/* ---------- Surfaces ---------- */
body .vault-card,
body .rounded-3xl.bg-white{
  background-color:var(--surface);
  border:1px solid var(--line);border-radius:var(--r-card);
  box-shadow:var(--shadow-1);
}

/* Section tags */
body .uppercase.tracking-widest,
body .tracking-\[\.2em\]{
  display:inline-block;margin-bottom:8px;padding:5px 11px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent-ink);
  font-size:10.5px;font-weight:800;line-height:1;letter-spacing:.07em}
body h1.text-2xl{font-size:1.6rem;line-height:1.15;font-weight:800;color:var(--text)}
body h2.text-xl{font-size:1.25rem;font-weight:800}
body h2.text-lg{font-size:1.06rem;font-weight:800}
body .text-\[10px\]{font-size:11px}
body .text-\[11px\]{font-size:12px}

/* ---------- Top strip ---------- */
body>.mx-auto{padding-bottom:108px}
body>.mx-auto>.mb-8.flex{margin-bottom:14px;gap:10px}
body>.mx-auto>.mb-8.flex .text-lg{font-size:1rem;font-weight:800;letter-spacing:-.02em;color:var(--text)}
body>.mx-auto>.mb-8.flex .rounded-full.bg-white{
  background:var(--surface);border:1px solid var(--line);box-shadow:none;color:var(--muted);
  font-weight:600;font-variant-numeric:tabular-nums}
body>.mx-auto>.mb-8.flex>div:first-child>span:first-child{width:36px;height:36px;border-radius:12px}

/* Theme switch (injected by skin.js) */
body .adi-theme-btn{
  display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;
  border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);
  cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}
body .adi-theme-btn:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent)}
body .adi-theme-btn .adi-ic{width:18px;height:18px}
html[data-theme="light"] .adi-theme-btn .i-sun,html:not([data-theme]) .adi-theme-btn .i-sun{display:none}
html[data-theme="dark"] .adi-theme-btn .i-moon{display:none}

/* ---------- Store header (hero) ---------- */
body .vault-shell>header{
  background:
    radial-gradient(110% 190% at 100% 0,var(--hero-glow) 0,transparent 58%),
    linear-gradient(135deg,var(--hero-a) 0,var(--hero-b) 100%);
  border:1px solid rgba(255,255,255,.08);border-radius:24px;padding:18px 20px;
  box-shadow:0 22px 40px -20px rgba(18,30,110,.8)}
body .vault-shell>header p.text-slate-900{color:#fff;font-size:1.1rem;font-weight:800}
body .vault-shell>header p.text-slate-500{color:#b6c3ff;font-size:.8rem}
body .vault-shell>header span.bg-emerald-500{
  width:48px;height:48px;border-radius:16px;background:rgba(255,255,255,.12);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
body #installBtn{background:#fff;color:#1a2a86;box-shadow:none;min-height:40px;padding:0 14px;font-weight:800;display:inline-flex;align-items:center;gap:7px}
body #installBtn[hidden]{display:none}
body #installBtn:hover{background:#e9edff}
body #installHint{color:#c9d3ff!important}

/* ---------- Store navigation ---------- */
body .vault-nav{
  position:sticky;top:10px;z-index:30;gap:6px;padding:6px;
  background:var(--glass);;
  border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-2)}
body .vault-nav>a{
  min-height:68px;gap:6px;padding:8px 2px;border-radius:18px;
  background:transparent;color:var(--muted);
  font-size:11.5px;font-weight:700;line-height:1.15;
  transition:background-color .15s,color .15s}
body .vault-nav>a:hover{background:var(--surface-2);color:var(--text)}
body .vault-nav>a>span:first-child{
  display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;
  background:var(--surface-3);color:var(--text-2);font-size:15px;line-height:1;
  transition:background-color .15s,color .15s}
body .vault-nav>a.bg-emerald-100{background:var(--accent-soft);color:var(--accent-ink)}
body .vault-nav>a.bg-emerald-100>span:first-child{background:var(--fill);color:#fff;box-shadow:0 6px 12px -6px var(--accent-glow)}
body .vault-nav>a.bg-emerald-500{
  background:linear-gradient(135deg,var(--fill-hi),var(--fill));color:#fff;
  box-shadow:0 10px 20px -10px var(--accent-glow)}
body .vault-nav>a.bg-emerald-500>span:first-child{background:rgba(255,255,255,.22);color:#fff}
body .vault-nav>a:active{background:var(--accent-soft-2)!important}
body .vault-nav>a.bg-emerald-500:active{background:var(--fill)!important}
@media(max-width:639px){
}
@media(min-width:640px){body .vault-nav>a{min-height:74px;font-size:12px}}

/* Video downloader banner */
body a.vault-card.bg-gradient-to-r{
  background:
    radial-gradient(90% 170% at 100% 0,rgba(255,255,255,.2) 0,transparent 58%),
    linear-gradient(120deg,var(--fill) 0,#7a5cff 100%);
  border:0;border-radius:var(--r-card);padding:18px;color:#fff;
  box-shadow:0 20px 36px -18px var(--accent-glow)}
body a.vault-card.bg-gradient-to-r .text-lg{font-size:1.08rem;font-weight:800;color:#fff}
body a.vault-card.bg-gradient-to-r .text-emerald-50{color:#e1e7ff;font-weight:500;font-size:13px;line-height:1.5}
body a.vault-card.bg-gradient-to-r .bg-white{
  background:#fff;color:#2a41d4;border-radius:999px;padding:11px 18px;font-weight:800;box-shadow:0 8px 16px -8px rgba(10,17,48,.6)}

/* ---------- Buttons ---------- */
body .bg-emerald-500{
  background:var(--fill);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 20px -10px var(--accent-glow)}
body .bg-emerald-600{background:var(--fill)}
body .hover\:bg-emerald-600:hover{background:var(--fill-hi)}
body .vault-btn,body button.bg-emerald-500{min-height:46px;font-weight:700}
body .vault-btn:hover{transform:none;background:var(--fill-hi)}
body .vault-btn:active,body button.bg-emerald-500:active{transform:scale(.985)}
body button:disabled{opacity:.6;cursor:not-allowed}
body button.bg-slate-100,body a.bg-slate-100{
  background:var(--surface);border:1px solid var(--line-2);color:var(--text-2);font-weight:700;
  transition:background-color .15s,border-color .15s,color .15s}
body button.bg-slate-100:hover,body a.bg-slate-100:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}
body .js-share{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
body .js-share .adi-ic{width:16px;height:16px}
body .bg-rose-50.text-rose-700,body .bg-rose-50.text-rose-800{font-weight:700}
body .bg-\[\#25D366\]{box-shadow:0 0 0 4px var(--bg),0 12px 24px -8px rgba(37,211,102,.7)}

/* Notices */
body div.bg-emerald-50.text-emerald-800,body div.bg-emerald-50.text-emerald-900{box-shadow:inset 4px 0 0 var(--accent)}
body div.bg-rose-50.text-rose-700,body div.bg-rose-50.text-rose-800{box-shadow:inset 4px 0 0 var(--danger)}
body div.bg-amber-50{box-shadow:inset 4px 0 0 #e0a21f}

/* ---------- Forms ---------- */
body label.uppercase,body label.tracking-wider{text-transform:none;letter-spacing:0;font-size:13px;font-weight:700;color:var(--text-2)}
body p.uppercase.tracking-wider{text-transform:none;letter-spacing:.005em}
body :is(input,textarea,select).vault-field,
body :is(input,textarea,select).bg-slate-50{
  width:100%;min-height:48px;background-color:var(--surface-2);color:var(--text);
  border:1.5px solid var(--line-2);border-radius:var(--r-ctl);box-shadow:none;outline:none;
  font-size:16px;line-height:1.35;padding:.8rem .95rem;
  transition:border-color .15s,box-shadow .15s,background-color .15s}
body :is(input,textarea,select).vault-field:focus,
body :is(input,textarea,select).bg-slate-50:focus{
  background-color:var(--surface);border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft-2)}
body ::placeholder{color:var(--faint);opacity:1}
body textarea.vault-field,body textarea.bg-slate-50{min-height:96px;resize:vertical}
body select.vault-field,body select.bg-slate-50{
  appearance:none;-webkit-appearance:none;padding-right:2.6rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a96b8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .9rem center}
body #appSearch{
  padding-left:2.7rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a96b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:left .95rem center}
body input[type=checkbox],body input[type=radio]{accent-color:var(--accent);width:18px;height:18px;flex:none}
body input[type=file]{padding:.55rem;font-size:14px;min-height:0}
body input[type=file]::file-selector-button{
  margin-right:12px;padding:9px 14px;border:0;border-radius:10px;
  background:var(--accent-soft);color:var(--accent-ink);font-weight:700;font-family:inherit;cursor:pointer}
body input[type=file]::file-selector-button:hover{background:var(--accent-soft-2)}
body label.flex.cursor-pointer{border:1.5px solid var(--line-2);border-radius:var(--r-ctl);padding:.85rem;transition:border-color .15s,background-color .15s}
body label.flex.cursor-pointer:has(:checked){border-color:var(--accent);background:var(--accent-soft)}
body code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--surface-3);color:var(--text)}

/* ---------- App catalogue ---------- */
body #appCatalog{padding:18px}
body #appGrid{gap:14px}
body #appGrid article{padding:16px;border-radius:var(--r-card)}
body #appGrid article .h-14.w-14{
  width:62px;height:62px;border-radius:18px;background:var(--accent-soft);
  box-shadow:inset 0 0 0 1px var(--line);color:var(--accent-ink)}
body #appGrid article h2{font-size:1.02rem;font-weight:800;line-height:1.25}
body #appGrid article .rounded-full.bg-slate-100{
  background:var(--surface-3);border:1px solid var(--line);color:var(--text-2);font-weight:700;padding:3px 10px}
body #appGrid article p.text-sm{color:var(--muted);line-height:1.55}
body #appGrid article .border-t{border-color:var(--line);padding-top:14px;margin-top:14px}
body #appGrid article p.text-xl{font-size:1.45rem;font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
body #appGrid article .text-emerald-600,body #appGrid article .text-emerald-700{color:var(--ok-ink)}
body #appGrid article a[href*="free_download"]{background:var(--ok);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 20px -10px rgba(15,157,107,.7)}
body #appGrid article .vault-btn{padding:0 18px}
body #appGrid article .grid.grid-cols-2{gap:8px}
body #unlockRequest .rounded-xl.bg-slate-50{background:var(--surface-2);border:1px solid var(--line)}
body #unlockRequest .text-2xl.font-black{font-size:1.75rem;letter-spacing:-.04em;font-variant-numeric:tabular-nums}

/* Chat */
body #chatMessages{background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-panel);padding:14px}
body #chatMessages .rounded-2xl{border-radius:18px}
body #chatMessages .bg-emerald-500{border-bottom-right-radius:6px}
body #chatMessages .bg-white{border-bottom-left-radius:6px;box-shadow:none}

/* Speed test */
body #adiSpeedTest .rounded-2xl.bg-slate-50{background:var(--surface-2);border:1px solid var(--line)}
body .adi-speed-track{stroke:var(--line-2);stroke-width:12}
body .adi-speed-progress{stroke-width:12;filter:drop-shadow(0 4px 10px var(--accent-glow))}
body #speedNeedle path{fill:var(--text)}
body #speedNeedle circle{fill:var(--accent);stroke:var(--surface)}
body #adiSpeedTest svg text{fill:var(--faint)}
body #speedLive{font-size:2.95rem;line-height:1.05;letter-spacing:-.05em;color:var(--text)}
body #adiSpeedTest div.rounded-2xl.border.border-slate-100.p-4{background:var(--surface);border:1px solid var(--line);border-radius:16px}
body #adiSpeedTest .adi-speed-number.text-2xl{font-size:1.7rem;letter-spacing:-.03em}

/* In-store download progress (APK/video) */
body .adi-inline-download{background:var(--surface-2);border-color:var(--line)}

/* ---------- Tables ---------- */
body table{border-collapse:separate;border-spacing:0;width:100%}
body thead th{
  background:var(--surface-2);color:var(--muted);font-size:11.5px;font-weight:700;letter-spacing:.04em;
  padding:10px 12px!important;border-bottom:1px solid var(--line)}
body thead th:first-child{border-top-left-radius:12px}
body thead th:last-child{border-top-right-radius:12px}
body tbody td{padding:13px 12px;border-bottom:1px solid var(--line);vertical-align:top}
body tbody tr:last-child td{border-bottom:0}
body tbody tr.bg-slate-50 td{font-weight:800}
body tbody.divide-y>:not([hidden])~:not([hidden]){border-top-width:0}

/* ---------- Admin: general ---------- */
body h1.text-3xl{font-size:1.9rem;line-height:1.12;font-weight:800;letter-spacing:-.035em;color:var(--text)}
body .grid.grid-cols-2>div.rounded-2xl.bg-white.p-4{border:1px solid var(--line);box-shadow:var(--shadow-1);padding:16px}
body .grid.grid-cols-2>div.rounded-2xl.bg-white.p-4 p.text-xl{
  font-size:1.5rem;font-weight:800;letter-spacing:-.035em;font-variant-numeric:tabular-nums;color:var(--text)}
body .grid.grid-cols-2>div.rounded-2xl.bg-white.p-4 p.text-xs{font-weight:600;color:var(--muted)}
body .rounded-xl.border.border-slate-100,body .rounded-2xl.border.border-slate-100{background:var(--surface-2);border-color:var(--line)}
body details.rounded-xl{background:var(--surface-2);border-color:var(--line)}
body details>summary{padding:4px 2px;border-radius:10px}
body .h-3.rounded-full.bg-emerald-500{box-shadow:none}

/* ---------- Admin: tabbed workspace (built by skin.js) ---------- */
body .adm-shell{display:block}
body .adm-side{position:sticky;top:8px;z-index:40;margin:0 0 16px}
body .adm-tabs{
  display:flex;gap:6px;overflow-x:auto;padding:6px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
  background:var(--glass);;
  border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-2)}
body .adm-tabs::-webkit-scrollbar{display:none}
body .adm-tab{
  position:relative;flex:none;display:inline-flex;align-items:center;gap:9px;
  padding:10px 14px;border:0;border-radius:16px;background:transparent;color:var(--muted);
  font:700 13px/1 var(--font);cursor:pointer;white-space:nowrap;
  transition:background-color .15s,color .15s}
body .adm-tab:hover{background:var(--surface-2);color:var(--text)}
body .adm-tab .adi-ic{width:19px;height:19px}
body .adm-tab[aria-selected="true"]{background:var(--fill);color:#fff;box-shadow:0 10px 20px -10px var(--accent-glow)}
body .adm-badge{
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--danger);color:#fff;
  font:800 11px/20px var(--font);text-align:center}
body .adm-badge[hidden]{display:none}
body .adm-panel[hidden]{display:none}
body .adm-panel-head{margin:4px 2px 18px}
body .adm-panel-head h2{font-size:1.35rem;font-weight:800;letter-spacing:-.03em;color:var(--text);margin:0}
body .adm-panel-head p{margin:4px 0 0;font-size:13.5px;color:var(--muted)}
@media(min-width:1024px){
  body>.mx-auto.max-w-5xl:has(.adm-shell){max-width:1180px}
  body .adm-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px;align-items:start}
  body .adm-side{top:14px;margin:0}
  body .adm-tabs{
    flex-direction:column;overflow:visible;gap:4px;padding:10px;border-radius:24px;
    background:var(--surface);box-shadow:var(--shadow-1)}
  body .adm-tab{width:100%;padding:12px 14px;font-size:14px}
  body .adm-tab .adm-badge{margin-left:auto}
}

/* ---------- Floating controls & footer ---------- */
body>.fixed.bottom-4.left-4{bottom:calc(16px + env(safe-area-inset-bottom,0px));gap:8px}
body>.fixed.bottom-4.left-4 button,body>.fixed.bottom-4.left-4 a{
  display:inline-flex;align-items:center;gap:7px;padding:11px 16px;font-size:13px;font-weight:700;box-shadow:var(--shadow-2)}
body>.fixed.bottom-4.left-4 button{
  background:var(--glass);;
  border:1px solid var(--line-2);color:var(--text-2)}
body>.fixed.bottom-4.left-4 a{background:var(--inv-bg);color:var(--inv-text)}
body>.fixed.bottom-4.left-4 .adi-ic{width:16px;height:16px}
body .fixed.bottom-4.right-4{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
body footer.border-t{border-color:var(--line-2);color:var(--faint)}
body section.rounded-3xl.bg-white .h-12.w-12{border-radius:16px}

@media(max-width:480px){
  body #appCatalog{padding:16px}
  body .vault-shell>header{padding:16px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body *{transition-duration:.01ms!important}
}

/* ==========================================================================
   v6.1 refresh — faster, new look, dark-mode fixes
   ========================================================================== */
html.adi-boot body{opacity:0}
body.min-h-screen{
  background:
    radial-gradient(60% 340px at 85% -40px,var(--accent-soft-2) 0,transparent 100%),
    radial-gradient(50% 300px at 0 0,var(--accent-soft) 0,transparent 100%),
    var(--bg);
  background-repeat:no-repeat;background-attachment:scroll}
html[data-theme="dark"] body.min-h-screen{
  background:
    radial-gradient(55% 380px at 90% -60px,rgba(79,104,245,.28) 0,transparent 100%),
    radial-gradient(45% 320px at -5% 0,rgba(122,60,255,.14) 0,transparent 100%),
    var(--bg);background-repeat:no-repeat}
/* progress bar while switching tabs */
#adiBar{position:fixed;left:0;top:0;height:3px;width:0;z-index:100000;background:linear-gradient(90deg,var(--fill),#9b7bff);pointer-events:none;opacity:0}
#adiBar.on{opacity:1;width:82%;transition:width 6s cubic-bezier(.1,.8,.2,1)}
#adiBar.done{opacity:0;width:100%;transition:width .15s,opacity .3s .1s}
/* hero */
body .vault-shell>header{position:relative;overflow:hidden;padding:22px 20px;border-radius:28px}
body .vault-shell>header::before,body .vault-shell>header::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
body .vault-shell>header::before{width:180px;height:180px;right:-50px;top:-70px;background:rgba(255,255,255,.10)}
body .vault-shell>header::after{width:110px;height:110px;right:60px;bottom:-60px;background:rgba(255,255,255,.07)}
body .vault-shell>header>*{position:relative;z-index:1}
/* nav: no blur, no lag, instant active state */
body .vault-nav{background:var(--surface);border-radius:26px;transition:none}
body .vault-nav>a{transition:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body .vault-nav>a.bg-emerald-100{background:var(--accent-soft);color:var(--accent-ink)}
body .vault-nav>a:active{transform:scale(.97)}
body .vault-nav>a:hover{background:var(--surface-2)}
html[data-theme="dark"] body .vault-nav>a.bg-emerald-100{background:var(--accent-soft-2);color:#fff}
html[data-theme="dark"] body .vault-nav>a>span:first-child{background:var(--surface-3)}
html[data-theme="dark"] body .vault-nav>a.bg-emerald-100>span:first-child{background:var(--fill)}
/* cards */
body #appGrid article{border:1px solid var(--line);background:var(--surface);position:relative;content-visibility:auto;contain-intrinsic-size:auto 260px}
body #appGrid article::before{content:"";position:absolute;left:18px;right:18px;top:0;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,var(--fill),#9b7bff);opacity:.9}
body .vault-card{transition:none}
/* dark-mode contrast fixes */
html[data-theme="dark"] body .bg-white{background-color:var(--surface)}
html[data-theme="dark"] body .vault-card,html[data-theme="dark"] body .rounded-3xl.bg-white{border-color:var(--line)}
html[data-theme="dark"] body :is(input,textarea,select).vault-field,
html[data-theme="dark"] body :is(input,textarea,select).bg-slate-50{background-color:var(--surface-2);border-color:var(--line-2);color:var(--text)}
html[data-theme="dark"] body .vault-nav>a{color:var(--muted)}
html[data-theme="dark"] body #chatMessages{background:var(--surface-2)}
html[data-theme="dark"] body #chatMessages .bg-white{background:var(--surface-3);color:var(--text)}
html[data-theme="dark"] body .adm-tabs{background:var(--surface)}
html[data-theme="dark"] body thead th{background:var(--surface-2)}
html[data-theme="dark"] body .vault-card .text-slate-900,html[data-theme="dark"] body .vault-card h1,html[data-theme="dark"] body .vault-card h2{color:var(--text)}
html[data-theme="dark"] body>.fixed.bottom-4.left-4 button{background:var(--surface-2);color:var(--text)}
html[data-theme="dark"] body .adi-theme-btn{background:var(--surface-2)}
/* admin tab switch: lighter */
body .adm-tabs{background:var(--surface);transition:none}
body .adm-tab{transition:none}

/* ---------- v6.2: 5-item nav, FAQs footer link, currency converter ---------- */
body .vault-nav{grid-template-columns:repeat(5,minmax(0,1fr))}
@media (max-width:480px){body .vault-nav>a{font-size:10px;padding:8px 1px;letter-spacing:-.1px}}
.adi-faq-link{color:#2563eb}
.adi-faq-link:hover{color:#1d4ed8}
html[data-theme="dark"] .adi-faq-link{color:#60a5fa}
html[data-theme="dark"] .adi-faq-link:hover{color:#93c5fd}
.adi-fx-live{display:inline-block;width:8px;height:8px;border-radius:50%;background:#10b981;margin-right:6px;animation:adiFxPulse 1.6s ease-in-out infinite}
.adi-fx-live.off{background:#f59e0b;animation:none}
@keyframes adiFxPulse{50%{opacity:.35}}
.adi-fx-chip{border:1px solid var(--line,#e2e8f0);border-radius:999px;padding:6px 12px;font-size:12px;font-weight:800;background:transparent;color:inherit;cursor:pointer}
.adi-fx-chip:active{transform:scale(.97)}
.adi-fx-up{color:#059669}.adi-fx-down{color:#e11d48}

/* ---------- v6.3: Toolbox menu item, site search, footer version ---------- */
body .vault-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:640px){body .vault-nav{grid-template-columns:repeat(6,minmax(0,1fr))}}
body .adi-search-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);cursor:pointer;transition:background-color .15s,color .15s,border-color .15s}
body .adi-search-btn:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent)}
html[data-theme="dark"] body .adi-search-btn{background:var(--surface-2)}
html.adi-sr-lock{overflow:hidden}
.adi-sr[hidden]{display:none}
.adi-sr{position:fixed;inset:0;z-index:90;background:rgba(8,11,20,.55);display:flex;align-items:flex-start;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 14px 14px}
.adi-sr-box{width:100%;max-width:560px;max-height:calc(100vh - 28px);display:flex;flex-direction:column;background:var(--surface);color:var(--text);border:1px solid var(--line-2);border-radius:18px;box-shadow:0 24px 60px -20px rgba(0,0,0,.45);overflow:hidden}
.adi-sr-bar{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line-2);color:var(--text-2)}
.adi-sr-bar input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font-size:16px;font-weight:600}
.adi-sr-bar button{border:0;background:var(--surface-3);color:var(--text-2);width:30px;height:30px;border-radius:999px;font-size:20px;line-height:1;cursor:pointer}
#adiSr{list-style:none;margin:0;padding:6px;overflow-y:auto}
.adi-sr-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;color:inherit;text-decoration:none}
.adi-sr-item:hover,.adi-sr-item:focus{background:var(--accent-soft)}
.adi-sr-tag{flex:none;min-width:48px;text-align:center;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:4px 8px;border-radius:999px;background:var(--accent-soft);color:var(--accent-ink)}
.adi-sr-txt{display:flex;flex-direction:column;min-width:0}
.adi-sr-txt b{font-size:14px;font-weight:800}
.adi-sr-txt small{font-size:12px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.adi-sr-none{padding:18px;text-align:center;font-size:13px;color:var(--text-2)}
body .adi-copy{font-weight:700}

/* ---------- v6.4: compact 6-in-a-row menu, install button in top bar ---------- */
body .vault-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px;padding:5px;border-radius:20px}
body .vault-nav>a{min-height:60px;gap:4px;padding:6px 0;border-radius:14px;font-size:10px;letter-spacing:-.1px;position:relative;min-width:0;overflow:hidden;white-space:nowrap}
body .vault-nav>a>span:first-child{width:30px;height:30px;border-radius:10px}
body .vault-nav>a>span:first-child svg{width:17px;height:17px}
body .vault-nav>a[data-badge]::after{content:attr(data-badge);position:absolute;top:3px;right:50%;margin-right:-22px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:#e11d48;color:#fff;font-size:10px;font-weight:800;line-height:16px;text-align:center}
@media(min-width:640px){body .vault-nav>a{min-height:66px;font-size:12px}}
body>.mx-auto>.mb-8.flex{margin-bottom:1rem}
body>.mx-auto>.mb-8.flex>div:first-child{flex:1 1 100%;min-width:0}
body #installBtn.adi-install{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:36px;min-height:36px;padding:0 14px;border-radius:999px;border:0;background:var(--fill);color:#fff;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 8px 16px -10px var(--accent-glow)}
body #installBtn.adi-install:hover{background:var(--fill-hi)}
body #installBtn.adi-install[hidden]{display:none}

/* ---------- v6.5: top-bar back arrow (replaces bottom Back/Close pills) ---------- */
body .adi-back{display:inline-flex;align-items:center;justify-content:center;flex:none;width:36px;height:36px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);cursor:pointer}
body .adi-back:hover{background:var(--accent-soft);color:var(--accent-ink);border-color:var(--accent)}
body .adi-back[hidden]{display:none}
html[data-theme="dark"] body .adi-back{background:var(--surface-2)}

/* v6.6 - Downloader tile: download icon + small play badge (reads as "all video downloader", not YouTube) */
body .vault-nav>a[data-dl]::after{content:"";position:absolute;top:4px;right:50%;margin-right:-21px;width:15px;height:15px;border-radius:50%;background:#16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center/9px 9px no-repeat;box-shadow:0 0 0 2px var(--surface)}
@media(max-width:400px){body .vault-nav>a[data-dl]{font-size:9px;letter-spacing:-.2px}}
@media(max-width:350px){body .vault-nav>a[data-dl]{font-size:8.5px;letter-spacing:-.3px}}

/* ---------- v7.4 polish: presentation only (no layout/feature changes) ---------- */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent;font-variant-numeric:tabular-nums}
body h1,body h2,body h3{letter-spacing:-.02em;text-wrap:balance}
body p{text-wrap:pretty}
body img{-webkit-user-drag:none}
body .rounded-3xl.bg-white,body .rounded-2xl.bg-white,body .vault-card{transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s ease,border-color .22s ease}
@media(hover:hover){body a.vault-card:hover,body .rounded-2xl.bg-white:hover{box-shadow:var(--shadow-2)}body a.vault-card:hover{transform:translateY(-2px)}}
body .vault-nav>a,body .vault-btn,body button.bg-emerald-500,body button.bg-slate-100,body a.bg-slate-100,body .adi-back,body .adi-theme-btn{transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .12s ease}
body .vault-btn:active,body button.bg-emerald-500:active,body .vault-nav>a:active{transform:scale(.97)}
body :is(input,textarea,select){transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
body :is(input,textarea,select):focus{box-shadow:0 0 0 4px var(--accent-soft);border-color:var(--accent)}
body .vault-nav>a>span:first-child{transition:transform .18s ease}
@media(hover:hover){body .vault-nav>a:hover>span:first-child{transform:translateY(-1px)}}
body *{scrollbar-width:thin;scrollbar-color:var(--line-2) transparent}
body ::-webkit-scrollbar{width:8px;height:8px}
body ::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px}
body ::-webkit-scrollbar-track{background:transparent}
@media(prefers-reduced-motion:reduce){body *{transition-duration:.01ms!important;animation-duration:.01ms!important;scroll-behavior:auto!important}}

/* ======================================================================
   v7.5 PREMIUM LOOK - presentation only (same pages, same features)
   ====================================================================== */
:root,html[data-theme="light"]{--g1:#3d5afe;--g2:#7c4dff;--g3:#00b8d9;--ring:rgba(61,90,254,.28);--sheen:rgba(255,255,255,.55)}
html[data-theme="dark"]{--g1:#5b74ff;--g2:#8b5cf6;--g3:#22d3ee;--ring:rgba(122,146,255,.35);--sheen:rgba(255,255,255,.28)}

/* richer page atmosphere */
body.min-h-screen{
  background:
    radial-gradient(55% 420px at 100% -60px,color-mix(in srgb,var(--g2) 26%,transparent) 0,transparent 100%),
    radial-gradient(60% 460px at -10% 0,color-mix(in srgb,var(--g1) 24%,transparent) 0,transparent 100%),
    radial-gradient(45% 380px at 50% 100%,color-mix(in srgb,var(--g3) 12%,transparent) 0,transparent 100%),
    var(--bg) !important;
  background-attachment:fixed !important}

/* cards: gradient hairline border + soft depth */
body .vault-card,body .rounded-3xl.bg-white{
  border:1px solid transparent !important;border-radius:26px !important;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,
             linear-gradient(145deg,color-mix(in srgb,var(--g1) 38%,var(--line)),var(--line) 38%,color-mix(in srgb,var(--g2) 30%,var(--line))) border-box !important;
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 18px 40px -26px rgba(30,40,120,.45),0 2px 6px -2px rgba(30,40,120,.08) !important}
html[data-theme="dark"] body .vault-card,html[data-theme="dark"] body .rounded-3xl.bg-white{
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset,0 24px 44px -26px rgba(0,0,0,.85) !important}
@media(hover:hover){body article.vault-card:hover{transform:translateY(-4px);box-shadow:0 26px 50px -24px rgba(40,60,200,.5) !important}}

/* hero: aurora + moving light points */
body .vault-shell>header{position:relative;overflow:hidden;border-radius:28px !important;padding:22px 22px !important;
  background:radial-gradient(120% 200% at 100% 0,rgba(140,160,255,.55) 0,transparent 55%),radial-gradient(90% 160% at 0 100%,rgba(0,184,217,.28) 0,transparent 60%),linear-gradient(135deg,var(--hero-a),var(--hero-b)) !important;
  background-size:140% 140%,140% 140%,100% 100% !important;animation:adiAurora 14s ease-in-out infinite alternate}
body .vault-shell>header::before{content:"";position:absolute;inset:-40%;pointer-events:none;opacity:.55;
  background-image:radial-gradient(circle,rgba(255,255,255,.9) 0 1.4px,transparent 2px),radial-gradient(circle,rgba(255,255,255,.55) 0 1px,transparent 1.6px);
  background-size:46px 46px,29px 29px;background-position:0 0,13px 17px;animation:adiDots 26s linear infinite}
body .vault-shell>header::after{content:"";position:absolute;top:0;bottom:0;width:60%;left:-70%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.16),transparent);transform:skewX(-18deg);animation:adiSweep 7s ease-in-out infinite}
body .vault-shell>header>*{position:relative;z-index:1}
@keyframes adiAurora{from{background-position:0 0,100% 100%,0 0}to{background-position:100% 30%,0 60%,0 0}}
@keyframes adiDots{from{transform:translate3d(0,0,0)}to{transform:translate3d(46px,46px,0)}}
@keyframes adiSweep{0%,55%{left:-70%}100%{left:130%}}

/* navigation: floating dock */
body .vault-nav{border-radius:28px !important;padding:7px !important;box-shadow:0 22px 44px -22px rgba(30,40,140,.55),0 0 0 1px var(--line) !important}
body .vault-nav>a{border-radius:20px !important}
body .vault-nav>a>span:first-child{border-radius:14px !important;width:36px !important;height:36px !important}
body .vault-nav>a.bg-emerald-100{background:linear-gradient(180deg,var(--accent-soft),transparent) !important}
body .vault-nav>a.bg-emerald-100>span:first-child,body .vault-nav>a.bg-emerald-500>span:first-child{background:linear-gradient(135deg,var(--g1),var(--g2)) !important;color:#fff !important;box-shadow:0 10px 18px -8px var(--ring),inset 0 1px 0 var(--sheen) !important}

/* primary buttons: gradient, glow, sheen */
body .vault-btn,body button.bg-emerald-500,body a.bg-emerald-500,body .bg-emerald-600:is(button,a){
  position:relative;overflow:hidden;border:0 !important;border-radius:16px !important;color:#fff !important;
  background:linear-gradient(135deg,var(--g1),var(--g2)) !important;
  box-shadow:0 14px 26px -12px var(--ring),inset 0 1px 0 var(--sheen) !important;letter-spacing:-.01em}
body .vault-btn::after,body button.bg-emerald-500::after{content:"";position:absolute;top:0;bottom:0;left:-80%;width:50%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);animation:adiSweep 5.5s ease-in-out infinite}
@media(hover:hover){body .vault-btn:hover,body button.bg-emerald-500:hover{filter:brightness(1.08);box-shadow:0 18px 30px -12px var(--ring),inset 0 1px 0 var(--sheen) !important}}
body button.bg-slate-100,body a.bg-slate-100{border-radius:16px !important}

/* inputs: roomier, clearer focus */
body :is(input,textarea,select).bg-slate-50,body textarea.vault-field{border-radius:16px !important;padding-top:13px !important;padding-bottom:13px !important;border:1.5px solid var(--line-2) !important;background:var(--surface-2) !important}
body :is(input,textarea,select):focus{border-color:var(--g1) !important;box-shadow:0 0 0 4px var(--ring) !important;outline:none}

/* status chips + headings */
body .rounded-full.bg-emerald-100,body .rounded-full.bg-emerald-50{background:linear-gradient(135deg,var(--accent-soft),var(--accent-soft-2)) !important;color:var(--accent-ink) !important;font-weight:800;letter-spacing:.04em}
body h1.text-2xl{font-size:1.75rem;background:linear-gradient(135deg,var(--text) 30%,var(--g1));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
body .vault-shell>header p.text-slate-900{font-size:1.2rem;letter-spacing:-.02em}
body .vault-shell>header span.bg-emerald-500{animation:adiPulse 3.2s ease-in-out infinite}
@keyframes adiPulse{0%,100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22),0 0 0 0 rgba(255,255,255,.35)}50%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.3),0 0 0 8px rgba(255,255,255,0)}}

/* gentle page-load reveal */
body .vault-shell>main>*,body main>*{animation:adiRise .5s cubic-bezier(.2,.7,.2,1) both}
@keyframes adiRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body .vault-shell>header,body .vault-shell>header::before,body .vault-shell>header::after,body .vault-btn::after,body button.bg-emerald-500::after,body main>*,body .vault-shell>header span.bg-emerald-500{animation:none !important}}

/* ===== v7.1: account avatar, profile page, bottom dock menu, tinted menu icons ===== */
body .adi-acct{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex:none;
  background:var(--accent-soft);color:var(--accent-ink);box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px var(--accent-soft-2)}
body .adi-acct img{width:100%;height:100%;object-fit:cover}
body .adi-acct:active{transform:scale(.94)}
body .adi-prof{padding:26px 20px;text-align:center}
body .adi-prof h1{margin-top:14px;font-size:22px;font-weight:800;color:var(--text)}
body .adi-prof p{margin-top:2px;font-size:14px;color:var(--text-2);word-break:break-all}
body .adi-av-lg{position:relative;display:inline-flex;width:96px;height:96px;border-radius:50%;cursor:pointer;
  background:linear-gradient(135deg,var(--fill),#8b5cf6);box-shadow:0 14px 28px -12px var(--accent-glow),0 0 0 4px var(--surface),0 0 0 6px var(--accent-soft-2)}
body .adi-av-lg img{width:100%;height:100%;border-radius:50%;object-fit:cover}
body .adi-av-lg>span{margin:auto;font-size:38px;font-weight:800;color:#fff}
body .adi-av-lg>b{position:absolute;right:-2px;bottom:-2px;width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--fill);color:#fff;box-shadow:0 0 0 3px var(--surface)}
body .adi-chip{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:700;
  background:var(--accent-soft);color:var(--accent-ink)}
body .adi-set{margin-top:14px;padding:8px 6px 6px}
body .adi-set h2{padding:10px 14px 4px;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--text-2)}
body .adi-row{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border-radius:14px;text-align:left;background:transparent;border:0;color:var(--text);cursor:pointer}
body .adi-row>i{flex:none;width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent-ink);font-style:normal}
body .adi-row>div{flex:1;min-width:0}
body .adi-row b{display:block;font-size:15px;font-weight:700;word-break:break-word}
body .adi-row small{display:block;font-size:12px;color:var(--text-2);font-weight:600}
body .adi-row>u{flex:none;color:var(--text-2);text-decoration:none;display:flex}
body .adi-link:hover,body .adi-link:active{background:var(--surface-2)}
body .adi-out>i{background:rgba(244,63,94,.12);color:#e11d48}
body .adi-out b{color:#e11d48}
/* tinted menu icon tiles (active tab keeps the accent fill) */
body .vault-nav>a:not(.bg-emerald-100)>span:first-child{background:color-mix(in srgb,var(--t) 14%,transparent);color:var(--t)}
body .vault-nav>a:nth-child(1){--t:#4f46e5}body .vault-nav>a:nth-child(2){--t:#d97706}body .vault-nav>a:nth-child(3){--t:#059669}
body .vault-nav>a:nth-child(4){--t:#0891b2}body .vault-nav>a:nth-child(5){--t:#7c3aed}body .vault-nav>a:nth-child(6){--t:#e11d48}
html[data-theme="dark"] body .vault-nav>a:nth-child(1){--t:#a5b4fc}html[data-theme="dark"] body .vault-nav>a:nth-child(2){--t:#fbbf24}
html[data-theme="dark"] body .vault-nav>a:nth-child(3){--t:#34d399}html[data-theme="dark"] body .vault-nav>a:nth-child(4){--t:#22d3ee}
html[data-theme="dark"] body .vault-nav>a:nth-child(5){--t:#c4b5fd}html[data-theme="dark"] body .vault-nav>a:nth-child(6){--t:#fb7185}
/* ===== v7.5: Facebook-style header (round buttons) + menu on top ===== */
body .mb-8.flex.flex-wrap{flex-wrap:nowrap!important;margin-bottom:14px!important}
body .mb-8.flex>div:first-child{min-width:0;flex:1 1 auto}
body .adi-bcol{display:flex;flex-direction:column;min-width:0;line-height:1.15}
body .adi-bname{font-size:17px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .adi-pkt{font-size:11px;font-weight:600;color:var(--text-2)}
body .adi-pkt b{font-weight:800;color:var(--text)}
body .mb-8.flex>div:last-child{flex:none;gap:8px!important}
body .adi-theme-btn,body .adi-search-btn,body .adi-acct{width:40px!important;height:40px!important;border-radius:50%!important;padding:0!important;
  display:inline-flex;align-items:center;justify-content:center;background:var(--surface-2)!important;color:var(--text)!important;border:0!important;box-shadow:none!important}
body .adi-acct{overflow:hidden;box-shadow:0 0 0 2px var(--accent-soft-2)!important}
/* ===== v7.6: compact install button next to clock, full menu labels ===== */
body .adi-sub{display:flex;align-items:center;gap:8px;margin-top:3px;min-width:0}
body .adi-sub .adi-install{height:24px!important;min-height:0!important;padding:0 10px 0 8px!important;gap:5px!important;font-size:11px!important;font-weight:800;border-radius:999px!important;box-shadow:none!important}
body .adi-sub .adi-install svg{width:13px;height:13px}
body .vault-nav{gap:2px!important;padding:5px!important}
body .vault-nav>a{overflow:visible!important}
body .vault-nav>a>span:last-child{font-size:10.5px;letter-spacing:-.2px;max-width:100%}
body .vault-nav>a:nth-child(3)>span:last-child{font-size:9.5px;letter-spacing:-.3px}
/* install button sits directly under the brand name, left-aligned with it */
body .adi-sub{justify-content:flex-start!important;align-self:flex-start}
body .adi-sub .adi-install{margin:0!important;align-self:flex-start;position:static!important;transform:none!important;float:none!important}
/* Toolbox tiles: white icon in a soft glass square so it is clearly visible on the blue tile */
body button[data-open]>span:first-child{color:#fff!important;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:15px;background:rgba(255,255,255,.2)}
body button[data-open]>span:first-child svg{width:26px;height:26px;stroke-width:2}
/* Downloader menu icon: arrow keeps moving down into the tray */
@keyframes adiDl{0%{transform:translateY(-4px);opacity:0}30%{transform:translateY(0);opacity:1}70%{transform:translateY(3px);opacity:1}100%{transform:translateY(6px);opacity:0}}
body .vault-nav .adi-dl-arrow{animation:adiDl 1.3s ease-in-out infinite;will-change:transform,opacity}
@media (prefers-reduced-motion:reduce){body .vault-nav .adi-dl-arrow{animation:none}}
/* ===== animated menu icons + install arrow ===== */
body .vault-nav svg rect[class^="adi-a"],body .vault-nav .adi-bob,body .vault-nav .adi-lid,body .vault-nav .adi-ex1,body .vault-nav .adi-ex2{transform-box:fill-box;transform-origin:center}
@keyframes adiPop{0%,100%{transform:scale(1)}50%{transform:scale(.74)}}
body .vault-nav .adi-a1{animation:adiPop 1.8s ease-in-out infinite}
body .vault-nav .adi-a2{animation:adiPop 1.8s ease-in-out .3s infinite}
body .vault-nav .adi-a4{animation:adiPop 1.8s ease-in-out .6s infinite}
body .vault-nav .adi-a3{animation:adiPop 1.8s ease-in-out .9s infinite}
@keyframes adiBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.8px)}}
body .vault-nav .adi-bob{animation:adiBob 1.5s ease-in-out infinite}
@keyframes adiNeedle{0%,100%{transform:rotate(-38deg)}50%{transform:rotate(32deg)}}
body .vault-nav .adi-needle{transform-origin:12px 14.3px;animation:adiNeedle 2.2s ease-in-out infinite}
@keyframes adiSlideR{0%,100%{transform:translateX(-1.5px)}50%{transform:translateX(2px)}}
@keyframes adiSlideL{0%,100%{transform:translateX(1.5px)}50%{transform:translateX(-2px)}}
body .vault-nav .adi-ex1{animation:adiSlideR 1.4s ease-in-out infinite}
body .vault-nav .adi-ex2{animation:adiSlideL 1.4s ease-in-out infinite}
@keyframes adiLid{0%,70%,100%{transform:translateY(0)}80%{transform:translateY(-2.4px)}90%{transform:translateY(0)}95%{transform:translateY(-1px)}}
body .vault-nav .adi-lid{animation:adiLid 2s ease-in-out infinite}
@keyframes adiDl2{0%{transform:translateY(-3px);opacity:0}30%{transform:translateY(0);opacity:1}70%{transform:translateY(2px);opacity:1}100%{transform:translateY(4px);opacity:0}}
body .adi-install .adi-dl-arrow{animation:adiDl2 1.2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){body .vault-nav svg *,body .adi-install .adi-dl-arrow{animation:none!important}}
/* ===== header (name, dark mode, search, profile) stays on top while scrolling; menu sticks right under it ===== */
body:has(.vault-nav)>.mx-auto>.mb-8.flex{position:sticky;top:0;z-index:55;background:var(--bg);margin:-8px -20px 8px!important;padding:8px 20px!important;box-shadow:0 1px 0 var(--line)}
body:has(.vault-nav) .vault-nav{top:calc(var(--adi-hh,76px) + 6px)!important}
body [id]{scroll-margin-top:150px}

/* ===== v8.3: logo flush to the very top (no space above) + straight full-width menu bar ===== */
/* 1) no space above the logo / install button */
body>.mx-auto{padding-top:0!important}
body:has(.vault-nav)>.mx-auto>.mb-8.flex,
body>.mx-auto>.mb-8.flex{margin-top:0!important;padding-top:4px!important;padding-bottom:6px!important}
body:has(.vault-nav)>.mx-auto>.mb-8.flex{margin:0 -20px 0!important;padding:4px 8px 6px!important;box-shadow:none!important}
/* logo + name + Install stay at the far left, dark-mode/search/profile at the far right; empty space only in the middle */
body>.mx-auto>.mb-8.flex{margin-left:-12px!important;margin-right:-12px!important}
body:has(.vault-nav)>.mx-auto>.mb-8.flex{margin-left:-20px!important;margin-right:-20px!important}
/* 2) menu: not an oval pill any more - one straight bar from the left corner to the right corner */
body .vault-nav,
body:has(.vault-nav) .vault-nav{
  position:sticky!important;top:var(--adi-hh,60px)!important;
  width:auto!important;max-width:none!important;
  margin:0 -20px 14px!important;
  border-radius:0!important;
  padding:4px 6px!important;
  background:var(--surface)!important;
  border:0!important;
  border-top:1px solid var(--line)!important;
  border-bottom:1px solid var(--line)!important;
  box-shadow:none!important}
body .vault-nav>a{border-radius:0!important}

/* ---------- v8.22: 7th menu item (Live TV) ---------- */
body .vault-nav{grid-template-columns:repeat(4,minmax(0,1fr))!important;position:static}
body .vault-nav>a{min-height:62px}
@media(min-width:640px){body .vault-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important;position:sticky}}
