/* ==========================================================================
   دورهم — سیستم طراحی
   ========================================================================== */

/* فونت محلی (اختیاری): فایل را در fonts/Vazirmatn[wght].woff2 بگذارید */
@font-face {
  font-family: "VazirLocal";
  src: local("Vazirmatn"), url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations"), url("../fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  /* رنگ‌ها — روشن */
  --bg: #F5F4F9;
  --surface: #FFFFFF;
  --surface-2: #F0EEF6;
  --surface-3: #E7E4F0;
  --ink: #15131F;
  --ink-2: #474459;
  --muted: #858199;
  --line: rgba(21, 19, 31, .08);
  --brand: #6D4AFF;
  --brand-2: #8B6BFF;
  --brand-ink: #FFFFFF;
  --brand-soft: #EEEAFF;
  --ok: #0C9A5F;   --ok-soft: #E2F6EC;
  --warn: #C77600; --warn-soft: #FFF2DC; --warn-btn: #F59E0B;
  --danger: #DC3B42; --danger-soft: #FDE8E9;

  /* ابعاد */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
  --gutter: 18px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  /* سایه‌ها */
  --sh-1: 0 1px 2px rgba(23, 16, 60, .05), 0 1px 1px rgba(23, 16, 60, .03);
  --sh-2: 0 2px 4px rgba(23, 16, 60, .04), 0 8px 24px rgba(23, 16, 60, .07);
  --sh-3: 0 12px 40px rgba(23, 16, 60, .16), 0 2px 8px rgba(23, 16, 60, .06);
  --ring: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);

  /* حرکت */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --font: "VazirLocal", "Vazirmatn", "Vazir", Tahoma, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D15; --surface: #181622; --surface-2: #211F2E; --surface-3: #2B2839;
    --ink: #F3F1FA; --ink-2: #C4C0D6; --muted: #8C88A3; --line: rgba(255, 255, 255, .07);
    --brand: #8E73FF; --brand-2: #A68FFF; --brand-ink: #0D0A20; --brand-soft: #251F45;
    --ok: #3DD69A; --ok-soft: #12302A; --warn: #F5B14C; --warn-soft: #33270F; --danger: #FF6B72; --danger-soft: #3A1A1E;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --sh-3: 0 16px 48px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0D15; --surface: #181622; --surface-2: #211F2E; --surface-3: #2B2839;
  --ink: #F3F1FA; --ink-2: #C4C0D6; --muted: #8C88A3; --line: rgba(255, 255, 255, .07);
  --brand: #8E73FF; --brand-2: #A68FFF; --brand-ink: #0D0A20; --brand-soft: #251F45;
  --ok: #3DD69A; --ok-soft: #12302A; --warn: #F5B14C; --warn-soft: #33270F; --danger: #FF6B72; --danger-soft: #3A1A1E;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4); --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35); --sh-3: 0 16px 48px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ پایه */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.75; font-weight: 450;
  background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img, svg { display: block; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 999; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

#app { max-width: 560px; margin-inline: auto; min-height: 100dvh; position: relative; }
main { padding: 0 var(--gutter) calc(var(--tabbar-h) + var(--safe-b) + 32px); outline: none; min-height: 100dvh; }
body.bare main { padding-bottom: calc(110px + var(--safe-b)); }
body.bare .tabbar { transform: translate(-50%, 120%); }
main.enter > * { animation: enter .32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ابزارها */
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.gap-6 { gap: 6px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.end { margin-inline-start: auto; }
.pad { padding: 18px 8px; }
.pad-xl { padding: 80px 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.ok-t { color: var(--ok); font-weight: 700; }
.warn-t { color: var(--warn); font-weight: 700; }
.sentinel { height: 1px; }
.scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }

.spinner { width: 20px; height: 20px; border: 2.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
.spinner.lg { width: 30px; height: 30px; color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ تایپوگرافی */
.display { font-size: 26px; line-height: 1.35; font-weight: 850; }
.display.xl { font-size: 34px; line-height: 1.3; font-weight: 900; }
.eyebrow { color: var(--muted); font-size: 14px; font-weight: 600; }
.label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.hint.end { text-align: left; }

/* ------------------------------------------------------------------ دکمه‌ها */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 15px; border: 0;
  font-weight: 750; font-size: 15px; white-space: nowrap;
  background: var(--surface-2); color: var(--ink);
  transition: transform .16s var(--ease), background-color .2s, box-shadow .2s, opacity .2s;
  touch-action: manipulation; user-select: none;
}
.btn .i { width: 20px; height: 20px; stroke-width: 2.2; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn-sm .i { width: 17px; height: 17px; }
.btn-lg { min-height: 56px; font-size: 16px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 18px color-mix(in srgb, var(--brand) 38%, transparent);
}
.btn-warn { background: var(--warn-btn); color: #2A1800; box-shadow: 0 6px 18px rgba(245, 158, 11, .32); }
.btn-soft { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.btn-ghost-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.btn-ghost-danger { background: transparent; color: var(--danger); }
@media (hover: hover) { .btn:hover:not(:disabled) { filter: brightness(1.04); } }

.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 0; flex: none;
  display: inline-grid; place-items: center; background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-1); transition: transform .16s var(--ease), background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.soft { background: var(--surface-2); box-shadow: none; }
.icon-btn.brand { background: var(--brand); color: var(--brand-ink); box-shadow: none; }
.icon-btn.glass {
  background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none;
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .22);
}
.icon-btn-space { width: 42px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 700; }

/* ------------------------------------------------------------------ نوار ناوبری */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 40;
  width: 100%; max-width: 560px;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--line);
  transition: transform .3s var(--ease);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--muted); padding: 8px 0; position: relative;
}
.tabbar a .i { width: 24px; height: 24px; transition: transform .2s var(--spring); }
.tabbar a.active { color: var(--ink); font-weight: 800; }
.tabbar a.active .i { stroke-width: 2.3; transform: translateY(-1px); }
.tabbar a.active::after { content: ""; position: absolute; top: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.tab-fab span {
  width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 45%, transparent), 0 1px 0 rgba(255,255,255,.3) inset;
  transition: transform .2s var(--spring);
}
.tab-fab:active span { transform: scale(.9) rotate(90deg); }
.tab-fab .i { width: 26px; height: 26px; stroke-width: 2.6; }
.tabbar a.tab-fab::after { display: none; }

/* نوار نصب (فقط در مرورگر) */
.install-bar {
  display: flex; align-items: center; gap: 10px; margin: calc(8px + var(--safe-t)) var(--gutter) 0; padding: 8px 8px 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-2); position: relative; z-index: 50;
}
.install-bar img { border-radius: 10px; }
.install-bar > div { flex: 1; min-width: 0; line-height: 1.5; }
.install-bar b { display: block; font-size: 13.5px; font-weight: 850; }
.install-bar span { font-size: 11.5px; color: var(--muted); }
.install-x { border: 0; background: transparent; color: var(--muted); font-size: 22px; width: 32px; height: 32px; line-height: 1; }
body.bare .install-bar + main .inv { margin-top: 8px; }

/* ------------------------------------------------------------------ سربرگ‌ها */
.appbar { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 0 10px; }
.appbar.sticky {
  position: sticky; top: 0; z-index: 20; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.appbar.overlay { position: absolute; inset: 0 0 auto; padding-inline: var(--gutter); z-index: 3; }
.appbar-title { flex: 1; text-align: center; font-size: 17px; font-weight: 800; }

.hero-head { padding: calc(18px + var(--safe-t)) 0 6px; }
.hero-head .display { margin-top: 2px; }
.av-link { border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand-soft); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(22px + var(--safe-t)) 0 16px; }

.search {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  background: var(--surface); border-radius: 16px; padding: 0 16px; min-height: 52px;
  box-shadow: var(--sh-1); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s;
}
.search:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.search .i { color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 50px; min-width: 0; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sec-head.tight { margin: 0 0 10px; }
.sec-head h2 { font-size: 18px; font-weight: 850; white-space: nowrap; }
.day-label { font-size: 13px; font-weight: 800; color: var(--muted); margin: 18px 4px 8px; }
.day-label:first-child { margin-top: 4px; }

/* ------------------------------------------------------------------ دسته‌ها */
.cats { margin-top: 16px; padding-bottom: 4px; }
.cat {
  display: inline-flex; align-items: center; gap: 7px; flex: none; scroll-snap-align: start;
  min-height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: 13.5px;
  transition: background .2s, color .2s, transform .15s var(--ease);
}
.cat .i { width: 19px; height: 19px; }
.cat:active { transform: scale(.95); }
.cat.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ------------------------------------------------------------------ کنترل بخش‌بندی */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface-2); padding: 4px; border-radius: 14px; gap: 2px; }
.seg button {
  border: 0; background: transparent; min-height: 40px; border-radius: 11px; font-weight: 700; color: var(--muted); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s, box-shadow .2s;
}
.seg button .i { width: 17px; height: 17px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.seg-sm { padding: 3px; border-radius: 12px; }
.seg-sm button { min-height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; white-space: nowrap; }
#when.seg:not(.seg-sm) { margin-bottom: 8px; }

/* ------------------------------------------------------------------ کاورهای تم‌دار */
.th-violet { --c1: #5B3DF5; --c2: #A855F7; --c3: #F0ABFC; }
.th-sunset { --c1: #FF5E62; --c2: #FF9966; --c3: #FFD86F; }
.th-ocean  { --c1: #1D4ED8; --c2: #0EA5E9; --c3: #67E8F9; }
.th-forest { --c1: #047857; --c2: #10B981; --c3: #BEF264; }
.th-rose   { --c1: #DB2777; --c2: #F472B6; --c3: #FBCFE8; }
.th-night  { --c1: #0F0C29; --c2: #302B63; --c3: #7C3AED; }
.th-gold   { --c1: #D97706; --c2: #F59E0B; --c3: #FDE68A; }
.th-mint   { --c1: #0D9488; --c2: #2DD4BF; --c3: #A7F3D0; }
.cover {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(110% 80% at 85% 10%, var(--c3) 0%, transparent 55%),
    radial-gradient(90% 90% at 0% 100%, var(--c2) 0%, transparent 65%),
    linear-gradient(140deg, var(--c1), var(--c2));
}
.cover::after { /* بافت دانه‌ای */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cover-glyph {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.cover-glyph .i { width: 44%; height: 44%; max-width: 120px; max-height: 120px; stroke-width: 1.5; filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); }
.cover-pattern { position: absolute; inset: 0; opacity: .12; pointer-events: none; }
.cover-pattern .i { position: absolute; width: 90px; height: 90px; stroke-width: 1.2; }
.cover-pattern .i:nth-child(1) { top: -18px; left: -14px; transform: rotate(-18deg); }
.cover-pattern .i:nth-child(2) { bottom: -24px; right: 18%; transform: rotate(14deg); width: 120px; height: 120px; }
.cover-pattern .i:nth-child(3) { top: 22%; right: -26px; transform: rotate(-8deg); width: 70px; height: 70px; }

/* ------------------------------------------------------------------ کارت ویژه */
.feats { padding-bottom: 6px; }
.feat {
  position: relative; flex: none; width: 78%; max-width: 340px; aspect-ratio: 1.12; scroll-snap-align: start;
  border-radius: var(--r-xl); overflow: hidden; color: #fff; box-shadow: var(--sh-2);
  transition: transform .2s var(--ease);
}
.feat:active { transform: scale(.98); }
.feat-cover { position: absolute; inset: 0; }
.feat-cover .cover-glyph { place-items: start end; padding: 22px; }
.feat-cover .cover-glyph .i { width: 50px; height: 50px; opacity: .9; }
.feat-over {
  position: absolute; inset: 0; padding: 16px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.45));
}
.feat-over > div:nth-child(2) { margin-top: auto; }
.feat h3 { font-size: 20px; font-weight: 850; line-height: 1.4; text-shadow: 0 1px 12px rgba(0,0,0,.2); }
.feat-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; margin-top: 2px; min-width: 0; }
.feat-meta .i { width: 15px; height: 15px; }
.feat .row.between { margin-top: 12px; }
.chip-glass {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; color: #fff;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip-glass .i { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ ردیف دعوت */
.ev {
  display: flex; gap: 14px; padding: 12px; margin-bottom: 10px; color: inherit; min-width: 0; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line);
  transition: transform .18s var(--ease), box-shadow .2s;
}
.ev:active { transform: scale(.985); }
@media (hover: hover) { .ev:hover { box-shadow: var(--sh-2); } }
.ev[data-state="past"], .ev[data-state="cancelled"] { opacity: .66; }
.ev-thumb { width: 84px; height: 84px; border-radius: 18px; flex: none; }
.ev-thumb .cover-glyph .i { width: 40px; height: 40px; }
.ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-time { font-size: 12.5px; font-weight: 800; color: var(--brand); }
.ev-title { font-size: 16px; font-weight: 800; line-height: 1.5; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-loc { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; min-width: 0; margin-top: 1px; }
.ev-loc .i { width: 14px; height: 14px; }
.ev-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; margin-top: auto; padding-top: 8px; min-width: 0; }
.ev-foot > span { min-width: 0; }
.ev-foot .tiny { white-space: nowrap; }
.ev-foot .tiny { display: inline-flex; align-items: center; gap: 4px; }
.ev-foot .tiny .i { width: 14px; height: 14px; color: var(--brand); }
.seats { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); white-space: nowrap; }
.seats.low { background: var(--warn-soft); color: var(--warn); }
.seats.full { background: var(--surface-2); color: var(--muted); }
.price-tag { font-size: 11.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill .i { width: 13px; height: 13px; stroke-width: 2.6; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.sm { padding: 1px 7px; font-size: 11px; }

/* آواتار */
.av {
  --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .42); line-height: 1;
  color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--av) 75%, #fff), var(--av));
}
.av.more { background: var(--surface-3); color: var(--ink-2); font-size: calc(var(--s) * .34); }
.faces { display: inline-flex; flex-direction: row; }
.faces .av { box-shadow: 0 0 0 2px var(--surface); }
.faces .av + .av { margin-inline-start: calc(var(--s) * -.32); }

/* ------------------------------------------------------------------ اسکلت بارگذاری */
.sk-b, .sk-cover { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 8px; }
.ev.sk .ev-thumb { border-radius: 18px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ حالت خالی */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.empty-art {
  width: 92px; height: 92px; margin: 0 auto 16px; border-radius: 30px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 40%, var(--surface)));
  color: var(--brand); transform: rotate(-6deg);
}
.empty-art .i { width: 42px; height: 42px; stroke-width: 1.6; }
.empty h3 { color: var(--ink); font-size: 18px; font-weight: 850; margin-bottom: 4px; }
.empty p { margin-bottom: 18px; font-size: 14px; }

/* ------------------------------------------------------------------ صفحه دعوت */
.inv { margin-inline: calc(var(--gutter) * -1); }
.inv-hero { position: relative; }
.inv-cover, .sk-cover { height: calc(300px + var(--safe-t)); border-radius: 0 0 0 0; }
.inv-cover .cover-glyph { padding-bottom: 30px; }
.inv-cover .cover-glyph .i { width: 110px; height: 110px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-3deg); } }
.inv-sheet {
  position: relative; z-index: 2; margin-top: -34px; padding: 22px var(--gutter) 0;
  background: var(--bg); border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.inv-title { font-size: 27px; font-weight: 900; line-height: 1.4; margin-top: 12px; text-wrap: balance; }
.host-row { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.chip .i { width: 15px; height: 15px; }

.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.countdown > div { background: var(--surface); border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.countdown b { display: block; font-size: 24px; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--muted); font-weight: 600; }

.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; margin-top: 16px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.7; }
.banner .i { width: 20px; height: 20px; margin-top: 2px; }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.brand { background: var(--brand-soft); color: var(--brand); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700;
  box-shadow: var(--sh-1); transition: transform .15s var(--ease);
}
.quick-btn:active { transform: scale(.95); }
.quick-btn .i { color: var(--brand); }

.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.info { margin-top: 12px; padding: 4px 16px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.info-item + .info-item { border-top: 1px solid var(--line); }
.info-item b { display: block; font-size: 15px; font-weight: 750; line-height: 1.6; }
.info-item .muted.small { display: block; }
.info-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-ic .i { width: 20px; height: 20px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 8px 0 4px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s var(--ease); }
.meter.full i { background: linear-gradient(90deg, var(--warn-btn), #FBBF24); }

.my-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-lg); margin-top: 12px; }
.my-card b { display: block; font-size: 16px; font-weight: 850; }
.my-card .small { display: block; opacity: .85; }
.my-card.ok { background: var(--ok-soft); color: var(--ok); }
.my-card.warn { background: var(--warn-soft); color: var(--warn); }
.my-ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 14%, transparent); flex: none; }
.my-ic .i { width: 26px; height: 26px; }

.block { margin-top: 26px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 12px 6px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); position: relative; min-width: 0; }
.person .ellipsis { max-width: 100%; text-align: center; }
.person .plus { position: absolute; top: 30px; inset-inline-end: 4px; background: var(--ok); color: #fff; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 99px; box-shadow: 0 0 0 2px var(--bg); }
.prose { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.95; }

.anns { display: flex; flex-direction: column; gap: 10px; }
.ann { display: flex; gap: 10px; align-items: flex-end; }
.ann-bubble { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); border-radius: 18px 18px 18px 6px; padding: 10px 14px; max-width: 85%; }
.ann-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }

.host { padding-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats.three { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); border-radius: 16px; padding: 12px 6px; text-align: center; color: inherit; }
.stat b { display: block; font-size: 22px; font-weight: 900; line-height: 1.25; }
.stat span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 6px; box-shadow: var(--sh-1); }
.composer:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; padding: 9px 10px; line-height: 1.7; min-height: 42px; }
.list-card { margin-top: 12px; padding: 12px; }
.list-card .seg { margin-bottom: 4px; }
.list-card > .btn { margin-top: 8px; }
.guest { display: flex; align-items: center; gap: 10px; padding: 10px 2px; }
.guest + .guest { border-top: 1px solid var(--line); }
.guest b { display: block; font-size: 14.5px; font-weight: 750; }
.guest .icon-btn { width: 38px; height: 38px; border-radius: 12px; }
.guest .icon-btn .i { width: 18px; height: 18px; }

