/* ==========================================================================
   RaveRewards base.css
   Reset, typography, layout utilities and every shared component from
   docs/research/design_system.md section 8. Tokens live in tokens.css.
   Page CSS files add page layout only and never restyle these classes.
   Class naming: BEM style, `.block`, `.block__part`, `.block--variant`, `.is-state`.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font-ui); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, picture, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
svg { flex: none; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul[role="list"], ol[role="list"] { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--accent); color: var(--on-accent); }
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
h1, h2, h3, h4, h5, h6, .t-display { text-wrap: balance; }
p { text-wrap: pretty; }
body.is-locked { overflow: hidden; padding-right: var(--scrollbar-gap, 0px); }

/* Icons from the sprite: <svg class="i"><use href=".../sprite.svg#name"/></svg> */
.i {
  display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: middle;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.i--12, .i--14 { stroke-width: 2; }
.i--10 { width: 10px; height: 10px; stroke-width: 2.25; }
.i--12 { width: 12px; height: 12px; }
.i--14 { width: 14px; height: 14px; }
.i--18 { width: 18px; height: 18px; }
.i--20 { width: 20px; height: 20px; }
.i--24 { width: 24px; height: 24px; }
.i--28 { width: 28px; height: 28px; }
.i--32 { width: 32px; height: 32px; }

/* ---------- 2. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--text); }
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
h3 { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.12; }
h4 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; }
h5 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
h6 { font-size: 14px; letter-spacing: -0.005em; line-height: 1.35; }
.t-display { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 6.4vw, 88px); letter-spacing: -0.04em; line-height: 1.0; }
.t-h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.t-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.06; }
.t-h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; line-height: 1.12; }
.t-h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; }
.t-h5 { font-family: var(--font-ui); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.t-h6 { font-family: var(--font-ui); font-weight: 600; font-size: 14px; letter-spacing: -0.005em; line-height: 1.35; }
.t-lead { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; line-height: 1.45; color: var(--text-2); }
.t-body { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.t-strong { font-weight: 500; font-size: 15px; letter-spacing: -0.01em; line-height: 1.5; }
.t-small { font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--text-3); }
.t-meta { font-weight: 500; font-size: 12px; line-height: 1.2; letter-spacing: -0.01em; }
.t-micro { font-weight: 600; font-size: 11px; line-height: 1.1; letter-spacing: .02em; }
.t-eyebrow { font-weight: 600; font-size: 12px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.t-num-xl { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 96px); letter-spacing: -0.04em; line-height: .95; }
.t-num-lg { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.t-mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .04em; }
.t-accent-word { background: var(--grad-molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 767px) {
  h5, .t-h5 { font-size: 15px; }
  h4, .t-h4 { font-size: 18px; }
  .t-lead { font-size: 16px; }
}
.tnum { font-variant-numeric: tabular-nums; }
.c-text { color: var(--text); } .c-2 { color: var(--text-2); } .c-3 { color: var(--text-3); } .c-4 { color: var(--text-4); }
.c-money { color: var(--money); } .c-danger { color: var(--danger); } .c-warn { color: var(--warn); } .c-info { color: var(--info); }
.c-accent { color: var(--accent); }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.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; }
.nowrap { white-space: nowrap; }
.link { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color var(--dur-2) var(--ease-out), color var(--dur-2); }
.link:hover { text-decoration-color: currentColor; }
.link--quiet { color: var(--text-2); }
.link--quiet:hover { color: var(--text); }
.dot-sep { color: var(--text-3); opacity: .5; padding-inline: 4px; }
kbd, .kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--border-strong); font: 500 11px/1 var(--font-mono); color: var(--text-3); }
code { font-family: var(--font-mono); font-size: .9em; background: var(--fill-2); padding: 1px 6px; border-radius: var(--r-2xs); }

/* Long form copy (legal, help articles) */
.prose { color: var(--text-2); font-size: 15px; line-height: 1.7; max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 48px; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 32px; color: var(--text); }
.prose h4 { font-size: 17px; margin-top: 24px; font-family: var(--font-ui); }
.prose ul, .prose ol { padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--text-4); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--border-subtle); margin-block: 32px; }
.prose blockquote { border-left: 2px solid var(--accent-border); padding-left: 16px; color: var(--text-2); }

/* ---------- 3. Layout utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--container-pad, var(--gutter))); margin-inline: auto; padding-inline: var(--container-pad, var(--gutter)); }
@media (min-width: 1024px) { .container { --container-pad: max(4vw, 40px); } }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); --container-pad: var(--gutter); }
.container--wide { max-width: var(--container-app); --container-pad: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); min-width: 0; }
.stack--2xs { --stack-gap: 4px; } .stack--xs { --stack-gap: 8px; } .stack--sm { --stack-gap: 12px; }
.stack--lg { --stack-gap: 24px; } .stack--xl { --stack-gap: 32px; } .stack--2xl { --stack-gap: 48px; } .stack--3xl { --stack-gap: 64px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 12px); min-width: 0; }
.cluster--xs { --cluster-gap: 4px; } .cluster--sm { --cluster-gap: 8px; } .cluster--lg { --cluster-gap: 16px; } .cluster--xl { --cluster-gap: 24px; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }
.cluster--center { justify-content: center; }
.cluster--nowrap { flex-wrap: nowrap; }
.cluster--start { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: var(--grid-gap, 20px); grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min, 280px), 100%), 1fr)); }
.grid--fit { grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 280px), 100%), 1fr)); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .grid { --grid-gap: 12px; } }
.grid--stats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .grid--stats { grid-template-columns: repeat(var(--stat-cols, 4), minmax(0, 1fr)); gap: 16px; } }
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link { position: absolute; left: 16px; top: -48px; z-index: calc(var(--z-tooltip) + 1); padding: 10px 16px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: top var(--dur-3) var(--ease-out); }
.skip-link:focus { top: 12px; }
.divider { height: 1px; border: 0; background: var(--border-subtle); }
.divider--grad { background: var(--grad-hairline); }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (max-width: 1023px) { .hide-tablet { display: none !important; } }
@media (min-width: 1024px) { .only-tablet { display: none !important; } }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring-card); }
.panel--pad { padding: 20px; }
.panel--raised { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); border-radius: var(--r-md); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--border-subtle); }
.panel__title { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.panel__body { padding: 20px; }
@media (max-width: 767px) { .panel--pad, .panel__body { padding: 16px; } .panel__head { padding: 0 16px; } }

/* ---------- 4. Buttons (8.1) ---------- */
.btn {
  --h: var(--h-md);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); min-width: 0; padding: 0 18px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font: 600 14px/1 var(--font-ui); letter-spacing: -0.01em; white-space: nowrap; text-decoration: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-4) var(--ease-out), filter var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out), color var(--dur-2) var(--ease-out), opacity var(--dur-2);
}
.btn .i { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); transition-duration: var(--dur-2); }
.btn--sm { --h: var(--h-sm); padding: 0 14px; font-size: 13px; gap: 6px; }
.btn--sm .i { width: 14px; height: 14px; stroke-width: 2; }
.btn--lg { --h: var(--h-lg); padding: 0 24px; font-size: 15px; }
.btn--xl { --h: var(--h-xl); padding: 0 32px; font-size: 17px; letter-spacing: -0.02em; }
.btn--xl .i { width: 18px; height: 18px; }
.btn--icon { width: var(--h); padding: 0; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-molten-btn); color: var(--on-accent); box-shadow: var(--hi-btn), var(--sh-btn-accent); }
.btn--secondary { background: var(--fill-3); color: var(--text); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn--inverse { background: #F5F5F7; color: #0E0E12; }
.btn--danger { background: var(--danger-soft); color: var(--danger); }
@media (hover: hover) {
  .btn--primary:hover { filter: brightness(1.06); transform: scale(1.02); box-shadow: var(--hi-btn), var(--glow-accent), 0 8px 24px rgba(255, 176, 32, .34); }
  .btn--secondary:hover { background: var(--fill-4); }
  .btn--ghost:hover { background: var(--fill-2); color: var(--text); }
  .btn--outline:hover { box-shadow: inset 0 0 0 1px var(--accent-border); }
  .btn--inverse:hover { transform: scale(1.03); }
  .btn--danger:hover { background: rgba(251, 93, 93, .2); }
}
.btn--primary:active, .btn--inverse:active { transform: scale(.98); }
.btn--ghost[aria-expanded="true"], .btn--secondary[aria-expanded="true"] { background: var(--fill-4); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  background: var(--fill-3); color: var(--text-4); box-shadow: none; filter: none; transform: none; cursor: default; pointer-events: none;
}
.btn.is-loading, .btn[aria-busy="true"] { color: transparent !important; pointer-events: none; }
.btn.is-loading::after, .btn[aria-busy="true"]::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--spin-track, rgba(245, 245, 247, .3)); border-top-color: var(--spin-head, var(--text));
  animation: rr-spin .7s linear infinite;
}
.btn--primary { --spin-track: rgba(23, 19, 10, .3); --spin-head: var(--on-accent); }
.btn--inverse { --spin-track: rgba(14, 14, 18, .25); --spin-head: #0E0E12; }
.btn--danger { --spin-track: rgba(251, 93, 93, .3); --spin-head: var(--danger); }
@keyframes rr-spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--fill-4); border-top-color: var(--accent); animation: rr-spin .7s linear infinite; flex: none; }
.spinner--lg { width: 28px; height: 28px; border-width: 2.5px; }

