/* ==========================================================================
   WorldWide — base design system (docs/ARCHITECTURE.md §9)
   Night-cinematic, RTL (fa-IR). Midnight purple → dawn pink → morning green.
   Feature stylesheets (landing.css, flows.css, admin.css, contract.css) extend this file;
   selectors here are kept deliberately low-specificity (single classes, :where()).
   ========================================================================== */

/* ---------- 1. Font ------------------------------------------------------ */
@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn'),
       url('../fonts/Vazirmatn[wght].woff2') format('woff2'),
       url('https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/fonts/webfonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Tokens ---------------------------------------------------- */
:root {
  --bg-0: #07040d; --bg-1: #0e0819; --bg-2: #160d26; --bg-3: #1f1233;
  --surface: rgba(255,255,255,.04); --surface-2: rgba(255,255,255,.07); --surface-3: rgba(255,255,255,.11);
  --border: rgba(255,255,255,.10); --border-strong: rgba(255,255,255,.18);
  --text: #f4effb; --text-muted: #bcaed2; --text-dim: #8a7ba1;
  --purple: #7b2cbf; --purple-2: #9d4edd; --veronica: #a020f0; --pink: #ff4fa3; --pink-2: #f72585;
  --green: #2ee6a6; --green-2: #06d6a0; --amber: #ffc857; --danger: #ff5d73; --info: #6ec3ff;
  --grad-brand: linear-gradient(120deg, var(--purple) 0%, var(--veronica) 38%, var(--pink) 72%, var(--green) 100%);
  --grad-cta: linear-gradient(120deg, var(--veronica), var(--pink));
  --grad-shift: linear-gradient(180deg, #1a0b2e 0%, #3a0d4a 35%, #8a1f5f 62%, #0f5c4a 100%);
  --glow-purple: 0 0 40px rgba(160,32,240,.35); --glow-pink: 0 0 40px rgba(255,79,163,.35); --glow-green: 0 0 40px rgba(46,230,166,.30);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 28px;
  --ease: cubic-bezier(.16,1,.3,1); --container: 1200px;
  --font: 'Vazirmatn', Tahoma, system-ui, sans-serif;

  /* layout helpers (extra, non-colour tokens) */
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 9vw, 112px);
  --shadow: 0 18px 50px -18px rgba(0,0,0,.65);
  --shadow-sm: 0 8px 24px -12px rgba(0,0,0,.6);
  --ring-pink: 0 0 0 4px rgba(255,79,163,.22);
  --ring-green: 0 0 0 4px rgba(46,230,166,.22);
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  /* text gradient: lighter tones for legibility; RTL-aware (starts purple at the right, ends green at the left) */
  --grad-text: linear-gradient(260deg, #c77dff 0%, var(--pink) 46%, #ff9a8b 74%, var(--green) 100%);
  --field-bg: rgba(7,4,13,.55);

  color-scheme: dark;
}

/* ---------- 3. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-0);
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #3b2560 var(--bg-0);
  hanging-punctuation: first last;
}
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  /* no background here on purpose: the fixed glow layer (body::before) sits between html and content */
}
img, picture, video, canvas { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
p, h1, h2, h3, h4, h5, h6, li, dd, dt, blockquote, figcaption { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
textarea { resize: vertical; }
[hidden] { display: none !important; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); margin-block: 32px; }

/* ---------- 4. Night background ----------------------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
/* soft purple / pink / green glows */
body::before {
  background:
    radial-gradient(900px 620px at 88% -8%, rgba(123,44,191,.30), transparent 62%),
    radial-gradient(760px 560px at -6% 38%, rgba(247,37,133,.13), transparent 62%),
    radial-gradient(820px 600px at 60% 112%, rgba(6,214,160,.10), transparent 62%),
    radial-gradient(600px 400px at 30% 8%, rgba(160,32,240,.10), transparent 70%);
}
/* faint star field */
body::after {
  opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 28%, rgba(255,214,240,.7), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 66% 74%, rgba(200,255,236,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 79% 36%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 88% 82%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 7% 88%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 94% 8%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 50% 46%, rgba(255,255,255,.35), transparent 60%);
}
@media (prefers-reduced-motion: no-preference) {
  body::after { animation: ww-twinkle 7s ease-in-out infinite alternate; }
}
@keyframes ww-twinkle { from { opacity: .35; } to { opacity: .65; } }

/* ---------- 5. Typography ----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 1.15rem + 3.4vw, 3.5rem); line-height: 1.35; font-weight: 900; }
h2 { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
h5, h6 { font-size: 1rem; font-weight: 700; }
p { text-wrap: pretty; }
small, .small { font-size: .875rem; }
strong, b { font-weight: 700; }
a { color: var(--pink); text-decoration-thickness: 1px; text-underline-offset: .3em; transition: color .2s; }
a:hover { color: #ff86c1; }
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  direction: ltr;
  unicode-bidi: isolate;
}
code { padding: .1em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
kbd { padding: .1em .45em; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border-strong); border-bottom-width: 2px; }
blockquote { padding-inline-start: 16px; border-inline-start: 3px solid var(--purple-2); color: var(--text-muted); }

::selection { background: rgba(255,79,163,.38); color: #fff; }

/* ---------- 6. Focus & scrollbar ---------------------------------------- */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }
.site-main:focus { outline: none; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--pink-2));
  border-radius: 999px;
  border: 3px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--veronica), var(--pink)); }
