/* ==========================================================================
   Liqaa 4.1 — Design System
   Dawn / warm-orange identity preserved from v4 (--c1 #F59E0B, --c2 #F43F5E)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand (unchanged from v4) */
  --c1: #F59E0B;
  --c2: #F43F5E;
  --grad: linear-gradient(135deg, var(--c1), var(--c2));

  /* Dark (default) */
  --bg: #14100C;
  --bg2: #1B1410;
  --card: #201812;
  --card2: #251C15;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F2EDE6;
  --muted: #B7AEA2;
  --faint: #8C8377;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-hover: rgba(255, 255, 255, 0.10);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  --ring: rgba(245, 158, 11, .45);
  --tint: rgba(245, 158, 11, .12);
  --tint-strong: rgba(245, 158, 11, .18);
  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, .12);
  --ok: #34D399;
  --warn: #FBBF24;
  --switch-track: rgba(255, 255, 255, .16);

  /* Scale */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --fs-display: clamp(34px, 5vw, 52px);
  --fs-h1: clamp(26px, 3.4vw, 34px);
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-sm: 14.5px;
  --fs-xs: 13.5px;

  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: 22px;
  --sp-5: 32px;
  --sp-6: 48px;

  --content: 1080px;
  --content-wide: 1240px;
  --content-narrow: 480px;

  --t-fast: 150ms;
  --t-mid: 200ms;
  --t-slow: 280ms;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --nav-h: 68px;
}