/* Round icon buttons: rail arrows (28), toolbar (32 to 40), glass media controls (36) */
.icon-btn {
  --s: 28px;
  width: var(--s); height: var(--s); flex: none; border-radius: var(--r-pill); display: inline-grid; place-items: center;
  background: var(--fill-2); color: var(--text); border: 0; cursor: pointer; position: relative;
  transition: background-color var(--dur-2) var(--ease-out), opacity var(--dur-2), transform var(--dur-4) var(--ease-out), color var(--dur-2);
}
.icon-btn .i { width: 14px; height: 14px; stroke-width: 2; }
.icon-btn--32 { --s: 32px; } .icon-btn--36 { --s: 36px; } .icon-btn--40 { --s: 40px; }
.icon-btn--32 .i, .icon-btn--36 .i, .icon-btn--40 .i { width: 18px; height: 18px; stroke-width: 1.75; }
.icon-btn--ghost { background: transparent; color: var(--text-2); }
.icon-btn--glass {
  --s: 36px; background: rgba(14, 14, 18, .6); color: #fff;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 8px rgba(0, 0, 0, .35);
}
.icon-btn--glass .i { width: 16px; height: 16px; stroke-width: 1.75; }
@media (hover: hover) {
  .icon-btn:hover { background: var(--fill-4); }
  .icon-btn--ghost:hover { background: var(--fill-2); color: var(--text); }
  .icon-btn--glass:hover { transform: scale(1.05); background: rgba(14, 14, 18, .72); }
}
.icon-btn[aria-expanded="true"] { background: var(--fill-4); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled, .icon-btn[aria-disabled="true"] { opacity: .35; cursor: default; pointer-events: none; }
.icon-btn__dot {
  position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font: 700 10px/16px var(--font-ui); text-align: center;
  box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums;
}

/* ---------- 5. Logo lockup (6.3) ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; line-height: 1; }
.logo__mark { width: 26px; height: 26px; filter: drop-shadow(0 2px 9px rgba(255, 176, 32, .4)); flex: none; }
.logo__word { white-space: nowrap; }
.logo--sm { font-size: 17px; gap: 8px; }
.logo--sm .logo__mark { width: 22px; height: 22px; }
.logo--lg { font-size: 24px; gap: 11px; }
.logo--lg .logo__mark { width: 34px; height: 34px; }
@media (max-width: 767px) { .logo { font-size: 17px; } }

/* ---------- 6. Announcement bar (8.2) ---------- */
.announce {
  position: relative; z-index: calc(var(--z-nav) + 1); min-height: var(--announce-h);
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 56px;
  background: var(--grad-announce); color: var(--on-accent); font-size: 14px; font-weight: 500; line-height: 1.3; text-align: center;
}
.announce__sep { width: 1px; height: 14px; background: rgba(23, 19, 10, .28); flex: none; }
.announce__link { color: var(--on-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.announce__link .i { width: 14px; height: 14px; stroke-width: 2; transition: transform var(--dur-3) var(--ease-out); }
.announce__link:hover .i { transform: translateX(2px); }
.announce__close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: var(--r-pill); color: var(--on-accent); opacity: .75; transition: opacity var(--dur-2), background-color var(--dur-2);
}
.announce__close:hover { opacity: 1; background: rgba(23, 19, 10, .1); }
.announce__close .i { width: 14px; height: 14px; stroke-width: 2; }
.announce__close:focus-visible, .announce__link:focus-visible { outline-color: var(--on-accent); }
@media (max-width: 767px) {
  .announce { justify-content: flex-start; font-size: 13px; padding: 8px 44px 8px 16px; text-align: left; }
  .announce__lead, .announce__sep { display: none; }
}

/* ---------- 7. Nav bar (8.3) ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h);
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: transform var(--dur-5) var(--ease-in-out), border-color var(--dur-5) var(--ease-in-out), background-color var(--dur-5) var(--ease-in-out);
}
.nav.is-scrolled { border-bottom-color: var(--border-subtle); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { position: static; display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; line-height: 22px; color: var(--text-2); white-space: nowrap;
  transition: color var(--dur-5) var(--ease-in-out), background-color var(--dur-5) var(--ease-in-out);
}
.nav__link .i { width: 12px; height: 12px; stroke-width: 2; transition: transform var(--dur-3) var(--ease-out); opacity: .8; }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--text); background: var(--fill-2); }
.nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__signin { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); padding: 8px; border-radius: var(--r-sm); transition: opacity var(--dur-2); }
.nav__signin:hover { opacity: .7; }
.nav__burger {
  display: none; width: 40px; height: 40px; border-radius: var(--r-pill); position: relative; flex: none; color: var(--text);
  transition: background-color var(--dur-2);
}
.nav__burger:hover { background: var(--fill-2); }
.nav__burger span {
  position: absolute; left: 11px; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--dur-5) var(--ease-out), top var(--dur-5) var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
.nav__avatar { border-radius: 50%; padding: 0; display: inline-flex; }
.nav__avatar:focus-visible { outline-offset: 3px; }
@media (max-width: 1023px) {
  .nav__links, .nav__demo, .nav__signin, .nav__dash { display: none; }
  .nav__burger { display: inline-block; }
  .nav__right { gap: 8px; }
  .nav__cta { --h: var(--h-sm); padding: 0 14px; font-size: 13px; }
}
@media (max-width: 479px) { .nav__cta { display: none; } }

/* Mega dropdown (8.4): one viewport that morphs between the Solutions and Resources panels */
.mega {
  position: absolute; top: calc(var(--nav-h) - 8px); left: 0; z-index: var(--z-dropdown);
  width: var(--mega-w, 400px); height: var(--mega-h, 200px); max-width: calc(100vw - 32px);
  background: var(--surface-2); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--border), var(--sh-pop);
  transform: translateX(var(--mega-x, 0px)); transform-origin: top center; overflow: hidden;
  opacity: 0; scale: .96; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3),
              width var(--dur-3) var(--ease-in-out), height var(--dur-3) var(--ease-in-out), transform var(--dur-3) var(--ease-in-out);
}
.mega.is-open { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mega.no-morph { transition: opacity var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3); }
.mega.is-open.no-morph { transition-delay: 0s; }
.mega__panel { position: absolute; top: 0; left: 0; width: max-content; padding: 14px 12px 10px; opacity: 0; visibility: hidden; transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3); }
.mega__panel.is-active { opacity: 1; visibility: visible; transition: opacity var(--dur-3) var(--ease-out) 40ms, visibility 0s; }
.mega__cols { display: grid; grid-template-columns: 316px 316px; gap: 24px; }
.mega__col { width: 376px; }
.mega__cols .mega__col { width: auto; }
.menu-label { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 0 8px 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); color: var(--text); text-align: left; width: 100%;
  transition: background-color var(--dur-2) var(--ease-out);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--fill-1); }
.menu-item:focus-visible { outline-offset: -2px; }
.menu-item__ico { width: 32px; height: 32px; border-radius: 10px; background: var(--fill-2); display: grid; place-items: center; color: var(--text-2); flex: none; transition: color var(--dur-2); }
.menu-item__ico .i { width: 16px; height: 16px; }
.menu-item:hover .menu-item__ico { color: var(--text); }
.menu-item__t { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.menu-item__d { display: block; font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--text-3); }

/* Mobile menu (below 1024): full height sheet under the nav */
.mnav {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--mnav-top, var(--nav-h)); z-index: calc(var(--z-sheet) + 5);
  background: var(--bg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-5) var(--ease-out), transform var(--dur-5) var(--ease-out);
}
.mnav.is-open { opacity: 1; transform: none; }
.mnav__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 24px; }
.mnav__seg { display: flex; margin-bottom: 16px; }
.mnav__seg .seg { width: 100%; }
.mnav__seg .seg__item { flex: 1; justify-content: center; height: 40px; }
.mnav__row {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px;
  font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--text);
  border-bottom: 1px solid var(--border-subtle); text-align: left;
}
.mnav__row .i { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur-5) var(--ease-out); }
.mnav__row[aria-expanded="true"] .i { transform: rotate(180deg); }
.mnav__group { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-5) var(--ease-accordion); }
.mnav__group.is-open { grid-template-rows: 1fr; }
.mnav__group > div { overflow: hidden; }
/* collapsed groups (and FAQ answers below) leave the tab order and the accessibility tree once the collapse ends */
.mnav__group > div, .faq__a > div { visibility: hidden; transition: visibility 0s linear var(--dur-5); }
.mnav__group.is-open > div, .faq__a.is-open > div { visibility: visible; transition-delay: 0s; }
.mnav__group .stack { padding: 12px 0 16px; --stack-gap: 8px; }
.mnav__card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-lg); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.mnav__card .menu-item__ico { width: 40px; height: 40px; border-radius: var(--r-md); }
.mnav__card .menu-item__t { font-size: 16px; }
.mnav__card > .i { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }
.mnav__foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border-subtle); background: var(--bg); }
.mnav__user { display: flex; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--border-subtle); }
@media (min-width: 1024px) { .mnav { display: none !important; } }

