/* Devign Brands. Tokens from ~/devign-brand/DESIGN.md: night background, one violet for actions,
   Archivo 800 headings, Inter body, Alexandria for Arabic. Mobile first, logical properties for RTL.
   No inline styles anywhere: the CSP is style-src 'self'. No gradients. */

:root {
  --night: #07070F;
  --night-2: #0B0B18;
  --deep: #12142A;
  --deep-2: #1A1A2E;
  --field: #0D0E1D;
  --line: #25263B;
  --line-strong: #34355A;
  --input-line: #6A6C88;          /* 3.5:1 on the field and panel colours (WCAG 1.4.11) */
  --ink: #F4F4F8;
  --body: #B8BACB;
  --muted: #9A9CB0;
  --violet: #7B6EF0;
  --violet-soft: #C9C4FF;
  --violet-tint: rgba(123, 110, 240, .12);
  --on-violet: #0B0B18;
  --btn-2: #161628;
  --ok: #34D399;
  --bad: #F87171;
  --r-btn: 8px;
  --r-input: 8px;
  --r-chip: 6px;
  --r-card: 12px;
  --r-media: 16px;
  --ease: cubic-bezier(.22, .9, .3, 1);
  --t-fast: 120ms;
  --t-mid: 220ms;
  --gutter: 16px;
  --page-max: 1200px;
  --font-display: Archivo, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"] {
  --font-display: Alexandria, Inter, system-ui, sans-serif;
  --font-body: Alexandria, Inter, system-ui, sans-serif;
}