:root.light {
  --bg: #FAF4EC;
  --bg2: #FFFCF8;
  --card: #FFFFFF;
  --card2: #FDF8F2;
  --border: rgba(60, 42, 20, 0.12);
  --border-strong: rgba(60, 42, 20, 0.22);
  --text: #1A140D;
  --muted: #5C5245;
  --faint: #857A6B;
  --glass: rgba(60, 42, 20, 0.05);
  --glass-hover: rgba(60, 42, 20, 0.09);
  --shadow-sm: 0 1px 2px rgba(80, 50, 20, .08);
  --shadow-md: 0 6px 20px rgba(80, 50, 20, .10);
  --shadow-lg: 0 20px 50px rgba(80, 50, 20, .16);
  --tint: rgba(245, 158, 11, .13);
  --tint-strong: rgba(245, 158, 11, .20);
  --danger: #DC2626;
  --danger-bg: rgba(220, 38, 38, .09);
  --switch-track: rgba(60, 42, 20, .20);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
[hidden] { display: none !important; }

/* Ambient dawn background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 82% -6%, rgba(245, 158, 11, .13), transparent 62%),
    radial-gradient(660px 380px at 8% 4%, rgba(244, 63, 94, .09), transparent 60%);
}
:root.light body::before {
  background:
    radial-gradient(760px 420px at 82% -6%, rgba(245, 158, 11, .17), transparent 62%),
    radial-gradient(660px 380px at 8% 4%, rgba(244, 63, 94, .10), transparent 60%);
}

/* ---------- Ambient line-art doodles (#9-12, #46-48) ----------
   A single repeating, percent-encoded inline SVG tile: no network request,
   no extra DOM, no per-icon elements. It sits behind every UI layer.
   Only `transform` and `opacity` are animated, so the compositor handles it
   on the GPU and it never touches layout -> no impact on video FPS,
   WebRTC/LiveKit throughput, or audio. */
body::after {
  content: "";
  position: fixed;
  /* oversized so the drift never exposes an edge */
  inset: -12vmax;
  z-index: 0;
  pointer-events: none;
  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22440%22%20height%3D%22440%22%20viewBox%3D%220%200%20440%20440%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23F59E0B%22%20stroke-opacity%3D%220.85%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20transform%3D%22translate%2852%2058%29%20rotate%28-12%29%20scale%281.0%29%22%3E%3Crect%20x%3D%22-20%22%20y%3D%22-13%22%20width%3D%2228%22%20height%3D%2226%22%20rx%3D%226%22%2F%3E%3Cpath%20d%3D%22M8%20-4%2020%20-11v22L8%204z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28196%2040%29%20rotate%2814%29%20scale%280.85%29%22%3E%3Crect%20x%3D%22-5%22%20y%3D%22-19%22%20width%3D%2210%22%20height%3D%2221%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M-11%20-3a11%2011%200%200%200%2022%200%22%2F%3E%3Cpath%20d%3D%22M0%208v8%22%2F%3E%3Cpath%20d%3D%22M-7%2016h14%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28330%2072%29%20rotate%28-8%29%20scale%280.95%29%22%3E%3Cpath%20d%3D%22M-18%20-13h36a4%204%200%200%201%204%204v15a4%204%200%200%201-4%204H-2l-9%208v-8h-7a4%204%200%200%201-4-4v-15a4%204%200%200%201%204-4z%22%2F%3E%3Ccircle%20cx%3D%22-8%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2896%20186%29%20rotate%2810%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-15%20-11h30v20h-30z%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M-21%209h42l3%206h-48z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28250%20168%29%20rotate%28-16%29%20scale%280.8%29%22%3E%3Cpath%20d%3D%22M0%20-18c1.5%209%207.5%2015%2016.5%2016.5C7.5%200%201.5%206%200%2015c-1.5-9-7.5-15-16.5-16.5C-7.5-3-1.5-9%200-18z%22%2F%3E%3Cpath%20d%3D%22M17%2010c.6%203.6%203%206%206.6%206.6-3.6.6-6%203-6.6%206.6-.6-3.6-3-6-6.6-6.6%203.6-.6%206-3%206.6-6.6z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28388%20200%29%20rotate%286%29%20scale%280.85%29%22%3E%3Cpath%20d%3D%22M-16%204v-4a16%2016%200%200%201%2032%200v4%22%2F%3E%3Crect%20x%3D%22-20%22%20y%3D%223%22%20width%3D%229%22%20height%3D%2215%22%20rx%3D%224.5%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%223%22%20width%3D%229%22%20height%3D%2215%22%20rx%3D%224.5%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2840%20316%29%20rotate%288%29%20scale%280.85%29%22%3E%3Cpath%20d%3D%22M-12%20-18h16l8%208v28h-24z%22%2F%3E%3Cpath%20d%3D%22M4%20-18v8h8%22%2F%3E%3Cpath%20d%3D%22M-6%200h12M-6%206h12M-6%2012h7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28176%20300%29%20rotate%28-10%29%20scale%280.95%29%22%3E%3Ccircle%20cx%3D%22-9%22%20cy%3D%22-8%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%22-8%22%20r%3D%226%22%2F%3E%3Cpath%20d%3D%22M-21%2012a12%2012%200%200%201%2024%200%22%2F%3E%3Cpath%20d%3D%22M9%204a12%2012%200%200%201%2012%208%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28312%20316%29%20rotate%2816%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-19%20-8h7l3-5h18l3%205h7a3%203%200%200%201%203%203v17a3%203%200%200%201-3%203h-38a3%203%200%200%201-3-3v-17a3%203%200%200%201%203-3z%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%224%22%20r%3D%228%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28418%20356%29%20rotate%28-12%29%20scale%280.8%29%22%3E%3Cpath%20d%3D%22M-16%2014l4-10%2022-22%206%206-22%2022z%22%2F%3E%3Cpath%20d%3D%22M6%20-12l6%206%22%2F%3E%3Cpath%20d%3D%22M-16%2014l6-2%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28128%20412%29%20rotate%28-6%29%20scale%280.85%29%22%3E%3Crect%20x%3D%22-18%22%20y%3D%22-13%22%20width%3D%2236%22%20height%3D%2224%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M-6%2011v6h12v-6%22%2F%3E%3Cpath%20d%3D%22M-12%2017h24%22%2F%3E%3Cpath%20d%3D%22M-11%20-6h10M-11%200h16%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28300%20424%29%20rotate%2810%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-20%200h5l3-8%204%2016%204-12%203%206%203-3h5%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%288%20120%29%20rotate%2818%29%20scale%280.75%29%22%3E%3Cpath%20d%3D%22M-20%200h5l3-8%204%2016%204-12%203%206%203-3h5%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E);
  background-repeat: repeat;
  background-size: 440px 440px;
  opacity: .16;
  will-change: transform;
  animation: doodleDrift 90s linear infinite;
}
:root.light body::after {
  background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22440%22%20height%3D%22440%22%20viewBox%3D%220%200%20440%20440%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23B4530A%22%20stroke-opacity%3D%220.75%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20transform%3D%22translate%2852%2058%29%20rotate%28-12%29%20scale%281.0%29%22%3E%3Crect%20x%3D%22-20%22%20y%3D%22-13%22%20width%3D%2228%22%20height%3D%2226%22%20rx%3D%226%22%2F%3E%3Cpath%20d%3D%22M8%20-4%2020%20-11v22L8%204z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28196%2040%29%20rotate%2814%29%20scale%280.85%29%22%3E%3Crect%20x%3D%22-5%22%20y%3D%22-19%22%20width%3D%2210%22%20height%3D%2221%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M-11%20-3a11%2011%200%200%200%2022%200%22%2F%3E%3Cpath%20d%3D%22M0%208v8%22%2F%3E%3Cpath%20d%3D%22M-7%2016h14%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28330%2072%29%20rotate%28-8%29%20scale%280.95%29%22%3E%3Cpath%20d%3D%22M-18%20-13h36a4%204%200%200%201%204%204v15a4%204%200%200%201-4%204H-2l-9%208v-8h-7a4%204%200%200%201-4-4v-15a4%204%200%200%201%204-4z%22%2F%3E%3Ccircle%20cx%3D%22-8%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%22-1%22%20r%3D%221.8%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2896%20186%29%20rotate%2810%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-15%20-11h30v20h-30z%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M-21%209h42l3%206h-48z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28250%20168%29%20rotate%28-16%29%20scale%280.8%29%22%3E%3Cpath%20d%3D%22M0%20-18c1.5%209%207.5%2015%2016.5%2016.5C7.5%200%201.5%206%200%2015c-1.5-9-7.5-15-16.5-16.5C-7.5-3-1.5-9%200-18z%22%2F%3E%3Cpath%20d%3D%22M17%2010c.6%203.6%203%206%206.6%206.6-3.6.6-6%203-6.6%206.6-.6-3.6-3-6-6.6-6.6%203.6-.6%206-3%206.6-6.6z%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28388%20200%29%20rotate%286%29%20scale%280.85%29%22%3E%3Cpath%20d%3D%22M-16%204v-4a16%2016%200%200%201%2032%200v4%22%2F%3E%3Crect%20x%3D%22-20%22%20y%3D%223%22%20width%3D%229%22%20height%3D%2215%22%20rx%3D%224.5%22%2F%3E%3Crect%20x%3D%2211%22%20y%3D%223%22%20width%3D%229%22%20height%3D%2215%22%20rx%3D%224.5%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%2840%20316%29%20rotate%288%29%20scale%280.85%29%22%3E%3Cpath%20d%3D%22M-12%20-18h16l8%208v28h-24z%22%2F%3E%3Cpath%20d%3D%22M4%20-18v8h8%22%2F%3E%3Cpath%20d%3D%22M-6%200h12M-6%206h12M-6%2012h7%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28176%20300%29%20rotate%28-10%29%20scale%280.95%29%22%3E%3Ccircle%20cx%3D%22-9%22%20cy%3D%22-8%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%22-8%22%20r%3D%226%22%2F%3E%3Cpath%20d%3D%22M-21%2012a12%2012%200%200%201%2024%200%22%2F%3E%3Cpath%20d%3D%22M9%204a12%2012%200%200%201%2012%208%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28312%20316%29%20rotate%2816%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-19%20-8h7l3-5h18l3%205h7a3%203%200%200%201%203%203v17a3%203%200%200%201-3%203h-38a3%203%200%200%201-3-3v-17a3%203%200%200%201%203-3z%22%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%224%22%20r%3D%228%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28418%20356%29%20rotate%28-12%29%20scale%280.8%29%22%3E%3Cpath%20d%3D%22M-16%2014l4-10%2022-22%206%206-22%2022z%22%2F%3E%3Cpath%20d%3D%22M6%20-12l6%206%22%2F%3E%3Cpath%20d%3D%22M-16%2014l6-2%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28128%20412%29%20rotate%28-6%29%20scale%280.85%29%22%3E%3Crect%20x%3D%22-18%22%20y%3D%22-13%22%20width%3D%2236%22%20height%3D%2224%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M-6%2011v6h12v-6%22%2F%3E%3Cpath%20d%3D%22M-12%2017h24%22%2F%3E%3Cpath%20d%3D%22M-11%20-6h10M-11%200h16%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%28300%20424%29%20rotate%2810%29%20scale%280.9%29%22%3E%3Cpath%20d%3D%22M-20%200h5l3-8%204%2016%204-12%203%206%203-3h5%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%288%20120%29%20rotate%2818%29%20scale%280.75%29%22%3E%3Cpath%20d%3D%22M-20%200h5l3-8%204%2016%204-12%203%206%203-3h5%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E);
  opacity: .13;
}
/* Keep the decorative background equally visible and moving at one speed throughout the site. */
body.app::after { opacity: .16; animation-duration: 90s; }
:root.light body.app::after { opacity: .13; animation-duration: 90s; }
/* The meeting room is video-first: remove moving background artwork completely. */
body.in-room::after, :root.light body.in-room::after { display: none; }