/* ---------- 8. Footer CTA band and footer (8.21) ---------- */
.footer-cta { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.cta-ember {
  position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: 56px 48px;
  background: var(--grad-ember-card), var(--surface); box-shadow: var(--ring-card);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
}
.cta-ember::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255, 176, 32, .10), transparent 60%);
}
.cta-ember > * { position: relative; }
.cta-ember__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.03em; line-height: 1.06; max-width: 600px; }
.cta-ember__lead { margin-top: 16px; max-width: 520px; }
.cta-ember__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-ember__stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.cta-ember__stat { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.cta-ember__stat .i { color: var(--text-3); }
@media (max-width: 1023px) { .cta-ember { grid-template-columns: minmax(0, 1fr); align-items: start; } }
@media (max-width: 767px) {
  .cta-ember { padding: 32px 24px; }
  .cta-ember__actions .btn { flex: 1 1 auto; }
}
.footer { background: var(--bg-sunken); border-top: 1px solid var(--border-subtle); padding: 64px 0 calc(32px + var(--cookie-h, 0px)); }
.footer__top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__tagline { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-3); max-width: 260px; }
.footer__social { display: flex; gap: 4px; margin-left: -8px; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--text-3); transition: color var(--dur-2), background-color var(--dur-2); }
.footer__social a:hover { color: var(--text); background: var(--fill-2); }
.footer__social .i { width: 20px; height: 20px; }
.footer__col h2 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); margin-bottom: 16px; line-height: 1.3; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--text-2); transition: color var(--dur-2); }
.footer__col a:hover { color: var(--text); }
.footer__col a .i { width: 12px; height: 12px; stroke-width: 2; color: var(--text-4); margin-left: 4px; vertical-align: -1px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-right: 72px; }
.footer__legal a { color: var(--text-3); transition: color var(--dur-2); }
.footer__legal a:hover, .footer__legal-btn:hover { color: var(--text); }
.footer__legal-btn { color: var(--text-3); font: inherit; padding: 0; transition: color var(--dur-2); }
@media (max-width: 1023px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom) + var(--cookie-h, 0px)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { padding-right: 64px; }
}

/* ---------- 9. Cookie banner ---------- */
/* core.js sets --cookie-h on the root while the banner is open (0 otherwise): the page gets that much room at the
   bottom so the footer, "Load more" buttons and form submits can scroll clear of it (the footer takes the room
   itself so it keeps its colour). Fixed bottom bars add it to their own bottom offset. */
body.site:not(:has(> .footer)) { padding-bottom: var(--cookie-h, 0px); }
.cookie {
  position: fixed; left: 50%; bottom: 16px; z-index: var(--z-sheet); width: min(672px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), var(--sh-3);
  transform: translate(-50%, 16px); opacity: 0; transition: transform var(--dur-5) var(--ease-out), opacity var(--dur-5) var(--ease-out);
}
.cookie.is-open { transform: translate(-50%, 0); opacity: 1; }
.cookie__ico { color: var(--text-3); flex: none; align-self: flex-start; margin-top: 2px; }
.cookie__text { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--text-2); flex: 1; min-width: 0; }
.cookie__text a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.cookie__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 639px) {
  .cookie { flex-wrap: wrap; align-items: flex-start; gap: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .cookie__text { flex-basis: calc(100% - 32px); }
  .cookie__actions { width: 100%; padding-left: 32px; }
  .cookie__actions .btn { flex: 1; }
}

/* ---------- 10. Help widget ---------- */
.help-fab {
  position: fixed; right: 20px; bottom: calc(20px + var(--fab-lift, 0px) + var(--cookie-fab, 0px) + env(safe-area-inset-bottom)); z-index: var(--z-floating-bar);
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-3);
  transition: transform var(--dur-4) var(--ease-out), background-color var(--dur-2), bottom var(--dur-5) var(--ease-out);
}
.help-fab:hover { transform: scale(1.06); background: var(--surface-4); }
.help-fab:active { transform: scale(.96); }
.help-fab .i { width: 22px; height: 22px; position: absolute; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.help-fab .help-fab__close { opacity: 0; transform: rotate(-45deg) scale(.6); }
.help-fab[aria-expanded="true"] .help-fab__open { opacity: 0; transform: rotate(45deg) scale(.6); }
.help-fab[aria-expanded="true"] .help-fab__close { opacity: 1; transform: none; }
.help-scrim { position: fixed; inset: 0; z-index: calc(var(--z-floating-bar) - 1); background: rgba(6, 6, 9, .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--dur-5) var(--ease-out); }
.help-scrim.is-open { opacity: 1; }
.help-pop {
  position: fixed; right: 20px; bottom: calc(80px + var(--fab-lift, 0px) + var(--cookie-fab, 0px) + env(safe-area-inset-bottom)); z-index: var(--z-floating-bar);
  width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 120px); overflow-y: auto; border-radius: var(--r-xl); padding: 20px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), var(--sh-pop);
  transform-origin: bottom right; opacity: 0; transform: translateY(8px) scale(.97);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.help-pop.is-open { opacity: 1; transform: none; }
.help-pop:focus { outline: none; }
.help-pop__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.help-pop__sub { font-size: 13px; font-weight: 500; color: var(--text-3); margin-top: 4px; }
.help-pop__options { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.help-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); text-align: left; transition: background-color var(--dur-2); }
.help-opt:hover { background: var(--fill-3); }
.help-opt .menu-item__ico { background: var(--fill-3); }
.help-opt > .i { margin-left: auto; color: var(--text-3); }
.help-pop__back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 12px; padding: 4px 8px 4px 4px; border-radius: var(--r-sm); }
.help-pop__back:hover { color: var(--text); background: var(--fill-2); }
.help-pop__done { text-align: center; padding: 12px 0 4px; }
.help-pop__done .empty__ico { margin-bottom: 12px; color: var(--success); }
@media (max-width: 639px) {
  .help-fab { right: 16px; bottom: calc(16px + var(--fab-lift, 0px) + var(--cookie-fab, 0px) + env(safe-area-inset-bottom)); }
  .help-pop { right: 16px; bottom: calc(76px + var(--fab-lift, 0px) + var(--cookie-fab, 0px) + env(safe-area-inset-bottom)); }
}

/* ---------- 11. Toasts (8.16) ---------- */
.toasts {
  position: fixed; right: 24px; bottom: calc(var(--toast-bottom, 24px) + var(--cookie-h, 0px)); z-index: var(--z-toast); width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 12px 12px 14px;
  background: var(--surface-2); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border), var(--sh-3);
  opacity: 0; transform: translateY(12px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: none; transition-duration: var(--dur-2); }
