/* ==== app.css ==== */
/* ==========================================================================
   GlobeB2B design system
   Editorial-tech B2B: navy canvas, electric indigo, amber accents, soft depth.
   Logical properties everywhere so Arabic (RTL) mirrors for free.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg: #f5f6fa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --surface-3: #f2f4f9;
  --ink: #0a1122;
  --ink-2: #26314a;
  --muted: #5d6880;
  --faint: #8b94a8;
  --line: #e4e8f1;
  --line-strong: #d3d9e6;

  --brand: #2f5bff;
  --brand-600: #2348db;
  --brand-700: #1b37ad;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --accent: #f59e0b;
  --accent-ink: #7c4a03;
  --success: #10b981;
  --danger: #e5484d;
  --warning: #f59e0b;

  --grad-brand: linear-gradient(135deg, #2f5bff 0%, #6d5cff 48%, #b14bff 100%);
  --grad-ink: linear-gradient(120deg, #0a1122 20%, #2f5bff 60%, #7c3aed 100%);
  --grad-night: radial-gradient(1200px 520px at 12% -10%, #1b2a6b 0%, transparent 60%),
                radial-gradient(900px 500px at 88% 0%, #4a1d77 0%, transparent 55%),
                linear-gradient(180deg, #070c18 0%, #0a1226 60%, #070c18 100%);
  --grad-amber: linear-gradient(135deg, #fbbf24, #f97316);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10, 17, 34, .06);
  --shadow-sm: 0 1px 2px rgba(10, 17, 34, .05), 0 4px 12px -4px rgba(10, 17, 34, .10);
  --shadow: 0 1px 2px rgba(10, 17, 34, .05), 0 16px 40px -20px rgba(10, 17, 34, .28);
  --shadow-lg: 0 2px 4px rgba(10, 17, 34, .06), 0 32px 64px -28px rgba(10, 17, 34, .38);
  --ring: 0 0 0 3px rgba(47, 91, 255, .22);

  --font: "Inter var", "Inter", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
          "Noto Sans Arabic", "Noto Sans KR", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter var", "Inter", "Segoe UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --header-h: 72px;
  --container: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-elev: #0c1322;
  --surface: #0e1526;
  --surface-2: #111a2e;
  --surface-3: #16203a;
  --ink: #eef2fb;
  --ink-2: #cbd4e8;
  --muted: #93a0bb;
  --faint: #6c7a97;
  --line: #1e2942;
  --line-strong: #2b3957;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 48px -24px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .45), 0 40px 80px -30px rgba(0, 0, 0, .9);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px -8px rgba(0, 0, 0, .6);
}

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { background: var(--surface-3); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(47, 91, 255, .22); }

.skip-link {
  position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout helpers ------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-wide { max-width: 1480px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { display: grid; place-items: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }
.tick { width: 15px; height: 15px; flex: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hidden { display: none !important; }
.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;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 4. Type ------------------------------------------------------ */
.display { font-family: var(--font-display); font-weight: 720; letter-spacing: -.035em; line-height: 1.02; }
h1, .h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 720; letter-spacing: -.035em; line-height: 1.05; }
h2, .h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 680; letter-spacing: -.028em; line-height: 1.15; }
h3, .h3 { font-size: 1.18rem; font-weight: 650; letter-spacing: -.015em; }
.eyebrow {
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 62ch; }
.gradient-text {
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="dark"] .gradient-text { background: linear-gradient(120deg, #fff 10%, #9db8ff 55%, #c7a8ff 100%); -webkit-background-clip: text; background-clip: text; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em;
  transition: transform .16s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn-primary {
  --btn-bg: var(--grad-brand); --btn-fg: #fff; --btn-bd: transparent;
  box-shadow: 0 10px 30px -12px rgba(47, 91, 255, .8);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(47, 91, 255, .85); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--surface-3); box-shadow: none; }
.btn-outline { --btn-bg: transparent; --btn-bd: var(--line-strong); }
.btn-outline:hover { --btn-bd: var(--ink); }
.btn-amber { --btn-bg: var(--grad-amber); --btn-fg: #2b1602; --btn-bd: transparent; }
.btn-danger { --btn-bg: #fdecec; --btn-fg: #b42318; --btn-bd: #f6c9c7; }
[data-theme="dark"] .btn-danger { --btn-bg: #331418; --btn-fg: #ff9a9a; --btn-bd: #4d1f24; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px;
  color: var(--ink-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }
.icon-btn.is-copied { background: rgba(16, 185, 129, .12); color: #0f766e; }
[data-theme="dark"] .icon-btn.is-copied { background: rgba(16, 185, 129, .18); color: #6ee7b7; }

/* ---------- 6. Inputs ---------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); transition: border-color .18s, box-shadow .18s, background .18s;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
  padding-inline-end: 38px;
}
[dir="rtl"] .select { background-position: left 14px center; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .icon { position: absolute; inset-inline-start: 14px; width: 19px; height: 19px; color: var(--faint); }
.input-group .input { padding-inline-start: 44px; }
.checkbox { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); }
.error-text { color: var(--danger); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- 7. Chips / badges ------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 550;
  transition: all .18s; white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-sm { height: 28px; padding: 0 11px; font-size: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px;
  border-radius: 7px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
  background: var(--surface-3); color: var(--ink-2);
}
.badge-brand { background: rgba(47, 91, 255, .10); color: var(--brand-600); }
[data-theme="dark"] .badge-brand { background: rgba(93, 134, 255, .16); color: #9db8ff; }
.badge-success { background: rgba(16, 185, 129, .12); color: #047857; }
[data-theme="dark"] .badge-success { color: #6ee7b7; background: rgba(16, 185, 129, .16); }
.badge-amber { background: rgba(245, 158, 11, .14); color: var(--accent-ink); }
[data-theme="dark"] .badge-amber { color: #fcd34d; background: rgba(245, 158, 11, .16); }
.badge-violet { background: rgba(124, 58, 237, .10); color: #6d28d9; }
[data-theme="dark"] .badge-violet { color: #c4b5fd; background: rgba(124, 58, 237, .18); }
.badge-danger { background: rgba(229, 72, 77, .10); color: #b42318; }
[data-theme="dark"] .badge-danger { color: #fca5a5; background: rgba(229, 72, 77, .16); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tick { width: 15px; height: 15px; color: var(--brand); flex: none; }

/* ---------- 8. Header ---------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(160%) blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 720; letter-spacing: -.03em; font-size: 19px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background .16s, color .16s; white-space: nowrap;
}
.nav-link:hover { background: var(--surface-3); color: var(--ink); }
.nav-link.active { color: var(--brand); background: rgba(47, 91, 255, .08); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-search { flex: 1 1 170px; min-width: 150px; max-width: 340px; }
.header-search .input { min-height: 40px; border-radius: var(--radius-pill); background: var(--surface); }
/* Instant search panel: overlays the page, never pushes header content. */
.qs-panel {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 85;
  padding: 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  max-height: min(70vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  animation: pop .14s var(--ease-out);
}
.qs-panel[hidden] { display: none; }
.qs-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px 4px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}
.qs-count { letter-spacing: 0; text-transform: none; font-weight: 600; }
.qs-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  width: 100%; text-align: start; color: inherit; font-size: 13.5px;
}
.qs-item:hover, .qs-item.is-active { background: var(--surface-3); }
.qs-thumb {
  width: 40px; height: 40px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--surface-3); display: grid; place-items: center;
}
.qs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qs-thumb-ph .icon { width: 18px; height: 18px; color: var(--faint); }
.qs-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.qs-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.qs-title mark { background: rgba(47, 91, 255, .16); color: inherit; padding: 0 1px; border-radius: 3px; }
.qs-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-price { font-size: 12.5px; font-weight: 650; color: var(--brand); flex: none; }
.qs-recent .icon { width: 16px; height: 16px; color: var(--faint); flex: none; }
.qs-all {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 4px; padding: 9px 10px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--brand);
}
.qs-all .icon { width: 16px; height: 16px; }
.qs-hint {
  display: flex; align-items: center; gap: 8px; padding: 14px 12px;
  font-size: 13px; color: var(--muted);
}
.qs-hint .icon { width: 16px; height: 16px; }
.qs-hint .icon.spin { animation: qs-spin .9s linear infinite; }
@keyframes qs-spin { to { transform: rotate(360deg); } }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; }
.lang-btn:hover { background: var(--surface-3); }
.lang-btn .flag { font-size: 15px; display: inline-flex; align-items: center; }
.lang-flag {
  width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .14); background: #e2e8f0; vertical-align: -2px;
}
.menu-item .lang-flag { width: 22px; height: 15px; }
.menu-panel {
  position: absolute; z-index: 80; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: pop .16s var(--ease-out);
}
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  font-size: 14px; width: 100%; text-align: start;
}
.menu-item:hover { background: var(--surface-3); }
.menu-item.active { background: rgba(47, 91, 255, .08); color: var(--brand); font-weight: 600; }
.menu-label { padding: 8px 11px 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 650; font-size: 14px;
}
.mobile-toggle { display: none; }
.cart-count {
  position: absolute; top: -3px; inset-inline-end: -3px; min-width: 17px; height: 17px;
  border-radius: 9px; background: var(--accent); color: #2b1602; font-size: 10.5px;
  font-weight: 700; display: grid; place-items: center; padding: 0 4px;
}