::-webkit-scrollbar-corner { background: var(--bg-0); }

/* ---------- 7. Layout primitives ---------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(820px + 2 * var(--gutter)); }
.container-wide { max-width: calc(1400px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: calc(var(--section-y) * .6); }
.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 5vw, 52px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.section-head.is-start { text-align: start; align-items: flex-start; margin-inline: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.8;
  color: #ff8cc6;
  background: rgba(255,79,163,.08);
  border: 1px solid rgba(255,79,163,.24);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex: none;
}
.eyebrow:has(> .icon)::before { display: none; }

.lead {
  font-size: clamp(1.03rem, .98rem + .35vw, 1.22rem);
  line-height: 2;
  color: var(--text-muted);
}
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.text-green { color: var(--green); }
.text-pink { color: var(--pink); }
.text-purple { color: var(--purple-2); }
.text-amber { color: var(--amber); }
.text-danger { color: var(--danger); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 600px) {
  .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)); }
}

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 16px); }
.stack > * { min-width: 0; }
.stack-sm { --stack-gap: 8px; }
.stack-lg { --stack-gap: 28px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--row-gap, 12px); }
.row-between { justify-content: space-between; }
.row-center { justify-content: center; }
.spacer { flex: 1 1 auto; }

.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }
.nowrap { white-space: nowrap; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 40px; }
.w-100 { width: 100%; }

/* LTR islands: codes, numbers, e-mails, IBANs inside RTL text */
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.visually-hidden {
  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;
}
.hp-field {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--pink);
  box-shadow: none; /* the glow is added on focus: parked off-screen it would bleed into the top of the page */
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: var(--text); box-shadow: var(--glow-pink); }

.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------- 8. Header & navigation -------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,6,20,.66);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  view-transition-name: site-header;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(10,6,20,.94); }
}
.site-header.is-scrolled { box-shadow: 0 12px 34px -14px rgba(0,0,0,.7); border-bottom-color: rgba(255,255,255,.09); }
.site-header.is-overlay {
  position: fixed;
  inset-inline: 0;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.is-overlay.is-scrolled,
.site-header.is-overlay.nav-open {
  background: rgba(10,6,20,.74);
  border-bottom-color: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-inline-end: auto;
  min-width: 0;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(160,32,240,.45)); transition: transform .5s var(--ease), filter .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); filter: drop-shadow(0 0 16px rgba(255,79,163,.55)); }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: .01em; direction: ltr; unicode-bidi: isolate; text-align: start; }
.brand-sub { font-size: .74rem; color: var(--text-dim); white-space: nowrap; }

.nav-list { display: flex; list-style: none; padding: 0; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .96rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset-inline: 30%;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-cta);
  box-shadow: 0 0 10px rgba(255,79,163,.7);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background-color .2s, border-color .2s;
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--border-strong); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); width: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); width: 20px; }

.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-cta { flex: none; }