/* نوار اقدام پایین */
.cta-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30;
  width: 100%; max-width: 560px; display: flex; align-items: center; gap: 10px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid var(--line);
  animation: rise .4s var(--ease) both .1s;
}
@keyframes rise { from { transform: translate(-50%, 100%); } }
.cta-info { display: flex; flex-direction: column; line-height: 1.4; padding-inline-end: 4px; }
.cta-info b { font-size: 15px; font-weight: 850; }

/* منو */
.menu { display: flex; flex-direction: column; }
.menu.card { padding: 4px 6px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 10px; border: 0; background: transparent;
  color: var(--ink); font-weight: 650; text-align: start; border-radius: 14px; width: 100%;
}
.menu-item + .menu-item { border-top: 1px solid var(--line); }
.menu-item:active { background: var(--surface-2); }
.menu-item > .i:first-child { color: var(--ink-2); }
.menu-item .end { color: var(--muted); width: 18px; height: 18px; }
.menu-item.danger, .menu-item.danger .i { color: var(--danger); }

/* ------------------------------------------------------------------ شیت پایین */
dialog.sheet {
  border: 0; padding: 10px 20px calc(22px + var(--safe-b)); margin: auto auto 0;
  width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 28px 28px 0 0; background: var(--surface); color: var(--ink);
  box-shadow: var(--sh-3);
  transition: transform .2s var(--ease);
}
dialog.sheet::backdrop { background: rgba(8, 5, 25, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: sheet-in .34s var(--ease); }
dialog.sheet[open]::backdrop { animation: fade .3s ease; }
dialog.sheet.closing { animation: sheet-out .18s ease-in forwards; }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--surface-3); margin: 0 auto 14px; }
.sheet-title { font-size: 19px; font-weight: 850; margin-bottom: 6px; }
.sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sheet-head .sheet-title { margin: 0; }
.mini-cover { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.mini-cover .cover-glyph .i { width: 28px; height: 28px; }
.mini-cover .cover-pattern { display: none; }
.sheet-icon { width: 60px; height: 60px; border-radius: 20px; margin: 4px auto 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.sheet-icon.danger { background: var(--danger-soft); color: var(--danger); }
.sheet-icon .i { width: 28px; height: 28px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet-actions .btn { flex: 1; }
.sheet-actions.col { flex-direction: column; gap: 6px; }
.sheet .field + .field { margin-top: 16px; }
.sheet .banner { margin: 0 0 16px; }
.steps { padding-inline-start: 22px; line-height: 2.2; color: var(--ink-2); }
.steps .i { display: inline; width: 18px; height: 18px; vertical-align: -4px; }

/* ------------------------------------------------------------------ فرم‌ها */
.field { display: block; }
.input {
  width: 100%; min-height: 52px; padding: 12px 15px; border-radius: 15px;
  border: 1.5px solid var(--line); background: var(--surface-2); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus { border-color: var(--brand); box-shadow: var(--ring); background: var(--surface); }
textarea.input { resize: vertical; line-height: 1.8; min-height: 110px; }
.input-lg { font-size: 17px; font-weight: 700; min-height: 56px; }
.ltr-input { direction: ltr; text-align: left; }
.ltr-input::placeholder { text-align: right; direction: rtl; }
.input-ic { position: relative; }
.input-ic > .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.input-ic .input { padding-inline-start: 44px; }
.input-ic.suffix .input { padding-inline-end: 62px; font-weight: 700; }
.suffix-t { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 600; }
.picker { display: flex; align-items: center; gap: 10px; text-align: start; font-weight: 700; }
.picker > .i:first-child { color: var(--brand); }
.picker .end { color: var(--muted); width: 18px; }
.pw { position: relative; }
.pw .input { padding-inline-end: 70px; }
.pw .link-btn { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
.form-card { padding: 18px 16px; margin-top: 12px; }
.form-card .field + .field { margin-top: 20px; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper output, .stepper .num { flex: 1; text-align: center; font-weight: 850; font-size: 18px; }
.stepper output { display: block; padding: 12px; border-radius: 15px; background: var(--surface-2); }
.stepper .num { min-height: 52px; }
.step {
  width: 52px; height: 52px; border-radius: 15px; border: 0; background: var(--surface-2); font-size: 24px; font-weight: 500;
  display: grid; place-items: center; transition: transform .12s var(--ease), background .2s; line-height: 1;
}
.step:active:not(:disabled) { transform: scale(.9); background: var(--brand-soft); }
.step:disabled { opacity: .35; }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.qchip { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 5px 12px; font-size: 13px; font-weight: 650; color: var(--ink-2); transition: all .15s; }
.qchip.on { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }

.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 18px; text-align: start;
  border: 1.5px solid var(--line); background: var(--surface-2); transition: border-color .15s, background .15s;
}
.opt .i { color: var(--muted); margin-bottom: 4px; }
.opt b { font-size: 14.5px; font-weight: 800; }
.opt span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt.on .i { color: var(--brand); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; cursor: pointer; }
.switch-row b { display: block; font-size: 14.5px; }
.switch { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--spring); }
.switch:checked { background: var(--brand); }
.switch:checked::after { transform: translateX(-20px); }

/* ویرایشگر */
.editor .appbar.sticky { margin-bottom: 6px; }
.preview { position: relative; height: 210px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2); }
.pv-cover { position: absolute; inset: 0; }
.pv-cover .cover-glyph { place-items: start end; padding: 22px; }
.pv-cover .cover-glyph .i { width: 70px; height: 70px; }
.pv-over { position: absolute; inset: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.4)); }
.pv-over .chip-glass { margin-bottom: auto; }
.pv-over h2 { font-size: 22px; font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.pv-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: .92; }
.pv-meta .i { width: 16px; height: 16px; }
.ed-sec { margin-top: 18px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: linear-gradient(140deg, var(--c1), var(--c2) 60%, var(--c3));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px transparent; transition: box-shadow .2s, transform .2s var(--spring);
}
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5.5px var(--ink); transform: scale(1.06); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.4; text-align: center;
  transition: all .15s var(--ease);
}
.cat-opt .i { width: 24px; height: 24px; }
.cat-opt.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