/* ---------- 9. Hero ------------------------------------------------------ */
.hero { position: relative; background: var(--grad-night); color: #f4f7ff; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; padding-block: 76px 88px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06);
  font-size: 12.5px; font-weight: 550; color: #cfd9ff; backdrop-filter: blur(8px);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); letter-spacing: -.04em; line-height: 1.02; margin-block: 22px 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #7aa2ff, #b78cff 55%, #7ee7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #a9b6d6; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-search {
  margin-top: 30px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px; padding: 8px; backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.hero-search-tabs { display: flex; gap: 4px; padding: 4px 4px 8px; }
.hero-tab { padding: 7px 13px; border-radius: 9px; font-size: 13px; color: #b7c3de; font-weight: 550; }
.hero-tab.active { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-search-row { display: flex; gap: 8px; }
.hero-search .input {
  min-height: 52px; border-radius: 14px; border-color: transparent; background: rgba(255, 255, 255, .96);
  color: #0a1122; font-size: 15px;
}
.hero-search .input::placeholder { color: #6b7690; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 12.5px; color: #93a2c4; }
.hero-tag { padding: 5px 11px; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .14); }
.hero-tag:hover { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero-visual { position: relative; min-height: 460px; }
.hero-card {
  position: absolute; width: 210px; border-radius: 20px; overflow: hidden;
  background: #fff; color: #0a1122; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .95);
  border: 1px solid rgba(255, 255, 255, .5);
  animation: float 9s var(--ease) infinite;
}
.hero-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.hero-card-body { padding: 12px 14px 14px; }
.hero-card.c1 { top: 2%; inset-inline-end: 2%; width: 232px; transform: rotate(3deg); animation-delay: -2s; z-index: 1; }
.hero-card.c2 { bottom: 0; inset-inline-start: 2%; width: 208px; transform: rotate(-5deg); animation-delay: -5s; z-index: 2; }
.hero-glass {
  position: absolute; inset-inline-start: 0; top: 2%; padding: 12px 16px; border-radius: 16px;
  background: rgba(12, 20, 40, .62); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px); font-size: 12.5px; color: #d5e0ff; display: flex; gap: 10px; align-items: center;
  box-shadow: var(--shadow-lg); z-index: 5;
}
.hero-glass .pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s infinite; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.65rem; font-weight: 720; letter-spacing: -.03em; }
.hero-stat span { font-size: 12.5px; color: #96a4c6; }
.trust-strip { border-top: 1px solid rgba(255, 255, 255, .10); background: rgba(255, 255, 255, .02); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 20px; }
.trust-item { display: flex; align-items: center; gap: 11px; color: #c3cee9; font-size: 13.5px; }
.trust-item .icon-wrap {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #9fb6ff;
}

/* ---------- 10. Sections ------------------------------------------------ */
.section { padding-block: 68px; }
.section-tight { padding-block: 44px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.panel-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }

/* category tiles (legacy / elsewhere) */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); transition: all .22s var(--ease);
  position: relative; overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -70% auto; width: 140px; height: 140px;
  background: var(--grad-brand); opacity: 0; filter: blur(40px); transition: opacity .3s;
}
.cat-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.cat-card:hover::after { opacity: .16; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px;
  background: var(--surface-3); border: 1px solid var(--line); flex: none;
}
.cat-card b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.cat-card span { font-size: 12px; color: var(--faint); }

/* compact L1 / L2 / L3 category browser */
.cat-browser {
  display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 0;
  margin-top: 16px; min-height: 360px; max-height: 420px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden;
}
.cat-browser-nav {
  display: flex; flex-direction: column; gap: 2px; padding: 10px;
  border-inline-end: 1px solid var(--line); background: var(--surface-2);
  overflow: auto; max-height: 420px;
}
.cat-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 10px; border-radius: 12px; text-align: start; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.cat-nav-item:hover { background: rgba(15, 118, 110, .06); }
.cat-nav-item.active {
  background: #fff; color: var(--ink);
  box-shadow: var(--shadow-xs), 0 0 0 1px var(--line);
}
.cat-nav-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(15, 118, 110, .12), rgba(232, 168, 56, .14));
  color: #0f766e;
}
.cat-nav-item.active .cat-nav-ico { color: #0b7a6f; background: linear-gradient(145deg, rgba(15, 118, 110, .18), rgba(232, 168, 56, .18)); }
.cat-ico { display: block; flex: 0 0 auto; width: 18px; height: 18px; color: #0f766e; line-height: 0; overflow: visible; }
.cat-ico svg { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.cat-ico-nav { width: 19px; height: 19px; }
.cat-ico-group { width: 16px; height: 16px; }
.cat-ico-leaf { width: 13px; height: 13px; color: var(--faint); }
.cat-nav-ico .cat-ico { margin: auto; }
[data-theme="dark"] .cat-nav-ico { background: linear-gradient(145deg, rgba(45, 212, 191, .16), rgba(232, 168, 56, .12)); color: #5eead4; }
[data-theme="dark"] .cat-nav-item.active .cat-nav-ico { color: #99f6e4; }
[data-theme="dark"] .cat-ico { color: #5eead4; }
[data-theme="dark"] .cat-ico-leaf { color: #7c8aa5; }
.cat-nav-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-nav-copy b {
  font-size: 13.5px; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cat-nav-copy em { font-style: normal; font-size: 11px; color: var(--faint); }
.cat-browser-panel { display: flex; flex-direction: column; min-height: 0; max-height: 420px; }
.cat-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.cat-panel-title { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.cat-panel-body {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px;
  padding: 14px 16px 18px; overflow: auto; align-content: start;
}
.cat-group { min-width: 0; }
.cat-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink);
}
.cat-group-title .cat-ico, .cat-leaf .cat-ico { flex: 0 0 16px; width: 16px; height: 16px; min-width: 16px; max-width: 16px; }
.cat-leaf .cat-ico { flex: 0 0 13px; width: 13px; height: 13px; min-width: 13px; max-width: 13px; }
.cat-group-title span:nth-of-type(1) {
  flex: 1; min-width: 0; margin-inline-start: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-group-title em { font-style: normal; font-size: 11px; color: var(--faint); font-weight: 600; }
.cat-group-title:hover { color: #0f766e; }
.cat-leaves { display: flex; flex-direction: column; gap: 4px; }
.cat-leaf {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 4px 0 4px 2px; font-size: 12.5px; color: var(--muted); border-radius: 6px;
}
.cat-leaf span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-leaf em { font-style: normal; font-size: 11px; color: var(--faint); flex: none; }
.cat-leaf:hover { color: #0f766e; }
.cat-panel-empty {
  grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; gap: 10px; text-align: center;
}
@media (max-width: 1024px) {
  .cat-panel-body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat-browser {
    grid-template-columns: 1fr; max-height: none; min-height: 0;
  }
  .cat-browser-nav {
    flex-direction: row; overflow-x: auto; max-height: none;
    border-inline-end: 0; border-bottom: 1px solid var(--line);
  }
  .cat-nav-item { min-width: 150px; }
  .cat-browser-panel { max-height: 360px; }
  .cat-panel-body { grid-template-columns: 1fr; }
}

/* product card */
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: transform .22s var(--ease), box-shadow .25s, border-color .2s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface-3); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-flags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-fav {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #0a1122; display: grid; place-items: center;
  opacity: 0; transform: translateY(-4px); transition: all .2s; backdrop-filter: blur(6px);
}
.product-card:hover .product-fav { opacity: 1; transform: none; }
.product-fav.on { opacity: 1; color: #e5484d; transform: none; }
.product-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-title { font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; min-height: 2.7em; }
.product-price { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.product-price b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.product-price span { font-size: 12px; color: var(--faint); }
.product-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.product-supplier { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }
.product-supplier b { font-weight: 550; color: var(--ink-2); }

/* supplier card */
.supplier-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: all .22s; display: flex; flex-direction: column; gap: 14px; }
.supplier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.supplier-top { display: flex; gap: 13px; align-items: center; }
.supplier-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }
.supplier-name { font-weight: 650; letter-spacing: -.015em; font-size: 15px; }
.supplier-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.supplier-stats b { display: block; font-size: 14px; font-family: var(--mono); }
.supplier-stats span { font-size: 11px; color: var(--faint); }

/* rfq rows */
.rfq-list { display: flex; flex-direction: column; gap: 12px; }
.rfq-row {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); transition: all .2s;
}
.rfq-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateX(2px); }
[dir="rtl"] .rfq-row:hover { transform: translateX(-2px); }
.rfq-thumb {
  position: relative;
  width: 88px; height: 88px; border-radius: 14px; overflow: hidden; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
}
.rfq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-photo-count {
  position: absolute; inset-inline-end: 4px; bottom: 4px; display: inline-flex; align-items: center;
  gap: 3px; padding: 1px 6px 1px 4px; border-radius: 999px; font-size: 11px; font-weight: 700;
  color: #fff; background: rgba(15, 23, 42, .62); backdrop-filter: blur(4px);
}
.rfq-photo-count .icon { width: 12px; height: 12px; }
/* Expired sourcing requests stay browsable but must not look actionable. */
.rfq-row.is-expired { opacity: .72; }
.rfq-row.is-expired .rfq-thumb img { filter: grayscale(1); }
.rfq-contact { display: inline-flex; align-items: center; gap: 5px; }
.rfq-contact .icon { width: 13px; height: 13px; }
.rfq-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }
.rfq-search { flex: 1 1 260px; max-width: 420px; }
.rfq-search .input { min-height: 38px; border-radius: var(--radius-pill); }
.rfq-count { margin-bottom: 10px; }
/* Contact block for anonymous visitors: the shape is visible, the values are not. */
.rfq-locked { position: relative; margin-top: 12px; }
.rfq-locked-blur {
  display: grid; gap: 8px; filter: blur(6px); opacity: .5; pointer-events: none; user-select: none;
}
.rfq-locked-blur > div { display: flex; gap: 10px; font-size: 13px; }
.rfq-locked-blur span { color: var(--muted); min-width: 74px; }
.rfq-locked-blur b { font-weight: 600; }
.rfq-locked-cta {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px; padding: 16px 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--surface-2, rgba(47, 91, 255, .04));
}
.rfq-locked-cta .icon { width: 18px; height: 18px; color: var(--brand); }
.rfq-body { min-width: 0; }
.rfq-action { flex: none; }
.rfq-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.rfq-meta b { color: var(--ink-2); font-weight: 600; }
/* Destination keeps the flag glued to the country name, even when the
   meta row wraps onto a second line. */
.rfq-dest { display: inline-flex; align-items: center; gap: 5px; }
.rfq-flag {
  width: 18px; height: 13px; object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: none;
}
.rfq-detail-layout {
  display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 22px; align-items: start;
}
.rfq-detail-gallery { display: grid; gap: 10px; }
.rfq-detail-media {
  width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: var(--surface-3); border: 1px solid var(--line);
}
.rfq-detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rfq-detail-thumb {
  aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: var(--surface-3); cursor: pointer;
}
.rfq-detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rfq-detail-thumb.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.rfq-detail-body { min-width: 0; }
.rfq-buyer-facts {
  display: grid; gap: 10px; margin: 16px 0 0; padding: 0;
}
.rfq-buyer-facts > div {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 8px; align-items: baseline;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.rfq-buyer-facts dt {
  margin: 0; font-size: 12px; color: var(--muted); font-weight: 500;
}
.rfq-buyer-facts dd {
  margin: 0; font-size: 13.5px; color: var(--ink-2); word-break: break-word;
}
.rfq-buyer-facts a { color: var(--brand); text-decoration: none; }
.rfq-buyer-facts a:hover { text-decoration: underline; }

/* AI band */
.ai-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--grad-night); color: #e9eeff; padding: 46px 44px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.ai-band::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 65%);
  inset-inline-end: -120px; top: -120px; filter: blur(30px);
}
.ai-band h2 { color: #fff; }
.ai-band p { color: #aeb9d8; }
.ai-steps { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.ai-step { display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .10); }
.ai-step-num { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.lang-pills { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); font-size: 12.5px; color: #d7e0f8;
}
.lang-pill.on { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .5); color: #fff; }

/* CTA banner */
.cta-band {
  border-radius: var(--radius-lg); padding: 48px; background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; position: relative; overflow: hidden;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, .82); margin-top: 8px; }
.cta-band > * { position: relative; z-index: 1; }

.cat-node { display: block; }
.cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: start;
}
.cat-link:hover { background: var(--surface-3); color: var(--brand); }
.cat-link.active { background: rgba(47, 91, 255, .08); color: var(--brand); font-weight: 600; }

/* Category tree: L1 -> L2 -> L3 with per-level icons */
.filter-block[data-cat-tree] { position: relative; }
.cat-link-all { margin-bottom: 2px; font-weight: 600; color: var(--ink); }
.cat-link-all .cat-ico-svg { width: 17px; height: 17px; flex: none; }
.cat-row { display: flex; align-items: center; gap: 2px; border-radius: 9px; }
.cat-row:hover { background: var(--surface-3); }
.cat-node > .cat-row > .cat-link,
.cat-node > .cat-row:hover > .cat-link { background: transparent; }
.cat-node > .cat-row:hover > .cat-link:not(.active) { color: var(--brand); }
.cat-toggle,
.cat-caret-spacer { width: 20px; flex: none; display: grid; place-items: center; }
.cat-toggle {
  height: 26px; border-radius: 7px; color: var(--faint);
  transition: transform .18s ease, color .15s ease, background .15s ease;
}
.cat-toggle:hover { color: var(--brand); background: rgba(47, 91, 255, .10); }
.cat-toggle .cat-caret { width: 14px; height: 14px; }
.cat-node.open > .cat-row > .cat-toggle { transform: rotate(90deg); }
.cat-toggle.loading { opacity: .45; }
.cat-link {
  flex: 1; min-width: 0; padding: 6px 8px 6px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-radius: 8px; font-size: 13px; color: var(--ink-2); text-align: start;
}
.cat-link-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.cat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  flex: none; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--faint);
  padding: 1px 6px; border-radius: var(--radius-pill); background: var(--surface-3);
}
.cat-link.active .cat-count { color: var(--brand); background: rgba(47, 91, 255, .12); }
/* Level badge icon (catalog sidebar). Scoped so it never styles the home category browser. */
.cat-link .cat-ico {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px;
  font-size: 12px; line-height: 1; overflow: hidden;
  background: rgba(47, 91, 255, .09); color: var(--brand);
}
.cat-ico.lv1 { width: 24px; height: 24px; border-radius: 8px; }
.cat-ico.lv2 { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.cat-ico.lv3 { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; background: transparent; }
.cat-ico-svg { width: 15px; height: 15px; }
.cat-ico.lv1 .cat-ico-svg { width: 15px; height: 15px; }
.cat-ico.lv2 .cat-ico-svg { width: 13px; height: 13px; }
.cat-ico.lv3 .cat-ico-svg { width: 12px; height: 12px; }
.cat-ico > svg:not(.cat-ico-svg) { width: 100%; height: 100%; flex: none; }
.cat-ico-glyph { font-size: 1em; line-height: 1; }
.cat-ico.tone-brand  { color: #2f5bff; background: rgba(47, 91, 255, .09); }
.cat-ico.tone-teal   { color: #0f766e; background: rgba(15, 118, 110, .10); }
.cat-ico.tone-amber  { color: #b45309; background: rgba(232, 168, 56, .16); }
.cat-ico.tone-violet { color: #7c3aed; background: rgba(124, 58, 237, .10); }
.cat-children {
  margin-inline-start: 12px; padding-inline-start: 8px; border-inline-start: 1px dashed var(--line-strong);
  animation: cat-slide .18s ease-out;
}
.cat-children .cat-children { margin-inline-start: 8px; border-inline-start-color: transparent; }
.cat-node.lv3 > .cat-row > .cat-link { font-size: 12.5px; color: var(--muted); }
.cat-node.lv3 > .cat-row:hover { background: transparent; }
.cat-empty { padding: 4px 6px; }
@keyframes cat-slide { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
[data-theme="dark"] .cat-ico.tone-brand { background: rgba(120, 150, 255, .16); color: #93aaff; }
[data-theme="dark"] .cat-ico.tone-teal { background: rgba(45, 212, 191, .14); color: #5eead4; }
[data-theme="dark"] .cat-ico.tone-amber { background: rgba(251, 191, 36, .14); color: #fcd34d; }
[data-theme="dark"] .cat-ico.tone-violet { background: rgba(167, 139, 250, .16); color: #c4b5fd; }


/* ---------- 11. Catalog page ------------------------------------------- */
.ad-banner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--grad-night);
  color: #fff; min-height: 210px; max-height: 280px;
}
.ad-banner img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; grid-column: 2; grid-row: 1; opacity: .92; }
.ad-banner-body { padding: 26px 32px; display: flex; flex-direction: column; gap: 8px; justify-content: center; grid-column: 1; grid-row: 1; }
.ad-banner-body h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.ad-banner-body p { color: #a9b6d6; font-size: 13px; max-width: 46ch; }
.ad-company { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #cfd9ff; margin-top: 4px; }
[data-theme="dark"] .ad-banner { border-color: var(--line); }
.page-head { padding-block: 34px 10px; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand); }
.catalog-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; padding-block: 20px 60px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
.filter-block { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.filter-title { font-size: 13px; font-weight: 650; margin-bottom: 12px; }
.filter-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.filter-option:hover { color: var(--brand); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  appearance: none; width: 17px; height: 17px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: all .16s;
}
.filter-option input[type="checkbox"] { border-radius: 5px; }
.filter-option input:checked {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 12px var(--brand);
}
.filter-option input[type="checkbox"]:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m4 12 5 5L20 6'/%3E%3C/svg%3E") center/11px no-repeat;
  box-shadow: none;
}
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.result-count { font-size: 13.5px; color: var(--muted); }
.result-count b { color: var(--ink); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 550; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.page-btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- 12. Product detail ----------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 44px; padding-block: 28px 20px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -.03em; line-height: 1.15; }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin-block: 18px 6px; font-family: var(--mono); }
.pdp-price b { font-size: 2rem; letter-spacing: -.03em; }
.pdp-price span { color: var(--muted); font-size: 13px; }
.pdp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-block: 22px; }
.pdp-fact { background: var(--surface); padding: 13px 14px; }
.pdp-fact span { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.pdp-fact b { display: block; font-size: 14px; margin-top: 3px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: start; font-weight: 550; color: var(--muted); padding: 11px 0; width: 42%; }
.spec-table td { padding: 11px 0; color: var(--ink); }
.supplier-panel { position: sticky; top: calc(var(--header-h) + 18px); }
.supplier-actions {
  display: flex; align-items: stretch; gap: 8px; width: 100%;
}
.supplier-actions .btn {
  flex: 1 1 0; min-width: 0; height: 42px; padding-inline: 6px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  justify-content: center; gap: 5px;
}
.supplier-actions .btn .tick { width: 15px; height: 15px; flex: none; }
.supplier-actions .btn span {
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
@media (max-width: 520px) {
  .supplier-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
.sticky-cta {
  position: sticky; bottom: 18px; z-index: 30; display: flex; gap: 10px; padding: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}

/* ---------- 13. Storefront --------------------------------------------- */
.store-cover { position: relative; height: 250px; overflow: visible; background: var(--surface-3); }
.store-cover > img.cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(6, 10, 20, .55)); pointer-events: none; }
.store-logo {
  position: absolute; bottom: -54px; inset-inline-start: max(24px, calc((100vw - var(--container)) / 2 + 24px)); z-index: 3;
  width: 112px; height: 112px; border-radius: 24px; border: 4px solid var(--bg); object-fit: cover;
  background: var(--surface); box-shadow: var(--shadow);
}
.store-head { position: relative; z-index: 2; display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap;
  padding-top: 66px; padding-inline-start: 152px; }
.store-title { color: var(--ink); flex: 1 1 auto; min-width: 0; }
.store-title h1 { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.03em; }
.store-title p { color: var(--muted); }
.store-actions { display: flex; gap: 8px; }
.store-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-block: 26px 24px; overflow-x: auto; }
.store-tab { padding: 12px 16px; font-size: 14px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.store-tab.active { color: var(--ink); border-color: var(--brand); }
.store-contact-value { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; direction: ltr; }
.store-contact-value .store-phone-flag { width: 22px; height: 15px; border-radius: 2px; }
.store-contact-value .store-phone-flag.is-globe { width: 15px; height: 15px; font-size: .9rem; }
.trust-box { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--surface-3); font-size: 12.5px; color: var(--ink-2); }
.seal {
  width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(from 200deg, #2f5bff, #7c3aed, #06b6d4, #2f5bff);
  display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.1;
}

/* ---------- AI assistant widget ---------------------------------------- */
.ai-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px;
  border-radius: 999px; background: var(--grad-brand); color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: 0 16px 36px -14px rgba(47, 91, 255, .9);
}
.ai-fab .icon { width: 18px; height: 18px; }
.ai-panel {
  position: fixed; inset-inline-end: 22px; bottom: 82px; z-index: 90; width: min(370px, calc(100vw - 32px));
  max-height: min(560px, 72vh); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); animation: pop .2s var(--ease-out);
}
.ai-panel.hidden { display: none; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--grad-night); color: #fff; }
.ai-head .icon-btn { color: #fff; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.ai-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; }
.ai-bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.5; white-space: pre-line; }
.ai-bubble.assistant { background: var(--surface-3); align-self: flex-start; border-start-start-radius: 5px; }
.ai-bubble.user { background: var(--grad-brand); color: #fff; align-self: flex-end; border-start-end-radius: 5px; }
.ai-suggestions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.ai-input { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ai-input .input { min-height: 40px; }
@media (max-width: 760px) {
  .ai-fab span { display: none; }
  .ai-fab { width: 52px; height: 52px; padding: 0; justify-content: center; }
}
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px; height: 46px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: all .2s var(--ease);
}
.oauth-btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.oauth-btn.disabled { opacity: .55; }
.oauth-icon { width: 20px; height: 20px; flex: none; display: block; }
.oauth-dot { width: 18px; height: 18px; border-radius: 6px; display: inline-block; }
.oauth-label { line-height: 1; }

/* ---------- Auth (port-of-trade split) ---------------------------------- */
body.auth-page .site-header,
body.auth-page .site-footer,
body:has(.auth-shell) .site-header,
body:has(.auth-shell) .site-footer { display: none !important; }
body.auth-page #main,
body:has(.auth-shell) #main { min-height: 100vh; padding: 0; margin: 0; }

.auth-shell {
  --auth-ink: #071018;
  --auth-paper: #f3f5f8;
  --auth-amber: #e8a838;
  --auth-sky: #38bdf8;
  --auth-pad: clamp(28px, 4.2vw, 64px);
  --auth-font: "Source Sans 3", var(--font);
  --auth-display: "Syne", var(--font-display);
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr) !important;
  grid-template-rows: minmax(100vh, auto);
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  background: var(--auth-paper);
  font-family: var(--auth-font);
}
.auth-shell > .auth-side,
.auth-shell > .auth-form-wrap { min-width: 0; min-height: 100vh; }
.auth-shell-solo {
  grid-template-columns: 1fr !important;
  place-items: center;
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(232, 168, 56, .12), transparent 60%),
    var(--auth-paper);
}
.auth-shell-solo .auth-form-wrap { width: 100%; max-width: 520px; min-height: auto; }

.auth-side {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(720px 420px at 8% -10%, rgba(232, 168, 56, .28), transparent 55%),
    radial-gradient(640px 380px at 100% 20%, rgba(56, 189, 248, .18), transparent 50%),
    linear-gradient(165deg, #071018 0%, #0c1624 52%, #0a121c 100%);
}
.auth-stage { position: absolute; inset: 0; pointer-events: none; }
.auth-grain {
  position: absolute; inset: 0; opacity: .22;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.auth-routes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .9;
}
.auth-route { stroke-linecap: round; }
.auth-route-a {
  stroke-dasharray: 8 14;
  animation: auth-dash 18s linear infinite;
}
.auth-route-b { animation: auth-dash 28s linear infinite reverse; }
.auth-node {
  transform-origin: center;
  animation: auth-pulse 2.8s var(--ease-out) infinite;
}
.auth-node-delay { animation-delay: .9s; }
.auth-horizon {
  position: absolute; inset-inline: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(7, 16, 24, .88));
}
@keyframes auth-dash { to { stroke-dashoffset: -320; } }
@keyframes auth-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

.auth-side-inner {
  position: relative; z-index: 1;
  height: 100%; min-height: 100vh;
  padding: var(--auth-pad);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 14px;
  color: #fff; text-decoration: none; width: fit-content;
  animation: auth-rise .7s var(--ease-out) both;
}
.auth-brand-word {
  font-family: var(--auth-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800; letter-spacing: -.045em; line-height: 1;
}
.auth-side-copy { max-width: min(560px, 92%); }
.auth-kicker {
  margin: 0;
  font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(232, 168, 56, .92);
  animation: auth-rise .7s var(--ease-out) .05s both;
}
.auth-quote {
  margin: 18px 0 0;
  font-family: var(--auth-display);
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  font-weight: 750; letter-spacing: -.045em; line-height: 1.08;
  max-width: 13ch;
  animation: auth-rise .75s var(--ease-out) .1s both;
}
.auth-quote-line { display: block; }
.auth-lede {
  margin: 18px 0 0; max-width: 42ch;
  color: rgba(214, 224, 236, .78); font-size: 15.5px; line-height: 1.55;
  animation: auth-rise .75s var(--ease-out) .16s both;
}
.auth-side-meta { display: grid; gap: 22px; }
.auth-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.auth-stat {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  animation: auth-rise .7s var(--ease-out) var(--d, 0ms) both;
}
.auth-stat b {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700; letter-spacing: -.04em; color: #fff;
}
.auth-stat span {
  font-size: 12px; color: rgba(180, 196, 214, .78);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-bullets {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 16px;
}
.auth-bullets li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(220, 230, 242, .86);
}
.auth-bullets .tick { width: 15px; height: 15px; color: var(--auth-sky); flex: none; }

.auth-form-wrap {
  display: grid; place-items: center;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 4vw, 48px);
  background: var(--auth-paper);
}
.auth-panel,
.auth-card {
  width: 100%; max-width: 440px;
  padding: 8px 4px 0;
  animation: auth-rise .65s var(--ease-out) .08s both;
}
.auth-card-center {
  text-align: center; max-width: 460px;
  padding: 36px 28px; border-radius: 22px;
  background: #fff; border: 1px solid rgba(15, 23, 42, .06);
  box-shadow: 0 24px 60px -36px rgba(7, 16, 24, .35);
}
.auth-card-head { margin-top: 22px; }
.auth-card-head h1 {
  margin: 0;
  font-family: var(--auth-display);
  font-size: clamp(1.7rem, 2.5vw, 2.05rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1.15; color: var(--auth-ink);
}
.auth-card-head p { margin: 8px 0 0; color: #64748b; font-size: 14.5px; line-height: 1.5; }

.auth-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px; gap: 0;
  background: rgba(15, 23, 42, .05); border-radius: 14px;
}
.auth-tab {
  position: relative; z-index: 1; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; width: 100%;
  font-size: 13.5px; font-weight: 650; color: #64748b;
  transition: color .2s;
}
.auth-tab.active { color: var(--auth-ink); }
.auth-tab-ink {
  position: absolute; top: 5px; bottom: 5px; inset-inline-start: 0;
  border-radius: 11px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 0 0 1px rgba(15, 23, 42, .06);
  transition: transform .35s var(--ease-out), width .35s var(--ease-out);
  pointer-events: none;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-field .label { margin-bottom: 7px; color: #334155; }
.auth-input { position: relative; }
.auth-input .input {
  height: 50px; padding-inline: 44px 44px; border-radius: 14px;
  background: #fff; border-color: #dbe2ea;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-input .input:focus {
  border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .16); background: #fff;
}
.auth-input-ico {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; display: grid; place-items: center; pointer-events: none;
}
.auth-input-ico .icon { width: 17px; height: 17px; }
.auth-eye {
  position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 10px; color: #64748b;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.auth-eye:hover { background: #eef2f6; color: var(--auth-ink); }
.auth-eye .icon { width: 17px; height: 17px; }
.auth-hint { font-size: 11.5px; color: #94a3b8; }
.auth-roles { border: 0; margin: 0; padding: 0; }
.auth-roles .label { margin-bottom: 8px; }
.auth-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-role { cursor: pointer; position: relative; }
.auth-role input { position: absolute; opacity: 0; pointer-events: none; }
.auth-role-card {
  display: flex; flex-direction: column; gap: 4px; min-height: 108px;
  padding: 14px 14px 12px; border-radius: 16px;
  border: 1.5px solid #dbe2ea; background: #fff;
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}
.auth-role-card b { font-size: 13.5px; font-weight: 700; color: var(--auth-ink); }
.auth-role-card small { font-size: 11.5px; color: #64748b; line-height: 1.4; }
.auth-role-ico {
  width: 34px; height: 34px; border-radius: 11px; margin-bottom: 6px;
  display: grid; place-items: center; background: rgba(15, 118, 110, .1); color: #0f766e;
}
.auth-role-ico .icon { width: 17px; height: 17px; }
.auth-role input:checked + .auth-role-card {
  border-color: #0f766e; background: rgba(15, 118, 110, .04);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); transform: translateY(-1px);
}
.auth-role:hover .auth-role-card { border-color: #94a3b8; }
.auth-submit {
  margin-top: 4px; height: 52px; border-radius: 14px; font-weight: 700;
  letter-spacing: -.01em; gap: 10px;
  background: linear-gradient(135deg, #0f766e, #0ea5a4) !important;
  border: 0 !important;
  box-shadow: 0 14px 30px -16px rgba(15, 118, 110, .7);
  transition: transform .18s var(--ease), box-shadow .18s, filter .18s;
}
.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 36px -16px rgba(15, 118, 110, .8);
}
.auth-submit.is-loading { opacity: .72; pointer-events: none; }
.auth-switch {
  margin-top: 16px; text-align: center; font-size: 13.5px; color: #64748b;
}
.auth-switch a { color: #0f766e; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.auth-divider {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  margin: 18px 0 14px; color: #94a3b8; font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; height: 1px; background: #dbe2ea;
}
.auth-success-mark {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(145deg, rgba(15, 118, 110, .14), rgba(232, 168, 56, .12));
  color: #0f766e;
}
.auth-lede-light { margin-top: 8px; color: #64748b; }
.auth-shell .oauth-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.auth-shell .oauth-btn {
  border-radius: 14px; background: #fff; border-color: #dbe2ea;
  min-height: 48px; padding: 0 8px; font-size: 12.5px; gap: 7px;
  justify-content: center;
}
.auth-shell .oauth-icon { width: 22px; height: 22px; }
.auth-shell .oauth-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 1100px) {
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-route-a, .auth-route-b, .auth-node,
  .auth-panel, .auth-card, .auth-quote, .auth-lede, .auth-kicker, .auth-stat, .auth-brand {
    animation: none !important;
  }
}
@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
  }
  .auth-shell > .auth-side,
  .auth-shell > .auth-form-wrap { min-height: auto; }
  .auth-side-inner { min-height: auto; gap: 28px; padding: 28px 22px 26px; }
  .auth-side-copy { max-width: 100%; }
  .auth-quote { font-size: 1.7rem; max-width: 16ch; }
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
  .auth-stats { gap: 12px; }
  .auth-form-wrap { padding: 22px 18px 48px; align-content: start; }
  .auth-routes { opacity: .55; }
}
.demo-box { margin-top: 20px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.demo-box code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

/* ---------- Password recovery ------------------------------------------ */
.auth-link {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 700; color: #0f766e;
  font-family: inherit; line-height: 1.4;
}
.auth-link:hover { text-decoration: underline; }
.auth-link:disabled { color: #94a3b8; cursor: not-allowed; text-decoration: none; }

.auth-steps {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 4px;
}
.auth-steps span {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 750; color: #94a3b8;
  background: #eef2f6; border: 1px solid #dbe2ea;
}
.auth-steps span + span::before { content: none; }
.auth-steps span.is-active { background: #0f766e; border-color: #0f766e; color: #fff; }
.auth-steps span.is-done { background: rgba(15, 118, 110, .12); border-color: rgba(15, 118, 110, .3); color: #0f766e; }
.auth-steps span .icon { width: 13px; height: 13px; }

.auth-mail-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 12px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  font-size: 12.5px; color: #334155; max-width: 100%;
}
.auth-mail-pill b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.auth-mail-pill .icon { width: 15px; height: 15px; color: #0f766e; }

.auth-code-input {
  font-family: var(--mono); font-size: 22px; font-weight: 700;
  letter-spacing: .38em; text-align: center; padding-inline: 18px !important;
  height: 58px !important;
}
.auth-code-input::placeholder { letter-spacing: .3em; color: #cbd5e1; }

.auth-error {
  margin: 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .22);
  color: #b42318; font-size: 12.5px; line-height: 1.5;
}
.auth-notice {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .24);
  color: #92400e; font-size: 12.5px; line-height: 1.5;
}
.auth-notice .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.auth-resend-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 2px;
}

.auth-strength { display: grid; gap: 8px; margin-top: -2px; }
.auth-strength-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: #64748b; font-weight: 600;
}
.auth-strength-head b { font-weight: 750; }
.auth-strength-head b[data-score="0"], .auth-strength-head b[data-score="1"] { color: #b42318; }
.auth-strength-head b[data-score="2"] { color: #b45309; }
.auth-strength-head b[data-score="3"] { color: #0f766e; }
.auth-strength-head b[data-score="4"] { color: #047857; }
.auth-strength-track {
  height: 6px; border-radius: 999px; background: #e9eef3; overflow: hidden;
}
.auth-strength-track i {
  display: block; height: 100%; width: 4%; border-radius: inherit;
  background: #e5484d; transition: width .25s var(--ease), background .25s;
}
.auth-strength-track i[data-score="0"], .auth-strength-track i[data-score="1"] { background: #e5484d; }
.auth-strength-track i[data-score="2"] { background: #f59e0b; }
.auth-strength-track i[data-score="3"] { background: #0f766e; }
.auth-strength-track i[data-score="4"] { background: #10b981; }

.auth-rules {
  display: grid; gap: 5px; margin: 2px 0 0; padding: 0; list-style: none;
  font-size: 11.5px; color: #94a3b8;
}
.auth-rules li { display: flex; align-items: center; gap: 6px; }
.auth-rules .icon { width: 13px; height: 13px; color: #cbd5e1; }
.auth-rules li.is-ok { color: #0f766e; }
.auth-rules li.is-ok .icon { color: #10b981; }

.auth-reset-done { width: 100%; }
.auth-reset-done h1 {
  font-family: var(--auth-display); font-size: 1.6rem; letter-spacing: -.03em;
  margin: 6px 0 0;
}
.auth-reset-done .auth-submit { margin-top: 22px; text-align: center; }

/* ---------- Account security: change password -------------------------- */
.pw-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
@media (max-width: 980px) { .pw-layout { grid-template-columns: 1fr; } }
.pw-last-login {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; margin: 14px 0 4px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.pw-last-login b { color: var(--ink); font-weight: 650; }
.pw-country-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-country-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  transition: border-color .15s, background .15s, transform .15s;
}
.pw-country-chip:hover { border-color: #0f766e; }
.pw-country-chip.is-selected {
  border-color: #0f766e; background: rgba(15, 118, 110, .08); color: #0f766e;
}
.pw-country-chip img { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; }
.pw-country-select { max-width: 100%; }
.pw-rules { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 7px; }
.pw-rules .icon { width: 14px; height: 14px; color: var(--line-strong); }
.pw-rules li.is-ok { color: #0f766e; }
.pw-rules li.is-ok .icon { color: #10b981; }
.pw-strength { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.pw-strength i { display: block; height: 100%; width: 4%; background: #e5484d; transition: width .25s, background .25s; }
.pw-strength i[data-score="0"], .pw-strength i[data-score="1"] { background: #e5484d; }
.pw-strength i[data-score="2"] { background: #f59e0b; }
.pw-strength i[data-score="3"] { background: #0f766e; }
.pw-strength i[data-score="4"] { background: #10b981; }
.pw-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.pw-error {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .22);
  color: #b42318; font-size: 12.5px;
}

/* ---------- Country picker --------------------------------------------- */
.country-picker { position: relative; }
.country-picker-trigger {
  width: 100%; height: 50px; padding: 0 14px; border-radius: 14px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #dbe2ea; color: #64748b;
  text-align: start; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.country-picker-trigger:hover,
.country-picker.is-open .country-picker-trigger {
  border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}
.country-picker-trigger.is-invalid {
  border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .14);
}
.country-picker-flag {
  flex: none; width: 30px; height: 20px; object-fit: cover;
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12);
  background: #e2e8f0; display: block;
}
.country-picker-flag.is-globe {
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1;
  box-shadow: none; background: transparent; color: #64748b;
}
.country-picker-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.country-picker-label.is-selected { color: #071018; font-weight: 550; }
.country-picker-caret { color: #94a3b8; display: grid; place-items: center; transition: transform .18s; }
.country-picker-caret .icon { width: 16px; height: 16px; }
.country-picker.is-open .country-picker-caret { transform: rotate(180deg); }
.country-picker-panel {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #dbe2ea; border-radius: 16px;
  box-shadow: 0 24px 48px -28px rgba(7, 16, 24, .45);
  overflow: hidden;
}
.country-picker-search { position: relative; padding: 10px; border-bottom: 1px solid #eef2f6; }
.country-picker-search .input {
  height: 42px; padding-inline: 40px 12px; border-radius: 12px; background: #f8fafc;
}
.country-picker-search .auth-input-ico {
  position: absolute; inset-inline-start: 22px; top: 50%; transform: translateY(-50%);
  color: #94a3b8; pointer-events: none;
}
.country-picker-list { max-height: 280px; overflow: auto; padding: 6px; }
.country-picker-group {
  padding: 10px 10px 4px; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #94a3b8;
}
.country-picker-option {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px; text-align: start; color: #0f172a;
  transition: background .12s;
}
.country-picker-option:hover,
.country-picker-option:focus-visible { background: #f1f5f9; outline: none; }
.country-picker-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 550;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-picker-code { font-family: var(--mono); font-size: 11px; color: #94a3b8; }
.country-picker-empty { padding: 22px 12px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ---------- 15. Onboarding wizard -------------------------------------- */
.wizard { max-width: 960px; margin: 40px auto 80px; padding-inline: 24px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-block: 26px 34px; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 650; border: 1px solid var(--line-strong); color: var(--faint); background: var(--surface); flex: none; }
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 255, .15); }
.step-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.step.active .step-label { color: var(--ink); font-weight: 600; }
.step-line { height: 1px; background: var(--line); flex: 1; }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: all .2s; position: relative; }
.plan-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.plan-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 91, 255, .16); }
.plan-card .price { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.plan-card ul { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-badge { position: absolute; top: -10px; inset-inline-end: 14px; }

/* ---------- 16. Dashboard ---------------------------------------------- */
.dash { display: grid; grid-template-columns: 244px 1fr; gap: 28px; padding-block: 28px 60px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 11px; font-size: 14px; color: var(--muted); font-weight: 550; }
.dash-nav-item:hover { background: var(--surface-3); color: var(--ink); }
.dash-nav-item.active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.dash-nav-item .icon { width: 18px; height: 18px; }
.dash-nav-item .count { margin-inline-start: auto; font-size: 11px; background: var(--accent); color: #2b1602; border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.dash-group { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 12px 4px; font-weight: 650; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.kpi-value { font-family: var(--mono); font-size: 27px; font-weight: 650; letter-spacing: -.03em; margin-top: 8px; }
.kpi-delta { font-size: 11.5px; margin-top: 4px; display: inline-flex; gap: 5px; align-items: center; color: var(--success); }
.chart { width: 100%; height: 200px; }
.chart text { font-size: 10px; fill: var(--faint); font-family: var(--mono); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th { text-align: start; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 11px 15px; font-size: 13.5px; font-weight: 550; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.active { color: var(--ink); border-color: var(--brand); }
.empty-state { padding: 54px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-art { width: 64px; height: 64px; border-radius: 20px; background: var(--surface-3); display: grid; place-items: center; font-size: 26px; }
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 520px; }
.inbox-list { border-inline-end: 1px solid var(--line); overflow-y: auto; max-height: 620px; }
.inbox-item { padding: 15px 16px; border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.active { background: rgba(47, 91, 255, .07); border-inline-start: 2px solid var(--brand); }
.inbox-thread { display: flex; flex-direction: column; }
.thread-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.thread-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1; max-height: 430px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.bubble.buyer { background: var(--surface-3); border-start-start-radius: 5px; align-self: flex-start; }
.bubble.seller { background: var(--grad-brand); color: #fff; border-start-end-radius: 5px; align-self: flex-end; }
.bubble-time { font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.thread-compose { border-top: 1px solid var(--line); padding: 14px; display: flex; gap: 10px; align-items: flex-end; }
.upload-drop { border: 1.5px dashed var(--line-strong); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: all .2s; background: var(--surface-2); }
.upload-drop:hover, .upload-drop.drag { border-color: var(--brand); background: rgba(47, 91, 255, .05); color: var(--brand); }
.image-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.image-tile { position: relative; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.image-tile img { width: 100%; height: 100%; object-fit: cover; }
.image-tile button { position: absolute; top: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(10, 17, 34, .7); color: #fff; display: grid; place-items: center; font-size: 12px; }
.lang-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lang-cell { padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---------- 17. Footer -------------------------------------------------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)); gap: 30px; padding-block: 52px 30px; }
.footer-title { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.footer-link { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; color: var(--muted);
  transition: color .16s ease, transform .16s ease; }
.footer-link:hover { color: var(--brand); transform: translateX(2px); }
.footer-ico { width: 15px; height: 15px; flex: none; color: var(--faint); transition: color .16s ease; }
.footer-link:hover .footer-ico { color: var(--brand); }
[dir="rtl"] .footer-link:hover { transform: translateX(-2px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* Footer nav columns read as one panel each: soft tint, hairline, tiny lift on hover. */
.site-footer .footer-grid > div:not(.footer-brand) {
  padding: 14px 16px 12px; border-radius: 14px;
  border: 1px solid transparent; background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.site-footer .footer-grid > div:not(.footer-brand):hover {
  border-color: var(--line); background: var(--surface-2); transform: translateY(-1px);
}
[data-theme="dark"] .site-footer .footer-grid > div:not(.footer-brand) { background: rgba(255, 255, 255, .025); }
[data-theme="dark"] .site-footer .footer-grid > div:not(.footer-brand):hover { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter .input { min-height: 42px; }

/* ---------- 18. Toasts, modal, skeletons -------------------------------- */
.toaster { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 11px; min-width: 260px; max-width: 380px;
  padding: 13px 15px; border-radius: 13px; background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg); font-size: 13.5px; animation: slideUp .25s var(--ease-out);
}
.toast.error { background: #7f1d1d; color: #fff; }
.toast.success { background: #064e3b; color: #ecfdf5; }
.toast .icon { width: 18px; height: 18px; flex: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(7, 12, 24, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.modal { width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .22s var(--ease-out); }
.modal-lg { max-width: 760px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: var(--surface); }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
/* Boot splash: the artwork *is* the splash, on a dark brand backdrop so a
   near-white logo can never disappear into a white page again. */
.boot-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 32px 24px;
  background: radial-gradient(120% 90% at 50% 0%, #16224a 0%, #0a1020 55%, #070c18 100%);
  color: #eef2fb;
}
.boot-screen .boot-logo {
  display: block; width: min(560px, 76vw); height: auto; max-height: 46vh; object-fit: contain;
  border-radius: 26px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  animation: boot-settle .8s cubic-bezier(.22, 1, .36, 1) both;
}
.boot-screen .boot-bar {
  width: 168px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden;
}
.boot-screen .boot-bar i {
  display: block; height: 100%; width: 40%; border-radius: 999px;
  background: linear-gradient(90deg, #4c7dff, #22c1b4); animation: boot-progress 1.35s ease-in-out infinite;
}
@keyframes boot-settle { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes boot-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
/* Repeat visits: the artwork is gone, but the page is never blank — a neutral
   chrome skeleton holds the layout until the first route paints. */
html.splash-done .boot-screen { display: none; }
html:not(.splash-done) #app { display: none; }
.boot-shell {
  min-height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 18px clamp(16px, 5vw, 64px) 48px;
  background: radial-gradient(120% 90% at 50% 0%, #16224a 0%, #0a1020 55%, #070c18 100%);
}
.boot-shell::before {
  content: ''; display: block; height: 52px; border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.boot-shell::after {
  content: ''; display: block; flex: 1; min-height: 46vh; border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.10) 37%, rgba(255,255,255,.05) 63%);
  background-size: 400% 100%; animation: shimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .boot-screen .boot-logo, .boot-screen .boot-bar i { animation: none; }
}
.skeleton-card { height: 320px; border-radius: var(--radius); }

/* ---------- 19. Motion -------------------------------------------------- */
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.reveal { animation: rise .5s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.route-enter > * { animation: rise .42s var(--ease-out) both; }
.route-enter > *:nth-child(2) { animation-delay: .05s; }
.route-enter > *:nth-child(3) { animation-delay: .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 20. Responsive --------------------------------------------- */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer-grid > :nth-child(5) { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 52px 60px; }
  .hero-visual { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: flex; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .supplier-panel { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .dash-nav-item { white-space: nowrap; }
  .ai-band { grid-template-columns: 1fr; padding: 34px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: 280px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .container { padding-inline: 18px; }
  .nav-links, .header-search { display: none; }
  .mobile-toggle { display: inline-grid; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 1.35rem; }
  .section { padding-block: 46px; }
  .grid-2, .grid-3, .grid-4, .cat-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .plan-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .wizard-card { padding: 22px; }
  .step-label { display: none; }
  .pdp-facts { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .store-head { padding-inline-start: 0; padding-top: 62px; }
  .store-logo { width: 84px; height: 84px; bottom: -42px; inset-inline-start: 18px; border-radius: 18px; }
  .rfq-row { grid-template-columns: 72px 1fr; }
  .rfq-thumb { width: 72px; height: 72px; border-radius: 12px; }
  .rfq-action { grid-column: 2; justify-self: start; }
  .rfq-detail-layout { grid-template-columns: 1fr; }
  .rfq-detail-media { max-width: 280px; }
  .toaster { inset-inline: 12px; }
  .toast { max-width: none; }
}

/* ---------- 21. RTL ----------------------------------------------------- */
[dir="rtl"] .hero-card:nth-child(1) { transform: rotate(-4deg); }
[dir="rtl"] .hero-card:nth-child(2) { transform: rotate(5deg); }
[dir="rtl"] .hero-card:nth-child(3) { transform: rotate(-2deg); }
[dir="rtl"] .select { background-position: left 14px center; }
[dir="rtl"] .bubble.buyer { border-start-start-radius: 16px; border-start-end-radius: 5px; }
[dir="rtl"] .bubble.seller { border-start-end-radius: 16px; border-start-start-radius: 5px; }
[dir="rtl"] .product-price, [dir="rtl"] .mono, [dir="rtl"] .kpi-value { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .timeline-line { transform: scaleX(-1); }

/* ---------- 22. Print --------------------------------------------------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .filters, .toaster { display: none !important; }
  body { background: #fff; }
}
/* ---------- News channel -------------------------------------------------- */
.news-card { display: block; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-cover { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.news-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.news-excerpt { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-content p { margin-bottom: 12px; line-height: 1.75; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Locale typography & direction --------------------------------- */
html[lang="hi"] body, html[lang="mr"] body {
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, sans-serif;
  line-height: 1.7; letter-spacing: 0;
}
html[lang="bn"] body {
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  line-height: 1.7; letter-spacing: 0;
}
html[lang="ur"] body {
  font-family: "Noto Nastaliq Urdu", "Urdu Typesetting", "Jameel Noori Nastaleeq", serif;
  line-height: 2.05; letter-spacing: 0;
}
html[lang="hi"] .btn, html[lang="bn"] .btn, html[lang="mr"] .btn, html[lang="ur"] .btn {
  line-height: 1.35; font-weight: 600;
}
html[lang="ur"] .h1, html[lang="ur"] .h2, html[lang="ur"] .hero-title { line-height: 1.7; }
html[lang="ur"] .eyebrow, html[lang="ur"] .dash-group { letter-spacing: 0; }

/* Long translations must never break the layout */
.btn, .chip, .badge, .store-tab, .dash-nav-item span, .nav-links a {
  white-space: nowrap;
}
.nav-links a, .dash-nav-item span, .btn { text-overflow: ellipsis; overflow: hidden; }
.hero-title { font-size: clamp(1.9rem, 4.4vw, 3.4rem); overflow-wrap: anywhere; }
h1, h2, h3, .panel-title, .product-title { overflow-wrap: anywhere; }

/* RTL: flip directional chrome */
[dir="rtl"] .icon-arrow, [dir="rtl"] [data-flip] { transform: scaleX(-1); }
[dir="rtl"] .breadcrumbs span { transform: none; }
[dir="rtl"] .input-group .icon:first-child { order: 2; }
[dir="rtl"] .dash-nav-item .count { margin-inline-start: 0; margin-inline-end: auto; }
[dir="rtl"] .news-excerpt, [dir="rtl"] .clamp-2, [dir="rtl"] .clamp-3 { text-align: right; }

/* Language menu: native names need room */
.lang-menu { min-width: 220px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; }
.lang-menu .native { font-weight: 600; }
.lang-menu .region { color: var(--faint); font-size: 11px; margin-inline-start: auto; }

/* ---------- Chat ---------------------------------------------------------- */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; margin-top: 16px; min-height: 560px; }
.chat-list { padding: 8px; overflow-y: auto; max-height: 640px; }
.chat-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; }
.chat-item:hover, .chat-item.active { background: var(--surface-3); }
.chat-avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; }
.chat-pane { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { max-width: 74%; align-self: flex-start; background: var(--surface-3); padding: 10px 12px;
  border-radius: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.chat-bubble.mine { align-self: flex-end; background: var(--grad-brand); color: #fff; }
.chat-bubble.mine .xs { color: rgba(255,255,255,.7); }
.chat-bubble .xs { font-size: 10px; }
.chat-product { display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.16);
  padding: 6px; border-radius: 10px; color: inherit; }
.chat-product img { border-radius: 8px; object-fit: cover; }
.chat-image { max-width: 240px; border-radius: 10px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: center; }
.empty-chat { padding: 40px; text-align: center; color: var(--faint); }
@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-list { max-height: 200px; }
}
.brand-board .brand-filters { display: grid; gap: 8px; margin-top: 12px; }
.brand-podium {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-top: 18px; align-items: end;
}
.brand-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px;
}
.brand-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  transition: transform .16s, box-shadow .16s, border-color .16s; min-height: 100%;
}
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.brand-card-podium { padding: 16px; }
.brand-card-gold { border-color: #f0b429; box-shadow: 0 16px 36px -24px rgba(240, 180, 41, .55); }
.brand-card-silver { border-color: #94a3b8; }
.brand-card-bronze { border-color: #d97706; }
.brand-card-top, .brand-card-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand-card-main { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none;
  background: var(--surface-3); border: 1px solid var(--line);
}
.brand-name { font-size: 14.5px; letter-spacing: -.01em; display: block; }
.brand-rank {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand);
  min-width: 2.2em;
}
.brand-rank.is-gold { color: #b45309; }
.brand-rank.is-silver { color: #475569; }
.brand-rank.is-bronze { color: #c2410c; }
.brand-strength {
  height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden;
}
.brand-strength span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #e8a838);
}
.brand-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.brand-stats span { display: flex; flex-direction: column; gap: 2px; }
.brand-stats b { font-size: 12.5px; }
.brand-stats em { font-style: normal; font-size: 10px; color: var(--faint); }
.brand-empty { grid-column: 1 / -1; padding: 28px; text-align: center; }
@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .brand-podium, .brand-grid { grid-template-columns: 1fr; }
}


/* Product gallery performance */
.gallery-main { aspect-ratio: 4 / 3; background: var(--surface-3); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; scrollbar-width: thin; }
.gallery-thumb { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: var(--surface-3); content-visibility: auto; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--brand); }
.gallery-more { display: grid; place-items: center; font-weight: 700; color: var(--ink-3); }
.product-description { color: var(--ink-2); line-height: 1.8; font-size: 14px; }
.product-description > :first-child { margin-top: 0; }
.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4 { color: var(--ink); line-height: 1.35; letter-spacing: -.01em; margin: 22px 0 10px; }
.product-description h1 { font-size: 20px; }
.product-description h2 { font-size: 17px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.product-description h3 { font-size: 15px; }
.product-description h4 { font-size: 14px; color: var(--ink-2); }
.product-description p { margin: 0 0 12px; }
.product-description ul,
.product-description ol { margin: 0 0 14px; padding-inline-start: 22px; }
.product-description li { margin: 4px 0; }
.product-description hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.product-description table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
.product-description th,
.product-description td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.product-description th { background: var(--surface-2); font-weight: 600; }
.product-description strong,
.product-description b { color: var(--ink); }
.product-description img { max-width: 100%; height: auto; border-radius: 10px; }

/* Structured product copy: supplier "Label: value" feeds rebuilt into cards. */
.pd-structured { display: block; }
.pd-lede {
  margin: 0 0 14px !important;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.pd-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pd-chip span { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pd-chip b { font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.pd-section { margin: 0 0 18px; }
.pd-section:last-child { margin-bottom: 0; }
.pd-section > h2 {
  font-size: 14.5px !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-section > h2::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--brand, #3b6bff);
  flex: none;
}
.pd-section > p { margin: 0 !important; }
.pd-points {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  display: grid;
  gap: 8px;
}
.pd-points li {
  position: relative;
  margin: 0 !important;
  padding-left: 20px;
  line-height: 1.65;
}
.pd-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand, #3b6bff);
  opacity: .55;
}
.desc-image { display: block; max-width: 100%; height: auto; margin: 12px 0; border-radius: 12px;
  content-visibility: auto; contain-intrinsic-size: 320px 240px; }


/* Image zoom overlay */
.image-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 18, .92);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.image-zoom img { max-width: min(1400px, 96vw); max-height: 92vh; border-radius: 12px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }


/* Gallery fade-in over colour placeholder */
.gallery-main img { opacity: 0; transition: opacity .25s ease; background-size: cover; background-position: center; }
.gallery-main img.loaded { opacity: 1; }


/* Description image editor */
.desc-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.desc-drop { border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px;
  background: var(--surface-2); margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.desc-drop.dragging { border-color: var(--brand); background: rgba(47, 91, 255, .06); color: var(--brand); }
.desc-progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 8px; }
.desc-progress > div { height: 100%; background: var(--grad-brand); transition: width .2s; }


/* RTL: keep numbers, prices and codes LTR and isolated from surrounding text */
[dir="rtl"] .mono, [dir="rtl"] .price, [dir="rtl"] .pdp-price, [dir="rtl"] .money,
[dir="rtl"] .product-price, [dir="rtl"] .brand-stats b, [dir="rtl"] .kpi-value {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
[dir="rtl"] .spec-table td, [dir="rtl"] .data-table td.mono {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}
[dir="rtl"] .price-range, [dir="rtl"] .order-amount {
  unicode-bidi: plaintext;
}


/* Brand positioning line under the hero */
.hero-positioning { max-width: 64ch; margin-top: 14px; font-size: 13px; line-height: 1.7;
  color: #b9c6e6; border-inline-start: 2px solid rgba(255,255,255,.25); padding-inline-start: 12px; }


.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
/* No live platform yet: the row must not leave a gap in the pay bar. */
.footer-social[hidden], .footer-social:empty { display: none; }
.footer-social-link { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: #cfd8ee; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); padding: 0;
  position: relative; isolation: isolate; line-height: 0;
  transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, border-color .18s, background .18s; }
.footer-social-link svg { display: block; width: 24px; height: 24px; border-radius: 7px; }
/* ==========================================================================
   PDP Pro — product detail, editorial-commerce layout
   Sticky gallery, price ladder, buy card, supplier trust card.
   ========================================================================== */
.pdp { grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 40px; padding-block: 24px 20px; }
.pdp > div { min-width: 0; }
.pdp-head { display: flex; align-items: flex-start; gap: 14px; margin-top: 12px; }
.pdp-head h1 { flex: 1; min-width: 0; font-size: clamp(1.45rem, 2.1vw, 1.95rem); line-height: 1.22;
  letter-spacing: -.03em; font-weight: 700; margin: 0; }
.pdp-head-side { display: flex; gap: 6px; flex: none; padding-top: 2px; }
.pdp-head-side .icon-btn { border: 1px solid var(--line); background: var(--surface); }
.pdp-fav.active { color: #e5484d; border-color: rgba(229, 72, 77, .35); background: rgba(229, 72, 77, .08); }
.pdp-fav.active .icon { fill: currentColor; }
[dir="rtl"] .pdp-price-block .pdp-price { flex-direction: row-reverse; }
[dir="rtl"] .pdp-price-block .pdp-price span { direction: ltr; }

.pdp-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px;
  font-size: 12.5px; color: var(--muted); }
.pdp-meta .tick { width: 14px; height: 14px; }
.pdp-meta-cat { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-weight: 600; }
.pdp-meta-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.pdp-meta .row, .pdp-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Price block ------------------------------------------------------------- */
.pdp-price-block {
  margin-block: 18px 16px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 7%, var(--surface)) 0%, var(--surface) 62%);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  box-shadow: 0 1px 2px rgba(10, 17, 34, .04);
}
.pdp-price-block .pdp-price { margin: 0; gap: 8px; }
.pdp-price-block .pdp-price b { font-size: clamp(1.7rem, 2.4vw, 2.1rem); color: var(--ink); font-weight: 700; }
.pdp-price-block .pdp-price span { font-size: 13.5px; }
.pdp-price-block .pdp-price em { font-style: normal; }
.pdp-price-note { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pdp-price-note .tick { width: 14px; height: 14px; flex: none; color: var(--brand); }
.pdp-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px;
  padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--line-strong) 70%, transparent); }
.pdp-mini > div { min-width: 0; }
.pdp-mini span { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.pdp-mini b { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.pdp-mini em { font-style: normal; font-size: 11px; color: var(--muted); margin-inline-start: 2px; }

/* Chips (replaces the old 3-cell fact grid) -------------------------------- */
.pdp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 4px 18px; }
.pdp-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.pdp-chip .tick { width: 15px; height: 15px; color: var(--faint); }
.pdp-chip b { color: var(--ink); font-weight: 650; }
.pdp-chip.pdp-chip-pay {
  height: auto; min-height: 34px; padding: 6px 12px; border-radius: 12px;
  flex-wrap: wrap; align-items: baseline; row-gap: 2px; line-height: 1.45;
}
.pdp-chip.pdp-chip-pay b { font-weight: 600; letter-spacing: .01em; }

/* Variants ---------------------------------------------------------------- */
.pdp .chip[data-variant] { height: auto; min-height: 38px; padding: 7px 14px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 6px; }
.pdp .chip[data-variant].active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Buy card ---------------------------------------------------------------- */
.buy-card { margin-top: 6px; padding: 18px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.buy-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.buy-card-row { display: flex; gap: 8px; align-items: stretch; }
.qty-stepper { display: inline-flex; align-items: stretch; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.qty-stepper .input { width: 92px; min-height: 0; height: 100%; border: 0; border-radius: 0;
  text-align: center; font-weight: 650; font-size: 14px; padding: 0; background: transparent; }
.qty-stepper .input:focus { box-shadow: none; outline: none; }
.qty-stepper .input::-webkit-outer-spin-button,
.qty-stepper .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 38px; display: grid; place-items: center; color: var(--ink-2); background: transparent;
  transition: background .16s, color .16s; }
.qty-btn:hover { background: var(--surface-3); color: var(--ink); }
.qty-btn .icon { width: 15px; height: 15px; }
.unit-chip { display: inline-flex; align-items: center; padding: 0 14px; border-radius: 12px;
  background: var(--surface-3); font-size: 12.5px; color: var(--muted); }

.buy-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.buy-tiers:empty { display: none; }
.tier { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); text-align: center;
  transition: border-color .16s, background .16s, transform .16s var(--ease); }
.tier:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.tier.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.tier-range { font-size: 10.5px; color: var(--faint); }
.tier b { font-size: 13px; color: var(--ink); letter-spacing: -.01em; }
.tier.active b { color: var(--brand-600); }

.buy-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.buy-total-row b { font-size: 1.25rem; letter-spacing: -.02em; }
.buy-actions { display: flex; gap: 8px; margin-top: 12px; }
.buy-actions .btn { min-height: 50px; font-size: 14.5px; }
.buy-actions .btn-outline { flex: none; padding-inline: 16px; }
.buy-add-label { display: inline; }
.buy-secondary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.buy-secondary .btn { min-height: 40px; padding-inline: 6px; font-size: 12.5px; gap: 5px; }
.buy-secondary .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy-secondary .tick { width: 15px; height: 15px; flex: none; }

/* AI questions ------------------------------------------------------------ */
.pdp [data-questions] { padding: 14px 16px; border-radius: 16px; background: var(--surface-2);
  border: 1px dashed var(--line-strong); }
.pdp [data-questions] .chip-sm { background: var(--surface); border-radius: 999px; }

/* Supplier card ----------------------------------------------------------- */
.supplier-card { margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.supplier-card-top { display: flex; align-items: center; gap: 12px; }
.supplier-card-top .supplier-logo { border-radius: 16px; }
.supplier-card .supplier-name { display: block; font-weight: 680; font-size: 15px; letter-spacing: -.015em;
  line-height: 1.3; color: var(--ink); }
.supplier-card .supplier-name:hover { color: var(--brand); }
.supplier-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.badge-pill { border-radius: 999px; }
.supplier-card-top > .btn { flex: none; border-radius: 999px; height: 34px; }
.supplier-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line); }
.supplier-facts b { display: block; font-family: var(--mono); font-size: 17px; letter-spacing: -.03em; color: var(--ink); }
.supplier-facts b em { font-style: normal; font-size: 11px; margin-inline-start: 1px; }
.supplier-facts span { display: block; margin-top: 2px; font-size: 11px; color: var(--faint); }
.supplier-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.supplier-foot span { display: inline-flex; align-items: center; gap: 5px; }
.supplier-foot .tick { width: 14px; height: 14px; color: var(--faint); }

/* Trust row --------------------------------------------------------------- */
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.trust-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.trust-item .tick { width: 16px; height: 16px; color: var(--success); flex: none; }

/* Specs panel ------------------------------------------------------------- */
.pdp-specs .spec-caret { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.pdp-specs [data-specs-toggle].is-open .spec-caret { transform: rotate(180deg); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.spec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--surface); min-width: 0; }
.spec-row dt { font-size: 12px; color: var(--muted); flex: none; max-width: 46%; }
.spec-row dd { margin: 0; font-size: 12.5px; color: var(--ink); font-weight: 550; text-align: end;
  overflow-wrap: anywhere; }
.pdp-specs[data-open="0"] .spec-row.is-extra { display: none; }
.pdp-specs[data-open="1"] .spec-more { display: none; }
.spec-more { margin-top: 10px; width: 100%; color: var(--brand); }

/* Sticky gallery on tall screens ------------------------------------------ */
@media (min-width: 1025px) {
  .pdp > div:first-child { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
  .pdp > div:first-child { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
    scrollbar-width: thin; padding-inline-end: 4px; }
}
.pdp .gallery-thumbs { gap: 8px; padding-bottom: 2px; }
.pdp .gallery-thumb { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 12px; opacity: .72;
  transition: opacity .18s, border-color .18s, transform .18s var(--ease); }
.pdp .gallery-thumb:hover { opacity: 1; transform: translateY(-1px); }

@media (max-width: 1024px) {
  .pdp { gap: 26px; padding-block: 18px; }
}
@media (max-width: 760px) {
  .pdp-price-block { padding: 16px; border-radius: 18px; }
  .pdp-mini { grid-template-columns: 1fr 1fr; }
  .pdp-mini > div:last-child { grid-column: 1 / -1; }
  .buy-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-add-label { display: none; }
  .buy-actions .btn-outline { padding-inline: 14px; }
  .spec-grid { grid-template-columns: 1fr; }
  .trust-row, .buy-secondary { grid-template-columns: 1fr; }
  .supplier-card-top { flex-wrap: wrap; }
  .pdp-head { gap: 10px; }
}


/* ==========================================================================
   Mobile experience layer (<= 760px)
   --------------------------------------------------------------------------
   Phone users are ~70% of B2B traffic in emerging markets, and the desktop
   header (language, theme, currency, cart, favourites, messages, account) was
   631px wide — it pushed every page to 800px and left the whole site scrolling
   sideways. This layer rebuilds the header for phones, moves the secondary
   actions into a full drawer, and enforces 44px touch targets and safe-area
   insets so pages render correctly on notched devices.
   ========================================================================== */

/* Reusable: hidden on phones, visible on desktop. Elements carrying it are
   duplicated inside the drawer, so hiding them loses no functionality. */
.header-only { display: flex; }

/* Header bar: brand | [cart] [menu], no horizontal overflow. */
.header-inner {
  gap: 10px;
  height: var(--header-h);
  min-width: 0;
}
.brand { min-width: 0; flex: 0 1 auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions {
  flex: 0 0 auto;
  gap: 2px;
  min-width: 0;
}

@media (max-width: 760px) {
  /* -- hard stop on horizontal scrolling -------------------------------- */
  html, body { overflow-x: hidden; max-width: 100%; }
  .container { padding-inline: 16px; }

  .header-only { display: none !important; }
  .header-inner { gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .icon-btn { width: 42px; height: 42px; border-radius: 12px; }

  /* Drawer shell -------------------------------------------------------- */
  .mobile-drawer {
    position: fixed;
    inset-inline: 0;
    top: var(--header-h);
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    animation: drawer-in .22s var(--ease-out);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 59;
  }
  @keyframes drawer-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }
  .mobile-drawer.hidden { display: none; }
  .drawer-body { display: flex; flex-direction: column; gap: 4px; padding-block: 14px; }
  .drawer-search { margin-bottom: 8px; }
  .drawer-search .input { min-height: 44px; }

  .drawer-user, .drawer-cta {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 8px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  }
  .drawer-cta .btn { min-height: 44px; }

  .drawer-group {
    display: flex; flex-direction: column; gap: 2px;
    padding-block: 6px;
    border-bottom: 1px solid var(--line);
  }
  .drawer-link {
    display: flex; align-items: center; gap: 12px;
    min-height: 48px; padding: 0 12px;
    border-radius: 12px;
    font-size: 15px; font-weight: 550; color: var(--ink-2);
    width: 100%; text-align: start;
  }
  .drawer-link svg { width: 19px; height: 19px; color: var(--faint); flex: none; }
  .drawer-link:active { background: var(--surface-3); }
  .drawer-link.danger { color: #e5484d; margin-top: 8px; }
  .drawer-link.danger svg { color: #e5484d; }
  .drawer-chev { width: 16px !important; height: 16px !important; opacity: .5; }

  .drawer-section { padding: 12px 4px 4px; }
  .drawer-locales { gap: 6px; }
  .drawer-locales .chip { min-height: 38px; }

  .drawer-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 8px; border-bottom: 1px solid var(--line);
  }

  /* iOS-style switch for dark mode */
  .switch {
    width: 50px; height: 30px; border-radius: 999px; flex: none;
    background: var(--surface-3); border: 1px solid var(--line);
    position: relative; transition: background .2s;
  }
  .switch[aria-checked="true"] { background: var(--brand); border-color: transparent; }
  .switch-dot {
    position: absolute; top: 3px; inset-inline-start: 3px;
    width: 22px; height: 22px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease-out);
  }
  .switch[aria-checked="true"] .switch-dot { transform: translateX(20px); }
  [dir="rtl"] .switch[aria-checked="true"] .switch-dot { transform: translateX(-20px); }

  /* -- touch targets ---------------------------------------------------- */
  .btn, .btn-sm { min-height: 44px; }
  .btn-sm { padding-inline: 16px; }
  .chip { min-height: 36px; }
  .menu-item, .nav-link { min-height: 44px; }
  .icon-btn { min-width: 42px; min-height: 42px; }
  input.input, select.input, textarea.input { min-height: 46px; font-size: 16px; }

  /* -- typography & rhythm ---------------------------------------------- */
  .section { padding-block: 40px; }
  h1 { font-size: 1.85rem; line-height: 1.15; }
  h2 { font-size: 1.45rem; line-height: 1.2; }
  .section-head h2 { font-size: 1.4rem; }

  /* Product grids: 2-up reads far better than one giant card per row. */
  .product-grid, .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 11px 12px 12px; gap: 6px; }
  .product-title { font-size: 13px; min-height: 0; -webkit-line-clamp: 2; display: -webkit-box;
    -webkit-box-orient: vertical; overflow: hidden; }
  .product-price b { font-size: 15px; }
  .product-meta, .product-supplier { font-size: 11.5px; }
  .product-fav { opacity: 1; transform: none; width: 30px; height: 30px; }

  /* Tables and wide widgets scroll inside their own box, never the page. */
  .table-wrap, .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  img, video, table, pre { max-width: 100%; }
  pre { overflow-x: auto; }

  /* Modals become bottom sheets. */
  .modal {
    max-height: 88vh;
    width: 100%;
    border-radius: 22px 22px 0 0;
    animation: sheet-up .24s var(--ease-out);
  }
  @keyframes sheet-up { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }

  /* Sticky action bars respect the home indicator. */
  .pdp-buy-bar, .sticky-cta, .buy-bar {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 520px) {
  .container { padding-inline: 14px; }
  .hero-stat b { font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid, .grid-products { gap: 10px; }
  .product-body { padding: 10px; }
  .product-title { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-drawer, .modal { animation: none; }
}

/* ------------------------------------------------------------ video feed
   Full-viewport short-video feed (buyer /videos).
   The scroller owns the height so `scroll-snap` can lock exactly one clip per
   swipe; `dvh` keeps mobile browsers from reserving space for their chrome. */
.vf-app {
  position: relative;
  height: 100dvh;
  background: #000;
  overflow: hidden;
  overscroll-behavior: none;
}
.vf-scroller {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vf-scroller::-webkit-scrollbar { display: none; }

.vf-slide {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}
/* Double-tap like: blooms from the touch point, then fades upward. */
.vf-heart-bloom {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 96px;
  line-height: 1;
  color: #ff2d55;
  text-shadow: 0 4px 22px rgba(0, 0, 0, .45);
  pointer-events: none;
  z-index: 5;
  animation: vf-heart-bloom .85s cubic-bezier(.2, .8, .3, 1) forwards;
  will-change: transform, opacity;
}
@keyframes vf-heart-bloom {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.25) rotate(-12deg); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1.18) rotate(4deg); }
  55%  { transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .vf-heart-bloom { animation-duration: .01ms; }
}
.vf-video, .vf-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.vf-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vf-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s ease;
  pointer-events: none;
}
.vf-poster.is-hidden { opacity: 0; }

/* Tap layer sits above the video but below the controls. */
.vf-tap {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1;
}

.vf-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-top, 0px));
  background: linear-gradient(#000a, transparent);
  pointer-events: none;
}
.vf-topbar > * { pointer-events: auto; }
.vf-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: #ffffff1f;
  rotate: 180deg;
}
.vf-tabs { display: flex; gap: 6px; margin-inline: auto; }
.vf-tab {
  border: 0;
  background: transparent;
  color: #ffffffb3;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.vf-tab.active { color: #fff; background: #ffffff26; }

.vf-mute-badge {
  position: absolute;
  top: calc(58px + env(safe-area-inset-top, 0px));
  inset-inline-end: 14px;
  z-index: 5;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #0000007a;
  color: #fff;
  font-size: 13px;
  pointer-events: auto;
  cursor: pointer;
}

/* Bottom info panel: product name, price, MOQ, seller, CTA. */
.vf-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 60px 16px calc(22px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, #000000e6 55%, #000000f2);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(100%, 720px);
  margin-inline: auto;
}
.vf-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vf-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.vf-price { color: #ffd166; font-weight: 700; font-size: 15px; }
.vf-moq { color: #ffffffcc; }
.vf-seller { display: inline-flex; align-items: center; gap: 4px; color: #ffffffb3; }
.vf-seller svg { width: 13px; height: 13px; }
.vf-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand, #2f6bff);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.vf-cta svg { width: 15px; height: 15px; flex: none; }

/* Right-hand action rail. */
.vf-actions {
  position: absolute;
  inset-inline-end: 10px;
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  /* Five actions now share the rail, so the gap is tighter than the original
     three-button layout and still leaves the progress bar clear. */
  gap: 13px;
  align-items: center;
}
.vf-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
}
.vf-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff1f;
  backdrop-filter: blur(6px);
  transition: transform .15s ease, background .15s ease;
}
.vf-action-icon svg { width: 21px; height: 21px; }
.vf-action:active .vf-action-icon { transform: scale(.92); }
.vf-action.is-liked { color: #ff4d6d; }
.vf-action.is-liked .vf-action-icon { background: #ff4d6d2e; }
.vf-action.is-saved { color: #ffc53d; }
.vf-action.is-saved .vf-action-icon { background: #ffc53d2e; }
.vf-action b { font-weight: 600; font-size: 11px; }

/* Comment sheet: slides over the clip without unmounting it, so playback
   keeps its position behind the scrim. */
.vf-comments {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  max-height: 62%;
  padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: #0b1220f2;
  color: #fff;
  backdrop-filter: blur(14px);
  animation: vf-sheet-up .22s ease;
}
.vf-comments[hidden] { display: none; }
@keyframes vf-sheet-up { from { transform: translateY(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.vf-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #ffffff1f;
}
.vf-sheet-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ffffff1a;
  color: #fff;
  cursor: pointer;
}
.vf-sheet-list { flex: 1 1 auto; overflow-y: auto; padding: 10px 0; overscroll-behavior: contain; }
.vf-sheet-empty { padding: 22px 0; text-align: center; color: #ffffff8c; font-size: 13px; }
.vf-comment { padding: 8px 0; border-bottom: 1px solid #ffffff12; }
.vf-comment:last-child { border-bottom: 0; }
.vf-comment-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #ffffff8c; }
.vf-comment-head b { color: #fff; font-weight: 600; }
.vf-comment-body { margin-top: 3px; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.vf-comment.is-mine .vf-comment-head b { color: #7cc4ff; }
.vf-sheet-form { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #ffffff1f; }
.vf-sheet-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  background: #ffffff14;
  color: #fff;
  font-size: 13.5px;
}
.vf-sheet-form input::placeholder { color: #ffffff73; }
.vf-sheet-form button { height: 36px; border-radius: 999px; }

/* Thin playback bar pinned to the slide bottom. */
.vf-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #ffffff26;
  z-index: 5;
}
.vf-progress i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}

.vf-loading, .vf-empty { height: 100dvh; display: grid; place-items: center; }
.vf-empty { color: #ffffffb3; text-align: center; padding: 24px; }

@media (min-width: 900px) {
  /* Desktop keeps a phone-sized stage instead of stretching to full width. */
  .vf-app { max-width: 520px; margin-inline: auto; border-inline: 1px solid #ffffff14; }
  .vf-slide { height: 100dvh; max-height: 100dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .vf-poster { transition: none; }
  .vf-progress i { transition: none; }
}

/* Immersive video route: hide the site chrome so the feed owns the viewport.
   The class is toggled by pages/videos.js and removed on teardown. */
body.vf-route { background: #000; overscroll-behavior: none; }
body.vf-route #site-header-slot,
body.vf-route #site-footer-slot { display: none; }
body.vf-route #main { padding: 0; margin: 0; max-width: none; }
body.vf-route #main > .vf-app { height: 100dvh; }

/* Product page: inline product video above the gallery. */
.pdp-video-slot[hidden] { display: none; }
.pdp-video-block { margin-bottom: 14px; }
.pdp-video {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.pdp-video video, .pdp-video img, .pdp-video iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-video-embed { border: 0; padding: 0; cursor: pointer; width: 100%; }
.pdp-video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #000000a6;
  color: #fff;
  cursor: pointer;
  transition: opacity .2s ease;
  backdrop-filter: blur(4px);
}
.pdp-video-play svg { width: 26px; height: 26px; }
.pdp-video.is-playing .pdp-video-play { opacity: 0; pointer-events: none; }
.pdp-video-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #000000a6;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.pdp-video-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px 0;
  font-size: 13px;
}
/* Carousel strip: one thumbnail per clip when a product carries several. */
.pdp-video-strip {
  display: flex;
  gap: 8px;
  padding: 10px 2px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pdp-video-thumb {
  position: relative;
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.pdp-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-video-thumb:hover { transform: translateY(-1px); }
.pdp-video-thumb.is-active { border-color: var(--accent, #2563eb); }
.pdp-video-thumb-n {
  position: absolute;
  left: 4px;
  bottom: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}
.pdp-video-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 2px 4px;
  scrollbar-width: thin;
}
.pdp-video-rail-all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand, #2f6bff);
  text-decoration: none;
  padding: 0 8px;
}
.pdp-video-card {
  flex: none;
  width: 96px;
  text-decoration: none;
  color: inherit;
  font-size: 11.5px;
  line-height: 1.3;
}
.pdp-video-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
  display: block;
  margin-bottom: 4px;
}
.pdp-video-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Merchant video library (dashboard → 视频集). */
.video-lib {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.video-lib-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.video-lib-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0b1020;
}
.video-lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-lib-noimg { display: grid; place-items: center; height: 100%; color: #ffffff66; font-size: 12px; }
.video-lib-thumb .badge { position: absolute; top: 8px; inset-inline-start: 8px; }
.video-lib-dur {
  position: absolute;
  bottom: 8px;
  inset-inline-end: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: #000000b3;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.video-lib-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-lib-body b { font-size: 13.5px; }
.video-lib-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.video-lib-note {
  font-size: 12px;
  color: #b42318;
  background: #fee4e2;
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 2px;
}
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand, #2f6bff); transition: width .2s ease; }

/* Status tones reused across video UI. */
.small.ok { color: #067647; }
.small.bad { color: #b42318; }
.badge-ok { background: #dcfae6; color: #067647; }
.badge-warn { background: #fef0c7; color: #b54708; }
.badge-bad { background: #fee4e2; color: #b42318; }

/* Admin video console. */
.adm-video-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.adm-video-thumb {
  position: relative;
  width: 64px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1020;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #ffffff59;
}
.adm-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-video-thumb b {
  position: absolute;
  bottom: 2px;
  inset-inline-end: 3px;
  font-size: 9.5px;
  color: #fff;
  background: #000000b3;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 600;
}
.adm-video-preview { border-radius: 12px; overflow: hidden; background: #000; }
.adm-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.adm-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-kpi span { font-size: 11.5px; color: var(--muted); }
.adm-kpi b { font-size: 17px; }
.adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.adm-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.adm-bars { display: flex; flex-direction: column; gap: 9px; }
.adm-bar-row { display: grid; grid-template-columns: 104px 1fr 68px; align-items: center; gap: 10px; }
.adm-bar-label { font-size: 12px; color: var(--ink-2); }
.adm-bar-track { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.adm-bar-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2f6bff, #6d9bff); }
.adm-bar-value { font-size: 12px; text-align: end; font-variant-numeric: tabular-nums; }
.adm-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0 4px;
}

/* ---------------------------------------------------------- my videos shelf */
.myv-page { padding-block: 28px 60px; }
.myv-section { margin-top: 30px; }
.myv-heading { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.myv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.myv-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.myv-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #00000014; }
.myv-thumb { position: relative; aspect-ratio: 3 / 4; background: #0b1220; overflow: hidden; }
.myv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.myv-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #00000059;
  color: #fff;
  backdrop-filter: blur(4px);
}
.myv-play svg { width: 20px; height: 20px; transform: rotate(90deg); }
.myv-time {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #000000a6;
  color: #fff;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.myv-body { padding: 9px 10px 11px; }
.myv-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.myv-meta { margin-top: 5px; display: flex; gap: 10px; font-size: 11.5px; color: var(--faint); }
.myv-empty {
  padding: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.myv-more { margin-top: 34px; display: inline-flex; gap: 6px; align-items: center; }

@media (max-width: 760px) {
  .myv-page { padding-block: 16px 40px; }
  .myv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .myv-heading { font-size: 15px; }
  .myv-title { font-size: 12.5px; }
}

/* ------------------------------------------------ admin console: table bits */
/* Selection state for list pages that support bulk actions (商机管理). */
.data-table tr.row-selected td { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.data-table tr.row-selected:hover td { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.data-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.btn-xs { min-height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.select-sm { min-height: 34px; padding-block: 0; font-size: 13px; }

.adm-toolbar { padding: 12px 16px; margin-bottom: 14px; border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pager-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }

.card-tight { padding: 10px 12px; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }
.text-danger { color: var(--danger, #d23b3b); }
.text-success { color: var(--success, #12855b); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.image-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* ------------------------------------------------- buyer console: 我的商机 */
.myrfq-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.myrfq-kpi {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.myrfq-kpi b { font-size: 24px; line-height: 1.1; }
.myrfq-kpi.is-brand { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.myrfq-kpi.is-violet b { color: #7c4dff; }
.myrfq-kpi.is-success b { color: var(--success); }

.myrfq-list { display: flex; flex-direction: column; gap: 12px; }
.myrfq-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease;
}
.myrfq-card:hover { border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); box-shadow: var(--shadow-sm); }
.myrfq-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.myrfq-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px;
  border-inline-start: 1px dashed var(--line); padding-inline-start: 18px; }
.myrfq-quotes { display: flex; align-items: baseline; gap: 6px; }
.myrfq-quotes b { font-size: 26px; line-height: 1; }

.compare-tip {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px;
  border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}
.compare-list { display: flex; flex-direction: column; gap: 8px; }
.compare-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 110px 120px auto;
  gap: 12px; align-items: center; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.compare-row.is-best { border-color: color-mix(in srgb, var(--success) 40%, var(--line));
  background: color-mix(in srgb, var(--success) 6%, var(--surface)); }
.compare-rank { color: var(--faint); font-size: 13px; }
.compare-company { min-width: 0; }
.compare-price { text-align: end; font-weight: 600; }
.compare-score { display: flex; flex-direction: column; gap: 4px; }
.score-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #7c4dff); }
.compare-actions { text-align: end; }

@media (max-width: 860px) {
  .myrfq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .myrfq-card { grid-template-columns: minmax(0, 1fr); }
  .myrfq-side { border-inline-start: 0; padding-inline-start: 0; align-items: flex-start;
    border-top: 1px dashed var(--line); padding-top: 14px; }
  .compare-row { grid-template-columns: 28px minmax(0, 1fr) 90px; }
  .compare-score, .compare-actions { grid-column: 2 / -1; }
}

/* Mobile mailbox H5 */
.mm-shell{max-width:680px;margin:0 auto;min-height:100vh;background:var(--bg);padding-bottom:24px}
.mm-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--card);border-bottom:1px solid var(--line)}
.mm-head b{flex:1;font-size:17px}.mm-back{font-size:30px;line-height:1;color:var(--text);text-decoration:none}
.mm-sync{border:0;background:transparent;color:var(--brand);font-weight:600}
.mm-tabs{display:flex;background:var(--card);border-bottom:1px solid var(--line)}
.mm-tabs button{flex:1;padding:12px;border:0;background:transparent;color:var(--muted);font-weight:600}
.mm-tabs button.on{color:var(--brand);box-shadow:inset 0 -2px 0 var(--brand)}
.mm-main{padding:12px}.mm-list{display:flex;flex-direction:column;gap:8px}
.mm-mail{text-align:left;border:1px solid var(--line);border-radius:14px;background:var(--card);padding:12px;display:grid;grid-template-columns:1fr auto;gap:3px}
.mm-mail.unread{border-left:3px solid var(--brand)}.mm-from{font-weight:700;font-size:13px;overflow:hidden;text-overflow:ellipsis}
.mm-subject{font-size:14px;grid-column:1/-1}.mm-snippet{grid-column:1/-1;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-time{font-size:11px;color:var(--muted)}.mm-empty{text-align:center;padding:48px 16px;color:var(--muted)}
.mm-form{display:flex;flex-direction:column;gap:12px}.mm-form label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--muted)}
.mm-read h2{margin:10px 0}.mm-body{white-space:pre-wrap;font-size:14px;line-height:1.6;margin:16px 0;word-break:break-word}
.mm-attach{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
@media(min-width:720px){.mm-shell{margin:24px auto;border:1px solid var(--line);border-radius:18px;min-height:auto}}

/* Supplier ranking page */
.supplier-rank-page .supplier-rank-tabs { display:flex; gap:6px; overflow-x:auto; padding:4px 0 14px; }
.supplier-rank-page .supplier-tab { border:1px solid var(--line); background:var(--surface); color:var(--text); border-radius:999px; padding:9px 16px; font-size:.86rem; white-space:nowrap; cursor:pointer; }
.supplier-rank-page .supplier-tab.active { background:var(--brand); border-color:var(--brand); color:#fff; font-weight:700; }
.supplier-rank-toolbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:12px 0 16px; border-bottom:1px solid var(--line); margin-bottom:16px; }
.supplier-rank-list { display:flex; flex-direction:column; gap:12px; }
.supplier-rank { display:grid; grid-template-columns:44px minmax(0,1fr) 300px; gap:14px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.supplier-rank-no { font-weight:800; font-size:1.1rem; color:var(--brand); }
.supplier-rank-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.supplier-rank-head h3 { font-size:1.02rem; margin:0; line-height:1.35; }
.supplier-rank-head h3 a { color:var(--text); }
.supplier-rank-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:10px 0; border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); }
.supplier-rank-meta span { display:block; font-size:.68rem; color:var(--muted); margin-bottom:2px; }
.supplier-rank-meta b { font-size:.85rem; font-weight:700; }
.supplier-rank-products { display:flex; gap:6px; align-items:center; flex-wrap:wrap; padding-top:10px; }
.supplier-rank-thumbs { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; align-content:start; }
.supplier-rank-thumb { display:block; aspect-ratio:1; border-radius:10px; overflow:hidden; background:var(--surface-2); }
.supplier-rank-thumb img { width:100%; height:100%; object-fit:cover; }
.supplier-rank-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:center; min-height:100px; border:1px dashed var(--line); border-radius:10px; color:var(--muted); font-size:.75rem; }
@media (max-width:900px){ .supplier-rank { grid-template-columns:34px minmax(0,1fr); } .supplier-rank-thumbs { grid-column:2; } .supplier-rank-meta { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .supplier-rank { padding:12px; grid-template-columns:1fr; } .supplier-rank-no { font-size:.9rem; } .supplier-rank-thumbs { grid-column:1; grid-template-columns:repeat(3,1fr); } .supplier-rank-head { flex-direction:column; } }

.supplier-rank-toolbar .select { width:auto; min-width:180px; }
.supplier-rank-toolbar .row { margin:0; }
.supplier-rank-tabs::-webkit-scrollbar { height:6px; }
.supplier-rank-tabs::-webkit-scrollbar-thumb { background:var(--line); border-radius:999px; }

/* Similar businesses on company profile */
.similar-business-list { display:flex; flex-direction:column; gap:10px; }
.similar-business { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:12px; padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.similar-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.similar-head h3 { font-size:1rem; margin:0; line-height:1.35; }
.similar-head h3 a { color:var(--text); }
.similar-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:9px 0; border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); }
.similar-meta span { display:block; font-size:.68rem; color:var(--muted); margin-bottom:2px; }
.similar-meta b { font-size:.82rem; }
.similar-products { display:flex; gap:6px; align-items:center; flex-wrap:wrap; padding-top:9px; }
.similar-thumbs { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; align-content:start; }
.similar-thumb { display:block; aspect-ratio:1; border-radius:9px; overflow:hidden; background:var(--surface-2); }
.similar-thumb img { width:100%; height:100%; object-fit:cover; }
.similar-empty { grid-column:1/-1; display:flex; align-items:center; justify-content:center; min-height:100px; border:1px dashed var(--line); border-radius:9px; font-size:.72rem; color:var(--muted); }
@media (max-width:900px){ .similar-business { grid-template-columns:1fr; } .similar-meta { grid-template-columns:repeat(2,1fr); } }

.badge-warm { background:#fff3e0; color:#b45309; border-color:#fed7aa; }

.similar-products .store-profile { margin-left:auto; color:var(--brand); white-space:nowrap; }

/* Home trending: compact four-up cards so the product photo never dominates. */
.home-trending { gap: 14px; }
.home-trending .product-media { aspect-ratio: 16 / 10; max-height: 150px; }
.home-trending .product-body { padding: 11px 12px 12px; gap: 6px; }
.home-trending .product-title { font-size: 13px; line-height: 1.35; min-height: 2.6em; }
.home-trending .product-price b { font-size: 15px; }
.home-trending .product-price span { font-size: 11px; }
.home-trending .product-meta { font-size: 11px; }
.home-trending .product-supplier { font-size: 11px; gap: 4px; }
.home-trending .product-card .btn-xs { display: none; }
.home-trending .product-fav { width: 28px; height: 28px; }
.home-trending .product-flags { top: 8px; inset-inline-start: 8px; }
.home-trending .product-flags .badge { font-size: 10px; padding: 2px 7px; }
/* Home trending final layout: always a compact four-up rail on desktop. */
.home-trending {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-trending > * { min-width: 0; }
.home-trending .product-card { min-width: 0; }
.home-trending .product-media {
  width: 100%;
  height: 140px;
  max-height: 140px;
  aspect-ratio: auto;
}
.home-trending .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .home-trending { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
/* Homepage rails: newest 100 + bestselling 100, five cards per row on desktop. */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home-products-grid > * { min-width: 0; }
.home-products-grid .product-card { min-width: 0; }
.home-products-grid .product-media {
  width: 100%;
  height: 140px;
  max-height: 140px;
  aspect-ratio: auto;
}
.home-products-grid .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-products-grid .product-body { padding: 10px 11px 11px; gap: 5px; }
.home-products-grid .product-title { font-size: 12.5px; line-height: 1.35; min-height: 2.7em; }
.home-products-grid .product-price b { font-size: 14px; }
.home-products-grid .product-price span { font-size: 10.5px; }
.home-products-grid .product-meta { font-size: 10.5px; }
.home-products-grid .product-supplier { font-size: 10.5px; }
.home-products-grid .product-card .btn-xs { display: none; }
.home-products-grid .product-fav { width: 27px; height: 27px; }
.home-rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 1180px) {
  .home-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-products-grid .product-media { height: 112px; max-height: 112px; }
  .home-products-grid .product-title { font-size: 12px; }
}



/* Seller product category cascade: level 1 -> level 2 -> level 3. */
.category-cascade {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.category-cascade select { min-width: 0; }
@media (max-width: 760px) {
  .category-cascade { grid-template-columns: 1fr; }
}

.badge-green { background: rgba(34, 197, 94, .14); color: #15803d; }
[data-theme="dark"] .badge-green { background: rgba(34, 197, 94, .18); color: #86efac; }

/* Image search: uploaded/cropped previews and result header */
.image-search-result-head{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.image-search-thumbs{display:flex;gap:10px;align-items:flex-start}
.image-search-thumbs figure{margin:0;text-align:center}
.image-search-thumbs img{width:150px;height:150px;object-fit:cover;border:1px solid var(--line);border-radius:12px;background:var(--surface-3)}
.image-search-thumbs figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.image-search-meta{flex:1;min-width:220px}
@media(max-width:640px){.image-search-thumbs img{width:110px;height:110px}}

/* Search bar: keep camera/search/mic actions inside the pill */
.header-search { max-width: 520px !important; }
.header-search > .input { flex: 1 1 auto; min-width: 0; width: auto; }
.header-search-actions { position: relative; z-index: 2; padding-inline-end: 6px; background: transparent; }
.header-search-actions .icon-btn { width: 32px; height: 32px; min-width: 32px; padding: 0; }
@media (max-width: 900px) { .header-search-actions { display: none !important; } }

/* Keep camera/search/mic inside the header pill without squeezing the input */
.header-search { position: relative; }
.header-search > .input { padding-inline-end: 104px; }
.header-search-actions { position: absolute !important; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); background: var(--surface); border-radius: 999px; padding: 2px; }


/* ---------------------------------------------------- search pro max */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 420px;
  width: min(100%, 520px);
  max-width: 520px !important;
  min-width: 0;
  height: 48px;
  padding: 5px 6px 5px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
  box-shadow: 0 6px 18px rgba(10, 17, 34, .06), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.header-search:focus-within {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent),
              0 12px 30px rgba(10, 17, 34, .10), inset 0 1px 0 #fff;
  transform: translateY(-1px);
}
.header-search > .input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  letter-spacing: -.01em;
}
.header-search > .input:focus { outline: none; box-shadow: none; }
.header-search-lead { display: inline-flex; flex: none; color: var(--brand); }
.header-search-lead svg { width: 18px; height: 18px; }
.header-search-clear {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-3);
  cursor: pointer;
}
.header-search-clear[hidden] { display: none; }
.header-search-clear:hover { color: var(--ink); background: var(--line); }
.header-search-clear svg { width: 13px; height: 13px; }
.header-search-kbd {
  flex: none;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--faint);
  background: #fff;
  font: 600 10px/1 var(--mono);
  letter-spacing: .02em;
}
.header-search-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-search-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.header-search-image:hover { color: var(--brand); background: var(--surface-2); border-color: var(--line); }
.header-search-image svg { width: 17px; height: 17px; }
.header-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #3a5bff 100%);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s;
}
.header-search-submit:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 7px 18px color-mix(in srgb, var(--brand) 38%, transparent); }
.header-search-submit svg { width: 15px; height: 15px; }
.header-search-voice { width: 32px; height: 32px; min-width: 32px; padding: 0; color: var(--muted); }
/* Icon-only search actions: keep the header pill compact at every width. */
.header-search-image,
.header-search-submit {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  justify-content: center;
}
.header-search-image span,
.header-search-submit span { display: none !important; }
.header-search-actions { gap: 2px; }
.header-search-image { width: 34px; min-width: 34px; height: 34px; }
.header-search { gap: 7px; padding-inline: 13px 5px; }
.header-search-kbd { display: none; }

.header-search-voice:hover { color: var(--brand); background: var(--surface-2); }

.qs-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 6px 10px; }
.qs-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.qs-chip:hover { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--surface-2); }

@media (max-width: 1280px) {
  .header-search { flex-basis: 320px; height: 46px; }
  .header-search-kbd { display: none; }
}
@media (max-width: 1120px) {
  .header-search-image span, .header-search-submit span { display: none; }
  .header-search-image { width: 34px; padding: 0; }
  .header-search-submit { width: 36px; padding: 0; }
}
@media (max-width: 900px) {
  .header-search { display: none; }
}


/* Store contact: registered buyers only */
.store-contact-gate { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 0 2px; }
.store-contact-lock {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 14px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  margin-bottom: 12px;
}
.store-contact-lock svg { width: 20px; height: 20px; }

/* Header search actions are icon-only; labels stay available via aria-label */
.header-search-actions button > span { display: none !important; }
.header-search-actions .icon { width: 18px; height: 18px; }

/* ==== auth-pro.css ==== */
/* Auth Pro Max — login / register surface. Scoped to the auth shell so it does
   not affect the marketing pages. */

body.auth-page .ai-root,
body.auth-page .ai-fab,
body.auth-page .ai-panel,
body.auth-page #mobile-tabbar,
body:has(.auth-shell) .ai-root,
body:has(.auth-shell) .ai-fab,
body:has(.auth-shell) .ai-panel,
body:has(.auth-shell) #mobile-tabbar {
  display: none !important;
}

body.auth-page,
body:has(.auth-shell) {
  background: #eef2f9;
}

.auth-shell {
  --auth-brand: #2f5bff;
  --auth-teal: #0f9f96;
  --auth-ink: #071527;
  --auth-muted: #5d6b82;
  grid-template-columns: minmax(0, 1.08fr) minmax(480px, .92fr);
  min-height: 100dvh;
}

.auth-side {
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(47, 91, 255, .34), transparent 55%),
    radial-gradient(700px 540px at 92% 92%, rgba(15, 159, 150, .22), transparent 60%),
    linear-gradient(145deg, #071527 0%, #0b1e3a 58%, #07121f 100%);
}

.auth-side-inner {
  padding: clamp(30px, 4vw, 68px);
}

.auth-brand-word {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  letter-spacing: -.055em;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #dbe5ff;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-quote {
  font-size: clamp(2.2rem, 3.2vw, 3.15rem);
  line-height: 1.06;
  max-width: 640px;
  letter-spacing: -.055em;
}

.auth-shell [hidden] { display: none !important; }

.auth-lede {
  max-width: 38ch;
  color: rgba(220, 232, 248, .82);
  font-size: 15px;
}

.auth-bullets li {
  padding: 6px 0;
}

/* Right column ------------------------------------------------------------ */
.auth-form-wrap {
  position: relative;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4vh, 44px) clamp(16px, 3vw, 40px);
  background:
    radial-gradient(900px 500px at 92% 0%, rgba(47, 91, 255, .09), transparent 64%),
    radial-gradient(700px 500px at 0% 100%, rgba(15, 159, 150, .07), transparent 62%),
    #f4f6fb;
  scrollbar-width: thin;
}

.auth-topbar {
  width: 100%;
  max-width: 488px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--auth-muted);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-weight: 650;
  text-decoration: none;
}

.auth-back:hover { color: var(--auth-brand); }

.auth-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0f766e;
  font-weight: 650;
}

.auth-secure::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.auth-panel,
.auth-card {
  width: 100%;
  max-width: 488px;
  margin: 0 auto;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 40px 90px -48px rgba(7, 21, 39, .45),
    0 2px 8px rgba(7, 21, 39, .04);
  animation: auth-rise .55s var(--ease-out) both;
}

.auth-tabs {
  background: #eef1f7;
  border-radius: 15px;
  padding: 5px;
}

.auth-tab {
  height: 44px;
  font-size: 14px;
  border-radius: 11px;
  color: #64748b;
}

.auth-tab.active { color: var(--auth-ink); }

.auth-tab-ink {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .08), 0 0 0 1px rgba(15, 23, 42, .05);
}

.auth-card-head {
  margin-top: 24px;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.auth-card-head h1 {
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  letter-spacing: -.045em;
}

.auth-card-head p {
  margin-top: 7px;
  font-size: 14px;
}

.auth-form {
  gap: 13px;
  margin-top: 20px;
}

.auth-input .input {
  height: 52px;
  border-radius: 14px;
  border-color: #d7dfe9;
  font-size: 14px;
}

.auth-input .input:focus {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, .13);
}

.auth-submit {
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(115deg, #2f5bff 0%, #0f9f96 115%) !important;
  box-shadow: 0 18px 38px -18px rgba(47, 91, 255, .76);
  font-size: 14.5px;
}

.auth-submit:hover:not(:disabled) {
  box-shadow: 0 22px 46px -18px rgba(47, 91, 255, .86);
}

.auth-switch {
  margin-top: 18px;
  font-size: 13px;
}

.auth-switch a { color: var(--auth-brand); }

.auth-divider {
  margin: 20px 0 14px;
  color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after { background: #e2e8f0; }

.auth-shell .oauth-grid {
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.auth-shell .oauth-btn {
  min-height: 46px;
  border-radius: 13px;
  border-color: #dbe2ea;
  font-size: 12.5px;
  background: #fff;
}

.auth-shell .oauth-btn:hover {
  border-color: rgba(47, 91, 255, .45);
  box-shadow: 0 8px 22px -16px rgba(47, 91, 255, .7);
}

.auth-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
  color: #748399;
  font-size: 11.5px;
}

.auth-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-trust .icon { width: 13px; height: 13px; color: #0f9f96; }

.auth-link { color: var(--auth-brand); }

.auth-role-card {
  border-radius: 15px;
  border-color: #dbe2ea;
}

.auth-role input:checked + .auth-role-card {
  border-color: var(--auth-brand);
  background: rgba(47, 91, 255, .045);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, .11);
}

.auth-role-ico {
  color: var(--auth-brand);
  background: rgba(47, 91, 255, .09);
}

.auth-qr .btn,
.auth-form .btn-outline {
  border-color: #dbe2ea;
}

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(440px, .95fr); }
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto;
    min-height: 100dvh;
  }
  .auth-shell > .auth-side { min-height: 0; }
  .auth-side-inner {
    min-height: 0;
    padding: 16px 18px 14px;
    gap: 0;
  }
  .auth-side-copy,
  .auth-side-meta,
  .auth-stage { display: none; }
  .auth-brand-word { font-size: 1.45rem; }
  .auth-form-wrap {
    display: block;
    padding: 10px 12px 40px;
    overflow: visible;
  }
  .auth-topbar { max-width: 100%; margin-bottom: 10px; }
  .auth-panel, .auth-card {
    max-width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
  }
  .auth-card-head { margin-top: 18px; }
  .auth-card-head h1 { font-size: 1.55rem; }
  .auth-form { gap: 11px; margin-top: 16px; }
  .auth-submit { height: 50px; }
  .auth-shell .oauth-grid { grid-template-columns: 1fr 1fr; }
  .auth-qr { margin: 8px 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-panel, .auth-card { animation: none; }
}

/* ==== admin.css ==== */

/* ========================================================================== */
/* 20. Admin console -------------------------------------------------------- */
/* ========================================================================== */
.adm-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - var(--header-h, 64px));
  background: var(--bg);
}

/* ---- sidebar ---- */
.adm-side {
  position: sticky;
  top: var(--header-h, 64px);
  height: calc(100vh - var(--header-h, 64px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
  z-index: 30;
}
.adm-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; }
.adm-brand-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-brand, var(--brand)); color: #fff; flex: none; }
.adm-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.adm-brand-text b { font-size: 14px; }
.adm-brand-text span { font-size: 11px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.adm-side-close { display: none; margin-inline-start: auto; }

.adm-search-trigger {
  margin: 0 12px 10px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); font-size: 12.5px; cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}
.adm-search-trigger:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-3); }
.adm-search-trigger span { flex: 1; text-align: start; }
.adm-search-trigger kbd {
  font-family: var(--mono); font-size: 10.5px; padding: 1px 5px; border-radius: 5px;
  border: 1px solid var(--line-strong); color: var(--faint); background: var(--surface);
}
.adm-search-trigger--mini { display: none; margin: 0; padding: 7px; }

.adm-nav { flex: 1; overflow-y: auto; padding: 4px 8px 16px; scrollbar-width: thin; }
.adm-group { margin-bottom: 10px; }
.adm-group-title {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 5px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.adm-group-title svg { width: 13px; height: 13px; }
.adm-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 9px; margin-bottom: 1px;
  font-size: 13px; font-weight: 520; color: var(--ink-2);
  transition: background .14s, color .14s;
}
.adm-link:hover { background: var(--surface-3); color: var(--ink); }
.adm-link.active { background: rgba(47, 91, 255, .1); color: var(--brand); font-weight: 640; }
.adm-link-ico { display: inline-grid; place-items: center; width: 18px; flex: none; color: currentColor; }
.adm-link-ico svg { width: 15px; height: 15px; }
.adm-link-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-link-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: rgba(245, 158, 11, .16); color: #b45309;
}
[data-theme="dark"] .adm-link-badge { color: #fbbf24; }

.adm-side-foot { border-top: 1px solid var(--line); padding: 10px 12px; }
.adm-user { display: flex; align-items: center; gap: 9px; }
.adm-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line);
}
.adm-user-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.adm-user-text b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-user-text span { font-size: 10.5px; color: var(--faint); font-family: var(--mono); }

/* ---- main column ---- */
.adm-main { min-width: 0; display: flex; flex-direction: column; }
.adm-top {
  position: sticky; top: var(--header-h, 64px); z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px; background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.adm-top-title { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.adm-top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.adm-burger { display: none; }
.adm-task-btn {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.adm-task-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.adm-task-btn b {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff;
}

.adm-body {
  padding: 22px 24px 56px;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}

/* ---- page head ---- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.adm-head-text { min-width: 0; }
.adm-title { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.adm-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.adm-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- KPI cards ---- */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-kpi {
  padding: 14px 15px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .16s, transform .16s;
}
.adm-kpi[data-goto] { cursor: pointer; }
.adm-kpi[data-goto]:hover { border-color: var(--brand); transform: translateY(-1px); }
.adm-kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11.5px; color: var(--muted); }
.adm-kpi-ico { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); }
.adm-kpi-ico svg { width: 13px; height: 13px; }
.adm-kpi-ico.brand { background: rgba(47, 91, 255, .12); color: var(--brand); }
.adm-kpi-ico.violet { background: rgba(124, 58, 237, .12); color: var(--violet); }
.adm-kpi-ico.amber { background: rgba(245, 158, 11, .15); color: #b45309; }
[data-theme="dark"] .adm-kpi-ico.amber { color: #fbbf24; }
.adm-kpi-ico.danger { background: rgba(229, 72, 77, .12); color: var(--danger); }
.adm-kpi-ico.success { background: rgba(16, 185, 129, .12); color: #047857; }
[data-theme="dark"] .adm-kpi-ico.success { color: #34d399; }
.adm-kpi-value { font-family: var(--mono); font-size: 22px; font-weight: 650; letter-spacing: -.03em; margin-top: 8px; }
.adm-kpi-hint { font-size: 11px; color: var(--faint); margin-top: 3px; }

/* ---- panels & grids ---- */
.adm-panel {
  padding: 16px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.adm-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.adm-panel-title { font-size: 14px; font-weight: 650; }
.adm-panel-sub { font-size: 11.5px; color: var(--faint); margin-top: 3px; }
.adm-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }

/* ---- queue cards ---- */
.adm-queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.adm-queue {
  display: flex; align-items: center; gap: 9px; text-align: start;
  padding: 10px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.adm-queue:hover { border-color: var(--brand); background: var(--surface); }
.adm-queue-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-queue-text b { font-size: 12.5px; font-weight: 600; }
.adm-queue-text em { font-size: 10.5px; color: var(--faint); font-style: normal; }
.adm-queue-count { font-size: 15px; font-weight: 700; }
.adm-queue-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: var(--surface-3); color: var(--ink-2); }
.adm-queue-ico svg { width: 14px; height: 14px; }
.adm-queue-ico.brand { background: rgba(47, 91, 255, .12); color: var(--brand); }
.adm-queue-ico.violet { background: rgba(124, 58, 237, .12); color: var(--violet); }
.adm-queue-ico.amber { background: rgba(245, 158, 11, .15); color: #b45309; }
[data-theme="dark"] .adm-queue-ico.amber { color: #fbbf24; }
.adm-queue-ico.danger { background: rgba(229, 72, 77, .12); color: var(--danger); }
.adm-queue-ico.success { background: rgba(16, 185, 129, .12); color: #047857; }
[data-theme="dark"] .adm-queue-ico.success { color: #34d399; }

.adm-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.adm-shortcut {
  display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 12.5px; font-weight: 550;
  color: var(--ink-2); cursor: pointer; text-align: start;
}
.adm-shortcut:hover { border-color: var(--brand); color: var(--brand); }

/* ---- toolbar ---- */
.adm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.adm-toolbar-right { display: flex; align-items: center; gap: 6px; }
.adm-chips { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.adm-chips .chip b { font-size: 10px; margin-inline-start: 4px; opacity: .7; }
.adm-search {
  display: flex; align-items: center; gap: 7px; min-width: 220px; flex: 1; max-width: 330px;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--faint);
}
.adm-search svg { width: 14px; height: 14px; flex: none; }
.adm-search .input { border: 0; background: transparent; box-shadow: none; padding-inline: 0; min-height: 36px; }

/* ---- table ---- */
.adm-table { background: var(--surface); }
.adm-table .data-table td { padding: 10px 12px; }
.adm-entity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none;
  border: 1px solid var(--line); background: var(--surface-3); }
.adm-thumb { width: 56px; height: 40px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line); }
.adm-row-actions { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.adm-empty { padding: 46px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.adm-link-btn { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; }

/* ---- task hub ---- */
.adm-task-list { display: flex; flex-direction: column; gap: 6px; }
.adm-task-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2);
}
.adm-task-text { display: flex; flex-direction: column; min-width: 150px; flex: 0 1 220px; }
.adm-task-text b { font-size: 12.5px; }
.adm-task-text em { font-size: 10.5px; color: var(--faint); font-style: normal; }
.adm-task-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.adm-task-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad-brand, var(--brand)); }
.adm-task-count { font-size: 14px; font-weight: 700; min-width: 34px; text-align: end; }

/* ---- detail modal helper ---- */
.adm-detail { display: flex; flex-direction: column; gap: 14px; }
.adm-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.adm-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 0; }
.adm-dl dt { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.adm-dl dd { margin: 3px 0 0; font-size: 13px; }
.adm-lines { display: flex; flex-direction: column; gap: 8px; }
.adm-line { display: flex; align-items: center; gap: 10px; }
.adm-timeline { margin: 0; padding-inline-start: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.adm-timeline em { font-style: normal; margin-inline-start: 6px; }

/* ---- inline form / rates / settings ---- */
.adm-inline-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; }
.adm-rate-list { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.adm-rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-rate .input { width: 120px; min-height: 34px; padding: 4px 9px; text-align: end; }
.adm-settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.adm-lang-row, .adm-perms { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-roles { display: flex; flex-direction: column; gap: 8px; }
.adm-role { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.adm-role-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

/* ---- tools ---- */
.adm-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.adm-tool {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: start;
}
.adm-tool:hover { border-color: var(--brand); }
.adm-tool-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.adm-tool-text b { font-size: 13px; }
.adm-tool-text em { font-size: 11px; color: var(--faint); font-style: normal; }
.adm-tool > svg { color: var(--faint); width: 14px; height: 14px; }

/* ---- open API docs (admin only) ---- */
.adm-api-code {
  margin: 0; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  background: var(--surface-3); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  white-space: pre;
}
.adm-api-rows { display: flex; flex-direction: column; gap: 6px; }
.adm-api-row {
  display: grid; grid-template-columns: 62px minmax(0, 2fr) minmax(0, 3fr); align-items: center;
  gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid transparent; font-size: 12.5px;
}
.adm-api-row:hover { border-color: var(--line); background: var(--surface); }
.adm-api-method {
  display: inline-flex; align-items: center; justify-content: center; height: 22px;
  border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: #0f766e; background: rgba(15, 118, 110, .12);
}
.adm-api-method.is-post { color: #1d4ed8; background: rgba(47, 91, 255, .12); }
.adm-api-method.is-put { color: #b45309; background: rgba(232, 168, 56, .18); }
.adm-api-method.is-del { color: #b42318; background: rgba(229, 72, 77, .13); }
.adm-api-path { font-family: var(--mono); font-size: 12px; color: var(--ink); overflow-wrap: anywhere; }
.adm-api-desc { color: var(--muted); }
@media (max-width: 720px) {
  .adm-api-row { grid-template-columns: 62px minmax(0, 1fr); }
  .adm-api-desc { grid-column: 1 / -1; }
}

.adm-social { display: flex; flex-direction: column; gap: 7px; }.adm-social-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
/* Long channel URLs must not push the launch switch off the panel. */
.adm-social-row .grow { min-width: 0; }
.adm-social-row .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-social-row > .badge, .adm-social-row > .btn { flex: none; }
.adm-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.adm-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.adm-pager { margin-top: 14px; }

/* compact inputs used inside table rows */
.input-sm { min-height: 32px; padding: 4px 9px; font-size: 12.5px; }
select.select.input-sm { min-height: 32px; padding-block: 4px; }
.adm-table .input-sm { width: 100%; max-width: 260px; }

/* ---- command palette ---- */
.adm-palette {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center;
  padding-top: 12vh; background: rgba(10, 17, 34, .42); backdrop-filter: blur(3px);
}
.adm-palette[hidden] { display: none; }
.adm-palette-box {
  width: min(580px, 92vw); border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.adm-palette-input {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); color: var(--faint);
}
.adm-palette-input input { flex: 1; border: 0; background: transparent; outline: none; color: var(--ink); font-size: 14px; }
.adm-palette-input kbd { font-family: var(--mono); font-size: 10px; padding: 1px 5px;
  border-radius: 5px; border: 1px solid var(--line-strong); }
.adm-palette-list { max-height: 52vh; overflow: auto; padding: 6px; }
.adm-palette-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px;
  border-radius: 9px; background: none; border: 0; cursor: pointer; text-align: start; color: var(--ink-2);
}
.adm-palette-item:hover, .adm-palette-item:focus-visible { background: var(--surface-3); color: var(--ink); outline: none; }
.adm-palette-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.adm-palette-text b { font-size: 13px; }
.adm-palette-text em { font-size: 11px; color: var(--faint); font-style: normal; }
.adm-palette-empty { padding: 22px; text-align: center; font-size: 12.5px; color: var(--faint); }

.adm-side-backdrop { display: none; }

/* ---- responsive ---- */@media (max-width: 1280px) {
  .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .adm-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); }
  .adm-side {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: 268px; height: 100vh;
    top: 0; transform: translateX(-102%); transition: transform .22s var(--ease, ease);
    box-shadow: var(--shadow-lg);
  }
  [dir="rtl"] .adm-side { transform: translateX(102%); }
  .adm-side.open { transform: none; }
  .adm-side-close { display: inline-flex; }
  .adm-side-backdrop {
    display: none; position: fixed; inset: 0; z-index: 29; background: rgba(10, 17, 34, .45);
  }
  .adm-side.open ~ .adm-side-backdrop { display: block; }
  .adm-burger { display: inline-flex; }
  .adm-search-trigger--mini { display: inline-flex; }
  .adm-body { padding: 16px 14px 44px; }
  .adm-top { padding: 8px 14px; }
}
@media (max-width: 640px) {
  .adm-kpis, .adm-kpis-4 { grid-template-columns: minmax(0, 1fr); }
  .adm-queue-grid, .adm-shortcuts, .adm-tools { grid-template-columns: minmax(0, 1fr); }
  .adm-dl { grid-template-columns: minmax(0, 1fr); }
  .adm-inline-form { grid-template-columns: minmax(0, 1fr); }
  .adm-head { align-items: flex-start; }
  .adm-search { max-width: none; }
}

/* ---- dashboard analytics ------------------------------------------------ */
.adm-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--surface-2, #f1f5f9); }
.adm-seg-btn { border: 0; background: transparent; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-size: 12px; color: var(--muted, #64748b); }
.adm-seg-btn.on { background: #fff; color: var(--text, #0f172a); box-shadow: 0 1px 2px rgb(0 0 0 / 8%); font-weight: 600; }
.adm-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 0; }
.adm-metric { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 12px; }
.adm-metric-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.adm-metric-value { font-size: 22px; font-weight: 700; line-height: 1.2; }
.adm-delta { font-size: 11px; font-weight: 600; margin-left: auto; }
.adm-delta.up { color: var(--success, #16a34a); }
.adm-delta.down { color: var(--danger, #dc2626); }
.adm-chart { width: 100%; height: 120px; display: block; }
.adm-chart-axis { font-size: 9px; fill: var(--muted, #94a3b8); }
.adm-chart-empty { padding: 28px 0; text-align: center; }
.adm-bars { display: flex; flex-direction: column; gap: 6px; }
.adm-bar-row { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 8px; }
.adm-bar-track { height: 8px; border-radius: 4px; background: var(--surface-2, #f1f5f9); overflow: hidden; }
.adm-bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--brand, #2563eb); }
.adm-bar-value { text-align: right; }
.adm-alert-panel { border-color: var(--amber, #f59e0b); }
.adm-alert-row { display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-top: 1px dashed var(--line, #e2e8f0); }
.adm-alert-row:first-of-type { border-top: 0; }
.adm-empty { padding: 20px; text-align: center; border: 1px dashed var(--line, #e2e8f0); border-radius: 10px; }
.adm-card { border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
.adm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.adm-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.adm-loading { padding: 40px; text-align: center; color: var(--muted, #64748b); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th, .adm-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #e2e8f0); }
.adm-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); }
.adm-table tr.is-warn td { background: color-mix(in srgb, var(--amber, #f59e0b) 8%, transparent); }
.adm-table tr.is-muted td { opacity: .55; }

.adm-rich-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:6px; border:1px solid var(--line); border-bottom:0; border-radius:10px 10px 0 0; background:var(--surface-2); }
.adm-rich-toolbar button { border:0; background:transparent; color:var(--text); padding:5px 9px; border-radius:6px; cursor:pointer; font-size:12px; }
.adm-rich-toolbar button:hover { background:var(--surface-3); }
.adm-rich { border-radius:0 0 10px 10px; min-height:320px; line-height:1.7; outline:none; overflow:auto; }
.adm-rich:focus { border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.adm-rich h2 { font-size:18px; margin:12px 0 6px; }
.adm-rich p { margin:6px 0; }
.adm-rich ul, .adm-rich ol { padding-start:22px; margin:6px 0; }
.adm-rich table { width:100%; border-collapse:collapse; margin:10px 0; }
.adm-rich th, .adm-rich td { border:1px solid var(--line); padding:7px 9px; text-align:left; font-size:12px; }
.adm-rich th { background:var(--surface-2); }
.adm-rich img { max-width:100%; height:auto; border-radius:8px; margin:8px 0; }

/* ==== payments.css ==== */
/* CSS appended by the footer/payments redesign. */

/* ---------- Footer payment bar ----------------------------------------- */
/* One row on desktop: title block · payment chips · social. Everything is
   allowed to shrink, the chip label never wraps, so the bar stays a single
   band instead of stacking into three rows. Breakpoints below take over on
   narrower screens. */
.site-footer .footer-paybar {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 18px 22px;
  padding: 16px 20px; margin-block: 4px 20px;
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 2px rgba(7, 16, 24, .04);
}
.footer-paybar-head { display: flex; flex-direction: column; gap: 3px; flex: 0 1 260px; min-width: 0; }
.footer-paybar-kicker {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  height: 20px; padding: 0 8px; border-radius: 999px; margin-bottom: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  color: #15803d; background: rgba(34, 197, 94, .12);
}
.footer-paybar-kicker .icon { width: 12px; height: 12px; }
.footer-paybar-title { font-size: 14px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.footer-paybar-note { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* legacy hook kept for older markup */
.footer-paybar-escrow { display: none; }

.footer-pay-methods { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px;
  border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; flex: 0 0 auto; white-space: nowrap;
  transition: transform .16s var(--ease, ease), box-shadow .16s, border-color .16s;
}
.pay-chip:hover, .pay-chip:focus-visible {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: var(--shadow-sm, 0 8px 20px rgba(7,16,24,.10));
}
.pay-chip-mark { display: inline-flex; flex: none; line-height: 0; }
.pay-chip-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: start; }
.pay-chip-copy b { font-size: 12.5px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.pay-chip-copy em { font-style: normal; font-size: 10.5px; color: var(--faint); letter-spacing: -.005em; }
.footer-bottom .pay-mark { width: 30px; }
.footer-bottom .pay-chip { display: none; }

.footer-paybar .footer-social { margin: 0 0 0 auto; flex: none; gap: 8px; }

/* Brand marks (inline SVG) */
.pay-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  height: auto; line-height: 0; border-radius: 5px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 16, 24, .12);
}
.pay-mark svg, .pay-mark img { display: block; width: 100%; height: auto; }
.pay-mark img { border-radius: inherit; }
.pay-mark-fallback {
  height: 20px; width: 34px; font-size: 10px; font-weight: 700; letter-spacing: .02em;
  color: #fff; background: #475569; box-shadow: none;
}

/* ---------- Footer bottom bar (single row) ------------------------------ */
/* Must out-specify the legacy .footer-bottom rule in app.css (that one still
   carries flex-wrap: wrap), hence the descendant prefix. */
.site-footer .footer-bottom {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 14px 22px;
  padding-block: 14px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--faint);
}
.footer-bottom-lang { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }.footer-bottom-label {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 11.5px; font-weight: 650; letter-spacing: .02em; color: var(--ink-2);
}
.footer-bottom-label .icon { width: 13px; height: 13px; color: var(--faint); }
.footer-bottom-meta { display: flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; }
.footer-bottom-dot { opacity: .5; }
.footer-bottom-count { color: var(--faint); }

/* Language strip inside the bottom bar: one line, horizontally scrollable. */
.footer-langstrip {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 5px;
  min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  padding: 2px 0; margin: -2px 0;
}
.footer-langstrip::-webkit-scrollbar { display: none; }
.lang-pill {
  flex: 0 0 auto; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 11px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.lang-pill:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.lang-pill.active {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, transparent);
  box-shadow: 0 1px 2px rgba(7, 16, 24, .05);
}

/* ---------- Checkout provider tiles ------------------------------------ */
.pay-provider { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-align: start; width: 100%; }
.pay-provider .pay-mark { width: 42px; }
.pay-provider-label { flex: 1; min-width: 0; }
.pay-provider-label b { display: block; font-size: 13.5px; }
.pay-provider-label small { color: var(--muted); font-size: 11.5px; }

/* ---------- Responsive ------------------------------------------------- */
@media (max-width: 1240px) {
  /* Drop the taglines before anything is allowed to wrap. */
  .pay-chip-copy em { display: none; }
}
@media (max-width: 1080px) {
  .footer-paybar { flex-wrap: wrap; }
  .footer-paybar-head { flex: 1 1 100%; }
  .footer-paybar .footer-social { margin-inline-start: auto; }
  .footer-pay-methods { flex: 1 1 100%; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .footer-bottom { flex-wrap: wrap; row-gap: 10px; }
  .footer-bottom-lang { flex: 1 1 100%; }
  .footer-bottom-meta { flex: 1 1 100%; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .footer-paybar { padding: 14px; border-radius: 16px; }
  .footer-pay-methods { gap: 8px; }
  .pay-chip { flex: 1 1 calc(50% - 8px); justify-content: flex-start; }
  .pay-chip-copy em { display: block; }
}

/* ---------- Dark mode --------------------------------------------------- */
[data-theme="dark"] .footer-paybar-kicker { color: #4ade80; background: rgba(34, 197, 94, .16); }
[data-theme="dark"] .pay-chip { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .lang-pill { background: rgba(255, 255, 255, .03); }

/* ==== docs.css ==== */
/* Footer content pages: legal, support and company documents. */

.doc-page { max-width: 880px; padding-block: 30px 80px; }

.doc-body { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); line-height: 1.75; }
.doc-body h2 {
  font-size: 1.2rem; font-weight: 680; letter-spacing: -.015em; color: var(--ink);
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h3 { font-size: 1rem; font-weight: 650; color: var(--ink); margin-top: 12px; }
.doc-body p { margin: 0; font-size: 14.5px; }
.doc-body ul, .doc-body ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.doc-body li::marker { color: var(--brand); }
.doc-body b, .doc-body strong { color: var(--ink); font-weight: 640; }
.doc-body code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .85em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
}
.doc-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-top: 6px; }
.doc-body th, .doc-body td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.doc-body tr:last-child th, .doc-body tr:last-child td { border-bottom: 0; }
.doc-body .doc-contact {
  margin-top: 26px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-strong, var(--line));
}
/* Legal document switcher: terms / privacy / cookies / rules. */
.doc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.doc-switch .chip { text-decoration: none; }
.doc-switch .chip.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}

.doc-body .doc-contact table th { width: 30%; }
.doc-body .doc-contact h2 {
  margin-top: 0; padding-top: 0; border-top: 0; font-size: 1rem; margin-bottom: 10px;
}
/* Version banner: the first table of a legal document, rendered as a fact strip. */
.doc-body table.doc-meta {
  margin: 0 0 4px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px 16px; font-size: 13px;
}
.doc-body table.doc-meta th, .doc-body table.doc-meta td {
  border-bottom: 1px solid var(--line); padding: 9px 4px;
}
.doc-body table.doc-meta th { width: 32%; }
.doc-body table.doc-meta tr:last-child th, .doc-body table.doc-meta tr:last-child td { border-bottom: 0; }
.doc-body table.doc-meta td { color: var(--ink); font-weight: 560; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .doc-body th, .doc-body td { padding: 8px 6px; font-size: 12.5px; }
  .doc-page { padding-block: 20px 56px; }
  /* Wide rule and data tables scroll horizontally instead of squeezing columns. */
  .doc-body table { display: block; overflow-x: auto; max-width: 100%; }
  .doc-body table tr { display: table; width: 100%; table-layout: fixed; }
  .doc-body table.doc-meta th { width: 40%; }
}

/* ==== footer.css ==== */
/* Footer upgrade: grouped navigation, operating entity, language strip. */

.site-footer { position: relative; overflow: hidden; }
.site-footer::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 35%, transparent 70%);
  opacity: .45;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { max-width: 32ch; line-height: 1.65; }
.footer-brand .newsletter { margin-top: 16px; }

.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer-trust-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: -.005em;
}
.footer-trust-item .icon { width: 13px; height: 13px; color: var(--brand); }

.footer-title { display: flex; align-items: center; gap: 6px; }
.footer-link {
  position: relative; padding: 4px 0 4px 0; transition: color .16s ease, padding .16s ease;
}
.footer-link::before {
  content: ''; position: absolute; inset-inline-start: -10px; top: 50%; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand); opacity: 0; transform: translateY(-50%) scale(.4);
  transition: opacity .16s ease, transform .16s ease;
}
.footer-link:hover { color: var(--ink); padding-inline-start: 8px; }
.footer-link:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

/* Operating entity strip */
.footer-entity {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 26px;
  padding: 16px 20px; margin-bottom: 18px; border-radius: 16px;
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.footer-entity-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.footer-entity-label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.footer-entity-main b { font-size: 14px; letter-spacing: -.01em; }
.footer-entity-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  font-size: 12.5px; color: var(--muted);
}
.footer-entity-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 550; }
.footer-entity-meta a:hover { color: var(--brand); }
.footer-entity-meta .icon { width: 14px; height: 14px; color: var(--faint); }

/* Language strip — layout lives in payments.css (single row inside .footer-bottom). */
.footer-locale-count { display: inline-flex; align-items: center; gap: 5px; }
.footer-locale-count .icon { width: 13px; height: 13px; }

[data-theme="dark"] .footer-trust-item,
[data-theme="dark"] .footer-entity { background: rgba(255, 255, 255, .03); }

@media (max-width: 1180px) {
  .footer-entity { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .footer-entity { padding: 14px 16px; }
}

/* ==== assurance.css ==== */
/* Trade Assurance landing page (related-platform content expansion). */

.ta-page { padding-block: 26px 78px; }

/* ---------- Hero -------------------------------------------------------- */
.ta-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 24px;
  padding: 40px 40px 38px; border-radius: 26px;
  background:
    radial-gradient(120% 130% at 88% 8%, rgba(37, 99, 235, .55) 0%, rgba(11, 23, 48, 0) 55%),
    radial-gradient(90% 110% at 6% 100%, rgba(15, 118, 110, .45) 0%, rgba(11, 23, 48, 0) 60%),
    #0b1730;
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(9, 22, 45, .55);
}
.ta-hero-copy .hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 650; letter-spacing: .04em;
  text-transform: uppercase; color: #86efac; background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .30);
}
.ta-hero-copy .hero-badge .icon { width: 14px; height: 14px; }
.ta-hero-copy .h1 { color: #fff; margin-top: 14px; font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.7rem); letter-spacing: -.03em; }
.ta-hero-copy .lead { color: #b9c8e6; max-width: 46ch; margin-top: 10px; }

.ta-hero-art { position: relative; display: grid; place-items: center; min-height: 168px; }
.ta-shield {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px);
  color: #7dd3fc; box-shadow: 0 18px 40px -16px rgba(8, 20, 40, .75);
}
.ta-shield .icon { width: 52px; height: 52px; stroke-width: 1.5; }
.ta-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(148, 197, 255, .22); pointer-events: none;
}
.ta-ring-a { inset: 6px; animation: ta-pulse 5.5s ease-in-out infinite; }
.ta-ring-b { inset: -22px; border-color: rgba(148, 197, 255, .12); animation: ta-pulse 7s ease-in-out infinite .8s; }
@keyframes ta-pulse {
  0%, 100% { transform: scale(1); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* ---------- Stats ------------------------------------------------------- */
.ta-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: -22px; padding: 0 16px; position: relative; z-index: 2;
}
.ta-stat {
  padding: 16px 18px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 10px 24px rgba(9, 22, 45, .08));
}
.ta-stat b { display: block; font-size: 1.28rem; letter-spacing: -.025em; color: var(--ink); }
.ta-stat span { display: block; margin-top: 3px; font-size: 11.8px; color: var(--muted); line-height: 1.45; }

/* ---------- Pillars ----------------------------------------------------- */
.ta-pillars { margin-top: 22px; }
.ta-pillar { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .18s var(--ease, ease), border-color .18s; }
.ta-pillar:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.ta-pillar .h3 { font-size: .98rem; }
.ta-pillar p { margin: 0; }

/* ---------- Steps ------------------------------------------------------- */
.ta-heading { margin-top: 40px; font-size: 1.35rem; letter-spacing: -.02em; }
.ta-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.ta-steps li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.ta-step-no {
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.05rem; font-weight: 700;
  color: var(--brand); letter-spacing: -.02em;
}
.ta-steps b { font-size: .95rem; color: var(--ink); }
.ta-steps p { margin: 4px 0 0; }

/* ---------- Scope ------------------------------------------------------- */
.ta-scope { margin-top: 18px; }
.ta-scope .panel { padding: 20px; }
.ta-scope .h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.ta-scope .h3 .icon { width: 17px; height: 17px; color: var(--brand); }
.ta-scope-muted .h3 .icon { color: var(--faint); }
.ta-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.ta-list li {
  position: relative; padding-inline-start: 18px; font-size: 13.6px; line-height: 1.65; color: var(--ink-2);
}
.ta-list li::before {
  content: ''; position: absolute; inset-inline-start: 2px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand);
}
.ta-scope-muted .ta-list li::before { background: var(--faint); }

/* ---------- FAQ --------------------------------------------------------- */
.ta-faq { margin-top: 14px; display: grid; gap: 10px; }
.ta-faq details { padding: 0; overflow: hidden; }
.ta-faq summary {
  cursor: pointer; list-style: none; padding: 15px 44px 15px 18px; position: relative;
  font-size: 14px; font-weight: 620; color: var(--ink);
}
.ta-faq summary::-webkit-details-marker { display: none; }
.ta-faq summary::after {
  content: '+'; position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: var(--faint); transition: transform .18s var(--ease, ease);
}
.ta-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--brand); }
.ta-faq details p { margin: 0; padding: 0 18px 16px; line-height: 1.7; }

/* ---------- Contact ----------------------------------------------------- */
.ta-contact {
  margin-top: 30px; padding: 22px 24px; border-radius: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
}
.ta-contact .h3 { font-size: 1.05rem; }
.ta-contact p { margin: 5px 0 0; max-width: 60ch; }
.ta-contact .btn .icon { width: 15px; height: 15px; }

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 980px) {
  .ta-hero { grid-template-columns: 1fr; padding: 30px 24px 28px; border-radius: 22px; }
  .ta-hero-art { display: none; }
  .ta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ta-stats { grid-template-columns: 1fr; margin-top: 14px; padding: 0; }
  .ta-steps li { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
  .ta-pillars { grid-template-columns: 1fr; }
  .ta-page { padding-block: 18px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .ta-ring-a, .ta-ring-b { animation: none; }
}

/* ==== hub.css ==== */
/* Support & seller hub pages + live service status. */

/* ------------------------------------------------------------------ hubs */
.hub-page { padding-top: 34px; }
.hub-search {
  display: flex; gap: 10px; align-items: center;
  margin: 22px 0 28px; flex-wrap: wrap;
}
.hub-search .input-group { flex: 1 1 320px; position: relative; }
.hub-search .input-group svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}
.hub-search .input { padding-left: 40px; height: 46px; border-radius: 12px; }

.hub-grid { gap: 14px; }
.hub-card {
  display: flex; align-items: flex-start; gap: 14px; position: relative;
  padding: 20px 22px; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.hub-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 14px 34px rgba(9, 30, 66, .1);
}
.hub-card b { font-size: 15.5px; }
.hub-card p { margin: 6px 0 0; line-height: 1.6; }
.hub-card .cat-icon { flex: 0 0 auto; }
.hub-arrow {
  position: absolute; right: 18px; top: 18px; color: var(--muted);
  opacity: 0; transform: translateX(-4px); transition: all .18s ease;
}
.hub-card:hover .hub-arrow { opacity: 1; transform: none; color: var(--primary); }

.hub-heading { margin: 34px 0 14px; }
.hub-entries { gap: 14px; }
.hub-links { padding: 18px 22px; display: grid; gap: 4px; }
.hub-links-title {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 6px;
}
.hub-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 10px; border-radius: 9px; text-decoration: none; color: inherit;
  transition: background .15s ease, color .15s ease;
}
.hub-links a svg { width: 14px; height: 14px; color: var(--muted); }
.hub-links a:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); color: var(--primary); }

.hub-channels { gap: 14px; }
.hub-channel { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.hub-channel .cat-icon { margin-bottom: 4px; }

.hub-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin: 24px 0 22px;
}
.hub-stat {
  border-radius: 16px; padding: 18px 20px;
  background: linear-gradient(160deg, #0f172a, #1f2b45);
  color: #fff; display: grid; gap: 4px;
}
.hub-stat b { font-size: 26px; letter-spacing: -.02em; }
.hub-stat span { font-size: 12px; opacity: .74; }

.hub-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 28px; padding: 22px 26px; border-radius: 18px;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.hub-cta b { font-size: 17px; }
.hub-cta p { margin: 4px 0 0; }

/* ---------------------------------------------------------- status page */
.status-page { padding-top: 34px; }
.status-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 24px 0 16px; padding: 22px 26px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface);
}
.status-hero.is-ok { border-color: color-mix(in srgb, #16a34a 35%, transparent); background: color-mix(in srgb, #16a34a 6%, var(--surface)); }
.status-hero.is-warn { border-color: color-mix(in srgb, #d97706 35%, transparent); background: color-mix(in srgb, #d97706 6%, var(--surface)); }
.status-hero.is-down { border-color: color-mix(in srgb, #dc2626 35%, transparent); background: color-mix(in srgb, #dc2626 6%, var(--surface)); }
.status-hero-main { display: flex; align-items: center; gap: 14px; }
.status-hero-main b { font-size: 18px; }

.status-card {
  padding: 20px 24px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); margin-top: 14px;
}
.status-card .h3 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.status-card .h3 svg { width: 16px; height: 16px; color: var(--primary); }

.status-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.status-row:last-child { border-bottom: 0; }
.status-main { flex: 1 1 auto; min-width: 0; }
.status-main b { font-size: 14.5px; }
.status-meta {
  display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px;
  font-size: 12px; color: var(--muted);
}

.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  background: #94a3b8; position: relative;
}
.status-dot.is-ok { background: #16a34a; box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.status-dot.is-warn { background: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); }
.status-dot.is-down { background: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.status-dot.is-off { background: #cbd5e1; }

.status-pill {
  font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  background: #f1f5f9; color: #475569; white-space: nowrap;
}
.status-pill.is-ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.status-pill.is-warn { background: rgba(217, 119, 6, .14); color: #b45309; }
.status-pill.is-down { background: rgba(220, 38, 38, .12); color: #b91c1c; }

.status-channels { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid var(--line); font-size: 13px;
}
.status-chip.on { border-color: color-mix(in srgb, #16a34a 35%, transparent); }
.status-chip.off { opacity: .6; }

.status-list { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }

/* --------------------------------------------------------- contact page */
.contact-form { padding: 22px 24px; display: grid; gap: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .field { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.contact-form .input { min-height: 42px; border-radius: 10px; }
.contact-form textarea.input { resize: vertical; line-height: 1.6; }
.contact-form button { justify-self: start; }

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-grid { grid-template-columns: 1fr; }
}

/* ==== support.css ==== */
/* Public support & seller pages: help centre, pricing, onboarding, ads, API docs.

   Shares the design tokens from app.css so these pages sit inside the same
   editorial B2B console language as the rest of the storefront. */
.pg-page { display: flex; flex-direction: column; gap: 6px; padding-block: 28px 72px; }
.pg-doc { padding-block: 16px 72px; }

/* -------------------------------------------------------------------- hero */
.pg-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 26px;
  align-items: center; padding: 38px 40px; border-radius: 26px;
  background: var(--grad-night); color: #fff;
  box-shadow: 0 30px 60px -32px rgba(9, 22, 45, .55);
}
.pg-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 90% at 88% 12%, rgba(47, 91, 255, .38), transparent 62%),
              radial-gradient(50% 80% at 4% 100%, rgba(124, 58, 237, .30), transparent 66%);
}
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: #a5b8e6;
}
.pg-eyebrow svg { width: 14px; height: 14px; }
.pg-title {
  margin-top: 12px; font-size: clamp(1.85rem, 1.1rem + 1.9vw, 2.75rem);
  line-height: 1.12; letter-spacing: -.03em; font-weight: 720; color: #fff;
}
.pg-lead { margin-top: 12px; max-width: 56ch; font-size: 14.5px; line-height: 1.7; color: #b7c6e4; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pg-hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.pg-hero-stats b { display: block; font-size: 1.15rem; letter-spacing: -.02em; color: #fff; }
.pg-hero-stats span { display: block; margin-top: 3px; font-size: 11.5px; color: #94a6c9; line-height: 1.4; }
.pg-hero-art { position: relative; display: grid; place-items: center; min-height: 190px; }
.pg-art-icon {
  display: grid; place-items: center; width: 108px; height: 108px; border-radius: 32px;
  color: #9ec5ff; background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .24); backdrop-filter: blur(6px);
  box-shadow: 0 20px 44px -18px rgba(6, 16, 36, .8);
}
.pg-art-icon svg { width: 54px; height: 54px; stroke-width: 1.5; }
.pg-art-ring {
  position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid rgba(148, 197, 255, .22); animation: pg-pulse 6s ease-in-out infinite;
}
@keyframes pg-pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ----------------------------------------------------------------- section */
.pg-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin: 34px 0 14px;
}
.pg-section-title { font-size: 1.28rem; font-weight: 700; letter-spacing: -.02em; }
.pg-section-sub { margin-top: 5px; font-size: 12.5px; color: var(--muted); }

.pg-grid { display: grid; gap: 14px; }
.pg-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ------------------------------------------------------------------- card */
.pg-card {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 20px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.pg-card:hover {
  transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 16px 36px -22px rgba(9, 22, 45, .45);
}
.pg-card-ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 12px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
}
.pg-card-ico svg { width: 19px; height: 19px; }
.pg-card-body b { display: block; font-size: 14.5px; letter-spacing: -.01em; }
.pg-card-body p { margin-top: 5px; font-size: 12.8px; line-height: 1.65; color: var(--muted); }
.pg-card-body em { display: block; margin-top: 8px; font-size: 11.5px; font-style: normal; color: var(--faint); }
.pg-card-arrow { position: absolute; inset-inline-end: 18px; top: 18px; color: var(--faint); }
.pg-card-arrow svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------- help centre */
.pg-search { display: flex; gap: 10px; margin: 24px 0 0; flex-wrap: wrap; }
.pg-search-field {
  position: relative; flex: 1 1 340px; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding-inline-start: 42px; transition: border-color .16s, box-shadow .16s;
}
.pg-search-field:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.pg-search-field svg {
  position: absolute; inset-inline-start: 14px; width: 17px; height: 17px; color: var(--muted);
}
.pg-search-field .input { border: 0; background: transparent; height: 48px; box-shadow: none; }
.pg-hot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pg-hot-label {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  font-weight: 650; color: var(--muted); letter-spacing: .04em; text-transform: uppercase;
}
.pg-hot-label svg { width: 13px; height: 13px; color: var(--accent); }

.pg-help-grid { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.pg-help-nav {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: calc(var(--header-h, 64px) + 16px); align-self: start;
}
.pg-help-tab {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px;
  border-radius: 11px; border: 1px solid transparent; background: transparent;
  color: var(--ink-2); font-size: 13px; cursor: pointer; text-align: start;
  transition: background .15s, color .15s, border-color .15s;
}
.pg-help-tab svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.pg-help-tab span { flex: 1; }
.pg-help-tab b { font-size: 10.5px; color: var(--faint); }
.pg-help-tab:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.pg-help-tab.active {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
  color: var(--brand); font-weight: 650;
}
.pg-help-tab.active svg, .pg-help-tab.active b { color: var(--brand); }
.pg-help-contact {
  margin-top: 10px; padding: 14px; border-radius: 14px;
  background: var(--surface-3); border: 1px solid var(--line);
}
.pg-help-contact b { font-size: 12.5px; }
.pg-help-contact p { margin: 5px 0 10px; font-size: 11.8px; line-height: 1.6; color: var(--muted); }

.pg-help-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pg-help-block { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.pg-help-block-head {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.pg-help-block-head b { font-size: 14px; }
.pg-help-block-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-help-block-head .badge { margin-inline-start: auto; }
.pg-help-list { display: flex; flex-direction: column; }
.pg-help-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-top: 1px solid var(--line); color: inherit; text-decoration: none;
  transition: background .15s;
}
.pg-help-row:first-child { border-top: 0; }
.pg-help-row:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.pg-help-row > div { flex: 1; min-width: 0; }
.pg-help-row b { font-size: 13.2px; font-weight: 600; }
.pg-help-row p { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.pg-help-row > svg { width: 15px; height: 15px; color: var(--faint); }
.pg-help-row mark { background: color-mix(in srgb, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; }
.pg-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; text-align: center; }

/* ------------------------------------------------------------- article view */
.pg-doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; margin-top: 18px; }
.pg-doc-body {
  display: flex; flex-direction: column; gap: 14px; padding: 26px 28px;
  border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
}
.pg-doc-body section { display: flex; gap: 14px; }
.pg-doc-body p { font-size: 13.6px; line-height: 1.85; color: var(--ink-2); }
.pg-step-no {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  color: var(--brand); padding-top: 3px;
}
.pg-doc-side { display: flex; flex-direction: column; gap: 12px; }
.pg-doc-links { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.pg-doc-links a {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 9px;
  font-size: 12.5px; color: var(--ink-2); text-decoration: none;
}
.pg-doc-links a:hover { background: var(--surface-3); color: var(--brand); }
.pg-doc-links svg { width: 14px; height: 14px; color: var(--muted); flex: 0 0 auto; }

/* -------------------------------------------------------------------- faq */
.pg-faq { display: flex; flex-direction: column; gap: 8px; }
.pg-faq-item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 0 18px; transition: border-color .16s;
}
.pg-faq-item[open] { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); }
.pg-faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; font-size: 13.4px; font-weight: 600; cursor: pointer; list-style: none;
}
.pg-faq-item summary::-webkit-details-marker { display: none; }
.pg-faq-chev svg { width: 15px; height: 15px; color: var(--muted); transition: transform .18s; }
.pg-faq-item[open] .pg-faq-chev svg { transform: rotate(180deg); }
.pg-faq-item p { padding-bottom: 15px; font-size: 12.8px; line-height: 1.75; color: var(--muted); }

/* -------------------------------------------------------------------- CTA */
.pg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 30px; padding: 24px 28px; border-radius: 20px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}
.pg-cta b { font-size: 16px; letter-spacing: -.015em; }
.pg-cta p { margin-top: 5px; font-size: 12.8px; color: var(--muted); max-width: 62ch; }
.pg-cta .pg-actions { margin-top: 0; }

/* ---------------------------------------------------------------- pricing */
.pg-cycle {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
}
.pg-cycle-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px;
  border-radius: 999px; border: 0; background: transparent; color: #c7d4ee;
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.pg-cycle-btn.active { background: #fff; color: #0b1730; }
.pg-cycle-btn em {
  font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 999px;
  background: rgba(16, 185, 129, .22); color: #6ee7b7;
}
.pg-cycle-btn.active em { background: rgba(16, 185, 129, .16); color: #047857; }

.pg-plans {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: 22px; align-items: stretch;
}
.pg-plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 22px 20px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pg-plan:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.pg-plan--featured {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: 0 22px 46px -30px rgba(47, 91, 255, .6);
}
.pg-plan-badge {
  position: absolute; top: -10px; inset-inline-start: 18px; padding: 3px 10px;
  border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  background: var(--grad-brand); color: #fff; text-transform: uppercase;
}
.pg-plan-tier {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 6px;
}
.pg-tier-silver { color: #64748b; }
.pg-tier-gold { color: #b45309; }
.pg-tier-platinum { color: var(--violet); }
.pg-plan h3 { font-size: 18px; letter-spacing: -.02em; }
.pg-plan header p { margin-top: 5px; font-size: 12.4px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.pg-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pg-price { font-size: 1.75rem; font-weight: 720; letter-spacing: -.03em; }
.pg-price-free { font-size: 1.45rem; font-weight: 700; color: var(--success); }
.pg-price-unit { font-size: 12.5px; color: var(--muted); }
.pg-plan-price s { font-size: 12.5px; color: var(--faint); }
.pg-plan-saving {
  font-size: 11px; font-weight: 650; color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-radius: 999px; padding: 2px 8px;
}
.pg-plan-cny { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pg-price-cny { white-space: nowrap; }
.pg-pay-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin: -8px 0 22px;
}
.pg-pay-label { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.pg-pay-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 12.2px;
}
.pg-pay-chip img { display: block; }
.pg-pay-chip b { font-weight: 620; }
.pg-pay-chip em { font-style: normal; font-size: 11px; color: var(--faint); }
.pg-plan-list { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pg-plan-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.8px; color: var(--ink-2); line-height: 1.55; }
.pg-plan-list svg { width: 15px; height: 15px; color: var(--success); flex: 0 0 auto; margin-top: 2px; }
.pg-plan-foot { display: flex; flex-direction: column; gap: 7px; text-align: center; }

.pg-compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pg-compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.pg-compare th, .pg-compare td {
  padding: 12px 16px; text-align: center; font-size: 12.6px; border-top: 1px solid var(--line);
}
.pg-compare thead th { border-top: 0; background: var(--surface-2); font-weight: 650; font-size: 12.5px; }
.pg-compare tbody th { text-align: start; font-weight: 550; color: var(--ink-2); }
.pg-check {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px;
  background: rgba(16, 185, 129, .14); color: var(--success);
}
.pg-check svg { width: 13px; height: 13px; }
.pg-dash { color: var(--faint); }

.pg-addon {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.pg-addon b { font-size: 13.6px; }
.pg-addon p { font-size: 12.4px; line-height: 1.6; color: var(--muted); flex: 1; }
.pg-addon-price { display: flex; align-items: baseline; gap: 3px; }
.pg-addon-price b { font-size: 1.2rem; }
.pg-addon-price span { font-size: 11.5px; color: var(--muted); }
.pg-notes { display: flex; flex-direction: column; gap: 8px; }
.pg-notes li { display: flex; gap: 9px; font-size: 12.6px; color: var(--muted); line-height: 1.65; }
.pg-notes svg { width: 15px; height: 15px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }

/* ------------------------------------------------------------- onboarding */
.pg-flow { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.pg-flow-step {
  display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.pg-flow-no { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--brand); padding-top: 12px; min-width: 24px; }
.pg-flow-body { flex: 1; min-width: 0; }
.pg-flow-body b { font-size: 14.5px; }
.pg-flow-body p { margin-top: 4px; font-size: 12.8px; color: var(--muted); line-height: 1.65; }
.pg-flow-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pg-flow-meta .badge { display: inline-flex; align-items: center; gap: 5px; }
.pg-flow-meta svg { width: 12px; height: 12px; }
.pg-flow--compact .pg-flow-step { padding: 14px 18px; }

.pg-docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pg-doc-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.pg-doc-item.required { border-color: color-mix(in srgb, var(--brand) 26%, var(--line)); }
.pg-doc-ico {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-3); color: var(--muted); flex: 0 0 auto;
}
.pg-doc-item.required .pg-doc-ico { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.pg-doc-ico svg { width: 15px; height: 15px; }
.pg-doc-item b { font-size: 13px; }
.pg-doc-item p { margin-top: 3px; font-size: 11.8px; color: var(--muted); }

/* ------------------------------------------------------------ advertising */
.pg-slot {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .18s, transform .18s;
}
.pg-slot:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pg-slot-head { display: flex; gap: 13px; align-items: flex-start; }
.pg-slot-head b { font-size: 14px; }
.pg-slot-head p { margin-top: 4px; font-size: 12.6px; color: var(--muted); line-height: 1.6; }
.pg-slot-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.pg-slot-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.pg-slot-meta em { display: inline-flex; color: var(--brand); }
.pg-slot-meta svg { width: 14px; height: 14px; }
.pg-slot-meta .btn { margin-inline-start: auto; }

/* --------------------------------------------------------------- API docs */
.pg-code { margin-top: 20px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0b1730; }
.pg-code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; background: rgba(255, 255, 255, .05); color: #c7d4ee; font-size: 12px;
}
.pg-code-head .btn { color: #c7d4ee; }
.pg-code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; color: #d7e3ff;
  font-family: var(--mono); font-size: 12.4px; line-height: 1.75;
}
.pg-api { display: flex; flex-direction: column; gap: 12px; }
.pg-api-group { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pg-api-group h3 {
  padding: 13px 18px; font-size: 13px; font-weight: 650; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.pg-api-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line);
  font-size: 12.6px;
}
.pg-api-row:first-of-type { border-top: 0; }
.pg-api-row code { font-family: var(--mono); font-size: 12.2px; color: var(--ink); }
.pg-api-desc { color: var(--muted); margin-inline-start: auto; text-align: end; }
.pg-method {
  flex: 0 0 auto; min-width: 48px; text-align: center; padding: 3px 7px; border-radius: 6px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.pg-method--get { background: rgba(47, 91, 255, .12); color: var(--brand); }
.pg-method--post { background: rgba(16, 185, 129, .14); color: #047857; }
.pg-method--put { background: rgba(245, 158, 11, .16); color: #b45309; }
.pg-method--delete { background: rgba(229, 72, 77, .14); color: var(--danger); }

.pg-timeline { display: flex; flex-direction: column; gap: 0; list-style: none; }
.pg-timeline li {
  display: flex; gap: 16px; align-items: baseline; padding: 12px 4px 12px 18px;
  border-inline-start: 2px solid var(--line); position: relative;
}
.pg-timeline li::before {
  content: ""; position: absolute; inset-inline-start: -6px; top: 17px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.pg-timeline li > b { min-width: 62px; font-size: 12.5px; color: var(--brand); }
.pg-timeline li span { font-size: 13px; font-weight: 600; }
.pg-timeline li em { font-style: normal; display: block; margin-top: 2px; }

/* ----------------------------------------------------------------- states */
.pg-skeleton { display: flex; flex-direction: column; gap: 12px; }
.pg-error { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 20px; text-align: center; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .pg-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); padding: 30px 24px; }
  .pg-hero-art { display: none; }
  .pg-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-help-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-help-nav { position: static; }
  .pg-doc-layout { grid-template-columns: minmax(0, 1fr); }
  .pg-grid-3, .pg-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pg-page { padding-block: 18px 56px; }
  .pg-plans { grid-template-columns: minmax(0, 1fr); }
  .pg-docs-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-api-desc { display: none; }
  .pg-cta { flex-direction: column; align-items: flex-start; }
  .pg-flow-step { padding: 16px; }
}

/* Dark theme: the hero already reads as night, keep body copy readable. */
[data-theme='dark'] .pg-help-block-head,
[data-theme='dark'] .pg-api-group h3 { background: rgba(255, 255, 255, .03); }
[data-theme='dark'] .pg-plan-list li,
[data-theme='dark'] .pg-doc-body p { color: #c3cbdd; }

.pg-policy{list-style:none;display:grid;gap:8px;margin:12px 0 24px;padding:0}
.pg-policy li{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--muted)}
.pg-policy svg{width:15px;height:15px;color:var(--brand);flex:none;margin-top:2px}

.pg-ad-form{display:grid;gap:14px;padding:18px}
.pg-ad-form .field{display:block}
.pg-ad-form textarea{width:100%;resize:vertical}
.pg-ad-form .btn{justify-self:start}

/* ==== assistant.css ==== */
/* Global AI concierge widget (loaded on every page). */
.ai-root {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 940;
  font-family: inherit;
}

.ai-fab {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #3b6bff, #7a4dff 58%, #b44dff);
  box-shadow: 0 16px 38px -14px rgba(59, 107, 255, .85), 0 3px 10px rgba(10, 17, 34, .16);
  transition: transform .22s ease, box-shadow .22s ease;
}
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab:hover { transform: translateY(-2px) scale(1.04); }
.ai-fab:active { transform: scale(.96); }
.ai-fab.is-open { transform: scale(.9); opacity: .9; }
.ai-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(122, 77, 255, .5);
  animation: ai-pulse 2.6s ease-out infinite;
}
@keyframes ai-pulse {
  0% { transform: scale(.92); opacity: .75; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.ai-fab-dot {
  position: absolute;
  top: 8px; right: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(392px, calc(100vw - 36px));
  height: min(584px, calc(100vh - 130px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(16, 26, 51, .09);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 34px 80px -34px rgba(10, 17, 34, .55), 0 8px 24px rgba(10, 17, 34, .08);
  transform-origin: bottom right;
  animation: ai-in .24s cubic-bezier(.2, .9, .3, 1.05);
}
.ai-panel.hidden { display: none; }
@keyframes ai-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 13px;
  background: linear-gradient(140deg, #3b6bff, #7a4dff);
  color: #fff;
}
.ai-head-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ai-avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
  flex: 0 0 auto;
}
.ai-avatar svg { width: 19px; height: 19px; }
.ai-head b { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.ai-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; opacity: .88;
}
.ai-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .28);
}
.ai-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: #fff; cursor: pointer;
  flex: 0 0 auto;
}
.ai-close:hover { background: rgba(255, 255, 255, .26); }
.ai-close svg { width: 16px; height: 16px; }

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f7f8fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ai-body::-webkit-scrollbar { width: 8px; }
.ai-body::-webkit-scrollbar-thumb { background: rgba(16, 26, 51, .14); border-radius: 99px; }

.ai-empty { padding: 12px 4px; text-align: center; }
.ai-empty-art {
  width: 52px; height: 52px;
  margin: 6px auto 12px;
  display: grid; place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(140deg, #3b6bff, #7a4dff);
  box-shadow: 0 14px 30px -14px rgba(59, 107, 255, .9);
}
.ai-empty-art svg { width: 25px; height: 25px; }
.ai-empty b { font-size: 14px; }
.ai-empty p {
  margin: 6px 6px 14px;
  font-size: 12.4px; line-height: 1.6;
  color: #5d6880;
}
.ai-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ai-start {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(16, 26, 51, .1);
  border-radius: 12px;
  background: #fff;
  color: #0a1122;
  font-size: 12px; text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ai-start:hover {
  border-color: rgba(59, 107, 255, .5);
  box-shadow: 0 8px 18px -12px rgba(59, 107, 255, .8);
  transform: translateY(-1px);
}
.ai-start svg { width: 15px; height: 15px; color: #3b6bff; flex: 0 0 auto; }
.ai-start span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-msg { display: flex; gap: 8px; align-items: flex-start; }
.ai-msg--user { justify-content: flex-end; }
.ai-msg-avatar {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: linear-gradient(140deg, #3b6bff, #7a4dff);
  color: #fff; flex: 0 0 auto;
}
.ai-msg-avatar svg { width: 14px; height: 14px; }
.ai-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px 14px 14px 5px;
  background: #fff;
  border: 1px solid rgba(16, 26, 51, .08);
  font-size: 12.8px;
  line-height: 1.62;
  color: #17223b;
  word-break: break-word;
}
.ai-msg--user .ai-bubble {
  border-radius: 14px 14px 5px 14px;
  background: linear-gradient(140deg, #3b6bff, #6a55ff);
  border-color: transparent;
  color: #fff;
}
.ai-bullet { color: #3b6bff; font-weight: 700; }
.ai-typing { display: flex; gap: 4px; align-items: center; padding: 13px 14px; }
.ai-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9aa4bb;
  animation: ai-blink 1.2s infinite;
}
.ai-typing i:nth-child(2) { animation-delay: .18s; }
.ai-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes ai-blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.ai-products { display: grid; gap: 7px; padding-left: 34px; }
.ai-product {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(16, 26, 51, .09);
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ai-product:hover {
  border-color: rgba(59, 107, 255, .45);
  box-shadow: 0 8px 20px -14px rgba(59, 107, 255, .8);
}
.ai-product b { display: block; font-size: 12.2px; line-height: 1.45; font-weight: 600; }
.ai-product-meta { display: block; margin-top: 3px; font-size: 11.4px; color: #2f5bff; font-weight: 600; }

.ai-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-left: 34px; }
.ai-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(59, 107, 255, .34);
  background: #fff;
  color: #2f5bff;
  font-size: 11.8px; font-weight: 600;
  text-decoration: none;
}
.ai-action:hover { background: rgba(59, 107, 255, .08); }
.ai-action svg { width: 13px; height: 13px; }

.ai-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 34px; }
.ai-chip {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(16, 26, 51, .18);
  background: transparent;
  color: #5d6880;
  font-size: 11.4px;
  cursor: pointer;
}
.ai-chip:hover { border-color: #3b6bff; color: #2f5bff; }

.ai-compose {
  display: flex; gap: 8px; align-items: center;
  padding: 11px 12px;
  border-top: 1px solid rgba(16, 26, 51, .08);
  background: #fff;
}
.ai-input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(16, 26, 51, .13);
  border-radius: 999px;
  font-size: 12.8px;
  font-family: inherit;
  color: #0a1122;
  background: #f7f8fc;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
}
.ai-input:focus { border-color: #3b6bff; background: #fff; }
.ai-send {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: linear-gradient(140deg, #3b6bff, #7a4dff);
  color: #fff; cursor: pointer;
  flex: 0 0 auto;
  transition: transform .18s ease, opacity .18s ease;
}
.ai-send:hover { transform: scale(1.06); }
.ai-send:active { transform: scale(.94); }
.ai-send svg { width: 17px; height: 17px; }

/* Keep the launcher clear of the mobile tab bar / cart bar. */
@media (max-width: 640px) {
  .ai-root { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ai-fab { width: 52px; height: 52px; }
  .ai-panel {
    position: fixed;
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: min(86vh, 640px);
    border-radius: 20px 20px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-fab-ring, .ai-typing i { animation: none; }
  .ai-panel { animation: none; }
}

/* ==== contact.css ==== */
/* Contact page: person card with photo + WeChat QR. */
.contact-person {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
.contact-person-id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.contact-person-avatar {
  width: 240px;
  height: 240px;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 22%;
  flex: 0 0 auto;
  background: #f3f5fb;
  border: 3px solid #fff;
  box-shadow: 0 20px 44px -18px rgba(10, 17, 34, .55);
}
/* The portrait opens the full-resolution photo in a lightbox. */
.contact-person-photo {
  display: block;
  flex: 0 0 auto;
  border-radius: 24px;
  transition: transform .2s var(--ease, ease), box-shadow .2s;
}
.contact-person-photo:hover { transform: translateY(-2px); }
.contact-person-photo:hover .contact-person-avatar { box-shadow: 0 26px 54px -18px rgba(10, 17, 34, .6); }
.contact-person-photo:active { transform: scale(.985); }
.contact-person-photo img { display: block; }
.contact-person-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-person-meta b { font-size: 19px; letter-spacing: -.015em; }
.contact-person-role { font-size: 13px; color: var(--brand, #3b6bff); font-weight: 600; }
.contact-person-org { font-size: 12.5px; color: var(--muted, #5d6880); }

.contact-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(16, 26, 51, .09);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-wechat:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 193, 96, .55);
  box-shadow: 0 14px 30px -18px rgba(7, 193, 96, .9);
}
.contact-wechat img {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 8px;
  image-rendering: pixelated;
}
.contact-wechat-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #07a352;
  white-space: nowrap;
}
.contact-wechat-cap svg { width: 13px; height: 13px; }

.contact-person-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(16, 26, 51, .1);
}
.contact-person-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.2px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.contact-person-links a:hover { color: var(--brand, #3b6bff); }
.contact-person-links svg { width: 14px; height: 14px; color: var(--muted, #5d6880); }

/* Full-size QR overlay */
.contact-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 17, 34, .62);
  backdrop-filter: blur(3px);
  animation: contact-qr-in .2s ease;
}
@keyframes contact-qr-in { from { opacity: 0 } to { opacity: 1 } }
.contact-qr-modal img {
  width: min(320px, 76vw);
  height: auto;
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  image-rendering: pixelated;
}

/* Full-photo lightbox: opens from the portrait. */
.contact-photo-modal {
  display: grid;
  place-items: center;
  padding: 24px;
}
.contact-photo-modal figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: contact-qr-in .22s ease;
}
.contact-photo-modal img {
  width: min(560px, 86vw);
  max-height: 76vh;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
  background: #fff;
}
.contact-photo-modal figcaption {
  color: rgba(255, 255, 255, .86);
  font-size: 13.5px;
  letter-spacing: .01em;
}
.contact-photo-modal figcaption span { opacity: .65; }

@media (max-width: 900px) {
  /* Narrower columns: scale the portrait down so the name and role keep room. */
  .contact-person-avatar { width: 172px; height: 172px; border-radius: 20px; }
}

@media (max-width: 520px) {
  .contact-person { grid-template-columns: 1fr; }
  .contact-wechat { flex-direction: row; justify-content: center; width: 100%; }
  .contact-wechat img { width: 84px; height: 84px; }
  /* Full-width portrait: still generous, but never wider than the card. */
  .contact-person-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .contact-person-photo { width: 100%; }
  .contact-person-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 320px;
    border-radius: 18px;
    object-fit: cover;
    object-position: center 18%;
  }
  .contact-person-meta b { font-size: 17px; }
}

/* ==== mobile.css ==== */
/* ==========================================================================
   Mobile Pro Max — an app-grade layer for phones and small tablets.
   Loaded after every other stylesheet so a single file owns the mobile
   experience instead of leaving it scattered across 22 media queries.

   Principles
   - One breakpoint system: 760px (phone), 520px (compact phone), 380px (SE).
   - Thumb-first: primary actions live at the bottom, within 390x844 reach.
   - Native feel: momentum scrolling, no tap highlight, safe-area insets,
     44px minimum targets, bottom sheets instead of centred modals.
   - Never trap content: anything that can overflow scrolls inside its own box.
   ========================================================================== */

/* Default: the phone-only search entry point stays hidden on desktop. */
.mobile-search-btn { display: none; }

@media (max-width: 760px) {
  :root {
    /* Bottom bar height + the home indicator. Used to pad page bottoms so the
       last row of content is never hidden behind the tab bar. */
    --tabbar-h: 62px;
    --tabbar-total: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
    --sheet-radius: 26px;
    --mobile-gutter: 16px;
    --header-h: 58px;
  }

  /* ---------- 1. Base feel --------------------------------------------- */
  html { -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + 12px); }
  body {
    font-size: 15px;
    line-height: 1.6;
    overscroll-behavior-y: auto;
    padding-bottom: 0;
  }
  a, button, input, select, textarea, [role="button"] { touch-action: manipulation; }
  html, body { touch-action: auto; }
  /* Long words in supplier titles were the main cause of sideways scrolling. */
  .truncate, .product-title, .supplier-name, .store-title, .pdp-head h1 {
    overflow-wrap: anywhere;
  }

  /* ---------- 2. Header ------------------------------------------------ */
  .site-header {
    height: var(--header-h);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
  .header-inner { height: var(--header-h); gap: 8px; min-width: 0; }
  .header-actions { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
  /* Secondary header controls move into the drawer on phones, so the bar ends
     up as: brand · search · cart · menu — it never overflows. */
  .header-actions .header-only { display: none !important; }

  /* Locale strip in the footer wraps instead of forcing a 320px row. */
  .footer-langstrip, .footer-bottom-lang {
    flex-wrap: wrap;
    max-width: 100%;
    overflow: visible;
  }
  .footer-langstrip .lang-pill, .footer-bottom-lang .lang-pill { flex: 0 0 auto; }
  .brand span { font-size: 16px; letter-spacing: -.02em; }
  .icon-btn { width: 40px; height: 40px; border-radius: 12px; }

  /* Slim search trigger that opens the drawer search — saves the viewport for
     content while keeping search one tap away on every page. */
  .header-inner .header-search { display: none; }
  /* Mobile search entry point: a single icon that opens the catalog search. */
  .mobile-search-btn { display: inline-grid; }
  .header-only.mobile-only-flex { display: none !important; }

  /* ---------- 3. Bottom tab bar ---------------------------------------- */
  .mtb {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: stretch;
    height: var(--tabbar-total);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px -18px rgba(10, 17, 34, .5);
  }
  .mtb-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding-top: 7px;
    color: var(--faint);
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 560;
    letter-spacing: .005em;
    transition: color .18s var(--ease);
    -webkit-user-select: none;
    user-select: none;
  }
  .mtb-item:active { transform: scale(.94); }
  .mtb-item.is-active { color: var(--brand); }
  .mtb-item.is-active .mtb-ico::after {
    content: "";
    position: absolute;
    inset-inline: -9px;
    bottom: -5px;
    height: 3px;
    border-radius: 3px;
    background: var(--brand);
    opacity: .9;
  }
  .mtb-ico { position: relative; display: grid; place-items: center; height: 24px; }
  .mtb-ico svg { width: 23px; height: 23px; }
  .mtb-item.is-active .mtb-ico svg { stroke-width: 2.1; }
  .mtb-label { line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mtb-badge {
    position: absolute;
    top: -3px;
    inset-inline-start: 60%;
    min-width: 16px;
    height: 16px;
    padding-inline: 4px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--bg-elev);
  }

  /* Raised centre action — the one thing every B2B buyer came to do. */
  .mtb-fab {
    flex: 0 0 auto;
    align-self: center;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 8px;
    border-radius: 18px;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(47, 91, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
    transform: translateY(-12px);
    transition: transform .18s var(--ease-out);
  }
  .mtb-fab:active { transform: translateY(-10px) scale(.94); }
  .mtb-fab svg { width: 25px; height: 25px; stroke-width: 2.2; }

  /* Reserve space so nothing is hidden behind the bar. */
  html.has-tabbar body { padding-bottom: calc(var(--tabbar-total) + 8px); }
  html.has-tabbar .site-footer { padding-bottom: calc(var(--tabbar-total) + 16px); }
  html.has-tabbar .assistant-fab,
  html.has-tabbar .assistant-launcher,
  html.has-tabbar [data-assistant-fab] { bottom: calc(var(--tabbar-total) + 16px) !important; }
  html.has-tabbar .toaster { bottom: calc(var(--tabbar-total) + 12px); }
  /* Screens with their own action bar sit directly above the tab bar. */
  html.has-tabbar .pdp-buy-bar,
  html.has-tabbar .mobile-action-bar {
    position: fixed;
    inset-inline: 0;
    bottom: var(--tabbar-total);
    z-index: 68;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px var(--mobile-gutter) calc(10px + 2px);
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  html.has-tabbar .pdp-buy-bar ~ * ,
  html.has-tabbar body:has(.pdp-buy-bar) #main { padding-bottom: 76px; }

  /* ---------- 4. Page structure ---------------------------------------- */
  .container { padding-inline: var(--mobile-gutter); min-width: 0; }
  /* Grid/flex children default to min-width:auto, so a single wide child
     (a long SKU, a select, an unbroken URL) can widen the whole page. */
  .grid, .grid-auto, .grid-2, .grid-3, .grid-4,
  .catalog-layout, .pdp, .row { min-width: 0; }
  .grid > *, .grid-auto > *, .row > * { min-width: 0; }
  .section { padding-block: 34px; }
  .section-head { gap: 10px; }
  .panel { border-radius: 18px; }
  .card, .product-card, .supplier-card, .panel {
    box-shadow: 0 1px 2px rgba(10, 17, 34, .04);
  }
  .card:active, .product-card:active { transform: scale(.985); transition: transform .12s; }

  h1, .h1, .display { font-size: clamp(1.7rem, 7.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; }
  h2, .h2 { font-size: clamp(1.32rem, 5.4vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; }
  h3, .h3 { font-size: 1.08rem; }
  .lead { font-size: 15px; line-height: 1.6; }

  /* ---------- 5. Product & supplier grids ------------------------------ */
  .product-grid, .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-card { border-radius: 16px; }
  .product-media { aspect-ratio: 1 / 1; }
  .product-body { padding: 10px 11px 11px; gap: 5px; }
  .product-title {
    font-size: 12.8px;
    line-height: 1.35;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-price { gap: 4px; flex-wrap: wrap; }
  .product-price b { font-size: 15.5px; letter-spacing: -.02em; }
  .product-price span { font-size: 10.5px; }
  .product-meta { font-size: 11px; gap: 5px; }
  .product-supplier { font-size: 11px; padding-top: 8px; gap: 5px; }
  .product-fav {
    opacity: 1; transform: none; width: 32px; height: 32px;
    box-shadow: 0 2px 8px rgba(10, 17, 34, .18);
  }
  .product-flags { top: 8px; inset-inline-start: 8px; gap: 4px; }
  .product-flags .badge, .badge { font-size: 10px; padding: 3px 7px; }

  .supplier-card { padding: 16px; border-radius: 16px; gap: 11px; }
  .supplier-logo { width: 46px; height: 46px; border-radius: 13px; }
  .supplier-name { font-size: 14px; }
  .supplier-stats b { font-size: 13px; }

  /* ---------- 6. Horizontal chip rails --------------------------------- */
  /* Category, filter and tab rows become snap-scrolling rails: they stay on
     one line instead of wrapping into three, which keeps the fold intact. */
  .filters, .chips, .tab-rail, .store-tabs, .cat-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--mobile-gutter));
    padding-inline: var(--mobile-gutter);
    padding-bottom: 4px;
  }

  /* Filters are a bottom sheet, not a rail — undo the rail for the sidebar.
     The `aside` prefix outranks the desktop `.filters` rule, which otherwise
     keeps its sticky `top` offset and pushes the sheet off-screen. */
  aside.filters {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    inset-block-start: auto !important;
    z-index: 80;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    max-height: 86vh;
    margin: 0;
    padding: 22px var(--mobile-gutter) calc(96px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-elev);
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    box-shadow: 0 -20px 60px -20px rgba(7, 12, 24, .55);
    animation: mpm-sheet .26s var(--ease-out);
  }
  aside.filters.open { display: flex !important; }
  .filter-block { padding: 14px; border-radius: 14px; }
  /* Pinned apply/reset footer inside the sheet. */
  .filters::after {
    content: "";
    position: sticky;
    bottom: calc(-96px - env(safe-area-inset-bottom, 0px));
    height: 0;
  }
  body.filters-open { overflow: hidden; }
  .filters::-webkit-scrollbar, .chips::-webkit-scrollbar,
  .tab-rail::-webkit-scrollbar, .store-tabs::-webkit-scrollbar { display: none; }
  .filters > *, .chips > *, .store-tabs > * { flex: 0 0 auto; scroll-snap-align: start; }
  .chip { min-height: 34px; padding-inline: 13px; font-size: 13px; }

  /* Catalog toolbar: the button cluster + sort select must never force the
     page wider than the screen. Let it wrap, and cap nested flex rows. */
  .toolbar { gap: 10px; margin-bottom: 14px; min-width: 0; }
  .toolbar > *, .toolbar .row { min-width: 0; max-width: 100%; }
  .toolbar .row { flex-wrap: wrap; gap: 8px; }
  .toolbar .select { min-width: 0; max-width: 100%; }
  .result-count { font-size: 13px; }

  /* ---------- 7. Forms -------------------------------------------------- */

  /* ---------- 7. Forms -------------------------------------------------- */  input.input, select.input, textarea.input {
    min-height: 48px;
    font-size: 16px; /* >=16px stops iOS from zooming the whole page on focus */
    border-radius: 14px;
  }
  textarea.input { min-height: 108px; padding-block: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .btn, .btn-sm { min-height: 46px; border-radius: 14px; font-size: 14.5px; }
  .btn-sm { min-height: 40px; font-size: 13.5px; }
  .btn-block-mobile { width: 100%; }

  /* ---------- 8. Modals -> bottom sheets ------------------------------- */
  .modal, .sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    max-height: min(88vh, 720px);
    border-radius: var(--sheet-radius) var(--sheet-radius) 0 0;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    animation: mpm-sheet .26s var(--ease-out);
  }
  .modal::before {
    content: "";
    position: absolute;
    top: 8px;
    inset-inline: 0;
    margin-inline: auto;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
  }
  .modal-head { padding-top: 20px; }
  .modal-backdrop { background: rgba(7, 12, 24, .5); backdrop-filter: blur(3px); }
  @keyframes mpm-sheet {
    from { transform: translateY(24px); opacity: .5; }
    to { transform: none; opacity: 1; }
  }

  /* ---------- 9. Tables & data ----------------------------------------- */
  .table-wrap { margin-inline: calc(-1 * var(--mobile-gutter)); padding-inline: var(--mobile-gutter); }
  .table-wrap table { min-width: 560px; }
  /* Comparison tables (pricing, specs) scroll sideways inside their own box
     instead of dragging the whole page wider. */
  .pg-compare, .compare-table, .spec-table { width: 100%; }
  .pg-compare-wrap, .table-wrap, .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .pg-compare-wrap {
    /* Must be able to shrink below its content, otherwise the 640px table
       still widens the page: overflow only helps when the box can be narrow.
       `min-width: 0` overrides the inherited `min-width: auto`. */
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: calc(-1 * var(--mobile-gutter));
    padding-inline: var(--mobile-gutter);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .pg-compare { min-width: 640px; }
  .pg-compare th, .pg-compare td { padding: 12px 10px; font-size: 12.5px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; border-radius: 16px; }

  /* Category browsers (home + catalog) become scrollable rails, not pages. */
  .cat-browser-nav, .cat-nav, .cat-groups {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
  }
  .cat-browser, .cat-browser-body, .cat-panel, .cat-panel-body { min-width: 0; max-width: 100%; overflow-x: hidden; }

  /* ---------- 10. Product detail --------------------------------------- */
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  /* A grid track sizes to its widest child unless children can shrink. Every
     direct child (and the sidebar cards inside them) must opt out of the
     default `min-width: auto` or one wide row widens the whole page. */
  .pdp, .pdp > *, .pdp .stack, .pdp .panel, .pdp .supplier-card,
  .pdp .gallery-main, .pdp .buy-panel, .pdp > div > * { min-width: 0; max-width: 100%; }
  .pdp .stack { overflow-x: hidden; }
  .gallery-main { border-radius: 18px; }
  /* Gallery thumbs: a swipeable rail. Use padding on the parent instead of
     negative margins, which would widen the layout viewport. */
  .gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: 0;
    padding-inline: 0;
    max-width: 100%;
    min-width: 0;
  }

  /* Any full-bleed rail must never contribute to the layout width. */
  .filters, .chips, .tab-rail, .store-tabs, .cat-tabs,
  .table-wrap, .pg-compare-wrap, .store-sticky-actions, .store-cover {
    max-width: 100vw;
    box-sizing: border-box;
  }
  .gallery-thumbs::-webkit-scrollbar { display: none; }
  .pdp-head h1 { font-size: 1.12rem; line-height: 1.4; }
  .pdp-price-block { border-radius: 16px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-row { padding-block: 9px; }
  /* Sticky buy bar: the highest-intent control on the page. */
  .pdp-buy-bar {
    display: flex;
    gap: 10px;
    padding: 10px var(--mobile-gutter);
    /* Grid children default to min-width:auto, so the three buttons would
       widen the whole page. Contain the bar and let the label truncate. */
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .pdp-buy-bar .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; }
  .pdp > * { min-width: 0; }

  /* ---------- 11. Storefront ------------------------------------------- */
  .store-cover { height: 132px; border-radius: 0; margin-inline: calc(-1 * var(--mobile-gutter)); }
  .store-head { padding-top: 54px; gap: 12px; }
  .store-logo { width: 76px; height: 76px; border-radius: 18px; bottom: -38px; inset-inline-start: var(--mobile-gutter); }
  .store-title { font-size: 1.1rem; }
  .store-sticky-actions {
    position: sticky;
    bottom: var(--tabbar-total);
    z-index: 60;
    display: flex;
    gap: 10px;
    padding: 10px var(--mobile-gutter);
    margin-inline: calc(-1 * var(--mobile-gutter));
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .store-sticky-actions .btn { flex: 1; }

  /* ---------- 11b. Tap-target audit fixes ------------------------------ */
  /* Links that looked fine with a mouse are too small for a thumb. Padding
     grows the hit area without changing the visual rhythm of the layout. */
  .cat-leaf, .cat-group-title, .cat-nav-item,
  .footer-link, .footer-social-link, .lang-pill,
  .hero-tab, .hero-tag, .chip-sm, .drawer-locales .chip {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
  .cat-leaf { width: 100%; padding-block: 9px; }
  .cat-group-title { width: 100%; }
  .footer-link { padding-block: 8px; }
  .hero-tab, .hero-tag { min-height: 36px; }
  .chip-sm { min-height: 38px; }
  /* Favourite buttons overlap the card corner; keep them comfortably tappable
     without visually shrinking the image. */
  .product-fav { width: 38px; height: 38px; }
  /* The whole card is the natural target, but the inner title/supplier links
     also receive taps — give them breathing room. `.product-title` stays a
     -webkit-box so the 2-line clamp keeps working. */
  .product-supplier { min-height: 40px; padding-block: 6px; }
  .supplier-name { min-height: 38px; display: inline-flex; align-items: center; }

  /* ---------- 12. Footer ----------------------------------------------- */
  .site-footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; text-align: start; }
  /* Payment badges were collapsing to a 10px column inside the flex footer. */
  .footer-paybar-head, .footer-pay-methods {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .footer-pay-methods > * { flex: 0 0 auto; }

  /* ---------- 13. Motion & feedback ------------------------------------ */
  /* The desktop route animation uses transform, which makes every descendant
     resolve `position: fixed` against that element instead of the viewport.
     That breaks bottom sheets, the tab bar and any fixed overlay. Phones get
     a cheap opacity transition instead: same polish, no containing block. */
  .route-enter, .route-enter > *, .container { transform: none !important; }
  .route-enter { animation: mpm-enter .2s var(--ease-out); }
  @keyframes mpm-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
  /* Skeleton shimmer reads as "app is thinking" rather than "page is broken". */
  .skeleton, .sk-line, .sk-block {
    background: linear-gradient(100deg, var(--surface-3) 30%, var(--surface-2) 50%, var(--surface-3) 70%);
    background-size: 220% 100%;
    animation: mpm-shimmer 1.15s ease-in-out infinite;
  }
  @keyframes mpm-shimmer {
    from { background-position: 140% 0; }
    to { background-position: -40% 0; }
  }
}

@media (max-width: 520px) {
  :root { --mobile-gutter: 14px; --tabbar-h: 60px; }
  .section { padding-block: 28px; }
  .product-grid, .grid-products { gap: 9px; }
  .product-title { font-size: 12.2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mtb-fab { width: 48px; height: 48px; border-radius: 16px; margin: 0 4px; }
}

/* Narrow phones (iPhone SE and older Androids). */
@media (max-width: 380px) {
  .product-grid, .grid-products { grid-template-columns: 1fr; }
  .mtb-label { font-size: 9.5px; }
  .product-media { aspect-ratio: 4 / 3; }
}

/* Six tabs plus the compose FAB: tighten spacing so labels stay readable. */
@media (max-width: 420px) {
  .mtb-item { gap: 2px; padding-top: 6px; }
  .mtb-item svg { width: 20px; height: 20px; }
  .mtb-fab { width: 44px; height: 44px; margin: 0 4px; border-radius: 14px; }
  .mtb-fab svg { width: 22px; height: 22px; }
}

/* Landscape phones: reclaim vertical space from the header and tab bar. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 480px) {
  :root { --header-h: 48px; --tabbar-h: 52px; }
  .mtb-label { display: none; }
  .mtb-fab { width: 44px; height: 44px; transform: translateY(-6px); }
  .modal { max-height: 96vh; }
}

/* Tablets: two-column product detail, roomier gutters, no tab bar. */
@media (min-width: 761px) and (max-width: 1024px) {
  .container { padding-inline: 22px; }
  .product-grid, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .section { padding-block: 52px; }
}

/* Respect the OS-level motion preference. */
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .mtb-item, .mtb-fab, .card, .product-card { transition: none !important; }
  .route-enter, .skeleton, .modal { animation: none !important; }
}

/* Dark-mode tuning so the glass bars keep contrast. */
@media (max-width: 760px) {
  [data-theme="dark"] .mtb {
    background: rgba(14, 21, 38, .92);
    border-top-color: #1e2942;
  }
  [data-theme="dark"] .mtb-badge { box-shadow: 0 0 0 2px #0e1526; }
  [data-theme="dark"] .pdp-buy-bar,
  [data-theme="dark"] .store-sticky-actions { background: rgba(14, 21, 38, .94); }
}


/* Mobile navigation Pro Max: keep the app bar to brand / search / cart / menu
   and use a stable five-destination bottom bar. */
@media (max-width: 760px) {
  .site-header { overflow: hidden; }
  .header-inner { overflow: hidden; }
  .header-actions { gap: 2px; }
  .header-actions > [data-category-drawer-toggle],
  .header-actions > a[href="/favorites"],
  .header-actions > .header-only { display: none !important; }
  .header-actions > .mobile-search-btn,
  .header-actions > a[href="/cart"],
  .header-actions > .mobile-toggle { display: inline-grid; }
  .header-actions > .mobile-toggle { margin-inline-start: 2px; }
  .mtb { box-shadow: 0 -12px 32px -20px rgba(10, 17, 34, .65); }
  .mtb-item { border-radius: 14px; margin: 4px 2px; padding-top: 6px; }
  .mtb-item.is-active { background: color-mix(in srgb, var(--brand) 9%, transparent); }
  .mtb-item.is-active .mtb-ico::after { display: none; }
  .mtb-item.is-active .mtb-label { font-weight: 750; }
  .mtb-fab { display: none !important; }
}


/* Product actions: one horizontal, scrollable action rail instead of a
   six-row stack on phones. Keeps the primary Pay now bar untouched. */
@media (max-width: 760px) {
  .buy-secondary {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .buy-secondary::-webkit-scrollbar { display: none; }
  .buy-secondary .btn {
    flex: 0 0 auto;
    min-height: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 650;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 1px 2px rgba(10, 17, 34, .04);
  }
  .buy-secondary .btn:active { background: var(--surface-3); transform: scale(.97); }
  .buy-secondary .btn .tick { width: 14px; height: 14px; }
  .buy-secondary .btn span { overflow: visible; text-overflow: clip; }
}

/* ==== mobile-pro.css ==== */
/* ==========================================================================
   Mobile Pro Max v2 — the global mobile design layer.
   Loaded after mobile.css so every route gets the same premium surface:
   compact chrome, editorial hero type, app-grade cards, thumb-sized controls,
   bottom-sheet dialogs, install banner and service-worker update toast.
   Desktop is untouched: everything lives behind the 760px breakpoint.
   ========================================================================== */

.mpm-quick { display: none; }
/* Never let the AI launcher sit on top of the install card's CTA. */
body.gb-app-banner-open .ai-root { display: none; }

/* Compatibility guards for clients still running an older cached worker:
   the old banner used a full-screen scrim and the old assistant auto-opened.
   Both could swallow the first touch gesture. New code still works: the
   banner is a fixed card and the panel needs body.ai-open. */
.gb-app-layer { pointer-events: none !important; }
.gb-app-scrim { display: none !important; pointer-events: none !important; }
.gb-app-layer.is-open .gb-app-banner { opacity: 1; transform: none; }
body:not(.ai-open) .ai-panel { display: none !important; }

@media (max-width: 760px) {
  /* Keep native scrolling; disable smooth scroll only for route resets. */
  html { scroll-behavior: auto !important; overflow-x: visible; }
  body { overscroll-behavior-y: auto; overflow-x: visible; }
  :root {
    --mpm-r-sm: 14px;
    --mpm-r-md: 18px;
    --mpm-r-lg: 24px;
    --mpm-shadow: 0 14px 34px -26px rgba(10, 17, 34, .55);
    --mpm-shadow-strong: 0 24px 54px -30px rgba(10, 17, 34, .62);
    --mpm-gutter: 16px;
  }

  /* ---------- 1. Typography & rhythm ---------------------------------- */
  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -.006em;
  }
  .container, .container.section { padding-inline: var(--mpm-gutter); }
  .section { padding-block: 30px; }
  .section-head, .page-head { gap: 10px; }
  .section-head h2, .h2 { font-size: 1.22rem; letter-spacing: -.03em; }
  .h1 { font-size: 1.55rem; letter-spacing: -.035em; line-height: 1.2; }
  .lead { font-size: 14px; line-height: 1.62; }

  /* ---------- 2. Header ------------------------------------------------- */
  .site-header {
    background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    box-shadow: 0 8px 24px -24px rgba(10, 17, 34, .5);
  }
  .header-actions .icon-btn { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
  .brand img, .brand svg { border-radius: 10px; }

  /* ---------- 3. Hero: editorial, not a poster ------------------------- */
  .hero {
    min-height: 0 !important;
    border-radius: 0 0 26px 26px;
    padding-block: 20px 22px !important;
    overflow: hidden;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 7.4vw, 2rem);
    line-height: 1.14;
    letter-spacing: -.04em;
    max-width: 18ch;
  }
  .hero .lead {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.55;
    opacity: .92;
    max-width: 32em;
  }
  .hero-badge {
    padding: 5px 9px;
    font-size: 10.5px;
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .22);
  }
  .hero-search {
    margin-top: 12px;
    border-radius: var(--mpm-r-md);
    box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .6);
    background: rgba(255, 255, 255, .98);
  }
  .hero-search-tabs { gap: 4px; padding: 4px; }
  .hero-tab {
    min-height: 34px; border-radius: 11px; font-size: 12.5px;
    color: var(--muted) !important;
    background: transparent !important;
  }
  .hero-tab.active {
    color: #fff !important;
    background: var(--brand) !important;
    box-shadow: 0 6px 16px -10px rgba(47, 91, 255, .9);
  }
  .hero-search-row .input { height: 48px; font-size: 16px; }
  .hero-search-row .btn { height: 48px; border-radius: 13px; }
  .hero-tags { gap: 6px; margin-top: 9px; }
  .hero-tag { padding: 6px 10px; font-size: 11.5px; border-radius: 11px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
  .hero-stats { display: none; }
  .breadcrumbs { display: none; }

  /* Trust claims become one compact swipe row instead of a 2x2 wall. */
  .trust-strip {
    display: none !important;
    padding: 8px 0 2px;
    background: transparent;
    border: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trust-strip::-webkit-scrollbar { display: none; }
  .trust-items {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    padding-inline: var(--mpm-gutter);
    max-width: 100%;
  }
  .trust-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
    font-size: 11px;
    white-space: nowrap;
  }
  .trust-item .icon-wrap { width: 18px; height: 18px; }
  .trust-item .icon-wrap svg { width: 14px; height: 14px; }

  /* Mobile-only quick picks: products visible before the long marketing rails. */
  .mpm-quick { display: block; }
  .mpm-quick .section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .mpm-quick .section-head .eyebrow { display: none; }
  .mpm-quick .section-head h2 { margin: 0 !important; font-size: 1.08rem; }
  .mpm-quick .section-head .btn { min-height: 34px; padding: 6px 10px; flex: 0 0 auto; }
  .mpm-quick .product-grid { margin-top: 0; }
  .hero-inner { min-height: 0 !important; }

  /* ---------- 4. Cards & product grid ---------------------------------- */
  .product-grid, .grid-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-card {
    border-radius: var(--mpm-r-md);
    overflow: hidden;
    background: var(--bg-elev);
    border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    box-shadow: var(--mpm-shadow);
    transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out);
  }
  .product-card:active { transform: scale(.985); }
  .product-media { aspect-ratio: 1 / 1; border-radius: 0; }
  .product-media img { width: 100%; height: 100%; object-fit: cover; }
  .product-body { padding: 10px 11px 11px; }
  .product-title { font-size: 13px; line-height: 1.35; font-weight: 680; }
  .product-price, .product-card .price { font-size: 15px; letter-spacing: -.02em; }
  .product-meta, .product-supplier { font-size: 11px; }
  .product-fav {
    width: 36px; height: 36px; border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(16, 26, 51, .06);
  }
  [data-theme="dark"] .product-fav { background: rgba(16, 24, 42, .78); }

  /* Panels, cards, order summaries share one surface language. */
  .panel, .card, .pdp-price-block, .pdp-seller, .order-card,
  .address-card, .wallet-card, .auth-card, .form-card {
    border-radius: var(--mpm-r-md);
    border-color: color-mix(in srgb, var(--line) 72%, transparent);
    box-shadow: var(--mpm-shadow);
  }
  .panel { padding: 16px; }
  .panel-title { font-size: 14px; letter-spacing: -.02em; }

  /* ---------- 5. Controls ---------------------------------------------- */
  .btn {
    min-height: 46px;
    border-radius: var(--mpm-r-sm);
    font-weight: 700;
    letter-spacing: -.01em;
  }
  .btn-sm { min-height: 40px; border-radius: 12px; }
  .btn-block { width: 100%; }
  .input, .select, textarea, .form-control {
    min-height: 48px;
    border-radius: var(--mpm-r-sm);
    font-size: 16px; /* prevents iOS input-zoom */
  }
  select.select { background-position: right 12px center; }
  .chip, .filter-pill, .tab-pill, .segmented button {
    min-height: 38px;
    border-radius: 12px;
    font-size: 12.5px;
  }
  .filters, .tab-rail, .chips {
    gap: 6px;
    padding-block: 2px 6px;
    scroll-snap-type: x proximity;
  }
  .filters > *, .tab-rail > *, .chips > * { scroll-snap-align: start; flex: 0 0 auto; }
  .table-wrap { border-radius: var(--mpm-r-md); }

  /* ---------- 6. Bottom sheets instead of centre dialogs --------------- */
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    margin: 0;
    border-radius: var(--mpm-r-lg) var(--mpm-r-lg) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: mpm-sheet-up .24s var(--ease-out);
    box-shadow: var(--mpm-shadow-strong);
  }
  .modal-head { padding: 14px 16px 10px; position: sticky; top: 0; background: var(--bg-elev); z-index: 1; }
  .modal-head::before {
    content: "";
    display: block;
    width: 42px; height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: var(--line);
  }
  .modal-body { padding: 6px 16px 16px; overflow: auto; }
  .modal-foot {
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    position: sticky; bottom: 0;
    background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  @keyframes mpm-sheet-up { from { transform: translateY(28px); opacity: .6; } to { transform: none; opacity: 1; } }

  /* ---------- 7. AI launcher clear of the tab bar ---------------------- */
  .ai-root { right: 12px; bottom: calc(var(--tabbar-total, 70px) + 14px); }
  .ai-fab { width: 50px; height: 50px; }
  .ai-panel { bottom: 0; max-height: 88vh; }
  html.has-tabbar .ai-root { bottom: calc(var(--tabbar-total) + 14px); }
  /* On product pages the sticky buy bar owns the bottom edge: lift the
     assistant above it so it never covers add-to-cart / buy-now. */
  body:has(.pdp-buy-bar) .ai-root { display: none; }
  .pdp-buy-bar { z-index: 80; }

  /* ---------- 8. Install banner ---------------------------------------- */
  .gb-app-layer { position: fixed; inset: 0; z-index: 980; pointer-events: none; }
  body.gb-app-banner-open .ai-root { display: none; }
  .gb-app-scrim {
    position: absolute; inset: 0;
    background: rgba(4, 9, 20, .34);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
  }
  .gb-app-layer.is-open .gb-app-scrim { opacity: 1; pointer-events: auto; }
  .gb-app-banner {
    position: fixed;
    inset-inline: 10px;
    bottom: calc(var(--tabbar-total, 70px) + 10px);
    padding: 16px 15px calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 30px 70px -28px rgba(6, 12, 28, .7);
    pointer-events: auto;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .26s var(--ease-out), opacity .2s ease;
    overflow: hidden;
  }
  .gb-app-banner.is-open { transform: none; opacity: 1; }
  .gb-app-banner::before {
    content: "";
    position: absolute; inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #2f5bff, #8b5cf6, #ec4899);
  }
  .gb-app-head { display: flex; align-items: center; gap: 12px; }
  .gb-app-icon {
    width: 56px; height: 56px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 10px 26px -14px rgba(47, 91, 255, .8);
    flex: 0 0 auto;
  }
  .gb-app-headtext { min-width: 0; flex: 1; }
  .gb-app-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
  .gb-app-title { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
  .gb-app-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .gb-app-close {
    width: 32px; height: 32px;
    border: 0; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--muted);
  }
  .gb-app-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
  .gb-app-feature {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11px; font-weight: 600;
  }
  .gb-app-feature svg { width: 13px; height: 13px; }
  .gb-app-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 9px; }
  .gb-app-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px;
    border: 0; border-radius: 13px;
    background: linear-gradient(120deg, #2f5bff, #7c3aed);
    color: #fff; font-size: 14px; font-weight: 800;
    text-decoration: none;
    box-shadow: 0 14px 28px -14px rgba(47, 91, 255, .9);
  }
  .gb-app-primary:active { transform: scale(.98); }
  .gb-app-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: transparent;
    color: var(--muted);
    font-size: 13px; font-weight: 650;
  }
  .gb-app-note { margin-top: 9px; font-size: 10.5px; color: var(--faint); text-align: center; }

  /* ---------- 9. Service-worker update toast --------------------------- */
  .gb-update-toast {
    position: fixed;
    inset-inline: 12px;
    bottom: calc(var(--tabbar-total, 70px) + 12px);
    z-index: 990;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #0b1220;
    color: #f8fafc;
    box-shadow: 0 22px 50px -22px rgba(0, 0, 0, .8);
    font-size: 13px;
    animation: mpm-toast-in .26s var(--ease-out);
  }
  .gb-update-toast p { flex: 1; margin: 0; }
  .gb-update-toast button {
    border: 0; border-radius: 10px;
    padding: 8px 12px;
    background: linear-gradient(120deg, #2f5bff, #7c3aed);
    color: #fff; font-weight: 700; font-size: 12px;
  }
  @keyframes mpm-toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

  /* ---------- 10. Misc polish ----------------------------------------- */
  .breadcrumb { display: none; }
  .skeleton, .sk-line, .sk-block { border-radius: 12px; }
  img { -webkit-user-drag: none; }
  ::selection { background: rgba(47, 91, 255, .2); }
  .toast, .toaster { bottom: calc(var(--tabbar-total, 70px) + 12px); }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .container { padding-inline: 22px; }
  .hero h1 { font-size: 2.3rem; max-width: 18ch; }
  .product-grid, .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .panel, .card { border-radius: 20px; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .gb-app-banner, .modal, .gb-update-toast, .product-card { animation: none !important; transition: none !important; }
}

[data-theme="dark"] .gb-app-banner {
  background: rgba(13, 20, 36, .96);
  border-color: #1e2942;
}
[data-theme="dark"] .gb-app-close { background: #18233a; }
[data-theme="dark"] .gb-app-feature { background: #18233a; }

/* ==== mobile-pro-tablet.css ==== */
/* Tablet (iPad) install card: a bottom-right glass sheet over the desktop-like
   layout. The phone rules above are scoped to 760px, so iPad needs its own. */
@media (min-width: 761px) and (max-width: 1024px) {
  .gb-app-layer { position: fixed; inset: 0; z-index: 980; pointer-events: none; }
  .gb-app-scrim {
    position: absolute; inset: 0;
    background: rgba(4, 9, 20, .28);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity .22s ease;
  }
  .gb-app-layer.is-open .gb-app-scrim { opacity: 1; pointer-events: auto; }
  .gb-app-banner {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 390px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg-elev) 96%, transparent);
    backdrop-filter: saturate(180%) blur(22px);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 34px 80px -30px rgba(6, 12, 28, .7);
    pointer-events: auto;
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .26s var(--ease-out), opacity .2s ease;
    overflow: hidden;
  }
  .gb-app-banner.is-open { transform: none; opacity: 1; }
  .gb-app-banner::before {
    content: "";
    position: absolute; inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #2f5bff, #8b5cf6, #ec4899);
  }
  .gb-app-head { display: flex; align-items: center; gap: 12px; }
  .gb-app-icon { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; }
  .gb-app-headtext { min-width: 0; flex: 1; }
  .gb-app-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
  .gb-app-title { font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
  .gb-app-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
  .gb-app-close {
    width: 34px; height: 34px; border: 0; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--muted);
  }
  .gb-app-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
  .gb-app-feature {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 9px; border-radius: 999px;
    background: var(--surface-2); color: var(--muted);
    font-size: 11px; font-weight: 600;
  }
  .gb-app-feature svg { width: 13px; height: 13px; }
  .gb-app-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 9px; }
  .gb-app-primary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; border: 0; border-radius: 13px;
    background: linear-gradient(120deg, #2f5bff, #7c3aed);
    color: #fff; font-size: 14px; font-weight: 800; text-decoration: none;
    box-shadow: 0 14px 28px -14px rgba(47, 91, 255, .9);
  }
  .gb-app-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; border: 1px solid var(--line); border-radius: 13px;
    background: transparent; color: var(--muted);
    font-size: 13px; font-weight: 650;
  }
  .gb-app-note { margin-top: 10px; font-size: 10.5px; color: var(--faint); text-align: center; }
  [data-theme="dark"] .gb-app-banner { background: rgba(13, 20, 36, .96); border-color: #1e2942; }
}
