/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root{
  --bg:#f5f5f7;
  --bg2:#eceef2;
  --card:#ffffff;
  --card2:#f9fafb;
  --border:#e5e7eb;
  --border2:#d1d5db;
  --ink:#0d0d0f;
  --ink2:#4b5563;
  --ink3:#9ca3af;
  --blue:#2563eb;
  --blue-h:#1d4ed8;
  --blue-s:#eff6ff;
  --blue-b:#bfdbfe;
  --red:#dc2626;
  --red-s:#fef2f2;
  --green:#16a34a;
  --green-s:#f0fdf4;
  --amber:#d97706;
  --amber-s:#fffbeb;
  --radius:16px;
  --radius-sm:10px;
  --radius-xs:7px;
  --shadow:0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.05);
  --shadow-md:0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:0 12px 40px rgba(0,0,0,.12);
  --font:'Plus Jakarta Sans',system-ui,sans-serif;
  --ease:.18s ease;
}
[data-theme=dark]{
  --bg:#0b0c10;
  --bg2:#13141a;
  --card:#1a1c24;
  --card2:#20222d;
  --border:#2a2d3a;
  --border2:#363a4d;
  --ink:#f0f0f5;
  --ink2:#94a3b8;
  --ink3:#4e566a;
  --blue:#3b82f6;
  --blue-h:#60a5fa;
  --blue-s:#1a2540;
  --blue-b:#1e3a6e;
  --red:#f87171;
  --red-s:#2d1414;
  --green:#4ade80;
  --green-s:#0d2818;
  --amber:#fbbf24;
  --amber-s:#2d2208;
  --shadow:0 1px 3px rgba(0,0,0,.4);
  --shadow-md:0 4px 16px rgba(0,0,0,.5);
  --shadow-lg:0 12px 40px rgba(0,0,0,.6);
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{font-family:var(--font);background:var(--bg);color:var(--ink);min-height:100vh;-webkit-font-smoothing:antialiased;padding-bottom:env(safe-area-inset-bottom,0px)}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer;border:none;background:none}
input,select{font-family:inherit}
a{color:var(--blue)}

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.page{max-width:680px;margin:0 auto;padding:0 16px 64px}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
nav{
  position:sticky;top:0;z-index:100;
  background:rgba(245,245,247,.85);
  backdrop-filter:blur(16px) saturate(180%);
  -webkit-backdrop-filter:blur(16px) saturate(180%);
  border-bottom:1px solid var(--border);
}
[data-theme=dark] nav{background:rgba(11,12,16,.85)}
/* Ruang aman saat hasil analisis digulir ke pilihan unduhan di bawah navbar sticky. */
#fmtSection{scroll-margin-top:calc(56px + env(safe-area-inset-top, 0px) + 16px)}
.nav-inner{
  max-width:680px;margin:0 auto;padding:0 16px;
  height:56px;display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:9px}
.brand-mark{
  width:32px;height:32px;border-radius:9px;
  background:var(--blue);display:flex;align-items:center;justify-content:center;
  font-size:16px;color:#fff;flex-shrink:0;
}
.brand-name{font-weight:700;font-size:1rem;letter-spacing:-.02em}
.brand-version{font-size:.7rem;color:var(--ink3);margin-left:2px;font-weight:500}

.nav-right{display:flex;align-items:center;gap:8px}
.theme-toggle{
  width:34px;height:34px;border-radius:50%;
  background:var(--card2);border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  font-size:.9rem;transition:background var(--ease),border-color var(--ease);
}
.theme-toggle:hover{background:var(--border2)}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.hero{padding:48px 0 32px;text-align:center}
.hero h1{
  font-size:clamp(1.6rem,5vw,2.25rem);
  font-weight:700;letter-spacing:-.03em;
  line-height:1.15;margin-bottom:10px;
}
.hero h1 span{color:var(--blue)}
.hero p{color:var(--ink2);font-size:.93rem;line-height:1.6;margin-bottom:0}

/* ══════════════════════════════════════════════
   CARD
══════════════════════════════════════════════ */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card+.card,.card+.section{margin-top:12px}

/* ══════════════════════════════════════════════
   URL INPUT CARD
══════════════════════════════════════════════ */
.url-card{padding:20px}
.url-row{display:flex;gap:8px}
.url-wrap{
  flex:1;display:flex;align-items:center;
  background:var(--card2);
  border:1.5px solid var(--border);
  border-radius:var(--radius-sm);
  padding:0 14px;gap:8px;
  transition:border-color var(--ease),background var(--ease);
}
.url-wrap:focus-within{border-color:var(--blue);background:var(--card)}
.url-icon{font-size:1rem;flex-shrink:0;color:var(--ink3)}
.url-input{
  flex:1;background:none;border:none;outline:none;
  font-size:.94rem;color:var(--ink);padding:13px 0;
}
.url-input::placeholder{color:var(--ink3)}
.url-clear{
  font-size:.75rem;color:var(--ink3);padding:4px;
  border-radius:4px;transition:color var(--ease);display:none;
}
.url-clear:hover{color:var(--red)}
.url-clear.visible{display:block}