@media (max-width: 959.98px) {
  .brand-mark { width: 36px; height: 36px; }
  .nav-toggle { display: inline-grid; }

  /* with JS: slide-down glass panel */
  .js .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #1b1030, #120a22);
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 50px -10px rgba(160,32,240,.35);
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .25s ease, transform .4s var(--ease), visibility 0s linear .4s;
  }
  .js .site-header.nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s ease, transform .4s var(--ease), visibility 0s;
  }
  .js .site-nav .nav-list { flex-direction: column; gap: 2px; }
  .js .site-nav .nav-link { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .js .site-nav .nav-link[aria-current="page"]::after { inset-inline-start: 0; inset-inline-end: auto; top: 25%; bottom: 25%; width: 3px; height: auto; }
  .js .site-nav .nav-cta { width: 100%; min-height: 48px; margin-top: 6px; }

  /* without JS: nav wraps under the logo row, always visible */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-basis: 100%; flex-wrap: wrap; justify-content: center; }
  html:not(.js) .nav-list { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

/* ---------- 9. Main & flashes ------------------------------------------- */
.site-main { flex: 1 0 auto; display: block; position: relative; }

.flash-stack {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  z-index: 55; /* below the header (60) so the mobile nav panel covers toasts */
  width: min(460px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.flash-stack:empty { display: none; }
.flash {
  pointer-events: auto;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background-color: rgba(18,10,32,.92);
  animation: ww-flash-in .5s var(--ease) both;
}
.flash.is-leaving { animation: ww-flash-out .3s ease forwards; }
.flash-close {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin: -3px 0 -3px -6px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: color .2s, background-color .2s;
}
.flash-close:hover { color: var(--text); background: var(--surface-2); }
html:not(.js) .flash-stack { position: static; transform: none; margin: 16px auto 0; }
html:not(.js) .flash-close { display: none; }
@keyframes ww-flash-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
@keyframes ww-flash-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* ---------- 10. Footer -------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(14,8,25,0), rgba(14,8,25,.85) 45%);
  color: var(--text-muted);
  font-size: .95rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 8%;
  height: 1px;
  background: var(--grad-brand);
  opacity: .8;
  box-shadow: 0 0 24px 1px rgba(255,79,163,.55);
}
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-mark { width: 44px; height: 44px; }
.footer-tagline { color: var(--text-muted); max-width: 36ch; }
.footer-shift, .footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
.footer-shift { color: var(--text-dim); font-size: .9rem; }
.footer-shift .icon { color: var(--purple-2); }
.footer-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-links ul, .footer-contact ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--pink); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { color: var(--purple-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-dim);
}
.footer-trust { color: var(--green); font-weight: 500; }

/* ---------- 11. Buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: transparent;
  --btn-shadow: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: var(--btn-shadow);
  font-family: inherit;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s, filter .25s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 999px;
}
/* shimmer sweep */
.btn::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 55%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.28) 50%, transparent 100%);
  transform: translateX(260%) skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after { opacity: 1; animation: ww-shimmer .9s var(--ease) both; }
@keyframes ww-shimmer {
  from { transform: translateX(260%) skewX(-18deg); }
  to   { transform: translateX(-200%) skewX(-18deg); }
}

.btn-primary {
  --btn-fg: #fff;
  /* darkening veil keeps white text ≥ 4.5:1 on the pink end of --grad-cta */
  --btn-bg: linear-gradient(rgba(22,0,44,.22), rgba(22,0,44,.22)), var(--grad-cta);
  --btn-shadow: 0 10px 30px -10px rgba(255,79,163,.65), inset 0 1px 0 rgba(255,255,255,.22);
  background: var(--btn-bg);
  text-shadow: 0 1px 2px rgba(40,0,40,.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(255,79,163,.8), var(--glow-purple), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255,255,255,.25), var(--glow-pink); }

.btn-green {
  --btn-fg: #04241a;
  --btn-bg: linear-gradient(120deg, var(--green-2), var(--green));
  --btn-shadow: 0 10px 30px -12px rgba(46,230,166,.6), inset 0 1px 0 rgba(255,255,255,.35);
  background: var(--btn-bg);
}
.btn-green:hover { box-shadow: 0 14px 38px -12px rgba(46,230,166,.75), var(--glow-green); }