.toast.is-behind { transform: scale(.96); opacity: .7; }
.toast__ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.toast--success .toast__ico { color: var(--success); }
.toast--error .toast__ico { color: var(--danger); }
.toast--info .toast__ico { color: var(--info); }
.toast--warn .toast__ico { color: var(--warn); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.toast__desc { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.toast__action { flex: none; }
.toast__close { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: var(--r-pill); color: var(--text-3); }
.toast__close:hover { color: var(--text); background: var(--fill-2); }
.toast__close .i { width: 14px; height: 14px; stroke-width: 2; }
@media (max-width: 767px) {
  .toasts { right: 16px; left: 16px; width: auto; bottom: auto; top: calc(var(--nav-h) + 8px + env(safe-area-inset-top)); flex-direction: column; }
  .toast { transform: translateY(-12px); }
}

/* ---------- 12. Badges (8.9) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: -0.005em; line-height: 1; white-space: nowrap; flex: none;
  background: var(--fill-3); color: var(--text-2);
}
.badge .i { width: 12px; height: 12px; stroke-width: 2; }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--live { background: var(--success-soft); color: var(--success); }
.badge--live .badge__dot { animation: rr-pulse 2s var(--ease-out) infinite; }
.badge--neutral { background: var(--fill-3); color: var(--text-2); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--accent { background: var(--accent-soft); color: var(--accent-2); }
.badge--money { background: var(--money-soft); color: var(--money); }
.badge--lg { height: 28px; padding: 0 10px; font-size: 13px; }
@keyframes rr-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.badge-model {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; flex: none;
}
.badge-model::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m, var(--model-cpm)); }
.badge-model--cpm { --m: var(--model-cpm); } .badge-model--per_post { --m: var(--model-per-post); } .badge-model--retainer { --m: var(--model-retainer); }
.badge-media {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap;
}
.badge-media .i { width: 12px; height: 12px; }
/* dark enough that amber text keeps 4.5:1 even over a white banner (the blur alone does not help on flat light art) */
.badge-media--glass { background: rgba(10, 10, 14, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.badge-media--accent { background: rgba(255, 176, 32, .92); color: var(--on-accent); }
.badge-media--warn { background: rgba(251, 146, 60, .92); color: #1c1006; }
.badge-media__count { opacity: .55; }
.eyebrow-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--border);
  font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 6px; border-radius: var(--r-pill); background: var(--fill-3); color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1; }
.count--accent { background: var(--accent); color: var(--on-accent); }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 20px; padding: 0 6px; border-radius: var(--r-xs); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .i { width: 10px; height: 10px; }
.delta--up { background: var(--success-soft); color: var(--success); }
.delta--down { background: var(--danger-soft); color: var(--danger); }
.delta--flat { background: var(--fill-3); color: var(--text-3); }

/* ---------- 13. Member and CPM pills (8.8) ---------- */
.pills { display: inline-flex; align-items: center; flex: none; }
.pill-members {
  display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 3px 10px 3px 7px; margin-right: -4px; border-radius: var(--r-pill);
  background: var(--fill-3); color: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill-members .i { width: 13px; height: 13px; color: var(--text-2); }
.pills > .pill-members:last-child { margin-right: 0; }
.pill-cpm { display: inline-flex; align-items: center; height: 28px; padding: 0 2px; border-radius: var(--r-pill); background: var(--pill-ring, var(--surface)); position: relative; flex: none; }
.pill-cpm__in {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-pill);
  background: var(--money-soft); color: var(--money); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill-cpm__unit { color: var(--money-2); }
.pill-cpm--md { height: 32px; }
.pill-cpm--md .pill-cpm__in { height: 28px; padding: 0 10px; font-size: 13px; }
.pill-cpm--lg { height: 36px; }
.pill-cpm--lg .pill-cpm__in { height: 32px; padding: 0 12px; font-size: 15px; }
.pill-cpm--bare { background: transparent; padding: 0; height: auto; }

/* ---------- 14. Progress (8.10) ---------- */
.progress { display: block; height: 6px; padding: 1px; border-radius: var(--r-pill); background: var(--fill-2); overflow: hidden; }
.progress__fill { display: block; height: 4px; width: 0; border-radius: var(--r-pill); background: var(--accent); transition: width var(--dur-6) var(--ease-out); }
.progress__fill.has-value { min-width: 4px; }
.progress--md { height: 8px; padding: 0; }
.progress--md .progress__fill { height: 8px; }
.progress--full .progress__fill, .progress__fill--done { background: var(--text-4); }
.progress--success .progress__fill { background: var(--success); }
.progress--warn .progress__fill { background: var(--warn); }
.progress--danger .progress__fill { background: var(--danger); }
.progress--steps { height: 3px; padding: 0; background: var(--fill-3); }
.progress--steps .progress__fill { height: 3px; }
.budget-meter__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.budget-meter__paid { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.budget-meter__note { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.budget-meter__note b { color: var(--money); font-weight: 600; }

/* ---------- 15. Avatars (8.20) ---------- */
.avatar {
  --s: 32px; --t: rgba(255, 176, 32, .2); --tc: var(--accent-2);
  position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center;
  border-radius: 50%; overflow: visible; background: var(--surface-2); color: var(--tc);
  font-size: calc(var(--s) * .4); font-weight: 700; letter-spacing: -0.01em; line-height: 1; text-transform: uppercase; user-select: none;
}
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border-media); pointer-events: none; }
.avatar__fallback { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; background: var(--t); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--surface-2); }
.avatar--brand { border-radius: 25%; font-size: calc(var(--s) * .45); }
.avatar--t0 { --t: rgba(255, 176, 32, .20); --tc: #FFCB5C; }
.avatar--t1 { --t: rgba(106, 169, 255, .20); --tc: #9CC5FF; }
.avatar--t2 { --t: rgba(192, 132, 252, .20); --tc: #D6B0FD; }
.avatar--t3 { --t: rgba(52, 211, 153, .20); --tc: #7FE3BD; }
.avatar--t4 { --t: rgba(251, 113, 133, .20); --tc: #FDA4B4; }
.avatar--t5 { --t: rgba(45, 212, 191, .20); --tc: #7DE7DA; }
.avatar__verified { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--avatar-ring, var(--surface)); padding: 2px; box-sizing: content-box; z-index: 1; }
.avatar--brand .avatar__verified { right: -4px; bottom: -4px; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--avatar-ring, var(--surface)); }
.avatar-stack > * + * { margin-left: -6px; }
.avatar-stack__more { height: var(--s, 28px); padding: 0 8px; margin-left: -6px; border-radius: var(--r-pill); background: var(--fill-3); display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-2); box-shadow: 0 0 0 2px var(--avatar-ring, var(--surface)); }
.verified { width: 12px; height: 12px; flex: none; display: inline-block; vertical-align: middle; }
.verified--14 { width: 14px; height: 14px; }
.verified--16 { width: 16px; height: 16px; }
.verified--20 { width: 20px; height: 20px; }
.verified--22 { width: 22px; height: 22px; }
.verified--24 { width: 24px; height: 24px; }
.org-chip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 500; color: var(--text); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person__name { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person__handle { font-size: 12px; font-weight: 500; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 16. Chips, segmented control, tabs, platform toggles, model cards (8.13) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); flex: none;
  background: var(--fill-2); color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2);
}
.chip .i { width: 14px; height: 14px; color: var(--text-3); stroke-width: 2; transition: color var(--dur-2); }
.chip:hover { background: var(--fill-4); }
.chip[aria-pressed="true"], .chip[aria-checked="true"], .chip.is-selected { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-2); }
.chip[aria-pressed="true"] .i, .chip.is-selected .i { color: var(--accent-2); }
.chip:disabled { opacity: .45; pointer-events: none; }
.chip--sm { height: 28px; padding: 0 10px; font-size: 13px; }
.chip__x { margin-right: -6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.chip__x:hover { background: var(--fill-4); }
@media (max-width: 767px) { .chip { height: 40px; } .chip--sm { height: 32px; } }

.seg { position: relative; display: inline-flex; padding: 3px; gap: 0; border-radius: var(--r-pill); background: var(--fill-2); max-width: 100%; isolation: isolate; }
.seg__item {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  color: var(--text-3); font: 500 14px/1 var(--font-ui); letter-spacing: -0.02em; white-space: nowrap; cursor: pointer; transition: color var(--dur-2);
}
.seg__item:hover { color: var(--text-2); }
.seg__item[aria-pressed="true"], .seg__item[aria-selected="true"], .seg__item[aria-current="page"], .seg__item.is-active { color: var(--text); }
.seg:not(.has-thumb) .seg__item[aria-pressed="true"], .seg:not(.has-thumb) .seg__item[aria-selected="true"],
.seg:not(.has-thumb) .seg__item[aria-current="page"], .seg:not(.has-thumb) .seg__item.is-active { background: var(--surface-3); box-shadow: var(--sh-1), var(--hi-top); }
.seg__thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: var(--thumb-w, 0px); transform: translateX(var(--thumb-x, 0px));
  border-radius: var(--r-pill); background: var(--surface-3); box-shadow: var(--sh-1), var(--hi-top);
  transition: transform 250ms var(--ease-out), width 250ms var(--ease-out);
}
.seg__thumb.no-anim { transition: none; }
.seg--sm .seg__item { height: 24px; padding: 0 10px; font-size: 13px; }
.seg--lg .seg__item { height: 44px; padding: 0 20px; font-size: 16px; }
.seg--block { display: flex; width: 100%; }
.seg--block .seg__item { flex: 1; justify-content: center; }
.seg .count { margin-left: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__item {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; flex: none;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-3); white-space: nowrap; transition: color var(--dur-2);
}
.tabs__item::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); transform: scaleX(0); transition: transform var(--dur-3) var(--ease-out); }
.tabs__item:hover { color: var(--text-2); }
.tabs__item[aria-selected="true"], .tabs__item[aria-current="page"], .tabs__item.is-active { color: var(--text); }
.tabs__item[aria-selected="true"]::after, .tabs__item[aria-current="page"]::after, .tabs__item.is-active::after { transform: scaleX(1); }
.tab-panel:focus-visible { outline-offset: 4px; border-radius: var(--r-sm); }

.utabs { display: inline-block; max-width: 100%; }
.utabs__row { display: flex; align-items: center; }
.utabs__item { position: relative; padding: 0 24px 16px; color: var(--text-4); font: 500 20px/1.2 var(--font-ui); letter-spacing: -0.02em; cursor: pointer; transition: color var(--dur-3); white-space: nowrap; }
.utabs__item + .utabs__item::before { content: ""; position: absolute; left: 0; top: 2px; height: 22px; width: 1px; background: var(--border); }
.utabs__item:hover { color: var(--text-3); }
.utabs__item[aria-selected="true"] { color: var(--text); }
.utabs__track { height: 3px; border-radius: var(--r-pill); background: var(--fill-3); overflow: hidden; }
.utabs__fill { display: block; height: 100%; width: var(--utabs-fill, 0%); background: var(--accent); border-radius: inherit; }
@media (max-width: 767px) { .utabs__item { font-size: 16px; padding: 0 14px 12px; } }

.plat-toggle { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--fill-2); color: var(--text-2); cursor: pointer; transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-4) var(--ease-out); }
.plat-toggle .i { width: 20px; height: 20px; }
.plat-toggle:hover { background: var(--fill-4); color: var(--text); }
.plat-toggle[aria-pressed="true"] { background: #F5F5F7; color: #0E0E12; }
.plat-toggle:active { transform: scale(.94); }
.plat-toggle--sm { width: 32px; height: 32px; }
.plat-toggle--sm .i { width: 16px; height: 16px; }

.model-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 479px) { .model-cards { grid-template-columns: minmax(0, 1fr); } }
.model-card {
  --m: var(--model-cpm);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 12px;
  border-radius: var(--r-md); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); cursor: pointer;
  transition: background-color var(--dur-2), box-shadow var(--dur-2);
}
.model-card:hover { background: var(--fill-2); }
.model-card input { position: absolute; opacity: 0; pointer-events: none; }
.model-card__title { font-size: 14px; font-weight: 500; padding-right: 28px; }
.model-card__desc { font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 2px; padding-right: 20px; }
.model-card__radio { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); transition: box-shadow var(--dur-2); }
.model-card .i { color: var(--m); width: 20px; height: 20px; margin-top: 12px; }
.model-card--per_post { --m: var(--model-per-post); } .model-card--retainer { --m: var(--model-retainer); }
.model-card:has(input:checked) { background: color-mix(in srgb, var(--m) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m) 40%, transparent); }
.model-card:has(input:checked) .model-card__radio { box-shadow: inset 0 0 0 5px var(--m); background: var(--on-accent); }
.model-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Tooltip: <span data-tip="Text">. Pure CSS, shows on hover and keyboard focus. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: var(--z-tooltip);
  width: max-content; max-width: 240px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface-4);
  color: var(--text); font: 500 12px/1.4 var(--font-ui); letter-spacing: -0.005em; text-align: left; white-space: normal; box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity var(--dur-2) var(--ease-out) var(--dur-1), transform var(--dur-2) var(--ease-out) var(--dur-1);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 8px); }