@keyframes doodleDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-220px, -140px, 0) rotate(.6deg); }
  100% { transform: translate3d(-440px, -440px, 0) rotate(0deg); }
}

/* ---------- Focus & a11y ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px;
  z-index: 200; background: var(--card); color: var(--text);
  padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border); font-weight: 700;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}
.container.wide { max-width: var(--content-wide); }
.container.narrow { max-width: var(--content-narrow); }

.page { padding-block: var(--sp-5) var(--sp-6); }
.stack { display: flex; flex-direction: column; }
.stack.g1 { gap: var(--sp-1); }
.stack.g2 { gap: var(--sp-2); }
.stack.g3 { gap: var(--sp-3); }
.stack.g4 { gap: var(--sp-4); }
.stack.g5 { gap: var(--sp-5); }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Typography ---------- */
.display { font-size: var(--fs-display); font-weight: 800; line-height: 1.18; letter-spacing: -.5px; }
h1, .h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.25; letter-spacing: -.3px; }
h2, .h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.4; }
.lede { font-size: 17.5px; color: var(--muted); line-height: 1.7; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: var(--fs-sm); }
.small { font-size: var(--fs-sm); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap;
}
.section-head h2 { font-size: 20px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; color: var(--text); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
  flex: none;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark { box-shadow: 0 6px 18px rgba(245, 158, 11, .5); }
.brand-mark, .brand:hover .brand-mark { transition: box-shadow var(--t-mid) var(--ease); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: var(--fs-body); font-weight: 700;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  min-height: 46px;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(245, 158, 11, .3); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(245, 158, 11, .42); }

.btn-secondary { background: var(--glass); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--glass-hover); border-color: var(--c1); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--glass); color: var(--text); }

