/* NikPak web site — the look of the NikPak / unNik windows (src/gui.rs colours) */
:root {
  --bg-top: #102658;
  --bg-bottom: #04091C;
  --panel-top: #0E224E;
  --panel-bottom: #050C24;
  --accent: #1E9BFF;
  --accent-hover: #3AACFF;
  --accent-soft: #5FC4FF;
  --text: #EAF4FF;
  --dim: #8FA9CC;
  --track: #122244;
  --ok: #3DDC97;
  --err: #FF6B7A;
  --warn: #FFC45C;
  --field: rgba(2, 8, 26, .66);
  --line: rgba(95, 196, 255, .16);
  --line-strong: rgba(95, 196, 255, .34);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1180px;
  color-scheme: dark;
}
html[lang="zh-Hans"] { --font: "Inter", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
html[lang="hi"] { --font: "Inter", "Noto Sans Devanagari", "Nirmala UI", sans-serif; }
html[lang="bn"] { --font: "Inter", "Noto Sans Bengali", "Nirmala UI", sans-serif; }
html[lang="ar"] { --font: "Noto Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(1100px 600px at 50% -120px, rgba(30, 155, 255, .20), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, #0A1838 520px, var(--bg-bottom) 1400px);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-soft); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--text); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: rgba(95, 196, 255, .10); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; color: #CFE8FF; white-space: nowrap; }
kbd { background: var(--track); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: .05em .45em; border-radius: 6px; color: var(--text); white-space: nowrap; }
pre { background: rgba(1, 5, 18, .86); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; line-height: 1.7; color: #CFE8FF; direction: ltr; text-align: left; }
pre .c { color: #5d7aa3; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 500; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 300; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 300; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* small caps labels like "SAVE TO" in the app */
.label { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); }
html[lang="zh-Hans"] .label, html[lang="ar"] .label, html[lang="hi"] .label, html[lang="bn"] .label { letter-spacing: .04em; font-size: .82rem; }
.dim { color: var(--dim); }
.ok { color: var(--ok); }
.center { text-align: center; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 14, 38, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.35rem; font-weight: 500; letter-spacing: .06em; text-shadow: 0 0 18px rgba(30, 155, 255, .55); }
.brand:hover { text-decoration: none; color: #fff; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--dim); padding: 8px 12px; border-radius: 10px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(95, 196, 255, .08); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: rgba(30, 155, 255, .16); }
.top .btn { padding: 9px 16px; font-size: .92rem; }
.top .menu-toggle { display: none; }
@media (max-width: 1020px) {
  .top .wrap { gap: 10px; }
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(5, 12, 36, .98); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; margin: 0; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .top.open .nav { display: flex; }
  .top .menu-toggle { display: inline-flex; margin-inline-start: auto; }
}

/* language picker (the app's pill with flag) */
.lang { position: relative; }
.lang > button, .menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
  background: var(--field); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px;
  font: inherit; font-size: .9rem; cursor: pointer;
}
.lang > button:hover, .menu-toggle:hover { border-color: var(--accent-soft); }
.lang .caret { width: 0; height: 0; border-inline: 5px solid transparent; border-top: 6px solid var(--accent); }
.flag { width: 22px; height: 15px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; padding: 10px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-bottom)); border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: none; z-index: 60;
}
.lang.open .lang-menu { display: block; }
.lang-menu .label { padding: 4px 10px 8px; display: block; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; color: var(--text); }
.lang-menu a:hover { background: rgba(30, 155, 255, .14); text-decoration: none; }
.lang-menu a[aria-current="true"] { background: rgba(30, 155, 255, .2); }
.lang-menu a[aria-current="true"]::after { content: "✓"; margin-inline-start: auto; color: var(--accent-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: var(--radius-sm); font: inherit; font-weight: 500; font-size: 1rem;
  border: 1px solid var(--line-strong); color: var(--text); background: rgba(14, 34, 78, .7);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s; text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; color: #fff; border-color: var(--accent-soft); background: rgba(30, 155, 255, .16); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(30, 155, 255, .35); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- panels ---------- */
.panel {
  background: linear-gradient(180deg, rgba(14, 34, 78, .92), rgba(5, 12, 36, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.panel-flat { background: rgba(2, 8, 26, .5); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 600px) { .panel { padding: 20px; } }

section { padding: 72px 0; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--dim); font-size: 1.1rem; }
.page-head { padding: 64px 0 24px; text-align: center; }
.page-head p { color: var(--dim); font-size: 1.15rem; max-width: 760px; margin: 0 auto; }
.glow-title { font-weight: 500; letter-spacing: .06em; text-shadow: 0 0 24px rgba(30, 155, 255, .6); }
.rule { width: 140px; height: 1px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent-soft); text-shadow: 0 0 28px rgba(30, 155, 255, .55); }
.hero .lead { font-size: 1.18rem; color: #C6DAF2; max-width: 620px; }
.hero .btn-row { margin: 28px 0 14px; }
.hero .small { font-size: .92rem; color: var(--dim); }

/* the NikPak window, drawn in HTML */
.appwin {
  position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 500 / 560;
  border-radius: 22px; border: 1px solid rgba(95, 196, 255, .28);
  background: radial-gradient(120% 70% at 50% 0, #163274 0, transparent 60%), linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 80px rgba(30, 155, 255, .18);
  display: flex; flex-direction: column; padding: 4.5% 6% 5%; font-size: clamp(11px, 2.8vw, 14px); user-select: none;
}
.appwin .bar { display: flex; align-items: center; justify-content: space-between; }
.appwin .bar .label { font-size: .72em; letter-spacing: .16em; }
.appwin .wbtns { display: flex; gap: 14px; color: var(--dim); font-size: 1.05em; line-height: 1; align-items: center; }
.appwin .wbtns i { font-style: normal; width: 1.25em; height: 1.25em; border: 1px solid var(--dim); border-radius: 50%; display: inline-grid; place-items: center; font-size: .78em; }
.appwin .ttl { text-align: center; font-size: 2.3em; font-weight: 500; letter-spacing: .07em; margin-top: .25em; text-shadow: 0 0 20px rgba(30, 155, 255, .8); line-height: 1.1; }
.appwin .ttl::after { content: ""; display: block; width: 42%; height: 1px; margin: .35em auto 0; background: linear-gradient(90deg, transparent, var(--accent-soft), transparent); }
.appwin .ring { position: relative; width: 48%; margin: 5% auto 3%; aspect-ratio: 1; }
.appwin .ring svg { width: 100%; height: 100%; overflow: visible; }
.appwin .ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4em; font-weight: 200; letter-spacing: -.02em; opacity: 0; transition: opacity .3s; }
.appwin .ring .pct small { font-size: .38em; font-weight: 500; margin-inline-start: .08em; }
.appwin .ring .arrow, .appwin .ring .check { transition: opacity .3s; }
.appwin .msg { text-align: center; min-height: 3.6em; }
.appwin .msg .big { font-size: 1.12em; }
.appwin .msg .links { color: var(--dim); font-size: .92em; }
.appwin .msg .links u { color: var(--accent-soft); text-decoration-color: rgba(95, 196, 255, .5); }
.appwin .msg .phase { color: var(--accent-soft); letter-spacing: .2em; font-weight: 500; font-size: .92em; }
.appwin .msg .phase.ok { color: var(--ok); }
.appwin .msg .file { font-size: .96em; }
.appwin .msg .meta { color: var(--dim); font-size: .86em; }
.appwin .state { display: none; }
.appwin[data-state="idle"] .s-idle, .appwin[data-state="run"] .s-run, .appwin[data-state="done"] .s-done { display: block; }
.appwin .save { margin-top: auto; }
.appwin .save .label { font-size: .72em; display: block; margin: 0 0 .5em .3em; color: var(--dim); }
.appwin .row { display: flex; gap: 2.5%; }
.appwin .fld { flex: 1; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: .55em .9em; color: var(--text); font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; }
.appwin .bbtn { border: 1px solid var(--line-strong); border-radius: 10px; padding: .55em 1.1em; font-weight: 500; font-size: .95em; background: rgba(14, 34, 78, .9); }
.appwin .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4%; }
.appwin .pill { display: inline-flex; gap: .55em; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: .3em .9em .3em .55em; font-size: .9em; background: var(--field); }
.appwin .pill .flag { width: 1.6em; height: 1.1em; }
.appwin .soc { display: flex; gap: .7em; }
.appwin .soc span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; }
.appwin .soc svg { width: 52%; height: 52%; }

/* ---------- stats ---------- */
.stats { padding: 20px 0 30px; }
.stat { text-align: center; padding: 26px 18px; }
.stat b { display: block; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 200; color: var(--text); text-shadow: 0 0 22px rgba(30, 155, 255, .5); line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.stat span { color: var(--dim); font-size: .95rem; display: block; margin-top: 8px; }

/* ---------- feature cards ---------- */
.card { padding: 26px; }
.card .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px; background: radial-gradient(circle at 50% 40%, rgba(30, 155, 255, .35), rgba(30, 155, 255, .06)); border: 1px solid var(--line-strong); }
.card .ico svg { width: 24px; height: 24px; color: var(--accent-soft); }
.card p { color: #BFD3EC; margin: 0; }
.card h3 { margin-bottom: .5em; }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 30px; } .split.rev > :first-child { order: 0; } }
.split p { color: #C6DAF2; }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-inline-start: 30px; margin: .55em 0; }
.checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: rgba(61, 220, 151, .15); border: 1px solid rgba(61, 220, 151, .6); }
.checks li::after { content: ""; position: absolute; inset-inline-start: 6px; top: .55em; width: 6px; height: 9px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shot { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55)); margin: 0 auto; }
.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.shots img { width: calc(50% - 10px); max-width: 360px; }
figure { margin: 0; }
figcaption { color: var(--dim); font-size: .9rem; text-align: center; margin-top: 12px; }

/* ---------- bar chart ---------- */
.chart { display: grid; gap: 22px; }
.chart .set h4 { font-size: .98rem; font-weight: 500; margin: 0 0 8px; color: var(--text); }
.bars { display: grid; gap: 5px; }
.bar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: .86rem; }
.bar .n { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .t { height: 12px; background: var(--track); border-radius: 999px; overflow: hidden; }
.bar .f { height: 100%; border-radius: 999px; background: #3B5B8C; width: 0; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.bar.me .n { color: var(--text); font-weight: 600; }
.bar.me .f { background: linear-gradient(90deg, var(--accent), var(--accent-soft)); box-shadow: 0 0 14px rgba(30, 155, 255, .6); }
.bar .v { text-align: end; color: var(--dim); font-variant-numeric: tabular-nums; direction: ltr; }
.bar.me .v { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .bar { grid-template-columns: 86px minmax(0, 1fr) 54px; gap: 8px; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(2, 8, 26, .55); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 11px 14px; text-align: start; border-bottom: 1px solid rgba(95, 196, 255, .08); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); font-weight: 500; background: rgba(14, 34, 78, .6); white-space: nowrap; }
html[lang="zh-Hans"] th, html[lang="ar"] th, html[lang="hi"] th, html[lang="bn"] th { letter-spacing: .02em; font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; }
td.best { color: var(--ok); font-weight: 600; }
tr.me td { background: rgba(30, 155, 255, .08); }
tr.me td:first-child { color: var(--text); font-weight: 600; }
td code { white-space: nowrap; }

/* ---------- docs layout ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 90px; font-size: .93rem; }
.toc .label { display: block; margin-bottom: 10px; }
.toc a { display: block; color: var(--dim); padding: 6px 12px; border-inline-start: 2px solid var(--line); }
.toc a:hover, .toc a.active { color: var(--text); border-inline-start-color: var(--accent); text-decoration: none; }
@media (max-width: 900px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
.doc section { padding: 18px 0 34px; border-bottom: 1px solid rgba(95, 196, 255, .08); scroll-margin-top: 84px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 1.85rem; }
.doc h3 { margin-top: 1.6em; }
.doc p, .doc li { color: #C6DAF2; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-inline-start: 50px; margin: 0 0 16px; min-height: 34px; }
.steps > li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent-soft); font-weight: 600; background: rgba(30, 155, 255, .1); }
.note { border: 1px solid rgba(255, 196, 92, .35); background: rgba(255, 196, 92, .07); border-radius: var(--radius-sm); padding: 14px 18px; color: #F3E3C0; margin: 1em 0; }
.note b { color: var(--warn); }
.info { border: 1px solid var(--line-strong); background: rgba(30, 155, 255, .08); border-radius: var(--radius-sm); padding: 14px 18px; margin: 1em 0; }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card .amount { font-size: 3rem; font-weight: 200; line-height: 1; margin: 10px 0 4px; direction: ltr; unicode-bidi: isolate; }
.price-card .amount small { font-size: 1rem; color: var(--dim); font-weight: 400; }
.price-card ul { margin-top: 14px; }
.price-card.featured { border-color: var(--line-strong); box-shadow: 0 0 0 1px rgba(30, 155, 255, .25), 0 30px 80px rgba(30, 155, 255, .14); }
.tiers td, .tiers th { text-align: center; }
.tiers tr.on td { background: rgba(30, 155, 255, .22); color: #fff; font-weight: 600; }

.shop { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
@media (max-width: 960px) { .shop { grid-template-columns: minmax(0, 1fr); } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg .opt { display: block; border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; background: var(--field); transition: border-color .15s, background .15s; height: 100%; }
.seg .opt b { display: block; font-weight: 600; }
.seg .opt span { color: var(--dim); font-size: .88rem; }
.seg input:checked + .opt { border-color: var(--accent); background: rgba(30, 155, 255, .16); box-shadow: 0 0 0 1px var(--accent) inset; }
.seg input:focus-visible + .opt { outline: 2px solid var(--accent-soft); outline-offset: 2px; }

.stepper { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--field); width: max-content; max-width: 100%; }
.stepper button { width: 46px; background: rgba(14, 34, 78, .9); border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper button:hover { background: rgba(30, 155, 255, .25); }
.stepper input { width: 110px; text-align: center; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 1.25rem; padding: 10px 6px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 14px 0 4px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.presets button { background: transparent; border: 1px solid var(--line); color: var(--dim); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.presets button:hover { color: var(--text); border-color: var(--accent-soft); }

.summary { display: grid; gap: 10px; margin: 18px 0; }
.summary .ln { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); }
.summary .ln b { color: var(--text); font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.1rem; color: var(--text); }
.summary .total b { font-size: 2.3rem; font-weight: 300; text-shadow: 0 0 20px rgba(30, 155, 255, .5); }
.saving { color: var(--ok); font-size: .92rem; min-height: 1.4em; }

.methods { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--field); cursor: pointer; transition: border-color .15s, background .15s; }
.method:hover { border-color: var(--line-strong); }
.method input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; flex: none; }
.method .mi { flex: 1; min-width: 0; }
.method .mi b { display: block; font-weight: 500; }
.method .mi span { color: var(--dim); font-size: .86rem; }
.method .logos { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.method .logos span { font-size: .72rem; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #fff; color: #10204a; letter-spacing: .02em; white-space: nowrap; }
.method.on { border-color: var(--accent); background: rgba(30, 155, 255, .12); }
.method[hidden] { display: none; }
@media (max-width: 640px) { .method .logos { display: none; } }
.paybox { margin-top: 18px; }
#gpay-container { min-height: 48px; }
#gpay-container button { width: 100% !important; }

.form { display: grid; gap: 16px; }
.field label { display: block; margin: 0 0 6px 2px; }
.field small { display: block; color: var(--dim); margin-top: 6px; font-size: .84rem; }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text);
  font: inherit; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 155, 255, .25); }
input::placeholder, textarea::placeholder { color: #5d7aa3; }
textarea { min-height: 160px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] select { background-position: 20px 55%, 14px 55%; }
select option { background: #0B1A3E; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert.ok { background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .5); color: #CFF7E6; }
.alert.err { background: rgba(255, 107, 122, .1); border: 1px solid rgba(255, 107, 122, .5); color: #FFD9DD; }
.subject-preview { font-family: var(--mono); font-size: .86rem; color: var(--accent-soft); direction: ltr; unicode-bidi: isolate; word-break: break-word; }

/* crypto */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
@media (max-width: 600px) { .coins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.coins label { cursor: pointer; }
.coins input { position: absolute; opacity: 0; pointer-events: none; }
.coins .opt { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 8px; background: var(--field); text-align: center; height: 100%; }
.coins .opt svg { width: 34px; height: 34px; }
.coins .opt b { font-weight: 600; }
.coins .opt span { font-size: .76rem; color: var(--dim); line-height: 1.3; }
.coins input:checked + .opt { border-color: var(--accent); background: rgba(30, 155, 255, .16); box-shadow: 0 0 0 1px var(--accent) inset; }
.coins input:focus-visible + .opt { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
.addr { display: flex; gap: 8px; align-items: stretch; }
.addr code { flex: 1; white-space: normal; word-break: break-all; padding: 12px 14px; font-size: .9rem; display: block; direction: ltr; text-align: left; }
.addr .btn { padding: 8px 14px; font-size: .88rem; }
.crypto-grid { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 22px; align-items: start; margin-top: 18px; }
@media (max-width: 700px) { .crypto-grid { grid-template-columns: minmax(0, 1fr); } }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 180px; max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.qr canvas, .qr svg, .qr img { width: 100%; height: 100%; }
.crypto-amount { font-size: 1.6rem; font-weight: 300; direction: ltr; unicode-bidi: isolate; }

/* faq */
details.faq { border: 1px solid var(--line); border-radius: 14px; background: rgba(2, 8, 26, .5); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent-soft); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 20px 16px; color: #C6DAF2; }

/* community buttons (Telegram, X, Discord) */
.soc-row { display: flex; gap: 12px; flex-wrap: wrap; }
.soc-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.soc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.soc-btn svg { width: 22px; height: 22px; }
.soc-tg { background: #229ED9; }
.soc-x { background: #0F1419; border: 1px solid rgba(255, 255, 255, .25); }
.soc-dc { background: #5865F2; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 40px; background: rgba(2, 6, 18, .6); font-size: .93rem; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .cols { grid-template-columns: 1fr; } }
footer a { color: var(--dim); display: block; padding: 3px 0; }
footer a:hover { color: var(--text); }
footer .label { display: block; margin-bottom: 10px; }
footer .copy { margin-top: 36px; color: #5d7aa3; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* cta band */
.cta { text-align: center; padding: 56px 28px; }
.cta .btn-row { justify-content: center; margin-top: 22px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: #0E224E; border: 1px solid var(--line-strong); padding: 10px 18px; border-radius: 12px; opacity: 0; transition: .25s; z-index: 80; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.menu-toggle svg { width: 20px; height: 20px; }
.inline { width: 1em; height: 1em; vertical-align: -2px; display: inline-block; }
p code, li code, .note code { white-space: normal; overflow-wrap: anywhere; }
.appwin .msg .meta, .appwin .msg .file { direction: ltr; unicode-bidi: isolate; }
.summary .ln b, .tiers td.price, .crypto-amount { direction: ltr; unicode-bidi: isolate; }
/* letter-spacing breaks the joining of Devanagari, Bengali and Arabic letters */
html[lang="zh-Hans"] .label, html[lang="hi"] .label, html[lang="bn"] .label, html[lang="ar"] .label,
html[lang="zh-Hans"] th, html[lang="hi"] th, html[lang="bn"] th, html[lang="ar"] th,
html[lang="zh-Hans"] .appwin .msg .phase, html[lang="hi"] .appwin .msg .phase, html[lang="bn"] .appwin .msg .phase, html[lang="ar"] .appwin .msg .phase { letter-spacing: 0; }

/* ---- skins: strip (home, features), gallery, viewer ---- */
.skin-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-decoration: none; }
.skin-strip img { width: 100%; height: auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .5)); transition: transform .25s ease; }
.skin-strip:hover img { transform: translateY(-3px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 28px; }
.chip { font: inherit; font-size: .92rem; color: var(--text); background: rgba(30, 155, 255, .08); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.chip b { color: var(--dim); font-weight: 500; margin-inline-start: 4px; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip[aria-pressed="true"] b { color: rgba(255, 255, 255, .8); }
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 26px 20px; }
.skin-tile { margin: 0; }
.skin-tile a { display: block; border-radius: 16px; outline-offset: 4px; }
.skin-tile img { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55)); transition: transform .25s ease; }
.skin-tile a:hover img, .skin-tile a:focus-visible img { transform: translateY(-4px) scale(1.015); }
.skin-tile figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .95rem; }
.skin-tile .tag { font-style: normal; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.skin-tile .tag.d { background: rgba(4, 9, 28, .8); color: var(--dim); border: 1px solid var(--line); }
.skin-tile .tag.b { background: #EEF5FF; color: #0B2A55; }
html[lang="zh-Hans"] .skin-tile .tag, html[lang="hi"] .skin-tile .tag, html[lang="bn"] .skin-tile .tag, html[lang="ar"] .skin-tile .tag { letter-spacing: 0; }
.skin-view { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; color: var(--text); }
.skin-view::backdrop { background: rgba(1, 4, 14, .86); backdrop-filter: blur(4px); }
.skin-view figure { margin: 0; text-align: center; }
.skin-view img { width: min(500px, 86vw); height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.skin-view figcaption { margin-top: 14px; font-size: 1.05rem; color: var(--text); }
.skin-view .sv-close, .skin-view .sv-nav { position: fixed; font: inherit; color: var(--text); background: rgba(14, 34, 78, .85); border: 1px solid var(--line-strong); border-radius: 50%; width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.skin-view .sv-close { top: 18px; right: 18px; }
.skin-view .sv-nav { top: 50%; transform: translateY(-50%); }
.skin-view .sv-prev { left: 18px; }
.skin-view .sv-next { right: 18px; }
.skin-view button:hover { background: var(--accent); }
@media (max-width: 640px) {
  .skin-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .skin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .skin-tile figcaption { flex-direction: column; align-items: flex-start; gap: 4px; font-size: .88rem; }
  .skin-view .sv-nav { top: auto; bottom: 18px; transform: none; }
}

/* ---- downloads: one button per system (the visitor's system is highlighted) ---- */
.dl { margin: 24px 0 12px; scroll-margin-top: 100px; }
.cta .dl { text-align: center; }
.dl-row { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 10px; margin-top: 10px; }
.cta .dl-row { justify-content: center; }
.dl-btn { justify-content: flex-start; text-align: start; padding: 10px 18px 10px 14px; }
.dl-btn svg { width: 24px; height: 24px; flex: none; }
.dl-btn span { display: flex; flex-direction: column; line-height: 1.25; }
.dl-btn b { font-weight: 600; font-size: 1rem; white-space: nowrap; }
.dl-btn small { font-size: .74rem; opacity: .78; font-weight: 400; }
.dl + .btn-row { margin-top: 4px; }
@media (max-width: 640px) { .dl-row { grid-template-columns: minmax(0, 1fr); } }