/* ---------- 17. Campaign card (8.6) ---------- */
.card-campaign {
  --pill-ring: var(--surface); --avatar-ring: var(--surface);
  position: relative; display: flex; flex-direction: column; min-width: 0; text-align: left; color: inherit; text-decoration: none; cursor: pointer;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring-card); isolation: isolate;
  transition: transform var(--dur-7) var(--ease-drawer);
}
.card-campaign::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: var(--sh-lift), 0 22px 48px -26px rgba(255, 176, 32, .38);
  transition: opacity var(--dur-7) var(--ease-drawer);
}
.card-campaign::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: var(--grad-card-hover); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  transition: opacity var(--dur-5) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card-campaign:hover { transform: scale(1.037); }
  .card-campaign:hover::before, .card-campaign:hover::after { opacity: 1; }
  .card-campaign:hover .card-campaign__img { transform: scale(1.05); }
}
.card-campaign:active { transform: scale(1.01); }
.card-campaign:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-campaign__media { position: relative; height: 176px; flex: none; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: var(--fill-1); }
.card-campaign__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--border-media); pointer-events: none; }
.card-campaign__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-drawer), filter var(--dur-4); }
.card-campaign__badges { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.card-campaign__body { display: flex; flex-direction: column; gap: 12px; padding: 12px; flex: 1; min-width: 0; }
.card-campaign__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 28px; }
.card-campaign__org { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 12px; font-weight: 500; line-height: 1.2; }
.card-campaign__org .avatar { --s: 20px; font-size: 10px; margin-right: 2px; }
.card-campaign__orgname { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-campaign__age { color: var(--text-3); white-space: nowrap; }
.card-campaign__age::before { content: "·"; opacity: .5; margin-right: 4px; }
.card-campaign__title { font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-campaign__money { margin-top: auto; }
.card-campaign__budget { display: flex; gap: 3px; font-size: 12px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.card-campaign__budget .of { color: var(--text-3); }
.card-campaign--grid .card-campaign__media { height: auto; aspect-ratio: 16 / 9; }
.card-campaign.is-full .card-campaign__img { filter: saturate(.4) brightness(.8); }
.card-campaign.is-full .progress__fill { background: var(--text-4); }
@media (max-width: 767px) {
  .card-campaign__media { height: 150px; }
  .card-campaign__title { font-size: 15px; line-height: 20px; }
}
.plat-stack { display: inline-flex; align-items: center; flex: none; }
.plat-stack__item {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-left: -4px;
  background: var(--surface-2); border: 2px solid var(--pill-ring, var(--surface)); color: var(--text-2); font-size: 10px; font-weight: 600;
}
.plat-stack__item:first-child { margin-left: 0; }
.plat-stack__item .i { width: 14px; height: 14px; }
.plat-stack--sm .plat-stack__item { width: 24px; height: 24px; }
.plat-stack--sm .plat-stack__item .i { width: 12px; height: 12px; }

/* ---------- 18. Clip card (vertical 9:16) ---------- */
.card-clip { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.card-clip__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--fill-1);
  box-shadow: var(--ring-card); transition: transform var(--dur-5) var(--ease-out), box-shadow var(--dur-5) var(--ease-out);
}
.card-clip__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-media-bottom); box-shadow: inset 0 0 0 1px var(--border-media); pointer-events: none; }
.card-clip__img, .card-clip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-clip__plat { position: absolute; top: 10px; right: 10px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(10, 9, 12, .45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.card-clip__plat .i { width: 14px; height: 14px; }
.card-clip__rank { position: absolute; top: 10px; left: 10px; z-index: 1; }
.card-clip__stats { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; }
.card-clip__views { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.card-clip__views .i { width: 15px; height: 15px; }
.card-clip__dur { font: 500 11px/1 var(--font-mono); letter-spacing: .04em; color: var(--text-on-media-2); }
.card-clip__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, .22); }
.card-clip__bar::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: #fff; animation: rr-clip var(--clip-dur, 12s) linear infinite; }
@keyframes rr-clip { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.card-clip__foot { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-clip__foot .avatar { --s: 20px; font-size: 9px; }
.card-clip__who { font-size: 13px; font-weight: 500; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.card-clip__earned { font-size: 13px; font-weight: 600; color: var(--money); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .card-clip:hover .card-clip__media { transform: translateY(-2px); box-shadow: var(--ring-card), var(--sh-3); }
  .card-clip:not(:hover) .card-clip__bar::after { animation-play-state: paused; }
}
.card-clip:focus-visible { outline: none; }
.card-clip:focus-visible .card-clip__media { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 19. Rails (8.5), hero slide (8.7), rank numeral (8.12) ---------- */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; min-width: 0; }
.rail-title { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.015em; line-height: 1.2; min-width: 0; }
.rail-title .i { width: 20px; height: 20px; color: var(--text-3); transition: transform var(--dur-3) var(--ease-out), color var(--dur-3); }
a.rail-title:hover .i { transform: translateX(2px); color: var(--text); }
.rail-arrows { display: flex; gap: 8px; flex: none; }
@media (max-width: 767px) { .rail-arrows { display: none; } .rail-title { font-size: 18px; } }
.rail {
  --rail-w: 328px;
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 24px var(--container-pad, var(--gutter)) 112px; margin: -24px calc(var(--container-pad, var(--gutter)) * -1) -112px;
  scroll-padding-inline: var(--container-pad, var(--gutter)); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; width: var(--rail-w); scroll-snap-align: start; }
.rail::after { content: ""; flex: 0 0 8px; }
.rail--clips { --rail-w: 188px; }
@media (max-width: 1023px) { .rail { --rail-w: 300px; } }
@media (max-width: 767px) { .rail { --rail-w: clamp(260px, 78vw, 328px); gap: 12px; } .rail--clips { --rail-w: 156px; } }

.slide { position: relative; height: clamp(360px, 32vw, 520px); border-radius: var(--r-2xl); overflow: hidden; background: var(--surface); isolation: isolate; color: #fff; }
.slide__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-media-left), var(--grad-media-bottom); }
.slide__content { position: absolute; left: 32px; right: 32px; bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.slide__brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.slide__brand .avatar { --s: 20px; --avatar-ring: transparent; }
.slide__title { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 440px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; color: var(--text-on-media-2); font-variant-numeric: tabular-nums; }
.slide__meta b { color: #fff; font-weight: 600; }
.slide__meta .sep { opacity: .5; }
.dots { position: absolute; top: 20px; right: 20px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: var(--r-pill); background: var(--glass-media); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dots__dot { position: relative; width: 6px; height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .4); overflow: hidden; transition: width var(--dur-5) var(--ease-out); padding: 0; }
.dots__dot::before { content: ""; position: absolute; inset: -9px -3px; }
.dots__dot.is-active { width: 24px; background: rgba(255, 255, 255, .3); }
.dots__dot.is-active::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; transform-origin: left; animation: rr-dotfill var(--slide-ms, 6000ms) linear forwards; }
.dots.is-paused .dots__dot.is-active::after { animation-play-state: paused; }
@keyframes rr-dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 767px) {
  .slide { height: auto; aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
  .slide__content { left: 20px; right: 20px; bottom: 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .slide__title { font-size: 20px; }
  .slide__meta { font-size: 13px; }
  .slide__content .btn { width: 100%; }
  .dots { top: 14px; right: 14px; }
}
.rank { display: flex; align-items: center; flex: none; }
.rank__num {
  flex: none; min-width: .62em; text-align: right; margin-right: -.12em; position: relative; z-index: 0; user-select: none;
  font-family: var(--font-display); font-weight: 700; font-size: 200px; line-height: .78; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 176, 32, .42); background: var(--grad-rank); -webkit-background-clip: text; background-clip: text;
}
.rank > :last-child { position: relative; z-index: 1; width: 300px; }
@media (max-width: 767px) { .rank__num { font-size: 140px; } .rank > :last-child { width: 240px; } }

/* ---------- 20. Stat tiles, rate tiles, counters (8.11) ---------- */
.stat { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring-card); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stat__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.stat__label { font-size: 12px; font-weight: 500; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.stat__label .i { width: 14px; height: 14px; }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__value--money { color: var(--money); }
.stat__sub { font-size: 12px; font-weight: 500; color: var(--text-3); }
.stat__spark { height: 32px; margin-top: 4px; }
@media (max-width: 767px) { .stat { padding: 14px 16px; } .stat__value { font-size: 22px; } }
.rate-tile { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--ring-card); overflow: hidden; min-width: 0; }
.panel--raised .rate-tile, .rate-tile--raised { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); }
.rate-tile__head { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); font-size: 14px; font-weight: 500; }
.rate-tile__head .i { width: 14px; height: 14px; color: var(--text-2); }
.rate-tile__cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate-tile__cell { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rate-tile__cell + .rate-tile__cell { border-left: 1px solid var(--border-subtle); }
.rate-tile__k { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.rate-tile__v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 379px) { .rate-tile__cell { padding: 12px 10px 14px; } .rate-tile__k { font-size: 11px; } }
.roll { display: inline-flex; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: .95; }
.roll__slot { display: inline-block; width: .62em; height: 1em; overflow: hidden; text-align: center; line-height: 1; }
.roll__col { display: flex; flex-direction: column; transition: transform 900ms var(--ease-out); }
.roll__col > span { height: 1em; line-height: 1; }
.roll__sym { display: inline-block; line-height: 1; }
.clipper-card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--ring-card); overflow: hidden; min-width: 0; }
.clipper-card__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.clipper-card__head b { color: var(--text); font-weight: 600; }
.clipper-card__foot { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-top: 1px solid var(--border-subtle); }
.clipper-card__foot .avatar { --s: 16px; font-size: 8px; }
.clipper-card__name { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clipper-card__earned { font-size: 14px; font-weight: 600; color: var(--money); font-variant-numeric: tabular-nums; }
.medal { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #17130A; flex: none; }
.medal--1 { background: #F5C451; }
.medal--2 { background: #C9CDD6; }
.medal--3 { background: #D69665; }

/* ---------- 21. Forms (8.14) ---------- */
.form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .field--full { grid-column: 1 / -1; }
@media (max-width: 639px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__actions--end { justify-content: flex-end; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--text-2); }
.field__req { color: var(--text-3); font-weight: 500; }
.field__help { font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--text-3); }
.field__error { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.45; color: var(--danger); }
.field__error .i { width: 14px; height: 14px; margin-top: 1px; stroke-width: 2; }
.field__counter { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--text-3); font-variant-numeric: tabular-nums; margin-left: auto; }
.field__counter.is-over { color: var(--danger); }
.field__foot { display: flex; align-items: flex-start; gap: 12px; }
.input, .select, .textarea {
  width: 100%; min-width: 0; height: 44px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: 500 15px/1.4 var(--font-ui); letter-spacing: -0.01em; outline: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2);
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus, .input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 176, 32, .18); outline: none; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"], .is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(251, 93, 93, .16); }
.input:disabled, .select:disabled, .textarea:disabled, .input[readonly].is-locked { opacity: .5; cursor: not-allowed; border-color: var(--border); }
.input--sm, .select--sm { height: 36px; font-size: 14px; padding: 0 12px; }
.input--lg, .select--lg { height: 52px; font-size: 16px; }
.input--num { font-variant-numeric: tabular-nums; }
.input--code { font-family: var(--font-mono); letter-spacing: .04em; }
@media (pointer: coarse) { .input, .select, .textarea { font-size: 16px; } }
.textarea { height: auto; min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8A99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
}
.select option { background: var(--surface-2); color: var(--text); }
.affix { position: relative; display: block; min-width: 0; }
.affix__pre, .affix__suf { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-weight: 500; }
.affix__pre { left: 14px; font-size: 15px; }
.affix__pre .i { width: 16px; height: 16px; display: block; }
.affix__suf { right: 14px; font-size: 13px; }
.affix--pre .input { padding-left: 28px; }
.affix--icon .input { padding-left: 40px; }
.affix--suf .input { padding-right: var(--suf-pad, 84px); }
.search-input { position: relative; display: inline-flex; align-items: center; min-width: 0; width: 240px; max-width: 100%; }
.search-input--block { width: 100%; }
.search-input .i { position: absolute; left: 12px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; stroke-width: 2; }
.search-input input { width: 100%; height: 32px; padding: 0 12px 0 32px; border-radius: var(--r-pill); border: 0; background: var(--fill-2); color: var(--text); font: 500 14px var(--font-ui); outline: none; transition: background-color var(--dur-2), box-shadow var(--dur-2); }
.search-input input::placeholder { color: var(--text-4); }
.search-input input:hover { background: var(--fill-3); }
.search-input input:focus { background: var(--fill-3); box-shadow: 0 0 0 2px var(--accent-border); }
.search-input--lg input { height: 40px; }
@media (pointer: coarse) { .search-input input { font-size: 16px; } }

/* Switch (role switch): <input type="checkbox" role="switch" class="toggle"> or <button class="toggle" role="switch" aria-checked> */
.toggle {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 36px; height: 20px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  background-color: var(--fill-5);
  background-image: radial-gradient(circle at center, #F5F5F7 0, #F5F5F7 7.5px, rgba(245, 245, 247, 0) 8px);
  background-size: 20px 20px; background-repeat: no-repeat; background-position: 0 0;
  transition: background-color var(--dur-3) var(--ease-out), background-position var(--dur-3) var(--ease-out);
}
.toggle:checked, .toggle[aria-checked="true"] { background-color: var(--accent); background-position: 16px 0; }
.toggle:disabled { opacity: .45; cursor: not-allowed; }
.toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check, .radio {
  appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; cursor: pointer; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .24); transition: background-color var(--dur-2), box-shadow var(--dur-2);
}
.check { border-radius: 5px; }
.check:hover, .radio:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.check:checked {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317130A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: none;
}
.check:indeterminate { background: var(--accent) linear-gradient(var(--on-accent), var(--on-accent)) center / 8px 2px no-repeat; box-shadow: none; }
.radio { border-radius: 50%; }
.radio:checked { box-shadow: inset 0 0 0 5px var(--accent); background: var(--on-accent); }
.check:disabled, .radio:disabled { opacity: .4; cursor: not-allowed; }
.check:focus-visible, .radio:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice { display: flex; align-items: flex-start; gap: 10px; min-height: 24px; cursor: pointer; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text); padding-block: 2px; }
.choice > input { margin-top: 1px; }
.choice__sub { display: block; font-size: 12px; color: var(--text-3); font-weight: 500; }
.choice--row { align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.range { --val: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--accent) var(--val), var(--fill-3) var(--val)); }
.range::-moz-range-track { height: 4px; border-radius: var(--r-pill); background: var(--fill-3); }
.range::-moz-range-progress { height: 4px; border-radius: var(--r-pill); background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #F5F5F7; box-shadow: var(--sh-1); transition: transform var(--dur-2); }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #F5F5F7; box-shadow: var(--sh-1); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp .input { width: 48px; height: 52px; padding: 0; text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 379px) { .otp .input { width: 40px; } }
.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 24px; border-radius: var(--r-lg); border: 1.5px dashed var(--border-strong); background: var(--fill-1); color: var(--text-3); text-align: center; font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color var(--dur-2), background-color var(--dur-2); }
.upload-drop:hover, .upload-drop.is-over { border-color: var(--accent-border); background: var(--accent-softer); color: var(--text-2); }
.upload-drop .i { width: 24px; height: 24px; color: var(--text-2); }

/* Inline alerts (form summaries, notices) */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--info-soft); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.45; }
.alert > .i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--info); }
.alert__title { font-weight: 600; }
.alert__body { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.alert--success { background: var(--success-soft); } .alert--success > .i { color: var(--success); }
.alert--warn { background: var(--warn-soft); } .alert--warn > .i { color: var(--warn); }
.alert--danger { background: var(--danger-soft); } .alert--danger > .i { color: var(--danger); }
.alert--neutral { background: var(--fill-2); } .alert--neutral > .i { color: var(--text-2); }
.alert .btn { margin-left: auto; flex: none; }

/* ---------- 22. Dropdown menus (avatar, notifications, row actions, org switcher) ---------- */
.dropdown { position: relative; display: inline-flex; }
.dropdown__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-dropdown); min-width: 224px; max-width: min(360px, calc(100vw - 24px));
  padding: 6px; border-radius: var(--r-lg); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), var(--sh-pop);
  transform-origin: top right; opacity: 0; scale: .96; translate: 0 -4px; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-3) var(--ease-out), scale var(--dur-3) var(--ease-out), translate var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.dropdown__panel--start { right: auto; left: 0; transform-origin: top left; }
