/* MFA Shop design system: the website's one stylesheet. Mobile first; no outside files (Inter is served from here).
   Sections: 1 font + tokens · 2 base · 3 buttons · 4 header · 5 footer · 6 page heads · 7 home · 8 product cards ·
   9 categories · 10 product page · 11 forms · 12 cards, stats, tables, badges · 13 orders, codes, payments ·
   14 API docs · 15 support, FAQ, legal · 16 notices, states · 17 motion */

/* 1 ─ font and tokens ─────────────────────────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* brand */
  --orange: #FF5A1F; --orange-hover: #F04A10; --orange-text: #C2410C;  /* orange-text: AA contrast on white */
  --orange-grad: linear-gradient(135deg, #FF8A00 0%, #FF3D16 100%);
  --orange-soft: #FFF1EA; --orange-line: #FFD8C6;
  --ink: #111318; --ink-2: #2B2F38; --muted: #5E6370; --faint: #8B909B;  /* faint: icons and rules only, never text */
  /* surfaces */
  --bg: #FAF9F7; --surface: #FFFFFF; --soft: #F5F4F1; --line: #ECEAE5; --line-2: #E0DDD6;
  /* states */
  --ok: #13795B; --ok-soft: #E7F5EE; --warn: #B45309; --warn-soft: #FEF3E2; --bad: #C53A1F; --bad-soft: #FDECE8;
  /* shape */
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 999px;
  --sh-1: 0 1px 2px rgba(17, 19, 24, .04), 0 1px 3px rgba(17, 19, 24, .04);
  --sh-2: 0 2px 4px rgba(17, 19, 24, .03), 0 8px 24px -6px rgba(17, 19, 24, .08);
  --sh-3: 0 4px 8px rgba(17, 19, 24, .04), 0 18px 40px -12px rgba(17, 19, 24, .16);
  --sh-orange: 0 6px 18px -6px rgba(255, 74, 22, .55);
  --focus: 0 0 0 3px rgba(255, 90, 31, .35);
  /* layout */
  --container: 1200px; --gutter: 20px; --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

/* 2 ─ base ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, svg { max-width: 100%; }
a { color: var(--orange-text); text-decoration: none; }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
small { font-size: .85em; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--soft); border: 1px solid var(--line); padding: .08em .4em; border-radius: 6px; overflow-wrap: anywhere; color: var(--ink-2); }
pre { margin: 0; overflow-x: auto; white-space: pre; }
pre code { background: none; border: 0; padding: 0; overflow-wrap: normal; }
blockquote { margin: .6em 0; padding: .5em 1em; border-left: 3px solid var(--orange); background: var(--orange-soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1 0 auto; width: 100%; }
.page { padding-top: 32px; padding-bottom: 72px; }
@media (min-width: 1024px) { .page { padding-top: 48px; padding-bottom: 96px; } }
.section { margin-top: 56px; }
@media (min-width: 1024px) { .section { margin-top: 80px; } }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.narrow { max-width: 600px; margin-left: auto; margin-right: auto; }
.stack-sm > * + * { margin-top: 8px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.inline { display: inline; margin: 0; }
.spoiler { background: var(--ink-2); color: transparent; border-radius: 4px; cursor: pointer; transition: background .2s; }
.spoiler.shown { background: none; color: inherit; }

/* 3 ─ buttons ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--orange-grad); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r); cursor: pointer;
  font: 700 .95rem/1 var(--font); letter-spacing: -.005em; text-align: center; white-space: nowrap;
  color: var(--btn-fg); background: var(--btn-bg); box-shadow: var(--sh-orange);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.04) saturate(1.05); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(255, 74, 22, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; }
.btn .i { width: 18px; height: 18px; }
@media (max-width: 520px) { .btn { white-space: normal; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; } .btn .i { flex-shrink: 0; } }
.btn-secondary { --btn-bg: var(--surface); --btn-fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-1); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink), var(--sh-2); }
.btn-outline { --btn-bg: var(--surface); --btn-fg: var(--orange-text); box-shadow: inset 0 0 0 1.5px var(--orange); }
.btn-outline:hover { --btn-bg: var(--orange-soft); box-shadow: inset 0 0 0 1.5px var(--orange); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { --btn-bg: var(--soft); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: var(--sh-2); }
.btn-dark:hover { box-shadow: var(--sh-3); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: var(--sh-2); }
.btn-danger { --btn-bg: var(--surface); --btn-fg: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(197, 58, 31, .45); }
.btn-danger:hover { --btn-bg: var(--bad-soft); box-shadow: inset 0 0 0 1.5px var(--bad); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--orange-text); }
.link-arrow .i { width: 16px; height: 16px; transition: transform .15s; }
.link-arrow:hover .i { transform: translateX(3px); }
button.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* 4 ─ header ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-sm); }
.brand img { display: block; height: 30px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 36px; } }
.main-nav { display: flex; gap: 4px; margin-left: 24px; }
.main-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  color: var(--ink-2); font-weight: 500; font-size: .96rem;
}
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--orange);
}
.main-nav .i { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .i { width: 20px; height: 20px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
@media (max-width: 859px) {
  .header-row { flex-wrap: wrap; }
  .main-nav { order: 3; flex-basis: 100%; margin: 0 0 10px; flex-wrap: wrap; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--orange-soft); color: var(--orange-text); }
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 0 14px; margin: 0; border-top: 1px solid var(--line); }
  .js .nav-open .main-nav a { padding: 12px; font-size: 1rem; }
  .js .nav-open .main-nav .i { display: inline-block; color: var(--faint); }
}

/* account menu (a <details>: works without JavaScript) */
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px 0 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: box-shadow .15s, border-color .15s;
}
.account-pill:hover { border-color: var(--orange-line); box-shadow: var(--sh-2); }
.account-pill > .i:first-child { color: var(--ink); width: 18px; height: 18px; }
.account-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-balance { color: var(--orange-text); font-weight: 700; white-space: nowrap; }
.account-pill .dot { color: var(--faint); }
.account-pill .chev { width: 28px; height: 28px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); transition: transform .2s; }
.account-menu[open] .chev { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 260px; padding: 8px; z-index: 60;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
}
.menu-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-head span { display: block; font-size: .8rem; color: var(--muted); }
.menu-head strong { font-size: 1.15rem; }
.menu-panel a, .menu-panel button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--soft); color: var(--ink); }
.menu-panel .i { color: var(--faint); width: 18px; height: 18px; }
.menu-panel form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 520px) {
  .account-pill { padding: 0 6px 0 12px; }
  .account-name, .account-pill .dot { display: none; }
  /* the menu button sits right of the pill: open the panel across the header instead, so it never leaves the screen */
  .account-menu { position: static; }
  .menu-panel { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% - 4px); }
}
/* logo, balance and menu button on one line down to 320px (the full balance is also at the top of the menu) */
@media (max-width: 400px) {
  .header-row { gap: 10px; }
  .brand img { height: 26px; }
  .account-pill { gap: 6px; padding-left: 12px; }
  .account-pill > .i:first-child { display: none; }
}
@media (max-width: 359px) { .account-balance .unit { display: none; } }