.btn-ghost {
  --btn-bg: rgba(255,255,255,.03);
  --btn-border: var(--border-strong);
  --btn-fg: var(--text);
}
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-border: rgba(255,255,255,.3); background: var(--btn-bg); }

.btn-danger {
  --btn-bg: rgba(255,93,115,.12);
  --btn-border: rgba(255,93,115,.45);
  --btn-fg: #ffc2cb;
}
.btn-danger:hover { --btn-bg: var(--danger); --btn-fg: #2a0610; --btn-border: var(--danger); background: var(--btn-bg); box-shadow: 0 10px 30px -12px rgba(255,93,115,.7); }

.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.btn-icon.btn-sm { width: 38px; min-height: 38px; }

.btn.is-copied { --btn-border: rgba(46,230,166,.55); --btn-fg: var(--green); }
.btn.is-copy-failed { --btn-border: rgba(255,93,115,.55); --btn-fg: #ff97a6; }

.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.btn.is-loading { color: transparent !important; text-shadow: none; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: ww-spin .8s linear infinite;
}
.btn-green.is-loading::before { border-color: rgba(4,36,26,.3); border-top-color: #04241a; }
@keyframes ww-spin { to { transform: rotate(360deg); } }

/* ---------- 12. Cards ---------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card-glass {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.card-hover { transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(255,79,163,.35); box-shadow: var(--shadow), 0 0 40px -12px rgba(255,79,163,.45); }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 14px;
  color: #fff;
  background: linear-gradient(135deg, rgba(160,32,240,.55), rgba(255,79,163,.45));
  box-shadow: 0 8px 24px -10px rgba(255,79,163,.7), inset 0 1px 0 rgba(255,255,255,.25);
}

/* key/value list: <dl class="kv"><div><dt>…</dt><dd>…</dd></div></dl> */
.kv { display: grid; gap: 0; }
.kv > div {
  display: grid;
  grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-dim); font-size: .92rem; }
.kv dd { color: var(--text); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* simple data table (feature CSS may restyle) */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.table { width: 100%; font-size: .94rem; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-weight: 700; color: var(--text-muted); font-size: .86rem; background: rgba(255,255,255,.025); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

/* ---------- 13. Forms ---------------------------------------------------- */
.form { display: grid; gap: 20px; }
.form > * { min-width: 0; }
.form-section { display: grid; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field > label:not(.check),
.field-label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.7;
}
fieldset.field > legend { margin-bottom: 8px; float: none; width: 100%; }
.req { color: var(--pink); margin-inline-start: 3px; font-weight: 700; }

.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background-color: var(--field-bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color .2s, box-shadow .25s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255,255,255,.3); }
.input:focus, .select:focus, .textarea:focus,
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none;
  border-color: var(--veronica);
  background-color: rgba(14,8,25,.85);
  box-shadow: 0 0 0 4px rgba(160,32,240,.22), 0 0 26px -4px rgba(255,79,163,.3);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); opacity: 1; }
.input[dir="ltr"] { text-align: right; }
.input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }
.input[readonly] { background-color: rgba(255,255,255,.03); color: var(--text-muted); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; cursor: not-allowed; }
.textarea { min-height: 128px; line-height: 1.9; resize: vertical; }
.select {
  padding-inline-end: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23bcaed2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: left 16px center; /* RTL: inline-end is the left edge */
}
[dir="ltr"] .select { background-position: right 16px center; }
.select option, .select optgroup { background-color: var(--bg-2); color: var(--text); }
/* autofill (Chromium) — keep the dark field */
.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #1a1030 inset;
  caret-color: var(--text);
  transition: background-color 9999s;
}

/* error state */
.field.has-error .input, .field.has-error .select, .field.has-error .textarea,
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255,93,115,.14);
}
.field.has-error .input:focus, .field.has-error .select:focus, .field.has-error .textarea:focus {
  box-shadow: 0 0 0 4px rgba(255,93,115,.22);
}
.field.has-error > label:not(.check), .field.has-error > .field-label { color: #ffb3be; }
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .88rem;
  line-height: 1.7;
  color: #ff97a6;
}
.field-error .icon { margin-top: .22em; }
.field-help { font-size: .86rem; line-height: 1.8; color: var(--text-dim); }