.dropdown__panel--up { top: auto; bottom: calc(100% + 8px); transform-origin: bottom left; }
.dropdown.is-open > .dropdown__panel, .dropdown__panel.is-open { opacity: 1; scale: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.dropdown__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); text-align: left; white-space: nowrap; transition: background-color var(--dur-2);
}
.dropdown__item .i { width: 16px; height: 16px; color: var(--text-2); }
.dropdown__item:hover, .dropdown__item:focus-visible { background: var(--fill-2); }
.dropdown__item:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--accent-border); }
.dropdown__item[aria-current="true"], .dropdown__item.is-current { background: var(--fill-1); }
.dropdown__item--danger { color: var(--danger); }
.dropdown__item--danger .i { color: var(--danger); }
.dropdown__item .dropdown__check { margin-left: auto; color: var(--accent); }
.dropdown__sep { height: 1px; margin: 6px 4px; background: var(--border-subtle); }
.dropdown__label { padding: 8px 10px 4px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.dropdown__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dropdown__sub { font-size: 12px; font-weight: 500; color: var(--text-3); }
/* grouped rows (an agency's client brands) sit under their parent with a guide line */
.dropdown__item--nested { position: relative; padding-left: 30px; }
.dropdown__item--nested::before { content: ""; position: absolute; left: 19px; top: 4px; bottom: 4px; width: 1px; background: var(--border); }
.dropdown__head { display: flex; align-items: center; gap: 10px; padding: 10px; }
.dropdown__head .person__name { font-weight: 600; }
.dropdown form { display: block; }

/* Notifications panel */
.notif { width: min(380px, calc(100vw - 24px)); max-width: none; padding: 0; overflow: hidden; }
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border-subtle); }
.notif__title { font-size: 14px; font-weight: 600; }
.notif__list { max-height: min(420px, 60dvh); overflow-y: auto; padding: 6px; }
.notif__item { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-sm); transition: background-color var(--dur-2); position: relative; }
.notif__item:hover { background: var(--fill-2); }
.notif__ico { width: 32px; height: 32px; border-radius: 10px; background: var(--fill-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.notif__ico .i { width: 16px; height: 16px; }
.notif__t { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--text); }
.notif__b { font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--text-3); margin-top: 2px; }
.notif__time { font-size: 11px; font-weight: 600; color: var(--text-4); margin-top: 4px; }
.notif__item.is-unread::after { content: ""; position: absolute; top: 16px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notif__item.is-unread .notif__t { padding-right: 14px; }
.notif__foot { border-top: 1px solid var(--border-subtle); padding: 6px; }
.notif__foot a { display: flex; justify-content: center; align-items: center; height: 36px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--text-2); }
.notif__foot a:hover { background: var(--fill-2); color: var(--text); }
.notif__empty { padding: 32px 20px; text-align: center; }
.notif__empty .empty__ico { width: 48px; height: 48px; border-radius: var(--r-md); margin-bottom: 12px; }
.notif__empty .empty__ico .i { width: 22px; height: 22px; }