/* ── Analyze button ── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  font-weight:600;font-size:.88rem;
  border-radius:var(--radius-sm);
  padding:12px 20px;
  white-space:nowrap;
  transition:background-color var(--ease),border-color var(--ease),color var(--ease),box-shadow var(--ease),transform var(--ease),opacity var(--ease);cursor:pointer;
}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover:not(:disabled){background:var(--blue-h)}
.btn-primary:disabled{opacity:.5;cursor:not-allowed}
.btn-ghost{
  background:var(--card2);color:var(--ink2);
  border:1px solid var(--border);
}
.btn-ghost:hover{background:var(--border);color:var(--ink)}
.btn-danger-soft{
  background:var(--red-s);color:var(--red);
  border:1px solid var(--red);
}
.btn-danger-soft:hover{background:var(--red);color:#fff}
.btn-success{background:var(--green);color:#fff}
.btn-success:hover{filter:brightness(1.05)}
.btn-sm{padding:8px 14px;font-size:.82rem}
.btn-xs{padding:5px 10px;font-size:.78rem;border-radius:6px}

/* platform chips */
.platform-row{
  display:flex;flex-wrap:wrap;gap:6px;
  margin-top:14px;justify-content:center;
}
.chip{
  font-size:.76rem;color:var(--ink2);
  background:var(--card2);border:1px solid var(--border);
  border-radius:999px;padding:4px 10px;
}

/* ══════════════════════════════════════════════
   ALERT / ERROR
══════════════════════════════════════════════ */
.alert{
  display:none;
  border-radius:var(--radius-sm);
  padding:12px 16px;font-size:.875rem;
  border-left:3px solid;
  margin-bottom:12px;
}
.alert.show{display:block}
.alert-error{background:var(--red-s);color:var(--red);border-color:var(--red)}
.alert-warn {background:var(--amber-s);color:var(--amber);border-color:var(--amber)}
.alert-info {background:var(--blue-s);color:var(--blue);border-color:var(--blue)}

/* ══════════════════════════════════════════════
   VIDEO INFO CARD
══════════════════════════════════════════════ */
.info-card{padding:16px}
.info-inner{display:flex;gap:14px;align-items:flex-start}
.thumb{
  flex-shrink:0;width:148px;height:88px;
  border-radius:var(--radius-xs);overflow:hidden;
  background:var(--card2);position:relative;
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb-placeholder{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-size:1.8rem;
}
.info-body{flex:1;min-width:0}
.info-platform{
  display:inline-flex;align-items:center;gap:5px;
  font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;
  color:var(--ink3);margin-bottom:6px;
}
.info-title{
  font-size:.94rem;font-weight:600;line-height:1.3;
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  margin-bottom:6px;
}
.info-author{font-size:.78rem;color:var(--ink2);margin-bottom:8px}
.meta-row{display:flex;flex-wrap:wrap;gap:6px}
.meta-pill{
  font-size:.72rem;padding:3px 9px;
  background:var(--card2);border:1px solid var(--border);
  border-radius:999px;color:var(--ink2);
}

/* ══════════════════════════════════════════════
   FORMAT SECTION
══════════════════════════════════════════════ */
.section{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}
.section-label{
  font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink3);margin-bottom:14px;
}

/* Type switcher */
.type-switch{
  display:flex;
  background:var(--card2);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:3px;
  margin-bottom:18px;
  gap:2px;
}
.type-opt{
  flex:1;padding:9px 8px;
  border-radius:7px;
  font-size:.85rem;font-weight:600;
  color:var(--ink2);
  transition:background-color var(--ease),border-color var(--ease),color var(--ease),box-shadow var(--ease),transform var(--ease),opacity var(--ease);
  text-align:center;
}
.type-opt.on{
  background:var(--card);
  color:var(--ink);
  box-shadow:var(--shadow);
}

/* Quality grid */
.q-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(138px,1fr));
  gap:7px;
  margin-bottom:18px;
}
.q-btn{
  padding:11px 10px;
  border:1.5px solid var(--border);
  border-radius:var(--radius-xs);
  background:var(--card2);
  text-align:left;
  cursor:pointer;
  transition:background-color var(--ease),border-color var(--ease),color var(--ease),box-shadow var(--ease),transform var(--ease),opacity var(--ease);
}
.q-btn:hover{border-color:var(--blue-b)}
.q-btn.on{
  border-color:var(--blue);
  background:var(--blue-s);
}
.q-name{display:block;font-size:.85rem;font-weight:600;color:var(--ink);margin-bottom:2px}
.q-btn.on .q-name{color:var(--blue)}
.q-meta{display:block;font-size:.72rem;color:var(--ink3)}
.q-btn.on .q-meta{color:var(--blue);opacity:.75}

.dl-btn-wrap{margin-top:4px}
.dl-main-btn{width:100%;padding:14px;font-size:.95rem}

