/* =====================================================================
   WILL BE THERE — Core design system
   "Private invitations. Beautifully confirmed."
   Next.js / Geist-inspired: neutral scales, hairline borders, tight radii,
   restrained motion — carrying the rose-gold brand accent.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&display=swap');

/* ------------------------------- Tokens ------------------------------ */
:root {
  /* Brand — sampled from the WBT mark */
  --brand-50:  #FBF1EC;
  --brand-100: #F4DED3;
  --brand-200: #E8BFA8;
  --brand-300: #DCA88E;
  --brand-400: #C98D74;
  --brand-500: #B87A5F;
  --brand-600: #9C6249;
  --brand-700: #7A4B37;

  --accent: var(--brand-500);
  --accent-hover: var(--brand-600);
  --accent-fg: #FFFFFF;
  --accent-soft: var(--brand-50);
  --accent-line: var(--brand-200);

  /* Neutrals — light */
  --bg: #FFFFFF;
  --bg-subtle: #FAFAF9;
  --bg-muted: #F5F4F2;
  --surface: #FFFFFF;
  --surface-2: #FAFAF9;
  --overlay: rgba(255, 255, 255, 0.72);

  --fg: #171615;
  --fg-2: #6B6864;
  --fg-3: #97938E;
  --fg-inv: #FFFFFF;

  --border: #E8E6E3;
  --border-strong: #D6D3CF;
  --ring: rgba(184, 122, 95, 0.35);

  /* Semantic */
  --ok: #2F855A;   --ok-soft: #E8F3EC;   --ok-line: #BFE0CC;
  --warn: #B26B12; --warn-soft: #FBF0DF; --warn-line: #EED6AE;
  --bad: #C0392B;  --bad-soft: #FBEAE8;  --bad-line: #F2C9C4;
  --info: #2B6CB0; --info-soft: #E8F0F9; --info-line: #C4D8EE;

  /* Elevation — borders first, shadows whisper */
  --sh-1: 0 1px 2px rgba(23, 22, 21, 0.04);
  --sh-2: 0 1px 2px rgba(23, 22, 21, 0.05), 0 4px 12px rgba(23, 22, 21, 0.04);
  --sh-3: 0 1px 2px rgba(23, 22, 21, 0.06), 0 12px 32px rgba(23, 22, 21, 0.08);
  --sh-4: 0 2px 4px rgba(23, 22, 21, 0.06), 0 24px 56px rgba(23, 22, 21, 0.12);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Liberation Sans', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'Menlo', 'Consolas', 'Liberation Mono', monospace;

  /* Shape & motion */
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1120px;
  --nav-h: 60px;
}

[data-theme='dark'] {
  --bg: #0A0A0A;
  --bg-subtle: #111110;
  --bg-muted: #171716;
  --surface: #121211;
  --surface-2: #171716;
  --overlay: rgba(10, 10, 10, 0.72);

  --fg: #FAFAF9;
  --fg-2: rgba(250, 250, 249, 0.62);
  --fg-3: rgba(250, 250, 249, 0.40);
  --fg-inv: #0A0A0A;

  --border: rgba(250, 250, 249, 0.11);
  --border-strong: rgba(250, 250, 249, 0.20);
  --ring: rgba(220, 168, 142, 0.45);

  --accent: var(--brand-300);
  --accent-hover: var(--brand-200);
  --accent-fg: #1A0F09;
  --accent-soft: rgba(220, 168, 142, 0.12);
  --accent-line: rgba(220, 168, 142, 0.30);

  --ok: #6EE7A8;   --ok-soft: rgba(110, 231, 168, 0.12);   --ok-line: rgba(110, 231, 168, 0.28);
  --warn: #F0B354; --warn-soft: rgba(240, 179, 84, 0.12);  --warn-line: rgba(240, 179, 84, 0.28);
  --bad: #F58C7F;  --bad-soft: rgba(245, 140, 127, 0.12);  --bad-line: rgba(245, 140, 127, 0.28);
  --info: #7FB2F0; --info-soft: rgba(127, 178, 240, 0.12); --info-line: rgba(127, 178, 240, 0.28);

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-2: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --sh-3: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
  --sh-4: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.6);
}

/* ------------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}

::selection { background: var(--accent-soft); color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.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; left: 12px; top: -60px; z-index: 999;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--r);
  font-size: .875rem; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------ Typography --------------------------- */
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.15; letter-spacing: -0.021em; color: var(--fg); }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.625rem, 3.2vw, 2.375rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