.btn-danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(248, 113, 113, .35); }
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 15px; min-height: 38px; font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { padding: 15px 30px; min-height: 54px; font-size: 17px; }

/* Loading state */
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn-label { opacity: .75; }
.spinner {
  width: 17px; height: 17px; flex: none;
  border: 2.2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Icon buttons */
.icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; position: relative;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--glass); color: var(--text); }
.icon-btn[aria-expanded="true"] { background: var(--tint); color: var(--c1); }

/* ---------- Cards & surfaces ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.card.flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease); }
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.panel-divider { height: 1px; background: var(--border); border: 0; margin-block: var(--sp-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700;
  background: var(--tint); color: var(--c1);
  border: 1px solid rgba(245, 158, 11, .25);
}
.badge.neutral { background: var(--glass); color: var(--muted); border-color: var(--border); }
.badge.ok { background: rgba(52, 211, 153, .12); color: var(--ok); border-color: rgba(52, 211, 153, .3); }
.badge.warn { background: rgba(251, 191, 36, .12); color: var(--warn); border-color: rgba(251, 191, 36, .3); }
.badge.danger { background: var(--danger-bg); color: var(--danger); border-color: rgba(248, 113, 113, .3); }

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; flex: none;
  overflow: hidden; user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar.xl { width: 92px; height: 92px; font-size: 34px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.hint { font-size: var(--fs-xs); color: var(--faint); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 15px;
  font-size: var(--fs-body);
  color: var(--text);
  min-height: 48px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--c1);
  box-shadow: 0 0 0 3.5px var(--ring);
}
.input.err, .select.err { border-color: var(--danger); }
.input:disabled, .select:disabled { opacity: .6; cursor: not-allowed; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 17px;
  padding-inline-start: 15px;
  padding-inline-end: 40px;
  cursor: pointer;
}
html[dir="ltr"] .select { background-position: right 14px center; }

.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-inline-end: 46px; }
.input-group .in-btn {
  position: absolute; inset-inline-end: 6px;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.input-group .in-btn:hover { background: var(--glass); color: var(--c1); }
.input-group .in-btn svg { width: 19px; height: 19px; }

.err-msg {
  display: none; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--danger);
}
.err-msg.show { display: flex; animation: fadeUp var(--t-mid) var(--ease); }
.err-msg svg { width: 15px; height: 15px; flex: none; }

/* Checkbox / radio */
.check, .radio {
  display: flex; align-items: flex-start; gap: 11px;
  cursor: pointer; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  font-size: var(--fs-sm);
}
.check:hover, .radio:hover { border-color: var(--border-strong); background: var(--glass); }
.check input, .radio input {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  accent-color: var(--c1); cursor: pointer;
}
.check:has(input:checked), .radio:has(input:checked) {
  border-color: var(--c1); background: var(--tint);
}
.check-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check-body b { font-weight: 700; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); padding: 14px 0;
}
.toggle-row + .toggle-row { border-top: 1px solid var(--border); }
.toggle-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toggle-txt b { font-size: var(--fs-body); font-weight: 700; }
.toggle {
  width: 50px; height: 28px; flex: none;
  border-radius: var(--r-pill);
  background: var(--switch-track);
  border: 1px solid var(--border);
  position: relative; cursor: pointer;
  transition: background var(--t-mid) var(--ease);
}
.toggle::after {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid) var(--ease);
}
.toggle[aria-checked="true"] { background: var(--grad); border-color: transparent; }
.toggle[aria-checked="true"]::after { transform: translateX(22px); }
html[dir="rtl"] .toggle[aria-checked="true"]::after { transform: translateX(-22px); }