/* ---------- 23. Modal, sheet, dialogs (8.15) ---------- */
.overlay { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; }
.overlay__scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--dur-4) var(--ease-emphasized); }
.overlay.is-open .overlay__scrim { opacity: 1; }
.overlay.is-closing .overlay__scrim { opacity: 0; transition: opacity 180ms var(--ease-in); }
.modal {
  position: relative; width: min(908px, 100vw - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-2xl); box-shadow: inset 0 0 0 1px var(--border), var(--sh-4); outline: none;
  --pill-ring: var(--surface); --avatar-ring: var(--surface);
  opacity: 0; transform: scale(.96); transition: opacity var(--dur-4) var(--ease-emphasized), transform var(--dur-4) var(--ease-emphasized);
}
.overlay.is-open .modal { opacity: 1; transform: none; }
.overlay.is-closing .modal { opacity: 0; transform: scale(.98); transition: opacity 180ms var(--ease-in), transform 180ms var(--ease-in); }
.modal--sm { width: min(420px, 100vw - 32px); }
.modal--md { width: min(560px, 100vw - 32px); }
.modal--lg { width: min(720px, 100vw - 32px); }
.modal__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 16px 16px 16px 24px; background: var(--surface); border-bottom: 1px solid var(--border-subtle); }
.modal__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.modal__body { padding: 24px; }
.modal__foot { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 16px 24px; background: var(--surface); border-top: 1px solid var(--border-subtle); }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.modal__head .modal__close { position: static; }
.modal__media { position: relative; height: 312px; overflow: hidden; background: var(--surface-2); }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media::after { content: ""; position: absolute; inset: 0; background: var(--grad-media-bottom); pointer-events: none; }
.modal__media-tl { position: absolute; top: 20px; left: 20px; z-index: 1; display: flex; gap: 8px; }
.modal__media-tr { position: absolute; top: 20px; right: 20px; z-index: 1; display: flex; gap: 8px; }
.modal__media-cap { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; color: #fff; }
.modal__media-title { font-family: var(--font-ui); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 520px; }
.modal__media-desc { font-size: 13px; font-weight: 500; color: var(--text-on-media-2); max-width: 280px; }
.modal__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--border-subtle); overflow-x: auto; scrollbar-width: none; }
.modal__bar > .btn { margin-left: auto; flex: none; }
.modal__grid { padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.modal__grid > .span-all { grid-column: 1 / -1; }
.modal__grid .panel { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-subtle); border-radius: var(--r-md); }
@media (max-width: 1023px) and (min-width: 768px) { .modal__media { height: 240px; } }
@media (max-width: 767px) {
  .overlay { place-items: end stretch; padding: 0; }
  .modal, .modal--sm, .modal--md, .modal--lg { width: 100%; max-height: 92dvh; border-radius: var(--r-2xl) var(--r-2xl) 0 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom); }
  .overlay.is-closing .modal { transform: translateY(24px); }
  .modal__body { padding: 20px 16px; }
  .modal__head { padding: 12px 12px 12px 16px; min-height: 56px; }
  .modal__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal__foot .btn { flex: 1; }
  .modal__media { height: 220px; }
  .modal__media-desc { display: none; }
  .modal__bar { flex-wrap: wrap; overflow: visible; }
  .modal__bar > .btn { order: 10; width: 100%; margin-left: 0; }
}
.sheet {
  position: fixed; left: 8px; right: 8px; bottom: 0; z-index: var(--z-sheet); height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-3xl) var(--r-3xl) 0 0; box-shadow: inset 0 1px 0 var(--border), var(--sh-sheet);
  transform: translateY(100%); transition: transform var(--dur-5) var(--ease-drawer); touch-action: pan-y;
}
.overlay--sheet { z-index: var(--z-sheet); }
.overlay.is-open .sheet { transform: none; }
.overlay.is-closing .sheet { transform: translateY(100%); transition: transform 220ms var(--ease-in); }
.sheet--tall { height: 96dvh; }
.sheet--auto { height: auto; max-height: 92dvh; }
.sheet__grab { width: 36px; height: 4px; border-radius: var(--r-pill); background: var(--fill-5); margin: 8px auto 0; flex: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); flex: none; }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.sheet__group + .sheet__group { margin-top: 32px; }
.sheet__group > .t-eyebrow { margin-bottom: 12px; }
.sheet__foot { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-subtle); background: var(--surface); }
.dialog { padding: 24px; }
.dialog__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.dialog__body { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--text-2); }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.dialog--auth { padding: 40px 28px 28px; text-align: center; }
.dialog--auth .dialog__mark { width: 48px; height: 48px; margin: 0 auto 16px; filter: drop-shadow(0 4px 16px rgba(255, 176, 32, .4)); }
.dialog--auth .dialog__legal { margin-top: 16px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.dialog--auth .dialog__legal a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* Hold to confirm: <button data-hold="Hold to confirm">. The fill grows while pressed. */
.btn[data-hold] { overflow: hidden; isolation: isolate; }
.btn[data-hold]::before { content: ""; position: absolute; inset: 0; z-index: -1; transform-origin: left; transform: scaleX(var(--hold, 0)); background: rgba(255, 255, 255, .16); border-radius: inherit; }
.btn--danger[data-hold]::before { background: rgba(251, 93, 93, .28); }
.btn[data-hold].is-holding::before { transition: transform var(--hold-ms, 1200ms) linear; transform: scaleX(1); }

/* ---------- 24. Table (8.17) ---------- */
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.table-toolbar__end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* position: relative keeps absolutely positioned cell content (visually hidden header labels) inside the scroll box */
.table-wrap { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring-card); overflow-x: auto; --pill-ring: var(--surface); --avatar-ring: var(--surface); }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; font-weight: 500; }
.table th {
  height: 40px; padding: 0 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap;
  background: var(--fill-1); border-bottom: 1px solid var(--border-subtle);
}
.table th:first-child { border-top-left-radius: var(--r-lg); }
.table th:last-child { border-top-right-radius: var(--r-lg); }
.table th[aria-sort] button, .table__sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit; }
.table th[aria-sort] .i { width: 12px; height: 12px; opacity: .5; }
.table th[aria-sort="ascending"] .i, .table th[aria-sort="descending"] .i { opacity: 1; color: var(--text); }
.table th[aria-sort="ascending"] .i { transform: rotate(180deg); }
.table td { height: 56px; padding: 8px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur-2); }
.table tbody tr:hover { background: var(--fill-1); }
.table tr.is-selected { background: var(--accent-softer); box-shadow: inset 2px 0 0 var(--accent); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .money { color: var(--money); font-weight: 600; }
.table--compact td { height: 44px; }
.table a:not(.btn) { color: var(--text); }
.table a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.table__actions { display: flex; justify-content: flex-end; gap: 4px; }
@media (hover: hover) { .table__actions--reveal { opacity: 0; transition: opacity var(--dur-2); } .table tr:hover .table__actions--reveal, .table tr:focus-within .table__actions--reveal { opacity: 1; } }
@media (max-width: 639px) {
  .table--stack { min-width: 0; }
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tbody { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
  .table--stack tr { border-radius: var(--r-md); background: var(--fill-1); padding: 14px; }
  .table--stack td { height: auto; padding: 4px 0; border: 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--text-3); font-size: 12px; text-align: left; }
  .table--stack td[data-primary] { text-align: left; padding-bottom: 8px; }
  .table--stack td[data-primary]::before { display: none; }
  .table-wrap:has(.table--stack) { overflow-x: visible; }
}
.pricing-table { display: grid; grid-template-columns: minmax(0, 1fr) 25% 25%; border-radius: var(--r-3xl); box-shadow: inset 0 0 0 1px var(--border); padding: 20px; position: relative; }
.pricing-table__cell { position: relative; z-index: 1; min-height: 96px; display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--border-subtle); font-size: 17px; font-weight: 600; justify-content: center; text-align: center; font-variant-numeric: tabular-nums; }
.pricing-table__cell--label { justify-content: flex-start; text-align: left; font-weight: 500; color: var(--text-3); }
.pricing-table__featured { grid-column: 3; grid-row: 1 / -1; border-radius: var(--r-lg); background: var(--grad-molten); color: var(--on-accent); box-shadow: var(--sh-btn-accent); position: relative; z-index: 0; }
.pricing-table__cell--featured { color: var(--on-accent); border-bottom-color: rgba(23, 19, 10, .12); }
@media (max-width: 767px) { .pricing-table { padding: 10px; } .pricing-table__cell { min-height: 64px; font-size: 14px; padding: 0 8px; } }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
.pagination__num { min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--r-pill); display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; transition: background-color var(--dur-2), color var(--dur-2); }
.pagination__num:hover { background: var(--fill-2); color: var(--text); }
.pagination__num.is-current { background: var(--surface-3); color: var(--text); box-shadow: var(--sh-1), var(--hi-top); }
.pagination__gap { color: var(--text-4); padding: 0 4px; }
.pagination__info { margin-left: 12px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.pagination .icon-btn[aria-disabled="true"] { opacity: .35; }

/* ---------- 25. Empty state (8.18) and skeleton (8.19) ---------- */
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; }
.empty--panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--ring-card); }
.empty__ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: var(--r-lg); background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--border); display: grid; place-items: center; color: var(--text-2); flex: none; }
.empty__ico .i { width: 28px; height: 28px; }
.empty__title { font-family: var(--font-ui); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text); }
.empty__body { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--text-3); max-width: 360px; margin: 6px auto 20px; }
.empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.empty--error .empty__ico { color: var(--danger); background: var(--danger-soft); box-shadow: none; }
.skeleton { position: relative; overflow: hidden; background: var(--fill-2); border-radius: var(--r-xs); }
.panel .skeleton, .card-campaign .skeleton, .stat .skeleton { background: var(--fill-1); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: var(--grad-shimmer); transform: translateX(-100%); animation: rr-shimmer 1.4s linear infinite; }
.skeleton--line { height: 12px; }
.skeleton--title { height: 18px; }
.skeleton--pill { height: 24px; border-radius: var(--r-pill); }
.skeleton--circle { border-radius: 50%; }
.skeleton--media { border-radius: var(--r-lg) var(--r-lg) 0 0; height: 176px; }
@keyframes rr-shimmer { to { transform: translateX(100%); } }
.card-campaign--skeleton { pointer-events: none; }
.card-campaign--skeleton:hover { transform: none; }