.display {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1.04; letter-spacing: -0.04em; font-weight: 600;
}
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.script { font-family: var(--serif); font-style: italic; font-weight: 400; }

.lead { font-size: clamp(1rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--fg-2); }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: .5;
}
.eyebrow.no-rule::before { display: none; }

.accent-text { color: var(--accent); }
.balance { text-wrap: balance; }

/* ------------------------------- Layout ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.container-narrow { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.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; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }
.full { width: 100%; }
.nowrap { white-space: nowrap; }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: 14px 0 12px; }

/* -------------------------------- Brand ------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; object-fit: contain; flex: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.0625rem; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand-tag {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); font-weight: 500;
}

/* ------------------------------- Buttons ----------------------------- */
.btn {
  --btn-h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding-inline: 16px;
  font-size: .875rem; font-weight: 500; letter-spacing: -0.006em;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--fg); color: var(--bg); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--fg-2); }

.btn-accent { background: var(--accent); color: var(--accent-fg); box-shadow: var(--sh-1); }
.btn-accent:hover { background: var(--accent-hover); }

.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--sh-1); }
.btn-outline:hover { background: var(--bg-muted); border-color: var(--border-strong); }

.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--fg); }

.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }

.btn-sm { --btn-h: 32px; padding-inline: 12px; font-size: .8125rem; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { --btn-h: 48px; padding-inline: 22px; font-size: .9375rem; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--r);
  background: transparent; border: 1px solid transparent; color: var(--fg-2);
  cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.icon-btn:hover { background: var(--bg-muted); color: var(--fg); border-color: var(--border); }
.icon-btn svg { width: 18px; height: 18px; }

/* Theme toggle */
.theme-toggle { position: relative; }
.theme-toggle .i-sun { display: none; }
[data-theme='dark'] .theme-toggle .i-sun { display: block; }
[data-theme='dark'] .theme-toggle .i-moon { display: none; }

/* -------------------------------- Cards ------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card-hover:hover { border-color: var(--border-strong); box-shadow: var(--sh-2); transform: translateY(-2px); }
.card-flush { padding: 0; overflow: hidden; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: .9375rem; font-weight: 600; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--bg-subtle); }

.glass {
  background: var(--overlay);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* -------------------------------- Badges ----------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding-inline: 8px; border-radius: var(--r-sm);
  font-size: .75rem; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--border); background: var(--bg-muted); color: var(--fg-2);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok      { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.badge.warn    { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge.bad     { background: var(--bad-soft);  color: var(--bad);  border-color: var(--bad-line); }
.badge.info    { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.badge.accent  { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }

/* status aliases used by RSVP data */
.badge.accepted { background: var(--ok-soft);   color: var(--ok);   border-color: var(--ok-line); }
.badge.declined { background: var(--bad-soft);  color: var(--bad);  border-color: var(--bad-line); }
.badge.pending  { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge.maybe    { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }

.badge-lg { height: 26px; padding-inline: 10px; font-size: .8125rem; }

.tag {
  display: inline-flex; align-items: center; height: 20px; padding-inline: 7px;
  border-radius: var(--r-sm); background: var(--bg-muted); border: 1px solid var(--border);
  font-size: .6875rem; font-weight: 500; color: var(--fg-2);
}

/* -------------------------------- Forms ------------------------------ */
.field { margin-bottom: 16px; }
.field > label, .label {
  display: block; margin-bottom: 6px;
  font-size: .8125rem; font-weight: 500; color: var(--fg);
}
.field .hint { margin-top: 6px; font-size: .75rem; color: var(--fg-3); }
.field .err { margin-top: 6px; font-size: .75rem; color: var(--bad); }

.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--r);
  font-size: .875rem; box-shadow: var(--sh-1);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg-muted); color: var(--fg-3); cursor: not-allowed; }
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397938E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 15px;
}
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Checkbox / radio */
.check {
  display: inline-flex; align-items: flex-start; gap: 9px;
  font-size: .8125rem; color: var(--fg-2); cursor: pointer; line-height: 1.45;
}
.check input[type='checkbox'], .check input[type='radio'] {
  width: 16px; height: 16px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; flex: none;
}