/* choice rows */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  line-height: 1.75;
  transition: border-color .2s, background-color .2s, box-shadow .25s;
}
.check:hover { border-color: var(--border-strong); background: var(--surface-2); }
.check:has(input:checked) {
  border-color: rgba(160,32,240,.6);
  background: rgba(160,32,240,.1);
  box-shadow: inset 0 0 0 1px rgba(160,32,240,.25);
}
.check:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255,79,163,.2); border-color: var(--pink); }
.check:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.field.has-error .check { border-color: rgba(255,93,115,.45); }
.check-label { flex: 1; min-width: 0; }
.check input[type="checkbox"],
.check input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 22px; height: 22px;
  margin: .2em 0 0;
  border-radius: 7px;
  border: 1.6px solid rgba(255,255,255,.35);
  background: var(--bg-1);
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .25s;
}
.check input[type="radio"] { border-radius: 50%; }
.check input[type="checkbox"]::before {
  content: "";
  width: 12px; height: 12px;
  background: #fff;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.check input[type="radio"]::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.check input:checked {
  border-color: transparent;
  background: var(--grad-cta);
  box-shadow: 0 0 14px -2px rgba(255,79,163,.6);
}
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: none; }

/* ---------- 14. Alerts --------------------------------------------------- */
.alert {
  --alert-c: var(--info);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--alert-c) 38%, transparent);
  background: color-mix(in srgb, var(--alert-c) 10%, transparent);
  color: var(--text);
  line-height: 1.8;
}
.alert > .icon, .alert-icon { color: var(--alert-c); margin-top: .18em; flex: none; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { display: block; font-weight: 700; margin-bottom: 2px; }
.alert a { color: inherit; text-decoration: underline; }
.alert-success { --alert-c: var(--green); }
.alert-error { --alert-c: var(--danger); }
.alert-info { --alert-c: var(--info); }
.alert-warning { --alert-c: var(--amber); }
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .alert { border-color: var(--border-strong); background: var(--surface-2); }
}

/* ---------- 15. Status badges -------------------------------------------- */
.badge {
  --badge-c: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.7;
  white-space: nowrap;
  color: var(--badge-c);
  background: color-mix(in srgb, var(--badge-c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-c) 36%, transparent);
}
.badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex: none;
}
.badge-pending            { --badge-c: #ffd580; }  /* amber */
.badge-reviewing          { --badge-c: #9dd5ff; }  /* info blue */
.badge-approved           { --badge-c: #5cf0bd; }  /* green */
.badge-rejected           { --badge-c: #ff8f9f; }  /* danger */
.badge-awaiting_signature { --badge-c: #d6a2ff; }  /* veronica */
.badge-signed             { --badge-c: #ff8dc5; }  /* pink */
.badge-revision_requested { --badge-c: #ffc857; }  /* amber */
.badge-cancelled          { --badge-c: var(--text-dim); }
.badge-cancelled::before { box-shadow: none; }
.badge-revision_requested { border-style: dashed; }
@supports not (color: color-mix(in srgb, red 50%, transparent)) {
  .badge { background: var(--surface-2); border-color: var(--border-strong); }
}

/* ---------- 16. Pagination ----------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, background-color .2s, border-color .2s;
}
a.page-link:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.page-link.is-current {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(rgba(22,0,44,.22), rgba(22,0,44,.22)), var(--grad-cta);
  box-shadow: 0 8px 22px -10px rgba(255,79,163,.8);
}
.page-link.is-disabled { opacity: .4; cursor: default; }
.page-gap { color: var(--text-dim); padding: 0 4px; }
.page-status { flex-basis: 100%; text-align: center; font-size: .82rem; color: var(--text-dim); }
@media (max-width: 520px) {
  .page-numbers .page-link:not(.is-current) { display: none; }
  .page-numbers .page-gap { display: none; }
}

/* ---------- 17. Empty state ---------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(32px, 6vw, 64px) 20px;
  text-align: center;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--purple-2);
  background: radial-gradient(circle, rgba(160,32,240,.25), rgba(160,32,240,.04) 70%);
  border: 1px solid rgba(160,32,240,.3);
  box-shadow: 0 0 40px -8px rgba(160,32,240,.5);
}
.empty-title { font-size: 1.12rem; }
.empty-text { color: var(--text-muted); max-width: 46ch; }
.empty-action { margin-top: 12px; }

/* ---------- 18. Error pages ---------------------------------------------- */
.error-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 10vh, 120px) clamp(40px, 8vh, 96px);
  text-align: center;
}
.error-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.error-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(420px 300px at 50% 32%, rgba(160,32,240,.26), transparent 70%),
              radial-gradient(360px 240px at 58% 44%, rgba(255,79,163,.14), transparent 70%);
}
.error-orbit {
  position: absolute;
  top: clamp(40px, 9vh, 110px);
  left: 50%;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  translate: -50% -10%;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 0 60px rgba(160,32,240,.12);
}
.error-moon {
  position: absolute;
  top: clamp(40px, 9vh, 110px);
  left: 50%;
  width: min(420px, 86vw);
  aspect-ratio: 1;
  translate: -50% -10%;
}
.error-moon::before {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px 2px rgba(46,230,166,.7);
}
.error-code {
  font-size: clamp(5.5rem, 24vw, 12.5rem);
  font-weight: 900;
  line-height: 1.05;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 28px rgba(160,32,240,.45)) drop-shadow(0 0 60px rgba(255,79,163,.25));
  user-select: none;
}
.error-inner .eyebrow { margin-top: -6px; }
.error-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.3rem); max-width: 22ch; }
.error-message { max-width: 56ch; }
.error-actions { justify-content: center; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .error-code { animation: ww-float 6s ease-in-out infinite, ww-flicker 7s linear infinite; }
  .error-moon { animation: ww-orbit 18s linear infinite; }
}
@keyframes ww-float { 50% { transform: translateY(-8px); } }
@keyframes ww-flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .72; }
  94% { opacity: 1; }
  96% { opacity: .82; }
}
@keyframes ww-orbit { to { rotate: 360deg; } }