/* Theme switch (kept from v4) */
/* ---------- Theme switch ----------
   Geometry is interlocked: track 54x30, 3px inset, knob 22x22.
   Travel = 54 - 22 - (3*2) = 20px. Keep these in sync if resized. */
.switch {
  --sw-w: 54px; --sw-h: 30px; --sw-pad: 3px; --sw-knob: 22px;
  width: var(--sw-w); height: var(--sw-h); border-radius: var(--r-pill);
  background: var(--switch-track); border: 1px solid var(--border);
  position: relative; cursor: pointer; flex: none;
  box-sizing: border-box;
  padding: 0; /* a UA button padding would shift the knob out of the track */
  transition: background var(--t-mid) var(--ease);
}
.switch .knob {
  position: absolute; top: var(--sw-pad); inset-inline-end: var(--sw-pad);
  width: var(--sw-knob); height: var(--sw-knob); border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform var(--t-mid) var(--ease);
}
/* The knob is pinned with inset-inline-end, so in light mode it slides toward
   the inline START: negative X in LTR, positive X in RTL. */
:root.light .switch .knob {
  transform: translateX(calc(-1 * (var(--sw-w) - var(--sw-knob) - var(--sw-pad) * 2)));
}
html[dir="rtl"]:root.light .switch .knob {
  transform: translateX(calc(var(--sw-w) - var(--sw-knob) - var(--sw-pad) * 2));
}
/* Centre the icons in the knob explicitly rather than relying on the
   static-position of an absolutely-positioned grid item. */