/* ══════════════════════════════════════════════
   PROGRESS
══════════════════════════════════════════════ */
.prog-card{padding:20px}
.prog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.prog-title{font-size:.95rem;font-weight:600}
.prog-phase{
  font-size:.78rem;color:var(--ink2);
  margin-bottom:10px;
  min-height:1.2em;
}
.prog-bar-bg{
  height:6px;border-radius:999px;
  background:var(--card2);border:1px solid var(--border);
  overflow:hidden;margin-bottom:10px;
}
.prog-bar{
  height:100%;border-radius:999px;
  background:linear-gradient(90deg,var(--blue),#60a5fa);
  transition:width .35s ease;
}
.prog-footer{display:flex;justify-content:space-between;font-size:.78rem;color:var(--ink2)}

/* ══════════════════════════════════════════════
   RESULT CARD
══════════════════════════════════════════════ */
.result-card{
  display:none;
  padding:20px;
  background:var(--green-s);
  border:1px solid var(--green);
  border-radius:var(--radius);
}
.result-card.show{display:flex;align-items:center;gap:14px}
.result-icon{font-size:2.2rem;flex-shrink:0}
.result-body{flex:1;min-width:0}
.result-title{font-weight:600;font-size:.95rem;margin-bottom:3px}
.result-sub{font-size:.8rem;color:var(--ink2)}

/* ══════════════════════════════════════════════
   HISTORY
══════════════════════════════════════════════ */
.hist-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.hist-label{font-size:.95rem;font-weight:600}
.hist-empty{text-align:center;padding:28px 0;color:var(--ink3);font-size:.85rem}
.hist-list{display:flex;flex-direction:column;gap:6px}
.hist-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 12px;
  background:var(--card2);
  border:1px solid var(--border);
  border-radius:var(--radius-xs);
}
.hist-icon{display:inline-flex;flex-shrink:0}.hist-icon .platform-logo{width:30px;height:30px;flex-basis:30px;border-radius:9px}.hist-icon .platform-logo svg{width:18px;height:18px}
.hist-info{flex:1;min-width:0}
.hist-name{font-size:.85rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hist-detail{font-size:.73rem;color:var(--ink3);margin-top:1px}
.hist-del{
  width:26px;height:26px;border-radius:50%;
  background:var(--card);border:1px solid var(--border);
  color:var(--ink3);font-size:.78rem;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;cursor:pointer;transition:background-color var(--ease),border-color var(--ease),color var(--ease),box-shadow var(--ease),transform var(--ease),opacity var(--ease);
}
.hist-del:hover{background:var(--red-s);color:var(--red);border-color:var(--red)}

/* ══════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════ */
#toasts{
  position:fixed;bottom:24px;right:16px;
  z-index:9999;display:flex;flex-direction:column;gap:8px;
}
.toast{
  background:var(--card);
  border:1px solid var(--border);
  border-left:4px solid var(--blue);
  border-radius:var(--radius-xs);
  padding:11px 16px;
  font-size:.84rem;
  box-shadow:var(--shadow-lg);
  max-width:300px;
  animation:tIn .18s ease;
}
.toast.t-err{border-left-color:var(--red)}
.toast.t-ok {border-left-color:var(--green)}
.toast.t-warn{border-left-color:var(--amber)}
@keyframes tIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer{
  margin-top:56px;padding:0 0 24px;
  text-align:center;font-size:.78rem;color:var(--ink3);
  border-top:1px solid var(--border);
  padding-top:24px;
}

/* ══════════════════════════════════════════════
   SPINNER
══════════════════════════════════════════════ */
.spin{
  display:inline-block;width:15px;height:15px;
  border:2px solid currentColor;border-top-color:transparent;
  border-radius:50%;animation:rot .55s linear infinite;
}
@keyframes rot{to{transform:rotate(360deg)}}