/* ---- base ---------------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }
h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--violet-soft); text-underline-offset: 3px; }
a:hover { color: #E4E1FF; }
img, svg { max-width: 100%; }
img { height: auto; }
strong, b { color: var(--ink); font-weight: 600; }
ul, ol { padding-inline-start: 1.2em; }
bdi { unicode-bidi: isolate; }
::selection { background: rgba(123, 110, 240, .4); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em;
}
.ic--ok { color: var(--ok); }
html[dir="rtl"] .ic--flip { transform: scaleX(-1); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.break { overflow-wrap: anywhere; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important;
}
.skip {
  position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-btn); background: var(--violet); color: var(--on-violet);
  font-weight: 600; transform: translateY(-160%); transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: none; color: var(--on-violet); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.js .js-hide { display: none; }
.wrap { width: 100%; max-width: var(--page-max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.lead { font-size: 17px; color: var(--body); max-width: 62ch; }

/* ---- buttons ------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--btn-2); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; position: relative;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:hover { filter: brightness(1.12); color: var(--ink); border-color: #4A4B72; }
.btn:active { filter: brightness(.92); transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 2px var(--night); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn--primary { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.btn--primary:hover { color: var(--on-violet); border-color: var(--violet); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--violet-soft); }
.btn--ghost:hover { color: #E4E1FF; background: var(--violet-tint); border-color: transparent; }
.btn--danger { color: var(--bad); border-color: rgba(248, 113, 113, .45); }
.btn--danger:hover { color: var(--bad); border-color: rgba(248, 113, 113, .7); }
.btn--small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
.btn--large { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--icon { padding: 8px 10px; }
.btn--icon .ic { width: 22px; height: 22px; }
.linkish { background: none; border: 0; padding: 4px; color: var(--violet-soft); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions form { margin: 0; }
.actions--center { justify-content: center; }

/* ---- chips, tags, notices -------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px;
  border-radius: var(--r-chip); border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 600; line-height: 1.6; white-space: nowrap; color: var(--body); background: rgba(255, 255, 255, .03);
}
.chip .ic { width: 14px; height: 14px; }
.chip--ok { color: var(--ok); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.chip--wait { color: var(--violet-soft); border-color: rgba(123, 110, 240, .5); background: var(--violet-tint); }
.chip--bad { color: var(--bad); border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .08); }
.chip--muted { color: var(--body); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.tags li { padding: 2px 8px; border-radius: var(--r-chip); background: var(--deep-2); border: 1px solid var(--line); color: var(--body); font-size: 13px; line-height: 1.6; }
.tag-example {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--r-chip);
  border: 1px dashed var(--input-line); color: var(--body); font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin: 0 0 16px; border-radius: var(--r-card);
  border: 1px solid var(--line); background: var(--deep); color: var(--body); font-size: 15px;
}
.notice p { margin: 0; }
.notice > .ic { margin-top: 3px; }
.notice--ok { border-color: rgba(52, 211, 153, .35); }
.notice--ok > .ic { color: var(--ok); }
.notice--warn { border-color: rgba(248, 113, 113, .4); background: #171327; }
.notice--warn > .ic { color: var(--bad); }
.notice--info { border-color: rgba(123, 110, 240, .35); }
.notice--info > .ic { color: var(--violet-soft); }
.notice--bad { border-color: rgba(248, 113, 113, .5); }
.notice--bad > .ic { color: var(--bad); }

/* ---- forms ---------------------------------------------------------------------------------- */
.form { display: grid; gap: 16px; margin: 0; }
.form__grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .label { color: var(--ink); font-weight: 600; font-size: 15px; margin: 0; }
.optional { color: var(--muted); font-weight: 400; font-size: 14px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.field-error { margin: 0; font-size: 14px; color: var(--bad); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--input-line); border-radius: var(--r-input);
  background: var(--field); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #8A8CA8; }
textarea { resize: vertical; min-height: 96px; }
select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239A9CB0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-position: right 14px center; background-size: 12px 12px; background-repeat: no-repeat; padding-inline-end: 36px;
}
html[dir="rtl"] select { background-position: left 14px center; }
select option { background: #15152b; color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; border-color: var(--violet); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
input[type="file"] { color: var(--body); font: inherit; font-size: 14px; max-width: 100%; }
input[type="file"]::file-selector-button {
  margin-inline-end: 12px; padding: 8px 12px; border-radius: var(--r-btn); border: 1px solid var(--input-line);
  background: var(--btn-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--body); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check--box {
  align-items: center; padding: 8px 12px; border: 1px solid var(--input-line); border-radius: var(--r-btn);
  background: var(--field); min-height: 44px; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.check--box input { margin: 0; }
.check--box:hover { border-color: #8A8CA8; }
.check--box:has(input:checked) { border-color: var(--violet); background: var(--violet-tint); color: var(--ink); }
.check--box:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.check--box:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.counter { font-size: 14px; color: var(--muted); text-align: end; margin: 0; }
.counter.is-over { color: var(--bad); }
.form--inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form--inline input[type="text"], .form--inline input[type="password"], .form--inline select { width: auto; flex: 1 1 200px; }
fieldset.panel { margin: 0; min-width: 0; }
fieldset.panel legend { float: inline-start; width: 100%; padding: 0; margin: 0 0 16px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
fieldset.panel legend + * { clear: both; }
fieldset.panel > .field + .field { margin-top: 18px; }

/* ---- public header / footer ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 15, .9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand-logo { display: inline-flex; align-items: center; flex: none; }
.brand-logo img { height: 24px; width: auto; }
.site-nav { display: none; gap: 4px; margin-inline-start: 24px; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-btn); }
.site-nav a:hover { color: var(--ink); background: var(--deep); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
  display: grid; min-width: 240px; padding: 8px;
  background: var(--deep); border: 1px solid var(--line-strong); border-radius: var(--r-card);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.menu__panel a, .menu__button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-btn);
  color: var(--ink); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; width: 100%; cursor: pointer; text-align: start;
}
.menu__panel a:hover, .menu__button:hover, .menu__panel a[aria-current="page"] { background: var(--deep-2); }
.menu__panel a.menu__cta { justify-content: center; margin-top: 4px; background: var(--violet); color: var(--on-violet); font-weight: 600; }
.menu__panel a.menu__cta:hover { background: var(--violet); filter: brightness(1.12); }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu__panel form { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--night-2); }
.site-footer__inner { display: grid; gap: 24px; }
.site-footer__brand img { height: 22px; width: auto; }
.site-footer__brand p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.site-footer__links a { color: var(--body); }
.lang-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.lang-form__icon { color: var(--muted); display: inline-flex; }
.lang-form select { width: auto; min-width: 170px; min-height: 40px; padding-block: 8px; }

/* ---- landing: hero ------------------------------------------------------------------------- */
.public-main > .notice { max-width: var(--page-max); margin: 16px auto 0; width: calc(100% - 2 * var(--gutter)); }
.hero { padding: 40px 0 48px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__text { min-width: 0; }
.hero h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.02; margin-bottom: 18px; max-width: 14ch; }
html[lang="ar"] .hero h1, html[lang="th"] .hero h1 { line-height: 1.3; max-width: 18ch; }
html[lang="ru"] .hero h1 { max-width: 16ch; }
.hero .lead { font-size: clamp(17px, 2vw, 19px); margin-bottom: 28px; }

.finder {
  background: var(--deep); border: 1px solid var(--line-strong); border-radius: var(--r-media);
  padding: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.finder__title { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; color: var(--ink); font-weight: 600; font-size: 16px; }
.finder__title .ic { color: var(--violet-soft); }
.finder__fields { display: grid; gap: 12px; }
.finder .field label { font-size: 14px; color: var(--body); font-weight: 500; }
.finder__go { align-self: end; min-height: 44px; }
.finder__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.showcase { margin: 0; position: relative; min-width: 0; }
.showcase__window {
  background: var(--deep); border: 1px solid var(--line-strong); border-radius: var(--r-media);
  padding: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.showcase__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); }
.showcase__title { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 600; font-size: 15px; }
.showcase__title .ic { color: var(--violet-soft); }
.showcase__filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-chip);
  border: 1px solid var(--line-strong); background: var(--field); color: var(--body); font-size: 13px; font-weight: 500; white-space: nowrap;
}
.fchip .ic { width: 14px; height: 14px; color: var(--muted); }
.fchip--on { border-color: rgba(123, 110, 240, .6); color: var(--ink); }
.showcase__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xcard { display: grid; gap: 10px; padding: 12px; border-radius: var(--r-card); background: var(--night-2); border: 1px solid var(--line); min-width: 0; }
.xcard__top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.xcard__id { display: grid; min-width: 0; }
.xcard__name { color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard__region { color: var(--body); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.xcard__tags span { padding: 1px 7px; border-radius: var(--r-chip); background: var(--deep-2); font-size: 12px; color: var(--body); }
.xcard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.xcard__stats span { display: grid; font-size: 11px; line-height: 1.3; color: var(--body); min-width: 0; overflow-wrap: anywhere; }
.xcard__stats b { font-size: 15px; font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.showcase__deal {
  margin-top: 12px; padding: 14px; border-radius: var(--r-card); background: var(--deep);
  border: 1px solid rgba(123, 110, 240, .55); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); display: grid; gap: 10px;
}
.showcase__deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.showcase__deal-title { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.35; }
.showcase__cap { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--deep-2); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
.bar__fill--60 { width: 60%; }
.avatar--tone0 { background: #2A2552; }
.avatar--tone1 { background: #1D3050; }
.avatar--tone2 { background: #3A2446; }
.avatar--tone3 { background: #1B3A3A; }

/* funnel: invited / applied / booked */
.funnel { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.funnel__step { display: grid; min-width: 0; }
.funnel dt, .funnel__step > :not(b) { font-size: 13px; color: var(--body); }
.funnel dd { margin: 0; color: var(--ink); font-weight: 700; }
.funnel--mini .funnel__step { font-size: 12px; color: var(--body); }
.funnel--mini b { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); }
.funnel__step--on dd, .funnel__step--on b { color: var(--violet-soft); }
.progress {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px;
  background: var(--deep-2); color: var(--violet); overflow: hidden;
}
.progress::-webkit-progress-bar { background: var(--deep-2); border-radius: 3px; }
.progress::-webkit-progress-value { background: var(--violet); border-radius: 3px; }
.progress::-moz-progress-bar { background: var(--violet); border-radius: 3px; }

/* ---- landing: trust strip, features ------------------------------------------------------------ */
.trust { border-block: 1px solid var(--line); background: var(--night-2); }
.trust__list { list-style: none; margin-block: 0; display: grid; }
.trust__list li { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.trust__list li:last-child { border-bottom: 0; }
.trust__list li > span:last-child { display: grid; font-size: 15px; color: var(--muted); line-height: 1.45; }
.trust__list strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.trust__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--deep); border: 1px solid var(--line-strong); color: var(--violet-soft); }

.section { padding: 64px 0; }
.section--tight { padding-bottom: 40px; }
.section--band { background: var(--night-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 40px; max-width: 720px; }
.section__head .lead { margin: 0; }
.feature { display: grid; gap: 28px; align-items: center; padding: 8px 0 56px; }
.feature:last-child { padding-bottom: 0; }
.feature + .feature { border-top: 1px solid var(--line); padding-top: 56px; }
.feature__text { min-width: 0; }
.feature__text h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.feature__text > p { font-size: 17px; max-width: 52ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.ticks li > .ic { color: var(--ok); margin-top: 3px; }
.ticks--lg { gap: 18px; }
.ticks--lg li > .ic { color: var(--violet-soft); width: 22px; height: 22px; margin-top: 1px; }
.ticks--lg li > span { display: grid; gap: 2px; }

.mock {
  position: relative; min-width: 0; padding: 16px; border-radius: var(--r-media);
  background: var(--deep); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.mock__tag { position: absolute; top: -11px; inset-inline-end: 16px; background: var(--night); }
.mock--find { display: grid; gap: 14px; }
.mock__side { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.mock__label { flex-basis: 100%; font-size: 13px; color: var(--body); font-weight: 600; margin-top: 4px; }
.mbox {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-chip);
  border: 1px solid var(--line-strong); background: var(--field); font-size: 13px; color: var(--body); white-space: nowrap;
}
.mbox::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--input-line); flex: none; }
.mbox--on { border-color: rgba(123, 110, 240, .6); color: var(--ink); background: var(--violet-tint); }
.mbox--on::before { background: var(--violet); border-color: var(--violet); }
.mock__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--night-2); border: 1px solid var(--line); min-width: 0; }
.mrow__id { display: grid; min-width: 0; flex: 1 1 auto; }
.mrow__name { color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__meta { color: var(--body); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__stat { display: none; font-size: 11px; color: var(--body); text-align: center; line-height: 1.2; }
.mrow__stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.mbtn {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-btn); flex: none;
  border: 1px solid var(--line-strong); background: var(--btn-2); color: var(--ink); font-size: 12px; font-weight: 600;
}
.mbtn--primary { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.mock--post { display: grid; gap: 14px; }
.mform { display: grid; gap: 6px; padding: 14px; border-radius: var(--r-card); background: var(--night-2); border: 1px solid var(--line); }
.mform__label { display: block; font-size: 12px; color: var(--body); font-weight: 600; margin-top: 4px; }
.mform__input { display: block; padding: 8px 10px; border-radius: var(--r-input); border: 1px solid var(--input-line); background: var(--field); color: var(--ink); font-size: 14px; }
.mform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mform__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mapps { display: grid; gap: 8px; }
.mapps__head { margin: 0; color: var(--ink); font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.mapps__head span { color: var(--muted); font-weight: 600; }
.mbook__title { margin: 0 0 16px; color: var(--ink); font-weight: 600; font-size: 15px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline__step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-bottom: 18px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before { content: ""; position: absolute; inset-inline-start: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline__step:last-child::before { display: none; }
.timeline__step.is-done::before { background: var(--violet); }
.timeline__dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--field); border: 1.5px solid var(--input-line); color: var(--muted); position: relative; z-index: 1; }
.timeline__dot .ic { width: 16px; height: 16px; }
.timeline__step.is-done .timeline__dot { background: var(--violet); border-color: var(--violet); color: var(--on-violet); }
.timeline__step.is-now .timeline__dot { border-color: var(--violet); color: var(--violet-soft); box-shadow: 0 0 0 4px var(--violet-tint); }
.timeline__step > span:last-child { display: grid; font-size: 14px; color: var(--muted); line-height: 1.45; padding-top: 5px; }
.timeline__step b { color: var(--ink); font-size: 15px; }

/* ---- landing: regions, kinds, faq, cta -------------------------------------------------------- */
.regions-wrap { display: grid; gap: 28px; }
.regions-wrap__head .lead { margin: 0; }
.regions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.regions__item { display: grid; gap: 4px; align-content: start; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.regions__item:nth-child(odd) { padding-inline-end: 16px; }
.regions__item:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.regions__name { color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.regions__lang { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.regions__lang .ic { width: 15px; height: 15px; }
.split { display: grid; gap: 32px; }
.split__side .lead { margin-bottom: 20px; }
.kinds { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.kinds__row { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.kinds__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--deep); border: 1px solid var(--line-strong); color: var(--violet-soft); }
.kinds__row h3 { margin: 2px 0 4px; font-size: 18px; }
.kinds__row p { margin: 0; font-size: 15px; }
.faq-wrap { display: grid; gap: 16px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; list-style: none; cursor: pointer;
  padding: 18px 2px; color: var(--ink); font-weight: 600; font-size: 17px;
}
.faq__item summary:hover { color: #fff; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__chev { transition: transform var(--t-mid) var(--ease); color: var(--muted); }
details[open] > summary .faq__chev { transform: rotate(180deg); }
.faq__item p { padding: 0 2px 18px; margin: 0; max-width: 70ch; }
.cta-band { padding: 24px 0 72px; }
.cta-band__inner {
  display: grid; gap: 20px; padding: 28px 20px; border-radius: var(--r-media);
  background: var(--deep); border: 1px solid rgba(123, 110, 240, .5);
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 17px; max-width: 52ch; }

/* ---- auth pages ---------------------------------------------------------------------------- */
.auth { display: grid; place-items: start center; padding: 40px var(--gutter) 64px; }
.auth__card { width: 100%; max-width: 460px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-media); padding: 28px 20px; }
.auth__card--wide { max-width: 640px; }
.auth__card h1 { font-size: 30px; }
.auth__alt { text-align: center; margin: 18px 0 0; font-size: 15px; }
.auth__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--deep-2); border: 1px solid var(--line-strong); color: var(--violet-soft); margin-bottom: 16px; }
.auth--split { gap: 32px; align-items: start; }
.auth__side { width: 100%; max-width: 640px; order: 2; }
.auth__side-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 24px; }
.auth__side-note { display: flex; gap: 10px; align-items: flex-start; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.auth__side-note .ic { color: var(--ok); margin-top: 2px; }
.auth--split .auth__card { order: 1; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--violet-soft); margin: 0 0 4px; }

/* ---- legal --------------------------------------------------------------------------------- */
.legal { padding-block: 40px 16px; }
.legal h1 { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 36px; font-size: 22px; }
.legal li { margin-bottom: 6px; }

/* ---- app shell ----------------------------------------------------------------------------- */
.shell { min-height: 100vh; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); min-height: 60px; background: rgba(7, 7, 15, .92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar .brand-logo img { height: 22px; }
.app-main { padding: 20px var(--gutter) 64px; max-width: 1240px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.page-head > div:first-child { min-width: 0; flex: 1 1 320px; }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 6px; overflow-wrap: anywhere; }
.page-head p { margin: 0; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.crumbs { margin: 0 0 12px; font-size: 14px; }
.crumbs a { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.panel { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 16px; margin-bottom: 16px; min-width: 0; }
.panel h2 { font-size: 19px; }
.panel h2 > .ic { color: var(--violet-soft); margin-inline-end: 8px; }
.panel--accent { border-color: rgba(123, 110, 240, .45); }
.panel--danger { border-color: rgba(248, 113, 113, .35); }
.panel--quiet { background: transparent; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel--fold summary { display: flex; gap: 12px; align-items: baseline; list-style: none; cursor: pointer; }
.panel--fold summary::-webkit-details-marker { display: none; }
.panel--fold summary h2 { margin: 0; }
.panel--fold summary .faq__chev { margin-inline-start: auto; align-self: center; }
.panel--fold[open] summary { margin-bottom: 12px; }
.count { color: var(--muted); font-weight: 600; font-size: 15px; }
.h-small { font-size: 15px; margin: 16px 0 8px; color: var(--ink); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; display: flex; gap: 8px; align-items: center; }
.h-small > .ic { color: var(--violet-soft); }
.panel > .h-small:first-child { margin-top: 0; }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 8px; padding: 16px; border-radius: var(--r-card); background: var(--deep); border: 1px solid var(--line);
  text-decoration: none; color: var(--body); transition: border-color var(--t-fast) var(--ease);
}
.stat:hover { border-color: var(--line-strong); color: var(--body); }
.stat__icon { grid-column: 2; grid-row: 1; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--deep-2); color: var(--muted); }
.stat__icon .ic { width: 18px; height: 18px; }
.stat__num { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--ink); line-height: 1.1; }
.stat__label { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.stat--hot { border-color: rgba(123, 110, 240, .55); }
.stat--hot .stat__icon { background: var(--violet-tint); color: var(--violet-soft); }
.dash-grid { display: grid; gap: 16px; }
.dash-main, .dash-side { min-width: 0; }
.checklist { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li > .ic { margin-top: 3px; color: var(--muted); }
.checklist li.is-done > .ic { color: var(--ok); }
.checklist p { margin: 0; }
.checklist li.is-done p:first-child { color: var(--ink); }
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.empty--inline { padding: 24px 16px; }
.empty__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--deep-2); color: var(--violet-soft); margin-bottom: 12px; }
.empty__icon .ic { width: 26px; height: 26px; }
.empty p { max-width: 52ch; margin-inline: auto; }
.rows { list-style: none; margin: 0 0 12px; padding: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row__deal { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; font-size: 15px; color: var(--body); text-decoration: none; }
.row__deal:hover { color: var(--ink); text-decoration: underline; }
.row__icon { color: var(--muted); display: inline-flex; }
.row__main { display: grid; flex: 1 1 200px; min-width: 0; }
.person { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 200px; }
.person__text { display: grid; min-width: 0; }
.person__handle { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__handle:hover { color: var(--violet-soft); text-decoration: underline; }
.person__meta { font-size: 14px; color: var(--muted); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--deep-2); flex: none; }
.avatar--sm { width: 36px; height: 36px; }
.avatar--md { width: 52px; height: 52px; }
.avatar--lg { width: 88px; height: 88px; }
.avatar--initials { display: inline-grid; place-items: center; color: var(--violet-soft); font-family: var(--font-display); font-weight: 800; border: 1px solid var(--line-strong); }
.avatar--sm.avatar--initials { font-size: 15px; }
.avatar--md.avatar--initials { font-size: 21px; }
.avatar--lg.avatar--initials { font-size: 34px; }

/* creators: filters + results */
.browse { display: grid; gap: 16px; }
.filters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; align-self: start;
  padding: 16px; border-radius: var(--r-card); background: var(--deep); border: 1px solid var(--line);
}
.filters__title { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.filters__title .ic { color: var(--violet-soft); }
.filters .field label { font-size: 14px; color: var(--body); font-weight: 500; }
.filters__actions { grid-column: 1 / -1; display: grid; gap: 8px; }
.filters__actions:empty { display: none; }
.results { min-width: 0; }
.results__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.result-count { font-size: 15px; color: var(--body); margin: 0; font-weight: 600; }
.cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.ccard {
  position: relative; display: grid; gap: 12px; align-content: start; min-width: 0; padding: 16px; border-radius: var(--r-card);
  background: var(--deep); border: 1px solid var(--line); transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.ccard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ccard:focus-within { border-color: rgba(123, 110, 240, .6); }
.ccard__top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ccard__id { min-width: 0; }
.ccard__name { display: block; color: var(--ink); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard__name::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.ccard__name:hover { color: var(--ink); }
.ccard__name:focus-visible { outline: none; }
.ccard__name:focus-visible::after { outline: 2px solid var(--violet); outline-offset: 2px; }
.ccard__handle { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; min-width: 0; }
.verified { color: var(--violet-soft); display: inline-flex; }
.ccard__region { margin: 0; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ccard__region .ic { color: var(--muted); }
.ccard .tags { margin: 0; }
.ccard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.ccard__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; min-width: 0; padding-inline: 10px; border-inline-start: 1px solid var(--line); }
.ccard__stats div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.ccard__stats dt { font-size: 13px; color: var(--body); line-height: 1.3; }
.ccard__stats dd { margin: 0; color: var(--ink); font-weight: 800; font-family: var(--font-display); font-size: 20px; line-height: 1.15; }
.ccard__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.ccard__foot .btn { position: relative; z-index: 1; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.pager__info { font-size: 14px; color: var(--muted); }

/* creator profile */
.profile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 16px;
  padding: 20px 16px; border-radius: var(--r-card); background: var(--deep); border: 1px solid var(--line);
}
.profile h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 4px; overflow-wrap: anywhere; }
.profile__id { min-width: 0; }
.profile__handle { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 4px; color: var(--muted); }
.profile__region { display: flex; gap: 6px; align-items: center; margin: 0 0 10px; }
.profile__region .ic { color: var(--muted); }
.profile__tags { margin: 0; }
.profile__cta { grid-column: 1 / -1; }
.about-grid { display: grid; gap: 4px 24px; }
.detail-grid { display: grid; gap: 16px; }
.detail-main, .detail-side { min-width: 0; }
.kv { margin: 0 0 12px; display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; min-width: 0; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); font-size: 14px; flex: none; }
.kv dd { margin: 0; color: var(--ink); text-align: end; min-width: 0; overflow-wrap: anywhere; }
.kv--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv--stats div { display: grid; gap: 6px; align-content: space-between; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.kv--stats div:last-child { border-bottom: 1px solid var(--line); }
.kv--stats dt { display: flex; gap: 6px; align-items: flex-start; line-height: 1.35; }
.kv--stats dt .ic { margin-top: 1px; }
.kv--stats dt .ic { color: var(--violet-soft); width: 16px; height: 16px; }
.kv--stats dd { text-align: start; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.kv--inline div { justify-content: flex-start; }
.pitch { white-space: normal; overflow-wrap: anywhere; color: var(--body); }
.locked-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; }
.locked-note .ic { margin-top: 3px; flex: none; }

/* deals */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--violet); }
.tabs__n { min-width: 22px; padding: 0 6px; border-radius: var(--r-chip); background: var(--deep-2); color: var(--body); font-size: 13px; text-align: center; }
.tabs--jump { border-bottom: 0; flex-wrap: wrap; gap: 8px; }
.tabs--jump a { border: 1px solid var(--line); border-radius: var(--r-btn); padding: 7px 12px; font-size: 14px; margin: 0; color: var(--body); }
.tabs--jump a:hover { border-color: var(--line-strong); background: var(--deep); }
.deal-table__head { display: none; }
.deal-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.deal-item {
  position: relative; display: grid; gap: 12px; padding: 16px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-card);
  align-items: center; transition: border-color var(--t-fast) var(--ease);
}
.deal-item:hover { border-color: var(--line-strong); }
.deal-item__main { min-width: 0; }
.deal-item__title { color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; overflow-wrap: anywhere; }
.deal-item__title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.deal-item__title:hover { color: var(--violet-soft); }
.deal-item__title:focus-visible { outline: none; }
.deal-item__title:focus-visible::after { outline: 2px solid var(--violet); outline-offset: 2px; }
.deal-item__meta { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.deal-item__status { justify-self: start; }
.deal-item__funnel { display: grid; gap: 8px; min-width: 0; }
.deal-item__date { margin: 0; font-size: 14px; color: var(--ink); display: flex; gap: 6px; }
.deal-item__label { color: var(--muted); }
.deal-summary { display: grid; gap: 12px; padding: 16px; margin-bottom: 16px; border-radius: var(--r-card); background: var(--deep); border: 1px solid var(--line); }
.funnel--big { gap: 8px 32px; }
.funnel--big dd { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; }
.deal-form { min-width: 0; }
.form-layout { display: grid; gap: 16px; align-items: start; }
.form-aside { min-width: 0; }
.matches { list-style: none; padding: 0; margin: 0; }
.match { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.match:last-child { border-bottom: 0; }
.match__info { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; min-width: 0; }
.match__deal { font-size: 14px; overflow-wrap: anywhere; color: var(--body); text-decoration: none; }
.match__deal:hover { color: var(--ink); text-decoration: underline; }
.match__msg { flex-basis: 100%; margin: 0; display: grid; gap: 2px; font-size: 15px; color: var(--body); border-inline-start: 2px solid var(--violet); padding: 6px 0 6px 12px; padding-inline: 12px 0; background: none; overflow-wrap: anywhere; }
.match__msg-label { font-size: 13px; color: var(--body); font-weight: 600; }
.match__actions { display: flex; gap: 8px; margin-inline-start: auto; }
.match__actions form { margin: 0; }

/* account */
.account-layout { display: grid; gap: 16px; align-items: start; }
.account-body { min-width: 0; }
.codes { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes li { padding: 8px 10px; background: var(--night); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; text-align: center; }
.logo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.logo-row > div { flex: 1 1 200px; min-width: 0; display: grid; gap: 10px; }
.logo-row input[type="file"] { min-width: 0; width: 100%; }
.brand-mark { width: 96px; height: 96px; border-radius: 16px; object-fit: contain; background: var(--night); border: 1px solid var(--line); }
.brand-mark--empty { display: grid; place-items: center; color: var(--violet-soft); font-family: var(--font-display); font-weight: 800; font-size: 36px; }
.org-mark { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: var(--night); border: 1px solid var(--line); flex: none; }
.org-mark--empty { display: grid; place-items: center; color: var(--violet-soft); font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.split-forms { display: grid; gap: 20px; }
.setup { padding-inline-start: 1.3em; display: grid; gap: 14px; margin: 0 0 12px; }
.qr-box { background: #fff; padding: 8px; border-radius: 12px; width: 212px; max-width: 100%; margin: 10px 0; }
.qr { display: block; width: 100%; height: auto; }
.secret { color: var(--ink); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* ---- breakpoints -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  .hide-xs { display: none !important; }
  .filters { grid-template-columns: 1fr; }
  .xcard--more { display: none; }
  .showcase__grid { grid-template-columns: 1fr; }
}
@media (min-width: 480px) {
  .finder__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mrow__stat { display: block; }
}
@media (min-width: 560px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth__card { padding: 36px; }
  .codes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trust__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust__list li { border-bottom: 0; padding: 22px 16px 22px 0; padding-inline: 0 16px; }
  .trust__list li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
  .profile { grid-template-columns: auto minmax(0, 1fr) auto; padding: 24px; gap: 20px; }
  .profile__cta { grid-column: auto; align-self: center; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band__inner { padding: 36px; }
}
@media (max-width: 559px) {
  .hide-sm { display: none !important; }
  .trust__list li { align-items: flex-start; }
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kv--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { padding: 24px; }
  .match { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px 16px; }
  .match > .person { grid-row: 1; }
  .match__info { grid-row: 1; justify-content: flex-end; }
  .match__actions { grid-row: 1; grid-column: 3; margin: 0; }
  .match__msg { grid-row: 2; grid-column: 1 / -1; }
  .section { padding: 88px 0; }
  .section--tight { padding-bottom: 48px; }
  .split-forms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock { padding: 20px; }
  .mock--find { grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
  .mock__side { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .mock__side .mbox { white-space: normal; }
  .regions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .regions__item, .regions__item:nth-child(odd), .regions__item:nth-child(even) { padding: 20px 16px; border-inline-start: 1px solid var(--line); }
  .regions__item:nth-child(4n + 1) { border-inline-start: 0; padding-inline-start: 0; }
  .deal-summary { grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 24px; padding: 20px 24px; }
  .cta-band__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 40px 44px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .hide-lg { display: none !important; }
  .site-nav { display: flex; }
  .hero { padding: 72px 0 88px; }
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; }
  .showcase__window { padding-bottom: 48px; }
  .showcase__below { display: grid; gap: 14px; margin-top: -36px; position: relative; }
  .showcase__deal { margin: 0; margin-inline-start: -28px; width: min(340px, 72%); }
  .showcase__cap { margin: 0; }
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
  .feature--flip .feature__text { order: 2; }
  .regions-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions__item, .regions__item:nth-child(4n + 1) { padding: 20px 20px; border-inline-start: 1px solid var(--line); }
  .regions__item:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .split__side { position: sticky; top: 100px; align-self: start; }
  .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .site-footer__inner { grid-template-columns: minmax(260px, 1fr) minmax(0, auto) auto; align-items: center; gap: 32px; }
  .auth--split { grid-template-columns: minmax(0, 420px) minmax(0, 640px); justify-content: center; gap: 64px; padding-top: 56px; }
  .auth__side { order: 0; padding-top: 24px; }
  .auth--split .auth__card { order: 0; }

  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .topbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh;
    padding: 24px 16px; background: var(--night);
  }
  .app-main { border-inline-start: 1px solid var(--line); min-height: 100vh; }
  .sidebar__logo { padding-inline: 8px; }
  .sidebar__logo img { height: 24px; }
  .sidebar__nav { display: grid; gap: 4px; }
  .sidebar__nav a { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-btn); color: var(--body); text-decoration: none; font-weight: 500; }
  .sidebar__nav a .ic { color: var(--muted); }
  .sidebar__nav a:hover { background: var(--deep); color: var(--ink); }
  .sidebar__nav a[aria-current="page"] { background: var(--deep-2); color: var(--ink); }
  .sidebar__nav a[aria-current="page"] .ic { color: var(--violet-soft); }
  .sidebar__nav a[aria-current="page"]::before { content: ""; position: absolute; inset-inline-start: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--violet); }
  html[dir="rtl"] .sidebar__nav a[aria-current="page"]::before { border-radius: 3px 0 0 3px; }
  .sidebar__foot { margin-top: auto; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
  .sidebar__org { display: flex; gap: 10px; align-items: center; min-width: 0; padding-inline: 4px; }
  .sidebar__org-text { display: grid; min-width: 0; }
  .sidebar__company { color: var(--ink); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar__status { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; color: var(--body); }
  .sidebar__status .ic { width: 14px; height: 14px; }
  .sidebar__foot .btn { justify-content: flex-start; padding-inline: 8px; }
  .app-main { padding: 32px 40px 80px; }
  .dash-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .browse { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
  .filters { grid-template-columns: 1fr; position: sticky; top: 24px; gap: 14px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .detail-side { position: sticky; top: 24px; }
  .form-layout { grid-template-columns: minmax(0, 780px) minmax(0, 300px); gap: 24px; }
  .form-aside { position: sticky; top: 24px; }
  .account-layout { grid-template-columns: 200px minmax(0, 820px); gap: 24px; }
  .account-nav { position: sticky; top: 24px; flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .account-nav a { border: 0; border-radius: var(--r-btn); padding: 8px 12px; }
  .account-nav a:hover { background: var(--deep); }
  .deal-table__head {
    display: grid; grid-template-columns: minmax(0, 2.2fr) 130px minmax(0, 1.7fr) 130px; gap: 20px;
    padding: 0 20px 8px; font-size: 13px; color: var(--body); font-weight: 600;
  }
  .deal-item { grid-template-columns: minmax(0, 2.2fr) 130px minmax(0, 1.7fr) 130px; gap: 20px; padding: 18px 20px; }
  .deal-item__label { display: none; }
}
@media (min-width: 1280px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ccard:hover { transform: none; }
}
@media print {
  .sidebar, .topbar, .site-header, .site-footer, .actions, .match__actions { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- small layout fixes --------------------------------------------------------------------- */
.form > .btn:not(.btn--block), .form > .actions { justify-self: start; }
.panel > .small.muted:last-child { margin: 12px 0 0; }
.panel > .btn + .small, .panel > form + .small { margin-top: 12px; }
.actions + .detail-grid, .notice + .actions { margin-top: 16px; }
.field .check { font-weight: 400; color: var(--body); }