/* تقویم */
.cal { background: var(--surface-2); border-radius: 20px; padding: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 8px; }
.cal-head b { font-size: 16px; font-weight: 850; }
.cal-head .icon-btn { width: 38px; height: 38px; background: var(--surface); }
.cal-head .icon-btn:disabled { opacity: .3; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-week span { font-size: 12px; color: var(--muted); font-weight: 700; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font-weight: 700; font-size: 15px; transition: background .15s, transform .1s; }
.cal-day:active:not(:disabled) { transform: scale(.9); }
.cal-day:disabled { color: var(--muted); opacity: .4; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.cal-day.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 40%, transparent); }
.time-row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.time-row .label { margin: 0; }
.time-pick { display: flex; align-items: center; gap: 6px; }
.time-pick select { width: 76px; text-align: center; font-weight: 800; font-size: 17px; appearance: none; -webkit-appearance: none; padding: 10px; }

/* ------------------------------------------------------------------ اشتراک */
.share-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; background: var(--surface-2); margin: 10px 0 12px; }
.share-cover { width: 64px; height: 64px; border-radius: 16px; flex: none; }
.share-cover .cover-glyph .i { width: 30px; height: 30px; }
.share-cover .cover-pattern { display: none; }
.share-body { display: flex; flex-direction: column; min-width: 0; }
.link-box {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 15px;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); color: var(--brand); text-align: start;
}
.link-box span { flex: 1; font-size: 13.5px; font-weight: 600; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: 14px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 12.5px; font-weight: 700; transition: transform .15s var(--ease); }
.share-btn:active { transform: scale(.94); }
.share-btn .i { width: 46px; height: 46px; padding: 11px; border-radius: 15px; background: var(--c); color: #fff; stroke-width: 2; }

/* صفحه موفقیت */
.created { padding-bottom: 24px; }
.created > * + * { margin-top: 14px; }
.done-mark { width: 84px; height: 84px; border-radius: 50%; margin: 10px auto 6px !important; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--ok) 40%, transparent); animation: pop .5s var(--spring) both; }
.done-mark .i { width: 42px; height: 42px; stroke-width: 2.6; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .25s ease-out forwards; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.created-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 20px; background: var(--surface); box-shadow: var(--sh-2); color: inherit; margin-top: 22px !important; }
.cc-cover { width: 70px; height: 70px; border-radius: 16px; flex: none; }
.cc-cover .cover-glyph .i { width: 32px; height: 32px; }
.cc-cover .cover-pattern { display: none; }
.cc-body { display: flex; flex-direction: column; min-width: 0; }
.cc-body b { font-size: 16px; font-weight: 850; }