/* ══════════════════════════════════════════════
   UTILS
══════════════════════════════════════════════ */
.hidden{display:none!important}
.mt8{margin-top:8px}
.mt12{margin-top:12px}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media(max-width:520px){
  .hero h1{font-size:1.5rem}
  .url-row{flex-direction:column}
  .thumb{width:100%;height:160px}
  .info-inner{flex-direction:column}
  .q-grid{grid-template-columns:repeat(2,1fr)}
  .type-opt{font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* AIO visual refresh: crisp SVG marks, platform brand colors, improved depth */
body{background:radial-gradient(ellipse at 50% -12%,rgba(59,130,246,.12),transparent 48%),var(--bg)}
nav{box-shadow:0 4px 24px rgba(15,23,42,.035)}
.brand-mark{background:linear-gradient(145deg,#3978f6,#6047e8);box-shadow:0 5px 14px rgba(37,99,235,.24)}
.brand-mark svg,.url-icon svg,.button-icon svg,.theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hero{padding:54px 0 30px}
.hero h1{letter-spacing:-.045em}
.hero p{max-width:480px;margin:0 auto;color:var(--ink2)}
.url-card,.section,.info-card{box-shadow:0 8px 30px rgba(15,23,42,.045);border-color:color-mix(in srgb,var(--border) 85%,transparent)}
.url-card{padding:22px}
.url-wrap{min-width:0;box-shadow:inset 0 1px 2px rgba(15,23,42,.025)}
.url-wrap:focus-within{box-shadow:0 0 0 4px rgba(37,99,235,.10)}
.btn-primary{box-shadow:0 5px 12px rgba(37,99,235,.18)}
.platform-row{gap:8px;margin-top:18px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:11px;font-size:.77rem;font-weight:650;color:var(--ink2);background:var(--card);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.chip:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.platform-logo{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:7px;background:#eef2f7;color:#334155}
.platform-logo svg{display:block;width:17px;height:17px}
.platform-youtube .platform-logo{background:#fee2e2;color:#ff0033}
.platform-tiktok .platform-logo{background:#101014;color:#fff}
.platform-instagram .platform-logo{background:linear-gradient(135deg,#ffd776,#ff6a5c 48%,#bc48c9 75%,#4c68d7);color:white}
.platform-facebook .platform-logo{background:#1877f2;color:#fff}
.platform-twitter .platform-logo{background:#111;color:#fff}
.platform-reddit .platform-logo{background:#ff4500;color:#fff}
.platform-other .platform-logo{background:#e0e7ff;color:#4f46e5}
[data-theme=dark] .platform-tiktok .platform-logo,[data-theme=dark] .platform-twitter .platform-logo{background:#f4f4f5;color:#111}
[data-theme=dark] .platform-other .platform-logo{background:#29234b;color:#a5b4fc}
.info-platform{gap:7px}
.info-platform .platform-logo{width:23px;height:23px}
.info-platform .platform-name{align-self:center}
.q-btn{background:linear-gradient(180deg,var(--card2),var(--card))}
.q-btn.on{box-shadow:0 0 0 3px rgba(37,99,235,.08)}
.result-card{box-shadow:0 8px 24px rgba(22,163,74,.07)}
@media(max-width:520px){.hero{padding:38px 0 24px}.url-card,.section{padding:16px}.platform-row{gap:7px}.chip{padding:6px 9px}.platform-logo{width:21px;height:21px;flex-basis:21px}}



/* ══════════════════════════════════════════════
   AIO VISUAL POLISH — responsive refinement
══════════════════════════════════════════════ */
:root{
  --radius:20px;
  --radius-sm:13px;
  --radius-xs:9px;
  --shadow:0 2px 8px rgba(15,23,42,.045),0 1px 2px rgba(15,23,42,.035);
  --shadow-md:0 12px 32px rgba(15,23,42,.075);
  --shadow-lg:0 24px 60px rgba(15,23,42,.12);
}
body{
  background:
    radial-gradient(ellipse at 50% -12%,rgba(59,130,246,.09),transparent 42%),
    var(--bg);
  line-height:1.5;
}
.page{max-width:760px;padding:0 20px 72px}
.nav-inner{max-width:760px;height:64px;padding:0 20px}
nav{box-shadow:0 1px 0 rgba(15,23,42,.025)}
.brand-mark{width:36px;height:36px;border-radius:12px;box-shadow:0 5px 14px rgba(37,99,235,.22)}
.brand-name{letter-spacing:-.045em}
.hero{padding:58px 0 34px}
.hero h1{letter-spacing:-.055em;line-height:1.1}
.hero h1 span{
  background:linear-gradient(100deg,#2563eb 0%,#6366f1 52%,#0ea5e9 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero p{max-width:460px;margin:0 auto;color:var(--ink2)}
.card{border-radius:var(--radius);box-shadow:var(--shadow);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.url-card{padding:24px}
.url-wrap{min-height:52px;border-radius:14px;background:var(--bg);padding:0 15px}
.url-wrap:focus-within{box-shadow:0 0 0 4px rgba(37,99,235,.10)}
button,.btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
button:active,.btn:active{transform:translateY(1px)}
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid rgba(59,130,246,.38);outline-offset:3px}
input,select{min-height:44px}
.section{margin-top:18px}
.section-title{letter-spacing:-.025em}
.card h2,.card h3{letter-spacing:-.025em}
.hidden{display:none!important}
[data-theme=dark] body{
  background:radial-gradient(ellipse at 50% -12%,rgba(59,130,246,.13),transparent 42%),var(--bg);
}
[data-theme=dark] .url-wrap{background:rgba(255,255,255,.025)}
[data-theme=dark] nav{box-shadow:0 1px 0 rgba(255,255,255,.025)}
/* Motion is subtle and respects accessibility preferences. */
@media (prefers-reduced-motion:no-preference){
  .hero{animation:aio-rise .45s ease both}
  .url-card{animation:aio-rise .5s .04s ease both}
  @keyframes aio-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
}
@media (min-width:700px){
  .page{padding-left:24px;padding-right:24px}
  .hero{padding-top:66px;padding-bottom:40px}
  .url-card{padding:28px}
}
@media (max-width:520px){
  .page{padding-left:14px;padding-right:14px;padding-bottom:44px}
  .nav-inner{padding:0 14px;height:58px}
  .hero{padding:38px 4px 26px}
  .hero h1{font-size:clamp(1.7rem,8vw,2.15rem)}
  .hero p{font-size:.875rem}
  .url-card{padding:16px}
  .url-row{gap:7px}
  .url-wrap{min-width:0;padding:0 11px;gap:7px}
  .url-wrap input{min-width:0;font-size:.88rem}
  .card{border-radius:17px}
}

/* Refined download history */
.hist-head{padding:2px 1px 0}
.hist-label{display:flex;align-items:center;gap:9px;letter-spacing:-.02em}
.hist-label::before{content:"";width:4px;height:19px;border-radius:4px;background:var(--blue);display:inline-block}
.hist-list{gap:9px}
.hist-item{padding:12px;gap:12px;border-radius:14px;transition:border-color .18s ease,transform .18s ease;background:var(--card2)}
.hist-item:hover{border-color:var(--blue);transform:translateY(-1px)}
.hist-icon{width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:12px;background:var(--card);color:var(--ink2)}
.hist-icon svg{width:21px;height:21px;display:block}
.hist-info{display:flex;flex-direction:column;gap:6px}
.hist-name{font-size:.88rem;line-height:1.4;font-weight:600}
.hist-detail{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:.72rem;line-height:1.4}
.hist-type{display:inline-flex;align-items:center;padding:3px 6px;border-radius:5px;background:var(--blue-s);color:var(--blue);font-size:.62rem;font-weight:700;letter-spacing:.04em}
.hist-del{width:30px;height:30px;border-radius:9px;font-size:1.15rem;line-height:1}
.hist-empty{padding:26px 12px;border:1px dashed var(--border);border-radius:14px;display:flex;flex-direction:column;align-items:center;gap:7px}
.hist-empty small{font-size:.76rem}
.hist-empty-mark{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--card2);font-size:1.2rem}
.result-card{display:none!important}


/* ===== Clean icon sizing (replaces all earlier override piles) ===== */
svg{flex-shrink:0}
svg.button-icon,.type-opt>svg,.dl-main-btn>svg,#cancelBtn>svg,.url-clear svg,.thumb-placeholder svg,.result-icon svg,.meta-pill svg,.theme-toggle svg,.url-icon svg,#aBtnIco svg,.brand-mark svg{
  width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:middle}
.brand-mark svg{width:18px;height:18px;stroke:#fff}
.thumb-placeholder svg{width:28px;height:28px}
.meta-pill svg{width:13px;height:13px}
.platform-logo svg{width:15px;height:15px}
.hist-icon svg{width:18px;height:18px}

/* Compact format toggle */
.type-opt{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 10px;font-size:.82rem}

/* Compact quality grid */
.q-grid{grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:14px}
.q-btn{padding:8px 10px;border-radius:10px}
.q-name{font-size:.82rem;margin-bottom:1px}
.q-meta{font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Compact download button */
.dl-main-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:11px 14px;font-size:.9rem;font-weight:650;border-radius:12px}
.dl-main-btn>svg{width:17px;height:17px}
#cancelBtn{display:inline-flex;align-items:center;gap:6px}

/* Compact history */
.hist-icon{width:32px;height:32px;border-radius:10px}
.hist-name{font-size:.82rem}
.hist-del{width:26px;height:26px}

/* ===== SVG icons ===== */
.ico{font-size:1.05rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex-shrink:0}
.ico svg{width:1em;height:1em;display:block}
.thumb-placeholder .ico{font-size:2rem}
.result-icon .ico{font-size:1.6rem}
.dl-main-btn .ico{font-size:1rem}
.theme-toggle .ico{font-size:1.1rem}
.url-clear .ico{font-size:.75rem}


/* FAQ — accessible, compact, responsive, and consistent with the AIO UI */
.faq-section{margin-top:12px}
.faq-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.faq-heading h2{font-size:1.18rem;line-height:1.35;letter-spacing:-.025em;margin:0 0 6px;color:var(--ink)}
.faq-intro{font-size:.83rem;line-height:1.6;color:var(--ink2);margin:0;max-width:620px}
.faq-count{flex-shrink:0;border:1px solid var(--border);border-radius:999px;padding:5px 9px;color:var(--ink3);font-size:.72rem;white-space:nowrap}
.faq-search-wrap{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:0 12px;margin-bottom:12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card2);color:var(--ink3)}
.faq-search-icon{display:inline-flex;width:17px;height:17px;flex-shrink:0}
.faq-search-icon svg{width:100%;height:100%}
.faq-search-wrap input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:.84rem}
.faq-search-wrap input::placeholder{color:var(--ink3)}
.faq-search-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-s)}
.faq-list{display:flex;flex-direction:column;gap:7px}
.faq-item{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card2);overflow:hidden}
.faq-item[hidden]{display:none!important}
.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:14px;list-style:none;cursor:pointer;padding:14px 15px;color:var(--ink);font-size:.86rem;font-weight:600;line-height:1.5}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;border-radius:var(--radius-sm)}
.faq-chevron{width:8px;height:8px;flex:0 0 8px;border-right:1.7px solid var(--ink3);border-bottom:1.7px solid var(--ink3);transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}
.faq-item[open] .faq-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.faq-item[open]{border-color:var(--blue-b)}
.faq-answer{padding:0 15px 15px;color:var(--ink2);font-size:.83rem;line-height:1.75}
.faq-answer strong{color:var(--ink);font-weight:600}
.faq-empty{padding:22px 10px;text-align:center;color:var(--ink3);font-size:.84rem}
.faq-bottom{margin-top:14px;padding-top:13px;border-top:1px solid var(--border);font-size:.78rem;line-height:1.6;color:var(--ink3)}
.faq-bottom strong{color:var(--ink2);font-weight:600}
@media(max-width:520px){
 .faq-heading{gap:8px}
 .faq-heading h2{font-size:1.04rem}
 .faq-intro{font-size:.78rem}
 .faq-count{font-size:.68rem;padding:4px 7px}
 .faq-item summary{padding:13px 12px;font-size:.83rem}
 .faq-answer{padding:0 12px 13px;font-size:.8rem}
}
@media(prefers-reduced-motion:reduce){.faq-chevron{transition:none}}

/* HELP CENTER additions */
.help-guides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 14px}
.help-guide{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:13px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card2);color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}
.help-guide:hover{border-color:var(--blue-b);transform:translateY(-1px)}
.help-guide-icon,.help-panel-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:var(--blue-s);color:var(--blue)}
.help-guide-icon svg,.help-panel-icon svg{width:18px;height:18px}
.help-guide strong,.help-guide small{display:block}
.help-guide strong{font-size:.78rem;line-height:1.4;margin:1px 0 4px}
.help-guide small{font-size:.7rem;line-height:1.5;color:var(--ink3)}
.faq-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 12px}
.faq-filter{border:1px solid var(--border);border-radius:999px;background:var(--card2);color:var(--ink2);padding:7px 11px;font:inherit;font-size:.74rem;cursor:pointer}
.faq-filter:hover,.faq-filter.active{border-color:var(--blue-b);background:var(--blue-s);color:var(--blue);font-weight:600}
.help-extra-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.help-panel{min-width:0;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);padding:16px;margin-top:12px;scroll-margin-top:20px}
.help-extra-grid .help-panel{margin-top:0}
.help-panel-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:13px}
.help-panel-heading h3{font-size:.9rem;line-height:1.4;margin:0 0 4px;color:var(--ink)}
.help-panel-heading p{font-size:.76rem;line-height:1.5;color:var(--ink3);margin:0}
.help-steps,.help-privacy-list{padding-left:19px;margin:0;color:var(--ink2);font-size:.78rem;line-height:1.65}
.help-steps li,.help-privacy-list li{padding-left:2px;margin:0 0 10px}
.help-steps li:last-child,.help-privacy-list li:last-child{margin-bottom:0}
.help-steps strong,.help-steps span{display:block}
.help-steps strong{color:var(--ink);font-size:.78rem;margin-bottom:2px}
.help-steps span{color:var(--ink2)}
.bug-report-form{display:grid;gap:12px}
.bug-report-form label{display:grid;gap:6px;color:var(--ink2);font-size:.77rem;font-weight:600}
.bug-report-form input,.bug-report-form select,.bug-report-form textarea{width:100%;min-width:0;border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 11px;background:var(--card2);color:var(--ink);font:inherit;font-size:.82rem;line-height:1.5;outline:none}
.bug-report-form input:focus,.bug-report-form select:focus,.bug-report-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-s)}
.bug-report-form textarea{resize:vertical}
.bug-report-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.bug-report-actions span{flex:1;min-width:160px;color:var(--ink3);font-size:.72rem;line-height:1.5}
.bug-report-output{width:100%;border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;background:var(--card2);color:var(--ink);font:inherit;font-size:.78rem;line-height:1.6;white-space:pre-wrap}
@media(max-width:650px){.help-guides{grid-template-columns:1fr}.help-guide{padding:11px}.help-extra-grid{grid-template-columns:1fr}.help-panel{padding:13px}.faq-filters{gap:6px}.faq-filter{padding:7px 9px}}

/* Help Center responsive layout and live support chat */
.help-guides{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.help-guide{box-sizing:border-box;overflow:hidden}
.help-guide>span:last-child{flex:1;min-width:0;overflow-wrap:anywhere}
.help-guide-icon,.help-panel-icon{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important}
.help-guide-icon svg,.help-panel-icon svg{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important}
.chat-status-line{display:flex;align-items:center;gap:8px;color:var(--ink3);font-size:.75rem;margin:12px 0 8px}.chat-status-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;flex:0 0 8px}
.chat-messages{display:flex;flex-direction:column;gap:9px;max-height:320px;min-height:100px;overflow-y:auto;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--card2)}
.chat-empty{margin:auto;text-align:center;color:var(--ink3);font-size:.8rem;padding:20px 8px}.chat-bubble{max-width:88%;padding:9px 11px;border-radius:12px;background:var(--card);border:1px solid var(--border);overflow-wrap:anywhere;white-space:pre-wrap;font-size:.82rem;line-height:1.55}.chat-bubble.visitor{align-self:flex-end;background:var(--blue-s);border-color:var(--blue-b)}.chat-bubble.admin{align-self:flex-start}.chat-meta{display:block;margin-top:5px;color:var(--ink3);font-size:.65rem}.live-chat-form{display:flex;gap:8px;align-items:flex-end;margin-top:10px}.live-chat-form textarea{flex:1;min-width:0;resize:vertical;border:1px solid var(--border);border-radius:10px;padding:11px;background:var(--card2);color:var(--ink);font:inherit;font-size:.85rem}.chat-note{font-size:.7rem;color:var(--ink3);line-height:1.5;margin:8px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.help-guides{grid-template-columns:minmax(0,1fr)}.live-chat-form{align-items:stretch;flex-direction:column}.live-chat-form .btn{width:100%}}


/* Floating Riyoo support chat */
.support-widget{position:fixed;right:18px;bottom:calc(82px + env(safe-area-inset-bottom,0px));z-index:9999;font-family:inherit}
.support-launcher{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:0 18px;border:0;border-radius:999px;background:linear-gradient(135deg,#1685ff,#4f46e5);color:#fff;box-shadow:0 10px 30px #1267d855;cursor:pointer;font-family:inherit;font-size:.85rem;font-weight:600;transition:transform .18s,box-shadow .18s}
.support-launcher:hover{transform:translateY(-2px);box-shadow:0 14px 34px #1267d866}.support-launcher svg{width:23px;height:23px;flex:0 0 23px}.support-popover{position:absolute;right:0;bottom:68px;width:min(370px,calc(100vw - 28px));max-height:min(570px,calc(100dvh - 175px));overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--card);box-shadow:0 20px 60px #0005;display:flex;flex-direction:column}.support-popover[hidden]{display:none}.support-popover-head{display:flex;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid var(--border);background:var(--card2)}.support-avatar{width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;border-radius:50%;background:var(--blue-s);color:var(--blue);font-weight:800}.support-popover-head strong,.support-popover-head small{display:block}.support-popover-head strong{font-size:.88rem;color:var(--ink)}.support-popover-head small{font-size:.7rem;color:var(--ink3);margin-top:2px}.support-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--ink2);font-size:25px;cursor:pointer}.support-popover-body{overflow:auto;padding:10px}.support-popover .live-chat-panel{border:0;padding:0;margin:0;background:transparent;box-shadow:none}.support-popover .help-panel-heading{display:none}.support-popover .chat-status-line{font-size:.7rem;margin:0 0 8px}.support-popover .chat-messages{min-height:130px;max-height:240px;padding:9px}.support-popover .live-chat-form{display:flex;flex-direction:column;align-items:stretch;gap:8px}.support-popover .live-chat-form textarea{width:100%;min-height:66px;max-height:120px;resize:vertical;box-sizing:border-box}.support-popover .live-chat-form .btn{width:100%;min-height:42px}.support-popover .chat-note{font-size:.66rem}.support-popover .chat-bubble{font-size:.78rem}
@media(max-width:480px){.support-widget{right:14px;bottom:calc(82px + env(safe-area-inset-bottom,0px))}.support-launcher{min-height:50px;padding:0 15px}.support-popover{width:calc(100vw - 28px);max-height:calc(100dvh - 160px);bottom:62px}.support-popover .chat-messages{max-height:30dvh}}

/* Help Center chat: inline, no floating chat popup */
.live-chat-panel{margin-top:18px;padding:18px;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--ink)}
.chat-attach-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0}
.chat-attach-btn,.support-image-label{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid var(--border);border-radius:10px;color:var(--blue);cursor:pointer;font-size:.82rem;font-weight:600}
.chat-image-input,.support-image-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.chat-image-name{font-size:.75rem;color:var(--ink3);overflow-wrap:anywhere}
.chat-message-image{display:block;max-width:min(100%,280px);max-height:280px;object-fit:contain;border-radius:10px;margin-top:7px;border:1px solid var(--border)}
.support-help-link{text-decoration:none;position:fixed;right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:9999}
@media(max-width:480px){.support-help-link{right:14px;bottom:calc(20px + env(safe-area-inset-bottom,0px))}.live-chat-panel{padding:14px}.live-chat-form{flex-direction:column;align-items:stretch}.live-chat-form .btn{width:100%}}


/* FINAL FIX: compact floating help icon on the main page only. */
#supportLauncher.support-help-link {
  position: fixed !important;
  z-index: 10000 !important;
  right: 16px !important;
  left: auto !important;
  top: auto !important;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #1685ff, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px #1267d866 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
#supportLauncher.support-help-link svg {
  display: block !important; width: 24px !important; height: 24px !important;
  min-width: 24px !important; max-width: 24px !important;
  flex: 0 0 24px !important; margin: 0 !important;
}
#supportLauncher .support-launcher-label { display: none !important; }
#supportLauncher[hidden] { display: none !important; }
@media (max-width: 480px) {
  #supportLauncher.support-help-link {
    right: 16px !important; left: auto !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    width: 54px !important; min-width: 54px !important; max-width: 54px !important;
    height: 54px !important; min-height: 54px !important; max-height: 54px !important;
    padding: 0 !important; border-radius: 50% !important;
  }
}