/* Switch */
.switch {
  position: relative; width: 38px; height: 22px; flex: none;
  border-radius: var(--r-full); border: 1px solid var(--border-strong);
  background: var(--bg-muted); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1);
  transition: transform .2s var(--ease);
}
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { transform: translateX(16px); background: #fff; }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row .tr-title { font-size: .875rem; font-weight: 500; }
.toggle-row .tr-sub { font-size: .75rem; color: var(--fg-3); margin-top: 2px; }

/* Password strength */
.pw-meter { height: 3px; border-radius: 2px; background: var(--bg-muted); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 2px; transition: width .3s var(--ease), background .3s var(--ease); }

/* OTP */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.otp {
  width: 46px; height: 54px; text-align: center; font-size: 1.25rem; font-weight: 600;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--fg);
  transition: border-color .16s, box-shadow .16s;
}
.otp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* -------------------------------- Avatar ----------------------------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  font-size: .75rem; font-weight: 600; letter-spacing: .01em;
}
.avatar-sm { width: 28px; height: 28px; font-size: .6875rem; }
.avatar-lg { width: 44px; height: 44px; font-size: .875rem; }

/* -------------------------------- Table ------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 720px; }
table.data th {
  text-align: left; padding: 10px 14px; font-size: .75rem; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; color: var(--fg-3);
  border-bottom: 1px solid var(--border); background: var(--bg-subtle); white-space: nowrap;
}
table.data th:first-child { border-top-left-radius: var(--r); }
table.data th:last-child { border-top-right-radius: var(--r); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr { transition: background .12s var(--ease); }
table.data tbody tr:hover { background: var(--bg-subtle); }
table.data tbody tr:last-child td { border-bottom: none; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .nm { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.cell-user .em { font-size: .75rem; color: var(--fg-3); }

/* -------------------------------- Tabs/Pills ------------------------- */
.pills { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--r-md); }
.pill {
  height: 30px; padding-inline: 12px; border: none; background: transparent;
  border-radius: var(--r-sm); font-size: .8125rem; font-weight: 500; color: var(--fg-2);
  cursor: pointer; transition: background .16s var(--ease), color .16s var(--ease);
}
.pill:hover { color: var(--fg); }
.pill.active { background: var(--surface); color: var(--fg); box-shadow: var(--sh-1); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* ------------------------------- Dropdown ---------------------------- */
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 190px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  animation: pop-in .14s var(--ease-out);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: none; background: transparent; border-radius: var(--r-sm);
  font-size: .8125rem; color: var(--fg); text-align: left; cursor: pointer;
  transition: background .12s var(--ease);
}
.dropdown button:hover { background: var(--bg-muted); }
.dropdown button svg { width: 15px; height: 15px; color: var(--fg-3); flex: none; }
.dropdown button.danger { color: var(--bad); }
.dropdown button.danger svg { color: var(--bad); }
.dropdown .sep { height: 1px; background: var(--border); margin: 4px 0; }

/* -------------------------------- Modal ------------------------------ */
.modal-root { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .5); backdrop-filter: blur(4px); animation: fade-in .2s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--sh-4); padding: 26px;
  animation: modal-in .22s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal h3 { font-size: 1.125rem; }
.modal-wide { max-width: 760px; }

/* -------------------------------- Toast ------------------------------ */
#toast-wrap {
  position: fixed; bottom: 20px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px; max-width: 340px;
  background: var(--fg); color: var(--bg);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  font-size: .8125rem; font-weight: 500;
  animation: toast-in .24s var(--ease-out);
}
.toast .t-ico { flex: none; font-size: .9375rem; line-height: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 520px) { #toast-wrap { left: 16px; right: 16px; bottom: 16px; } .toast { max-width: none; } }

/* ------------------------------- Reveal ------------------------------ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: .07s; }
.reveal[data-delay='2'] { transition-delay: .14s; }
.reveal[data-delay='3'] { transition-delay: .21s; }
.reveal[data-delay='4'] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ------------------------------ Skeleton ----------------------------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-subtle) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------------------------- Demo banner ---------------------------- */
.mode-banner {
  position: relative; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 16px; font-size: .75rem; font-weight: 500;
  background: var(--accent-soft); color: var(--accent);
  border-bottom: 1px solid var(--accent-line); text-align: center;
}
.mode-banner a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.mode-banner .badge { background: var(--accent); color: var(--accent-fg); border-color: transparent; }

/* ------------------------------- Divider ----------------------------- */
.hr { height: 1px; background: var(--border); border: none; margin-block: 24px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--fg-3); font-size: .75rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* --------------------------- Dotted / grid bg ------------------------ */
.bg-grid {
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 78%);
}