/* ------------------------------------------------------------------ پروفایل */
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--sh-1); border: 1px solid var(--line); }
.profile-card h2 { font-size: 20px; font-weight: 900; }
.profile-card .grow > * { display: block; }

/* ------------------------------------------------------------------ ورود و خوش‌آمد */
.auth { max-width: 420px; margin-inline: auto; }
.auth-head { text-align: center; padding: 12px 0 22px; }
.logo { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; background: linear-gradient(145deg, #8B6BFF, #5B3DF5 55%, #C046D8); box-shadow: 0 10px 30px rgba(109, 74, 255, .35); }
.logo .i { width: 34px; height: 34px; }
.auth .seg { margin-bottom: 18px; }

.welcome { display: flex; flex-direction: column; min-height: 100dvh; padding: calc(16px + var(--safe-t)) 0 calc(20px + var(--safe-b)); }
.wl-stage { position: relative; height: 290px; margin: 0 calc(var(--gutter) * -1); }
.wl-card {
  position: absolute; width: 170px; height: 196px; border-radius: 26px; padding: 14px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--sh-3);
  animation: wl-in .8s var(--spring) both;
}
.wl-card .cover-glyph { place-items: start end; padding: 16px; }
.wl-card .cover-glyph .i { width: 46px; height: 46px; }
.wl-card b { font-size: 16px; font-weight: 850; position: relative; }
.wl-card span { font-size: 12.5px; opacity: .9; position: relative; }
.wl-card.c1 { top: 18px; right: 50%; transform: translateX(96%) rotate(10deg); animation-delay: .05s; }
.wl-card.c2 { top: 50px; right: 50%; transform: translateX(50%) rotate(-2deg); z-index: 2; animation-delay: .15s; }
.wl-card.c3 { top: 30px; right: 50%; transform: translateX(4%) rotate(-11deg); animation-delay: .25s; }
@keyframes wl-in { from { opacity: 0; translate: 0 40px; } }
.wl-faces { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; background: var(--surface); padding: 6px 6px 6px 14px; border-radius: 999px; box-shadow: var(--sh-2); animation: wl-in .8s .4s var(--spring) both; }
.wl-faces .av { box-shadow: 0 0 0 2px var(--surface); }
.wl-faces .av + .av { margin-inline-start: -10px; }
.wl-badge { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 10px; font-weight: 800; font-size: 13px; color: var(--ok); }
.wl-badge .i { width: 16px; height: 16px; stroke-width: 2.8; }
.wl-copy { margin-top: 26px; }
.brand-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: var(--brand); background: var(--brand-soft); padding: 4px 12px 4px 14px; border-radius: 99px; font-size: 14px; margin-bottom: 12px; }
.brand-mark .i { width: 16px; height: 16px; }
.wl-copy p { margin-top: 10px; font-size: 15px; line-height: 1.9; }
.wl-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.wl-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.wl-points .i { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.wl-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }

/* ------------------------------------------------------------------ توست */
.toast {
  position: fixed; left: 50%; top: calc(14px + var(--safe-t)); z-index: 200;
  transform: translate(-50%, -140%); max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 16px;
  font-size: 14px; font-weight: 650; box-shadow: var(--sh-3);
  transition: transform .4s var(--spring), opacity .3s; opacity: 0; pointer-events: none;
}
.toast .i { width: 20px; height: 20px; stroke-width: 2.4; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok .i { color: var(--ok); }
.toast.error { background: var(--danger); color: #fff; }

/* کانفتی */
.confetti { position: fixed; left: 50%; bottom: 30%; z-index: 150; pointer-events: none; }
.confetti i { position: absolute; display: block; animation: conf2 var(--d) cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes conf2 {
  0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1; }
  45% { transform: translate(calc(var(--x) * .8), var(--y)) rotate(calc(var(--r) * .5)) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) * .2 + 40vh)) rotate(var(--r)); opacity: 0; }
}

/* ------------------------------------------------------------------ دسترس‌پذیری حرکت */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* صفحه‌های بزرگ‌تر */
@media (min-width: 600px) {
  #app { box-shadow: 0 0 0 1px var(--line); }
  .wl-stage { height: 320px; }
}