/* ---------- 19. Reveal-on-scroll ----------------------------------------- */
/* Visible by default (no JS). common.js adds .js to <html> and .is-visible to each .reveal.
   If JS is enabled but common.js fails to load, a CSS fail-safe shows everything after ~2.5s. */
@media (scripting: enabled) {
  :where(html:not(.js)) :where(.reveal) {
    opacity: 0;
    animation: ww-reveal-failsafe .6s ease 2.5s forwards;
  }
}
@keyframes ww-reveal-failsafe { to { opacity: 1; } }
:where(.js) :where(.reveal) {
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
:where(.js) :where(.reveal:not(.is-visible)) {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 24px), 0);
}
:where(.js) :where(.reveal.reveal-zoom:not(.is-visible)) { transform: scale(.94); }
:where(.js) :where(.reveal.reveal-blur:not(.is-visible)) { filter: blur(8px); }

/* ---------- 20. View transitions ----------------------------------------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ww-vt-out .22s ease both; }
::view-transition-new(root) { animation: ww-vt-in .38s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: .3s; }
@keyframes ww-vt-out { to { opacity: 0; } }
@keyframes ww-vt-in { from { opacity: 0; } }

/* ---------- 21. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal, :where(.js) .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .btn:hover, .card-hover:hover { transform: none; }
  .btn:hover::after { animation: none; opacity: 0; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- 22. Print ---------------------------------------------------- */
@media print {
  @page { margin: 14mm; }
  .no-print { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body { display: block; min-height: 0; font-size: 11.5pt; line-height: 1.8; }
  body::before, body::after { display: none !important; }
  a { color: inherit !important; text-decoration: none; }
  h1, h2, h3, h4, h5, h6 { color: #000 !important; break-after: avoid; }
  .grad-text, .error-code {
    background: none !important;
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
    filter: none !important;
  }
  .card, .card-glass, .alert, .table-wrap, .empty-state {
    background: none !important;
    box-shadow: none !important;
    border-color: #bbb !important;
    color: #000 !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }
  .badge { color: #000 !important; background: none !important; border-color: #888 !important; }
  .badge::before { box-shadow: none !important; }
  .muted, .dim, .lead, .field-help, .kv dt { color: #333 !important; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .site-main { padding: 0 !important; }
}