.switch .ic {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px; display: block;
  transition: opacity var(--t-fast);
}
:root:not(.light) .ic-sun { opacity: 0; }
:root.light .ic-moon { opacity: 0; }

.lang-btn {
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: .5px;
  padding: 8px 11px; border-radius: var(--r-sm);
  color: var(--muted); text-transform: uppercase;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-btn:hover { background: var(--glass); color: var(--c1); }

/* ---------- App navigation ---------- */
.appbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.appbar-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--sp-3);
}
.nav-links { display: flex; align-items: center; gap: 3px; margin-inline-start: var(--sp-4); }
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700;
  color: var(--muted); text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  position: relative;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { background: var(--glass); color: var(--text); }
.nav-link.active { color: var(--c1); background: var(--tint); }
.nav-end { display: flex; align-items: center; gap: 5px; margin-inline-start: auto; }

.notif-dot {
  position: absolute; top: 7px; inset-inline-end: 7px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--c2); color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 17px;
  text-align: center; border: 2px solid var(--bg);
}

.avatar-btn {
  padding: 3px; border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.avatar-btn:hover, .avatar-btn[aria-expanded="true"] { border-color: var(--c1); }

.burger { display: none; }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-mid) var(--ease);
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 91;
  width: min(310px, 84vw); height: 100dvh;
  background: var(--bg2); border-inline-start: 1px solid var(--border);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: 5px;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  overflow-y: auto;
}
html[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.open { transform: translateX(0) !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--sp-3); margin-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
.drawer .nav-link { padding: 13px 15px; font-size: var(--fs-body); }

/* ---------- Dropdown menus ---------- */
.menu {
  position: absolute; z-index: 80;
  min-width: 226px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.98);
  pointer-events: none; visibility: hidden;
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility var(--t-mid);
  inset-inline-end: 0; top: calc(100% + 8px);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
/* Set by bindMenu when an ancestor (e.g. .card.flush, a scroll container)
   would clip the dropdown: the menu is lifted into the viewport layer and
   positioned in JS, so the inset-inline-end/top defaults must not apply. */
.menu.menu-fixed {
  position: fixed;
  inset-inline-end: auto;
  z-index: 200;
}
.menu-head { padding: 11px 13px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-head .mh-name { font-weight: 800; font-size: var(--fs-sm); }
.menu-head .mh-mail { font-size: var(--fs-xs); color: var(--muted); word-break: break-all; }
.menu-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 13px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text); text-decoration: none; text-align: start;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.menu-item svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.menu-item:hover { background: var(--glass); }
.menu-item:hover svg { color: var(--c1); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger svg { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-bg); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-wrap { position: relative; }

/* Notifications panel */
.notif-panel { width: min(370px, calc(100vw - 32px)); padding: 0; }
.notif-panel .np-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.notif-panel .np-head b { font-size: var(--fs-body); }
.np-list { max-height: 380px; overflow-y: auto; padding: 6px; }
.np-item {
  display: flex; gap: 12px; padding: 12px 13px;
  border-radius: var(--r-sm); text-align: start; width: 100%;
  transition: background var(--t-fast) var(--ease);
}
.np-item:hover { background: var(--glass); }
.np-item.unread { background: var(--tint); }
.np-item.unread:hover { background: var(--tint-strong); }
.np-ic {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center;
  background: var(--tint); color: var(--c1);
}
.np-ic svg { width: 18px; height: 18px; }
.np-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.np-body .np-txt { font-size: var(--fs-sm); line-height: 1.5; }
.np-body .np-time { font-size: var(--fs-xs); color: var(--faint); }
.np-actions { display: flex; gap: 8px; margin-top: 6px; }
.np-empty { padding: 40px 20px; text-align: center; color: var(--faint); font-size: var(--fs-sm); }

/* ---------- Modals ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 5, 3, .62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow);
  overflow-y: auto;
}
.modal-scrim.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
  margin: auto;
}
.modal-scrim.open .modal { transform: none; opacity: 1; }
.modal.wide { max-width: 620px; }
.modal-head { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.modal-head .mt { flex: 1; min-width: 0; }
.modal-head h2 { font-size: 20px; margin-bottom: 3px; }
.modal-head p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.modal-close {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.modal-close:hover { background: var(--glass); color: var(--text); }
.modal-close svg { width: 19px; height: 19px; }
.modal-body { display: flex; flex-direction: column; gap: var(--sp-3); }
.modal-foot {
  display: flex; gap: 11px; justify-content: flex-end;
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}
.modal-foot .btn { min-width: 118px; }

/* ---------- Toasts ---------- */
.toast-host {
  position: fixed; z-index: 200;
  bottom: 24px; inset-inline-end: 24px;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none; max-width: min(380px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--c1);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 13px 17px;
  font-size: var(--fs-sm); font-weight: 600;
  pointer-events: auto;
  animation: toastIn var(--t-slow) var(--ease);
}
.toast.out { animation: toastOut var(--t-mid) var(--ease) forwards; }
.toast svg { width: 19px; height: 19px; flex: none; color: var(--c1); }
.toast.ok { border-inline-start-color: var(--ok); }
.toast.ok svg { color: var(--ok); }
.toast.error { border-inline-start-color: var(--danger); }
.toast.error svg { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Meeting list rows ---------- */
.mtg-list { display: flex; flex-direction: column; }
.mtg-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 15px var(--sp-4);
  transition: background var(--t-fast) var(--ease);
  position: relative;
}
.mtg-row + .mtg-row { border-top: 1px solid var(--border); }
.mtg-row:hover { background: var(--glass); }
.mtg-thumb {
  width: 46px; height: 46px; border-radius: var(--r-md); flex: none;
  display: grid; place-items: center; overflow: hidden;
  background: var(--tint); color: var(--c1);
  font-weight: 800; font-size: 18px;
}
.mtg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mtg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mtg-name {
  font-weight: 700; font-size: var(--fs-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mtg-meta { font-size: var(--fs-sm); color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.mtg-meta .sep { opacity: .5; }
.mtg-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------- Empty states ---------- */
.empty {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 9px;
  padding: var(--sp-6) var(--sp-4);
}
.empty-art {
  width: 76px; height: 76px; border-radius: 22px;
  display: grid; place-items: center; margin-bottom: 5px;
  background: var(--tint); color: var(--c1);
  border: 1px solid rgba(245, 158, 11, .22);
}
.empty-art svg { width: 34px; height: 34px; }
.empty h3 { font-size: 19px; }
.empty p { color: var(--muted); font-size: var(--fs-sm); max-width: 360px; line-height: 1.65; }
.empty .btn { margin-top: 9px; }

/* ---------- Skeletons ---------- */
.skel {
  background: linear-gradient(90deg, var(--glass) 25%, var(--glass-hover) 50%, var(--glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-row { height: 74px; border-radius: var(--r-md); }

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.tab {
  padding: 9px 19px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 700; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--card); color: var(--c1); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--sp-6);
  padding-block: var(--sp-5) var(--sp-4);
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-4);
}
.footer-col h4 { font-size: var(--fs-sm); font-weight: 800; margin-bottom: 13px; }
.footer-col a {
  display: block; padding: 5px 0;
  font-size: var(--fs-sm); color: var(--muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover { color: var(--c1); }
.footer-about { font-size: var(--fs-sm); color: var(--muted); max-width: 300px; margin-top: 11px; line-height: 1.7; }
.footer-bottom {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--faint);
}

/* ---------- Auth pages ---------- */
.auth-wrap {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--sp-4) 20px var(--sp-5);
  position: relative; z-index: 1;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5) var(--sp-4);
}
.auth-head { text-align: center; margin-bottom: var(--sp-4); }
.auth-head h1 { font-size: 26px; margin-bottom: 7px; }
.auth-head p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.auth-top {
  width: 100%; max-width: 440px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.auth-foot { margin-top: var(--sp-4); text-align: center; font-size: var(--fs-sm); color: var(--muted); }
.auth-foot a { color: var(--c1); font-weight: 700; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.or-sep {
  display: flex; align-items: center; gap: 14px;
  color: var(--faint); font-size: var(--fs-xs); font-weight: 700;
  margin-block: var(--sp-3);
}
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* OTP inputs */
.otp {
  display: flex; gap: 9px; justify-content: center;
  direction: ltr;
}
.otp input {
  width: 52px; height: 62px;
  text-align: center; font-size: 25px; font-weight: 800;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.otp input:focus { border-color: var(--c1); box-shadow: 0 0 0 3.5px var(--ring); transform: translateY(-2px); }
.otp input.filled { border-color: rgba(245, 158, 11, .5); }
.otp.err input { border-color: var(--danger); animation: shake 320ms var(--ease); }
@keyframes shake {
  20% { transform: translateX(-6px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(4px); }
}

/* Success check */
.success-art {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(52, 211, 153, .13); color: var(--ok);
  display: grid; place-items: center; margin: 0 auto var(--sp-3);
  animation: pop var(--t-slow) var(--ease);
}
.success-art svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* ---------- Legal / doc pages ---------- */
.doc { max-width: 760px; }
.doc h1 { margin-bottom: 9px; }
.doc .updated { color: var(--faint); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
.doc h2 { font-size: 20px; margin-top: var(--sp-5); margin-bottom: 11px; }
.doc h3 { font-size: 16px; margin-top: var(--sp-4); margin-bottom: 9px; color: var(--c1); }
.doc strong, .doc b { color: var(--text); }
.doc p, .doc li { color: var(--muted); line-height: 1.85; margin-bottom: 11px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc a { color: var(--c1); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } }
.anim-in { animation: fadeUp var(--t-slow) var(--ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .container { padding-inline: 18px; }
}
@media (max-width: 640px) {
  :root { --fs-h2: 20px; --sp-5: 26px; --sp-6: 36px; }
  .container { padding-inline: 15px; }
  .page { padding-block: var(--sp-4) var(--sp-5); }
  .card { padding: var(--sp-3); border-radius: var(--r-md); }
  .mtg-row { padding: 13px var(--sp-3); gap: 12px; }
  .mtg-thumb { width: 40px; height: 40px; font-size: 16px; }
  .modal { padding: var(--sp-3); border-radius: var(--r-lg); }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }
  .toast-host { bottom: 14px; inset-inline: 14px; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .otp input { width: 44px; height: 55px; font-size: 22px; }
  .opt-grid { grid-template-columns: 1fr; }
  .auth-card { padding: var(--sp-4) var(--sp-3); }
  .nav-end .lang-btn { display: none; }
}

/* Motion is intentionally enabled for every visitor, on every device, per product requirement. */