/* ---------- 26. Marketing blocks (8.21) ---------- */
.hero { position: relative; padding: 120px 0 88px; text-align: center; background: var(--grad-ember-hero); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero__title { max-width: 900px; margin: 20px auto 0; }
.hero__lead { margin: 20px auto 0; max-width: 600px; }
.hero__ctas { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 767px) { .hero { padding: 72px 0 56px; } }
@media (max-width: 479px) { .hero__ctas .btn { width: 100%; } }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; max-width: 760px; margin: 0 auto 48px; }
.section-head--start { align-items: flex-start; text-align: left; margin-inline: 0; }
.logo-cloud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; align-items: center; justify-items: center; }
.logo-cloud > * { color: var(--text-3); opacity: .7; max-height: 28px; transition: opacity var(--dur-3); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.logo-cloud > *:hover { opacity: 1; }
@media (max-width: 767px) { .logo-cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-card { border-radius: var(--r-xl); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--border-subtle); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.feature-card__visual { height: 240px; position: relative; overflow: hidden; padding: 24px; display: grid; place-items: center;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
.feature-card__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature-card__title { font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.feature-card__text { font-size: 15px; line-height: 1.55; color: var(--text-3); }
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.quote__dim { color: var(--text-3); }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.quote-by__name { font-size: 15px; font-weight: 600; }
.quote-by__role { font-size: 13px; font-weight: 500; color: var(--text-3); }
.testimonial { border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--ring-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; break-inside: avoid; }
.testimonial__earned { font-size: 12px; font-weight: 600; color: var(--money); font-variant-numeric: tabular-nums; }
.faq { max-width: var(--container-narrow); margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.4; color: var(--text); border-radius: var(--r-xl); }
.faq__q .i { width: 16px; height: 16px; color: var(--text-3); flex: none; transition: transform var(--dur-5) var(--ease-accordion); }
.faq__q[aria-expanded="true"] .i { transform: rotate(180deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-5) var(--ease-accordion); }
.faq__a.is-open { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 20px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.faq__more { text-align: center; margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--text-3); }
.pill-link { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; margin-left: 6px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; transition: background-color var(--dur-2); }
.pill-link:hover { background: rgba(255, 176, 32, .22); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 27. Floating search, filter toolbar, mobile discover bar (8.13) ---------- */
.search-float {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: var(--z-floating-bar); transform: translateX(-50%);
  width: min(410px, calc(100vw - 32px)); height: 49px; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 18px; border-radius: var(--r-pill);
  background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .10); box-shadow: var(--sh-pop);
  transition: width var(--dur-6) var(--ease-emphasized), background-color var(--dur-6) var(--ease-emphasized);
}
.search-float:focus-within, .search-float.is-open { width: min(686px, calc(100vw - 32px)); background: var(--glass-strong); }
.search-float > .i { width: 16px; height: 16px; color: var(--text-3); }
.search-float input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--text); font: 400 14px var(--font-ui); caret-color: var(--accent); }
.search-float input::placeholder { color: var(--text-3); }
.search-float__submit { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-4); color: var(--text-3); flex: none; transition: background-color var(--dur-2), color var(--dur-2); }
.search-float__submit.is-ready { background: #F5F5F7; color: #0E0E12; }
.search-float__submit .i { width: 14px; height: 14px; stroke-width: 2.25; }
@media (max-width: 767px) { .search-float { width: calc(100vw - 32px); height: 56px; bottom: calc(12px + env(safe-area-inset-bottom)); } .search-float input { font-size: 16px; } .search-float:focus-within { width: calc(100vw - 32px); } }
.filter-bar {
  display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 6px; border-radius: var(--r-pill); max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--border), var(--sh-pop);
}
.filter-bar__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: background-color var(--dur-2), color var(--dur-2); }
.filter-bar__btn:hover, .filter-bar__btn[aria-expanded="true"] { background: var(--fill-3); color: var(--text); }
.filter-bar__btn.is-active { color: var(--accent-2); }
.filter-bar__btn .i { width: 14px; height: 14px; stroke-width: 2; }
.filter-bar__sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; flex: none; }
.discover-bar { position: sticky; top: var(--nav-h); z-index: calc(var(--z-nav) - 2); height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--border-subtle); }

/* ---------- 28. Charts (charts.js) ---------- */
.chart { position: relative; width: 100%; min-height: 120px; color: var(--text-3); }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart__grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart__axis { fill: var(--text-3); font: 600 11px var(--font-ui); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chart__line { fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chart__cross { stroke: rgba(255, 255, 255, .3); stroke-width: 1; shape-rendering: crispEdges; }
.chart__dot { stroke: var(--surface); stroke-width: 3; }
.chart__bar { transition: opacity var(--dur-2); }
.chart.is-hovering .chart__bar:not(.is-hot) { opacity: .45; }
.chart__slice { transition: opacity var(--dur-2); cursor: default; }
.chart.is-hovering .chart__slice:not(.is-hot) { opacity: .4; }
.chart__tip {
  position: absolute; z-index: 5; top: 0; left: 0; pointer-events: none; min-width: 120px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border), var(--sh-2); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
}
.chart__tip.is-on { opacity: 1; }
.chart__tip-t { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.chart__tip-row { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.chart__tip-row + .chart__tip-row { margin-top: 2px; }
.chart__tip-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chart__tip-row b { margin-left: auto; padding-left: 12px; font-weight: 600; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart__legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: inherit; height: 100%; padding: 24px; border-radius: var(--r-md); background: var(--fill-1); }
.chart__empty .i { width: 22px; height: 22px; color: var(--text-3); }
.chart__empty b { font-size: 14px; font-weight: 600; color: var(--text); }
.chart__empty span { font-size: 13px; color: var(--text-3); max-width: 280px; }
.donut { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut__svg { position: relative; flex: none; }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.donut__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.donut__label { font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.donut .chart__legend { flex-direction: column; margin: 0; gap: 8px; }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chart-card__value { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.chart-card__unit { font-size: 15px; font-family: var(--font-ui); font-weight: 500; color: var(--text-3); letter-spacing: -0.01em; margin-left: 4px; }

/* ---------- 28b. Touch targets ---------- */
/* On touch screens small controls get an invisible hit area of at least 44px centred on them, so the look and the
   layout stay the same while taps land. ::before is used because ::after carries tooltips ([data-tip]) and the
   button spinner; hold to confirm buttons keep ::before for their fill. */
@media (pointer: coarse) {
  .btn--sm:not([data-hold])::before, .icon-btn::before, .seg__item::before, .nav__avatar::before, .announce__close::before,
  .footer__legal a::before, .footer__legal-btn::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
  .nav__avatar, .footer__legal a, .footer__legal-btn { position: relative; }
  .footer__legal { row-gap: 16px; }
}

/* ---------- 29. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .btn, .icon-btn, .card-campaign, .card-campaign__img, .card-clip__media, .plat-toggle, .help-fab, .mega, .dropdown__panel, .toast, .modal, .sheet, .mnav, .cookie, .help-pop, .nav, .seg__thumb, .reveal {
    transition-duration: 150ms !important; transition-property: opacity, background-color, color, border-color, box-shadow !important;
  }
  .card-campaign:hover, .card-campaign:hover .card-campaign__img, .btn:hover, .btn:active, .btn--primary:hover, .btn--inverse:hover, .icon-btn:hover, .help-fab:hover, .card-clip:hover .card-clip__media { transform: none !important; }
  .reveal { transform: none; }
  .skeleton::after, .card-clip__bar::after, .dots__dot.is-active::after, .badge--live .badge__dot { animation: none !important; }
  .dots__dot.is-active::after { transform: scaleX(1); }
  .card-clip__bar::after { transform: scaleX(.35); }
  .nav.is-hidden { transform: none; }
}