/* Bantuan page routing: keep support form off the downloader homepage. */
.live-chat-panel { display: none !important; }
html.bantuan-page .live-chat-panel { display: block !important; }
html.bantuan-page #faqSection { scroll-margin-top: 16px; }
#supportLauncher.support-help-link { width: 54px !important; min-width: 54px !important; max-width: 54px !important; height: 54px !important; min-height: 54px !important; max-height: 54px !important; padding: 0 !important; border-radius: 50% !important; }
#supportLauncher .support-launcher-label { display: none !important; }


/* Dedicated Bantuan / live chat page */
html.livechat-page .page > :not(#faqSection):not(.chat-hero):not(.chat-top):not(.chat-layout):not(footer) { display: none !important; }
html.livechat-page #faqSection { display: block !important; max-width: 820px; margin: 24px auto 48px; }
html.livechat-page #faqSection > :not(.chat-layout) { display: none !important; }
html.livechat-page .chat-layout { display: grid !important; }
html.livechat-page #liveChat.live-chat-panel { display: block !important; margin-top: 0; }
html.livechat-page #supportLauncher { display: none !important; }
html.livechat-page footer { margin-top: 40px; }

/* platform chips: daftar panjang dilipat */
.platform-row .chip-more{display:none}
.platform-row.expanded .chip-more{display:inline-flex}
.chip-toggle{border:1px dashed var(--ink2);cursor:pointer;font:inherit;font-size:.77rem;font-weight:650}
.platform-logo svg text{pointer-events:none}

/* ── Preview + trim ─────────────────────────── */
.trim-card{
  margin: 14px 0 6px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--card2);
  border: 1px solid var(--border);
}
.trim-preview{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: var(--bg2);
  margin-bottom: 12px;
}
.trim-poster{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trim-duration-badge{
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
}
.trim-fields{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}
.trim-field{
  flex: 1;
  min-width: 100px;
}
.trim-field label{
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 4px;
}
.trim-field input{
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
.trim-range-wrap{
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}
.trim-range-wrap input[type=range]{
  width: 100%;
  accent-color: var(--blue);
}
.trim-hint{
  margin: 0;
  font-size: .78rem;
  color: var(--ink3);
  line-height: 1.45;
}

/* ══════════════════════════════════════════════
   DASHBOARD UTAMA v4 — hero, strip statistik, cara kerja, fitur
══════════════════════════════════════════════ */
body{background:
  radial-gradient(700px 360px at 50% -80px,color-mix(in srgb,var(--blue) 13%,transparent),transparent 70%),var(--bg)}
.hero{position:relative;padding:50px 0 28px}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 13px;margin-bottom:18px;border-radius:99px;font-size:.76rem;font-weight:600;
  color:var(--blue);background:var(--blue-s);border:1px solid color-mix(in srgb,var(--blue) 22%,transparent)}
.hero-badge i{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 25%,transparent)}
.hero h1{font-size:clamp(1.85rem,6.2vw,2.8rem);font-weight:800;letter-spacing:-.05em;line-height:1.08}
.hero h1 span{display:block;background:linear-gradient(100deg,var(--blue),#7c3aed);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{max-width:520px;font-size:.95rem}

.url-card{padding:14px;border-radius:20px;border:1px solid color-mix(in srgb,var(--blue) 18%,var(--border));
  box-shadow:0 18px 44px -18px color-mix(in srgb,var(--blue) 35%,transparent),var(--shadow)}
.url-wrap{min-height:54px;border-radius:14px}
.url-paste{display:inline-flex;align-items:center;gap:6px;flex:none;padding:7px 11px;border-radius:9px;font-size:.78rem;font-weight:700;
  color:var(--blue);background:var(--blue-s);border:1px solid color-mix(in srgb,var(--blue) 20%,transparent);cursor:pointer;transition:background .15s}
.url-paste:hover{background:color-mix(in srgb,var(--blue) 14%,var(--blue-s))}
.url-paste svg{width:15px;height:15px}
.url-paste.hide{display:none}
.platform-row{margin-top:14px;padding:0 4px 4px}

.dash-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.dstat{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:16px;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow);min-width:0}
.dstat-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin-bottom:8px;color:var(--blue);background:var(--blue-s)}
.dstat:nth-child(2) .dstat-ic{color:#7c3aed;background:color-mix(in srgb,#7c3aed 12%,var(--card))}
.dstat:nth-child(3) .dstat-ic{color:var(--green);background:var(--green-s)}
.dstat-ic svg{width:18px;height:18px}
.dstat b{font-size:1.15rem;font-weight:800;letter-spacing:-.03em;line-height:1.15;font-variant-numeric:tabular-nums}
.dstat small{font-size:.72rem;color:var(--ink3);line-height:1.35}

.home-info{margin-top:24px;padding:22px}
.home-head h2{font-size:1.1rem;font-weight:800;letter-spacing:-.03em}
.home-head p{font-size:.82rem;color:var(--ink2);margin-top:2px}
.steps{list-style:none;display:grid;gap:0;margin:16px 0 20px;position:relative}
.steps li{display:flex;gap:14px;align-items:flex-start;padding:0 0 18px;position:relative}
.steps li:last-child{padding-bottom:0}
.steps li:not(:last-child)::before{content:"";position:absolute;left:15px;top:32px;bottom:2px;width:2px;background:linear-gradient(var(--blue-b),transparent);border-radius:2px}
.step-n{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:.85rem;font-weight:800;color:#fff;
  background:linear-gradient(135deg,var(--blue),#6366f1);box-shadow:0 6px 14px -4px color-mix(in srgb,var(--blue) 60%,transparent)}
.steps b{display:block;font-size:.92rem;font-weight:700;margin-top:4px}
.steps small{display:block;font-size:.8rem;color:var(--ink2);line-height:1.5;margin-top:1px}
.feat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.feat{padding:14px;border-radius:14px;background:var(--card2);border:1px solid var(--border);transition:border-color .18s,transform .18s}
.feat:hover{border-color:var(--blue);transform:translateY(-1px)}
.feat-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin-bottom:10px;background:var(--card);border:1px solid var(--border);color:var(--blue)}
.feat-ic svg{width:18px;height:18px}
.feat b{display:block;font-size:.86rem;font-weight:700}
.feat small{display:block;font-size:.76rem;color:var(--ink2);line-height:1.45;margin-top:2px}
@media(min-width:700px){.feat-grid{grid-template-columns:repeat(4,1fr)}.steps{grid-template-columns:repeat(3,1fr);gap:16px}
  .steps li{flex-direction:column;padding:0}.steps li::before{display:none!important}}
@media(max-width:420px){.url-paste span{display:none}.url-paste{padding:8px}.dstat{padding:12px}.dstat b{font-size:1rem}}