/* 5 ─ footer ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: auto; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-brand img { height: 34px; width: auto; display: block; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .94rem; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col button { color: var(--ink-2); font-size: .94rem; font-weight: 500; }
.footer-col a:hover, .footer-col button:hover { color: var(--orange-text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem;
}
.footer-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-pay span { padding: 3px 10px; border-radius: var(--pill); background: var(--soft); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--ink-2); }

/* 6 ─ page heads and section headings ──────────────────────────────────────────────────────────────────────────── */
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--orange-text); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.page-head { margin-bottom: 32px; }
.page-head p.lead { margin: 12px 0 0; }
.page-head-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
@media (min-width: 1024px) { .lead { font-size: 1.15rem; } }
.section-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange-text); }
.breadcrumb .i { width: 14px; height: 14px; color: var(--faint); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); margin-bottom: 18px; font-size: .92rem; }
.back:hover { color: var(--orange-text); }
.back .i { width: 16px; height: 16px; }

/* 7 ─ home ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; background: linear-gradient(180deg, #FFF8F4 0%, var(--bg) 100%); }
@media (min-width: 1024px) { .hero { padding: 88px 0 56px; } }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 122, 40, .38) 0%, rgba(255, 138, 0, .16) 38%, rgba(255, 138, 0, 0) 70%);
}
.hero::after {
  content: ""; position: absolute; width: 900px; height: 900px; right: -420px; top: -120px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(255, 90, 31, .18);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; }
.hero h1 .line { display: block; }
.hero .accent { background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 22px 0 32px; max-width: 46ch; }
.hero-aside { display: none; background: rgba(255, 255, 255, .78); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: 20px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .hero-aside { display: block; } }  /* after the rule above, or it never shows */
.hero-aside-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 0 4px; }
.hero-aside-head strong { font-size: .95rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mini-list > li { min-width: 0; }
.mini { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color .15s, transform .15s; }
.mini:hover { color: var(--ink); border-color: var(--orange-line); transform: translateX(2px); }
.mini .ptile { width: 44px; height: 44px; border-radius: 12px; }
.mini .ptile .i { width: 22px; height: 22px; }
.mini-text { flex: 1; min-width: 0; }
.mini-text strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-price { font-weight: 800; white-space: nowrap; }
.mini-price small { color: var(--muted); font-weight: 600; }
.hero-aside-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 4px 0; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.hero-aside-foot strong { color: var(--ink); }

.trust { position: relative; z-index: 1; margin-top: 48px; display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust-item { display: flex; gap: 16px; align-items: center; padding: 20px 24px; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .trust-item + .trust-item { border-top: 0; border-left: 1px solid var(--line); } }
.trust-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--orange-grad); box-shadow: var(--sh-orange); }
.trust-icon .i { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .98rem; }
.trust-item div > span { display: block; color: var(--muted); font-size: .86rem; line-height: 1.45; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--orange-text); margin-bottom: 14px; }
.step .tile { margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

.band {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; padding: 36px 28px; border-radius: var(--r-xl);
  background: var(--ink); color: #E7E8EC;
}
@media (min-width: 900px) { .band { grid-template-columns: 1.4fr auto; padding: 48px 56px; } }
.band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 31, .45), rgba(255, 90, 31, 0) 68%); pointer-events: none; }
.band > * { position: relative; }
.band h2 { color: #fff; margin-bottom: 10px; }
.band p { margin: 0; color: #B9BCC6; max-width: 56ch; }
.band strong { color: #fff; }
.band .eyebrow { color: #FF9A6A; }
@media (max-width: 520px) { .band .btn-row { display: grid; } .band .btn { width: 100%; } }

/* 8 ─ product cards ────────────────────────────────────────────────────────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.pcard {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
@media (min-width: 1024px) { .pcard { padding: 24px; } }
.pcard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--orange-line); }
.pcard:focus-visible { border-radius: var(--r-lg); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pcard-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.pcard-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-desc { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pcard-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pcard-cta { position: absolute; right: 22px; bottom: 22px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .8rem; font-weight: 700; color: var(--muted); }
.price s { color: var(--muted); font-size: .9rem; font-weight: 500; }
@media (max-width: 639px) {
  .pcard { padding: 18px; }
  .pcard-top { margin-bottom: 12px; }
  .pcard .ptile { width: 52px; height: 52px; border-radius: 15px; }
  .pcard .ptile .i { width: 26px; height: 26px; }
  .pcard-desc { margin-bottom: 14px; }
  .pcard-foot { padding-top: 12px; }
}
.pcard.is-soldout .ptile { filter: grayscale(1); opacity: .7; }
.pcard.is-soldout .price strong { color: var(--muted); }

/* product tiles: a product's picture (its tool kind's icon until products have images) */
.ptile, .tile {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  color: var(--kind-fg, var(--orange)); background: var(--kind-bg, var(--orange-soft));
  box-shadow: inset 0 0 0 1px rgba(17, 19, 24, .04);
}
.ptile .i { width: 30px; height: 30px; }
.tile { width: 52px; height: 52px; border-radius: 16px; }
.tile .i { width: 24px; height: 24px; }
.tile-sm { width: 40px; height: 40px; border-radius: 12px; }
.tile-sm .i { width: 20px; height: 20px; }
.ptile-lg { width: 96px; height: 96px; border-radius: 26px; }
.ptile-lg .i { width: 44px; height: 44px; }
.kind-ai { --kind-bg: #FFF0E8; --kind-fg: #E2480F; }
.kind-design { --kind-bg: #FCEBF3; --kind-fg: #BE2A6E; }
.kind-video { --kind-bg: #FDECEC; --kind-fg: #CC2E2E; }
.kind-music { --kind-bg: #E9F6EE; --kind-fg: #1D7F49; }
.kind-education { --kind-bg: #E6F4F0; --kind-fg: #0E7461; }
.kind-productivity { --kind-bg: #FFF5DD; --kind-fg: #A86B0C; }
.kind-api { --kind-bg: #EEF0F3; --kind-fg: #2B2F38; }
.kind-other { --kind-bg: #F3F1EC; --kind-fg: #555A64; }
.tile-orange { --kind-bg: var(--orange-soft); --kind-fg: var(--orange); }
.tile-solid { --kind-bg: var(--orange-grad); --kind-fg: #fff; background: var(--orange-grad); box-shadow: var(--sh-orange); }

/* 9 ─ categories ───────────────────────────────────────────────────────────────────────────────────────────────── */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.ccard {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ccard:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--orange-line); }
.ccard .ptile { width: 46px; height: 46px; border-radius: 14px; }
.ccard .ptile .i { width: 22px; height: 22px; }
.ccard-text { flex: 1; min-width: 0; }
.ccard-text strong { display: block; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-text small { color: var(--muted); font-size: .84rem; }
.ccard-arrow { color: var(--faint); width: 18px; height: 18px; transition: transform .15s, color .15s; }
.ccard:hover .ccard-arrow { color: var(--orange); transform: translateX(2px); }

.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 28px; scrollbar-width: thin; }
.pill {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.pill:hover { color: var(--ink); border-color: var(--ink-2); }
.pill .i { width: 16px; height: 16px; color: var(--kind-fg, var(--faint)); }
.pill small { color: var(--muted); font-weight: 600; font-size: .78rem; background: var(--soft); padding: 1px 8px; border-radius: var(--pill); }
.pill[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill[aria-current="page"] .i { color: #fff; }
.pill[aria-current="page"] small { background: rgba(255, 255, 255, .16); color: #fff; }

.search { position: relative; display: flex; gap: 8px; width: 100%; max-width: 420px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; pointer-events: none; }
.search input[type=search] { padding-left: 42px; }
.group-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.group-head h2 { font-size: 1.3rem; }
.group-head small { color: var(--muted); font-weight: 600; font-size: .88rem; }
.group + .group { margin-top: 48px; }

/* 10 ─ product page ────────────────────────────────────────────────────────────────────────────────────────────── */
/* source order is hero, buy box, details, description: the buy box comes right after the price on phones and tablets */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.product-layout > .card + .card { margin-top: 0; }
@media (min-width: 960px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto auto 1fr; column-gap: 32px; align-items: start; }
  .product-layout > * { grid-column: 1; }
  .product-layout > .buy-box { grid-column: 2; grid-row: 1 / 4; position: sticky; top: calc(var(--header-h) + 20px); }
}
.product-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.product-hero > div { flex: 1; min-width: min(100%, 260px); }
.product-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 10px 0 14px; overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.big-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.big-price strong { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.big-price small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.big-price s { color: var(--muted); font-size: 1.1rem; }
.api-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: var(--soft); color: var(--ink-2); font-size: .88rem; }
.api-note .i { color: var(--orange); width: 16px; height: 16px; }
.description { overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.7; }
.description pre { background: var(--soft); padding: 12px 14px; border-radius: var(--r-sm); white-space: pre-wrap; }
.buy-box h2 { font-size: 1.25rem; margin-bottom: 6px; }
.buy-box > p { color: var(--muted); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); }
.total-row > span { color: var(--muted); font-weight: 600; }
.total-row strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.assure { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .88rem; color: var(--muted); }
.assure li { display: flex; gap: 10px; align-items: flex-start; }
.assure .i { color: var(--ok); width: 18px; height: 18px; margin-top: 1px; }

/* 11 ─ forms ───────────────────────────────────────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 18px; margin: 18px 0 0; }
.field { display: grid; gap: 8px; }
.field > span, .field-label, legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field small { color: var(--muted); font-weight: 500; }
label { cursor: pointer; }
input[type=text], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 500 1rem var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover { border-color: #CFCBC2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: var(--focus); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6370' stroke-width='2' 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 14px center; background-size: 18px;
}
.input-suffix { position: relative; }
.input-suffix input { padding-right: 72px; font-size: 1.2rem; font-weight: 700; }
.input-suffix b { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line-2);
  background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice-body::after { content: ""; flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: border .15s; }
.choice:hover .choice-body { border-color: #CFCBC2; }
.choice input:checked + .choice-body { border-color: var(--orange); background: #FFFAF7; box-shadow: 0 0 0 3px rgba(255, 90, 31, .1); }
.choice input:checked + .choice-body::after { border: 6px solid var(--orange); }
.choice input:focus-visible + .choice-body { box-shadow: var(--focus); }
.choice-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); }
.choice-icon .i { width: 20px; height: 20px; }
.choice input:checked + .choice-body .choice-icon { background: var(--orange-soft); color: var(--orange); }
.choice-text { min-width: 0; }
.choice-text strong { display: block; font-size: .95rem; }
.choice-text small { display: block; color: var(--muted); font-size: .82rem; }
.help { color: var(--muted); font-size: .86rem; margin: 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 20px 0; font-size: .86rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.widget { display: flex; justify-content: center; min-height: 48px; }

/* 12 ─ cards, stats, tables, badges ────────────────────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 22px; }
@media (min-width: 760px) { .card { padding: 28px; } }
.card + .card, .card + .grid-2, .grid-2 + .card, .stat-grid + .card { margin-top: 20px; }
.card-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-head h2 { font-size: 1.2rem; letter-spacing: -.015em; }
.card-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.card-title { font-size: 1.1rem; margin-bottom: 14px; }
.card-row { display: flex; gap: 18px; align-items: flex-start; }
.card-row > div { flex: 1; min-width: 0; }
.card-row h2 { font-size: 1.2rem; margin-bottom: 6px; }
.card-row p { margin: 0; color: var(--muted); }
.card-center { text-align: center; padding: 40px 24px; }
.card-center .tile { margin: 0 auto 18px; }
.card-center h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 10px; }
.card-center .btn-row { justify-content: center; margin-top: 22px; }
.card-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card-medium { max-width: 720px; margin-left: auto; margin-right: auto; }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.stat { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
@media (min-width: 1024px) { .stat { padding: 26px; } }
.stat .tile { width: 56px; height: 56px; }
.stat-body { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.stat-label { color: var(--muted); font-weight: 600; font-size: .92rem; }
.stat-value { font-size: clamp(1.5rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.stat-value small { font-size: .55em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat-body .btn, .stat-note { margin-top: 10px; }
.stat-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.stat-note .i { color: #F5A623; fill: #F5A623; width: 18px; height: 18px; }

.kv { display: grid; gap: 0; margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th { text-align: left; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--soft); padding: 12px 16px; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #FCFBF9; }
.data-table td a { color: var(--ink); font-weight: 600; }
.data-table td a:hover { color: var(--orange-text); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .table-stack { border: 0; overflow: visible; }
  .table-stack thead { display: none; }
  .table-stack table, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 14px; margin-bottom: 10px; background: var(--surface); }
  .table-stack td { border: 0; padding: 8px 0; display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-size: .84rem; font-weight: 600; text-align: left; }
  .table-stack td + td { border-top: 1px dashed var(--line); }
}

.badge, .status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--pill);
  font-size: .76rem; font-weight: 700; line-height: 1.3; white-space: nowrap; background: var(--soft); color: var(--ink-2);
}
.badge .i { width: 13px; height: 13px; }
.badge-hot { background: var(--orange-grad); color: #fff; box-shadow: 0 3px 10px -4px rgba(255, 74, 22, .6); }
.badge-off { background: var(--ok-soft); color: var(--ok); }
.badge-api { background: var(--ink); color: #fff; }
.badge-test { background: var(--warn-soft); color: var(--warn); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.wait { background: var(--orange-soft); color: var(--orange-text); }
.status.warn { background: var(--warn-soft); color: var(--warn); }
.status.off { background: var(--soft); color: var(--muted); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status-lg { font-size: .85rem; padding: 6px 14px; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--bad); }

/* 13 ─ orders, codes, payments ─────────────────────────────────────────────────────────────────────────────────── */
.codes { list-style: none; counter-reset: code; padding: 0; margin: 0; display: grid; gap: 10px; }
.codes li { counter-increment: code; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #FCFBF9; }
.codes li::before { content: counter(code); flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--muted); background: var(--soft); }
.codes code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: .98rem; color: var(--ink); overflow-wrap: anywhere; }
.copy-field { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #FCFBF9; }
.copy-field code { flex: 1; min-width: 0; background: none; border: 0; padding: 4px 0; font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
.copy-field code.amount { font-size: 1.45rem; font-weight: 800; font-family: var(--font); letter-spacing: -.02em; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 600 .84rem var(--font); transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: var(--soft); color: var(--ink); }
.copy-btn .i { width: 15px; height: 15px; }
.copy-btn.copied { background: var(--ok-soft); border-color: rgba(19, 121, 91, .3); color: var(--ok); }
.waiting { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 18px; border-radius: var(--r); background: var(--orange-soft); color: var(--ink-2); border: 1px solid var(--orange-line); }
.spinner { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--orange); border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

.pay-steps { list-style: none; counter-reset: pay; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; }
.pay-steps > li { counter-increment: pay; position: relative; padding-left: 46px; }
.pay-steps > li::before { content: counter(pay); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .88rem; color: #fff; background: var(--orange-grad); }
.pay-steps > li > p:first-child, .pay-steps .step-title { margin: 0 0 10px; font-weight: 500; }
.pay-steps .copy-field { margin-bottom: 8px; }
.qr { display: block; margin: 12px 0; padding: 10px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.warn-note { display: flex; align-items: flex-start; gap: 8px; color: var(--warn); font-size: .88rem; font-weight: 600; margin: 8px 0 0; }
.warn-note .i { width: 17px; height: 17px; margin-top: 2px; }
.claims { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.claims h2 { font-size: 1.05rem; margin-bottom: 12px; }
.claim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; }
.timer { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.timer .i { width: 16px; height: 16px; color: var(--orange); }

.data-table + .form, .table-wrap + .form { margin-top: 20px; }
.key-new { border-color: var(--orange-line); background: linear-gradient(180deg, #FFF8F4, var(--surface)); }

/* 14 ─ API docs ────────────────────────────────────────────────────────────────────────────────────────────────── */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.docs > * { min-width: 0; }
@media (min-width: 1024px) { .docs { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; } }
.docs-nav { position: sticky; top: var(--header-h); z-index: 20; margin: 0 calc(var(--gutter) * -1); padding: 10px var(--gutter); background: rgba(250, 249, 247, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.docs-nav-title, .docs-nav-actions { display: none; }
.docs-nav ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.docs-nav ol::-webkit-scrollbar { display: none; }
.docs-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.docs-nav a:hover { background: var(--soft); color: var(--ink); }
.docs-nav a.active { background: var(--orange-soft); color: var(--orange-text); font-weight: 600; }
.docs-nav .n { display: none; }
@media (min-width: 1024px) {
  .docs-nav { top: calc(var(--header-h) + 24px); margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
  .docs-nav-title { display: flex; align-items: center; gap: 10px; font-weight: 800; margin: 0 0 14px; padding: 0 4px; }
  .docs-nav-title .i { color: var(--orange); }
  .docs-nav ol { flex-direction: column; gap: 2px; overflow: visible; }
  .docs-nav .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: .72rem; font-weight: 800; }
  .docs-nav a.active .n { background: var(--orange); color: #fff; }
  .docs-nav-actions { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
}
.docs-main { min-width: 0; }
.docs-intro { margin-bottom: 8px; }
.docs-intro .lead { margin-top: 14px; }
.base-url { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.base-url > span { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.base-url code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: .95rem; color: var(--ink); }
.doc-section { padding: 36px 0; border-top: 1px solid var(--line); }
.doc-section:first-of-type { border-top: 0; }
.doc-section > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.35rem, 2.4vw, 1.65rem); margin-bottom: 18px; }
.doc-section > h2 .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-text); font-size: .9rem; font-weight: 800; flex: none; }
.doc-body { color: var(--ink-2); max-width: 78ch; }
.doc-body h3 { margin: 26px 0 10px; font-size: 1.02rem; }
.doc-body p { margin: 0 0 14px; }
.doc-body > :last-child { margin-bottom: 0; }
.doc-list, .doc-steps { padding-left: 1.25em; margin: 0 0 16px; display: grid; gap: 8px; }
.doc-list li::marker { color: var(--orange); }
.doc-steps li::marker { color: var(--orange-text); font-weight: 800; }
.codeblock { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; background: #15171D; border: 1px solid #23262E; box-shadow: var(--sh-2); }
.codeblock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 16px; background: #1C1F27; border-bottom: 1px solid #262A33; }
.codeblock-lang { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9298A6; }
.codeblock .copy-btn { min-height: 30px; background: transparent; border-color: #343844; color: #C9CCD4; }
.codeblock .copy-btn:hover { background: #262A33; color: #fff; }
.codeblock .copy-btn.copied { background: rgba(19, 121, 91, .25); color: #7EE2B8; border-color: rgba(126, 226, 184, .3); }
.codeblock pre { padding: 16px 18px; color: #E6E7EB; font-size: .86rem; line-height: 1.65; }
.codeblock code { color: inherit; }
.t-k { color: #FFB38A; } .t-s { color: #A5E3B5; } .t-n { color: #F9C97C; } .t-l { color: #FF8F6B; }
.t-f { color: #8FD3FF; } .t-v { color: #F9C97C; } .t-c { color: #FF9A6A; font-weight: 600; } .t-w { color: #FF9A6A; }
.t-m { color: #7D8494; font-style: italic; }
.endpoint { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 10px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.endpoint-path { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font-size: .95rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.method { flex: none; display: inline-grid; place-items: center; min-width: 54px; padding: 4px 8px; border-radius: 7px; font: 800 .74rem/1.2 var(--mono); letter-spacing: .04em; }
.method-get { background: var(--ok-soft); color: var(--ok); }
.method-post { background: var(--orange-soft); color: var(--orange-text); }
.method-put, .method-patch { background: var(--warn-soft); color: var(--warn); }
.method-delete { background: var(--bad-soft); color: var(--bad); }
.endpoint-list { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.endpoint-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; }
.endpoint-list li + li { border-top: 1px solid var(--line); }
.endpoint-list code { background: none; border: 0; padding: 0; font-weight: 600; color: var(--ink); }
.endpoint-list span:last-child { color: var(--muted); font-size: .92rem; }
@media (min-width: 640px) { .endpoint-list span:last-child { margin-left: auto; text-align: right; } }
.params { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.params li { display: grid; gap: 6px; padding: 14px 16px; }
@media (min-width: 760px) { .params li { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; } }
.params li + li { border-top: 1px solid var(--line); }
.param-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; align-content: start; }
.param-name code { font-weight: 700; color: var(--ink); background: var(--soft); }
.param-note { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--soft); color: var(--muted); }
.param-note.required { background: var(--bad-soft); color: var(--bad); }
.param-desc { color: var(--ink-2); font-size: .94rem; }
.doc-table td { font-size: .92rem; vertical-align: top; }
.doc-table td:first-child { white-space: nowrap; }
.http-status { display: inline-block; font: 800 .8rem var(--mono); padding: 3px 8px; border-radius: 6px; }
.http-status.ok { background: var(--ok-soft); color: var(--ok); }
.http-status.warn { background: var(--warn-soft); color: var(--warn); }
.http-status.bad { background: var(--bad-soft); color: var(--bad); }
.docs-cta { margin-top: 18px; }
@media (min-width: 1024px) { .docs-cta { display: none; } }
details.doc-fold { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
details.doc-fold + details.doc-fold { margin-top: 10px; }
details.doc-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; }
details.doc-fold > summary::-webkit-details-marker { display: none; }
details.doc-fold > summary .i { margin-left: auto; color: var(--faint); transition: transform .2s; }
details.doc-fold[open] > summary .i { transform: rotate(180deg); }
details.doc-fold > .doc-body { padding: 0 18px 18px; }

/* 15 ─ support, FAQ, legal ─────────────────────────────────────────────────────────────────────────────────────── */
.support-hero { position: relative; overflow: hidden; display: grid; gap: 28px; align-items: center; padding: 32px 24px; border-radius: var(--r-xl); background: linear-gradient(135deg, #FFF4ED 0%, #FFFFFF 70%); border: 1px solid var(--orange-line); }
@media (min-width: 900px) { .support-hero { grid-template-columns: 1.3fr 1fr; padding: 48px; } }
.support-hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 40, .28), rgba(255, 122, 40, 0) 70%); pointer-events: none; }
.support-hero > * { position: relative; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 24px; }
.contact-card h2 { font-size: 1.15rem; margin: 14px 0 6px; }
.contact-card p { color: var(--muted); font-size: .92rem; }
.contact-card .btn { margin: 4px 0 14px; }
.support-hero .lead { margin: 14px 0 26px; }
.faq-layout h2 + p { margin-top: 12px; }
.safety { margin-top: 18px; }
.help-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .help-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.help-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.help-card h3 { margin-top: 6px; }
.help-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.help-card .link-arrow { margin-top: auto; padding-top: 6px; font-size: .9rem; }
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--orange-line); box-shadow: var(--sh-2); }
.faq-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .i { margin-left: auto; flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--soft); color: var(--ink-2); transition: transform .2s, background .2s; }
.faq-item[open] > summary .i { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-body { padding: 0 20px 20px; color: var(--ink-2); max-width: 75ch; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; } }
.safety { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); background: var(--warn-soft); color: #7A3E06; font-size: .92rem; }
.safety .i { color: var(--warn); margin-top: 2px; }

.legal { display: grid; gap: 32px; }
@media (min-width: 960px) { .legal { grid-template-columns: 220px minmax(0, 720px); gap: 64px; justify-content: center; } }
.legal-toc { display: none; }
@media (min-width: 960px) { .legal-toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.legal-toc strong { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: .92rem; font-weight: 500; }
.legal-toc a:hover, .legal-toc a.active { color: var(--orange-text); border-left-color: var(--orange); }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--ink-2); }
.prose h1 { margin-bottom: 14px; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; color: var(--ink); }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 1.25em; display: grid; gap: 10px; }
.prose li::marker { color: var(--orange); }
.prose .lead { margin-bottom: 8px; }
.legal-meta { display: flex; align-items: center; gap: 10px; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.legal-meta .i { color: var(--orange); }

/* 16 ─ notices, alerts, empty states ───────────────────────────────────────────────────────────────────────────── */
.notice, .alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); font-size: .95rem; margin: 0 0 16px; }
.notice { background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.notice .i, .alert .i { margin-top: 2px; }
.notice.ok { background: var(--ok-soft); border-color: rgba(19, 121, 91, .2); color: #0D4F3B; }
.notice.ok .i { color: var(--ok); }
.notice.info .i { color: var(--orange); }
.notice.warn { background: var(--warn-soft); border-color: rgba(180, 83, 9, .2); color: #7A3E06; }
.alert { background: var(--bad-soft); border: 1px solid rgba(197, 58, 31, .25); color: #7E2513; }
.alert .i { color: var(--bad); }
.notice > div, .alert > div { min-width: 0; }
.notice p:last-child, .alert p:last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 48px 24px; }
.empty .tile { margin: 0 auto 16px; }
.empty h2 { font-size: 1.25rem; margin-bottom: 6px; }
.empty p { color: var(--muted); }
.empty .btn-row { justify-content: center; }
.kv + .notice, .kv + .waiting, .codes + .notice, .notice + .notice { margin-top: 16px; }
.card > .notice:last-child { margin-bottom: 0; }
.login-steps { list-style: none; counter-reset: ls; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; text-align: left; }
.login-steps li { counter-increment: ls; display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: .94rem; }
.login-steps li::before { content: counter(ls); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--orange-soft); color: var(--orange-text); }

/* 17 ─ motion ──────────────────────────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pcard:hover, .ccard:hover, .btn:hover, .mini:hover { transform: none; }
}
