@font-face { font-family: Pelak; src: url(../fonts/Pelak-light.ttf) format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Pelak; src: url(../fonts/Pelak-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Pelak; src: url(../fonts/Pelak-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Pelak; src: url(../fonts/Pelak-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --night: #07040a;
  --text: #fff8ee;
  --muted: #d9cde6;
  --muted-2: #a99bbd;
  --line: rgba(255, 255, 255, .13);
  --glass: rgba(255, 255, 255, .06);
  --glass-hover: rgba(255, 255, 255, .11);
  --amber: #fbbf24;
  --orange: #fb7a2e;
  --rose: #f43f5e;
  --crimson: #e11d48;
  --emerald: #10b981;
  --violet: #8b5cf6;
  --sun: linear-gradient(120deg, #fcd34d 0%, #fb923c 42%, #f43f5e 100%);
  --sun-soft: linear-gradient(120deg, rgba(252, 211, 77, .22), rgba(244, 63, 94, .22));
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--night); color: var(--text);
  font-family: Pelak, Vazirmatn, Tahoma, sans-serif; font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: rgba(251, 191, 36, .35); }

.veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(6, 4, 20, .35) 0%, rgba(6, 4, 20, 0) 40%); }
.page-form .veil, .page-message .veil {
  background: radial-gradient(ellipse at 50% 42%, rgba(10, 6, 28, .28), rgba(8, 5, 22, .5) 80%), linear-gradient(180deg, rgba(6, 4, 20, .38), rgba(6, 4, 20, 0) 60%);
}

/* ================================================================ عناصر مشترک */
.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(38, 24, 72, .72), rgba(22, 12, 42, .66));
  border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.emblem {
  position: relative; width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #fb7185, #e11d48 45%, #7f1d3a 100%);
  box-shadow: 0 0 0 6px rgba(251, 191, 36, .12), 0 0 70px 12px rgba(244, 63, 94, .45);
  animation: float 5s ease-in-out infinite;
}
.emblem::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from var(--angle), transparent 0 55%, #fcd34d 75%, #fb7185 90%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: turn 4s linear infinite;
}
.emblem::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(251, 191, 36, .5);
  animation: ping 2.6s var(--ease) infinite;
}
.emblem .ico { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.emblem.small { width: 64px; height: 64px; }
.emblem.small .ico { width: 32px; height: 32px; }

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none; padding: 13px 26px; border-radius: 16px; font-weight: 700; font-size: 1rem;
  transition: transform .2s var(--spring), box-shadow .25s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .7; cursor: default; }
.btn-primary { background: var(--sun); color: #fff; box-shadow: 0 14px 34px -12px rgba(244, 63, 94, .75), inset 0 1px 0 rgba(255, 255, 255, .35); text-shadow: 0 1px 2px rgba(120, 20, 40, .35); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(244, 63, 94, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover::after { animation: shine .9s var(--ease); }
.btn-primary .ico { transition: transform .25s var(--ease); }
.btn-primary:hover .ico { transform: translateX(-4px); }
.btn-lg { padding: 16px 38px; font-size: 1.1rem; border-radius: 18px; }
.btn-ghost { background: transparent; color: var(--muted); padding: 12px 16px; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }

.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); color: rgba(255, 244, 230, .7); font-size: .82rem; font-weight: 300;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.site-footer .ico { color: #fb7185; width: 16px; height: 16px; animation: beat 2.4s ease-in-out infinite; }

/* ================================================================ صفحه‌ی اصلی */
.home { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: clamp(36px, 9vh, 100px) 20px 40px; }
.hero { text-align: center; margin-bottom: clamp(30px, 6vh, 56px); }
.hero > * { animation: rise .9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .18s; }
.hero > :nth-child(4) { animation-delay: .26s; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 16px; border-radius: 999px;
  color: #fde68a; font-weight: 500; font-size: .9rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(253, 230, 138, .25);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 10px #fbbf24; animation: beat 1.8s ease-in-out infinite; }
.hero-title {
  margin: 10px 0 8px; font-weight: 700; line-height: 1.25; font-size: clamp(2.8rem, 8.5vw, 5rem);
  background: linear-gradient(90deg, #fff7e6 0%, #fde68a 25%, #fb7185 50%, #fde68a 75%, #fff7e6 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(244, 63, 94, .35));
  animation: rise .9s var(--ease) both, sheen 7s linear infinite;
}
.hero-text { margin: 0 auto; max-width: 580px; color: #f3e8ff; font-weight: 300; font-size: 1.08rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }

.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.forms-single { max-width: 600px; margin: 0 auto; grid-template-columns: 1fr; }
.form-card {
  --i: 0; --c1: #fb7185; --c2: #e11d48;
  position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 22px 22px 18px;
  text-decoration: none; border-radius: var(--radius);
  animation: rise .8s var(--ease) both; animation-delay: calc(.35s + var(--i) * .1s);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.form-card:nth-child(4n+2) { --c1: #fcd34d; --c2: #f97316; }
.form-card:nth-child(4n+3) { --c1: #34d399; --c2: #059669; }
.form-card:nth-child(4n+4) { --c1: #a78bfa; --c2: #7c3aed; }
.form-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--angle), var(--c1), transparent 30%, transparent 60%, var(--c2), var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: turn 3.5s linear infinite;
}
.form-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .09), transparent 40%);
}
.form-card:hover, .form-card:focus-visible { transform: translateY(-6px); outline: none; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 50px -20px var(--c2); }
.form-card:hover::before, .form-card:focus-visible::before, .form-card:hover::after { opacity: 1; }
.form-card-icon {
  position: relative; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; color: #fff;
  background: linear-gradient(145deg, var(--c1), var(--c2)); box-shadow: 0 12px 26px -10px var(--c2), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .45s var(--spring);
}
.form-card:hover .form-card-icon { transform: rotate(-8deg) scale(1.08); }
.form-card-icon .ico { width: 32px; height: 32px; }
.form-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.form-card-title { font-weight: 700; font-size: 1.15rem; color: #fff; line-height: 1.6; }
.form-card-desc { color: var(--muted); font-size: .9rem; font-weight: 300; line-height: 1.75; margin-top: 2px; }
.form-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: .78rem; color: #eadcf7; }
.form-card-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.form-card-meta .ico { width: 14px; height: 14px; color: var(--c1); }
.form-card-go {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background .3s, transform .35s var(--spring), border-color .3s;
}
.form-card:hover .form-card-go { background: linear-gradient(145deg, var(--c1), var(--c2)); border-color: transparent; transform: translateX(-6px); }
.empty-note { text-align: center; padding: 40px; border-radius: var(--radius); color: var(--muted); }
.empty-note .ico { width: 46px; height: 46px; color: var(--amber); }

/* ================================================================ صفحه‌ی نظرسنجی */
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 12px;
}
.topbar-home {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #f3e8ff; font-size: .92rem;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s;
}
.topbar-home:hover { background: rgba(255, 255, 255, .14); }
.topbar-progress {
  font-size: .85rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; color: #1c0d05;
  background: var(--sun); box-shadow: 0 6px 18px -6px rgba(244, 63, 94, .7); animation: pop .4s var(--spring);
}
.progress { position: fixed; top: 0; right: 0; left: 0; height: 4px; z-index: 6; background: rgba(255, 255, 255, .08); }
.progress-bar {
  position: relative; height: 100%; width: 0; margin-left: auto; border-radius: 0 0 0 4px;
  background: linear-gradient(90deg, #a78bfa, #f43f5e 40%, #fb923c 70%, #fcd34d); background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(251, 146, 60, .8); transition: width .7s var(--ease); animation: sheen 3s linear infinite;
}
.progress-bar::after { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: #fff; box-shadow: 0 0 14px 4px #fcd34d; }

.survey { flex: 1; width: 100%; max-width: 700px; margin: 0 auto; padding: clamp(8px, 4vh, 44px) 16px 24px; display: flex; flex-direction: column; justify-content: center; perspective: 1400px; }
.survey-card { border-radius: 32px; padding: clamp(24px, 5vw, 46px); overflow: hidden; }
.survey-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #fcd34d, #f43f5e, #a78bfa, transparent); background-size: 200% 100%; animation: sheen 5s linear infinite;
}
.survey-card::after {
  content: ""; position: absolute; width: 340px; height: 340px; top: -170px; left: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(244, 63, 94, .22), transparent 70%);
}

.step { position: relative; z-index: 1; animation: stepIn .6s var(--ease) both; }
.step.back { animation-name: stepInBack; }
.step.leaving { animation: stepOut .24s ease both; }

.intro { text-align: center; }
.intro h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4.6vw, 2.2rem); line-height: 1.5; background: linear-gradient(90deg, #fff, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p { margin: 0 auto 20px; max-width: 470px; color: var(--muted); }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 15px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: #fef3c7; font-size: .85rem; font-weight: 500; }
.chip .ico { width: 16px; height: 16px; color: var(--amber); }
.intro > * { animation: rise .7s var(--ease) both; }
.intro > :nth-child(2) { animation-delay: .08s; }
.intro > :nth-child(3) { animation-delay: .16s; }
.intro > :nth-child(4) { animation-delay: .24s; }
.intro > :nth-child(5) { animation-delay: .32s; }

.question > .q-num, .question > .q-title, .question > .q-help { animation: rise .6s var(--ease) both; }
.question > .q-title { animation-delay: .06s; }
.question > .q-help { animation-delay: .12s; }
.q-num { display: inline-flex; align-items: center; gap: 8px; color: #fde68a; font-size: .85rem; font-weight: 500; margin-bottom: 8px; padding: 2px 12px 2px 4px; border-radius: 999px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .2); }
.q-num b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: #fff; font-size: .8rem; }
.q-title { margin: 0; font-size: clamp(1.25rem, 3.8vw, 1.6rem); font-weight: 700; line-height: 1.7; color: #fff; }
.q-title .req { color: #fb7185; margin-right: 4px; }
.q-help { margin: 6px 0 0; color: var(--muted-2); font-size: .92rem; }
.q-body { margin-top: 24px; }

/* گزینه‌ها */
.choices { display: grid; gap: 10px; }
.choices.cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.choice {
  --d: 0; position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: right; cursor: pointer;
  padding: 13px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); line-height: 1.6; color: #fff;
  animation: optIn .55s var(--ease) both; animation-delay: calc(var(--d) * 55ms + 180ms);
  transition: transform .3s var(--spring), border-color .25s, background .25s, box-shadow .3s;
}
.choice::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s var(--ease);
  background: var(--sun);
}
.choice:hover { transform: translateX(-5px); border-color: rgba(252, 211, 77, .5); background: var(--glass-hover); box-shadow: 0 10px 30px -18px rgba(251, 191, 36, .8); }
.choice:active { transform: scale(.97); }
.choice:focus-visible { outline: 2px solid #fcd34d; outline-offset: 3px; }
.choice-key {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); color: #fde68a; font-size: .88rem; font-weight: 700; background: rgba(255, 255, 255, .06);
  transition: all .3s var(--spring);
}
.choice.multi .choice-key { border-radius: 9px; }
.choice-label { flex: 1; font-weight: 500; }
.choice-check { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #e11d48; transform: scale(0); transition: transform .35s var(--spring); }
.choice-check svg { width: 16px; height: 16px; }
.choice-check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s .1s var(--ease); }
.choice.selected { border-color: transparent; box-shadow: 0 16px 36px -14px rgba(244, 63, 94, .85); transform: translateX(-3px); }
.choice.selected::before { opacity: 1; }
.choice.selected .choice-key { background: rgba(255, 255, 255, .25); border-color: rgba(255, 255, 255, .55); color: #fff; transform: rotate(-10deg) scale(1.08); }
.choice.selected .choice-label { text-shadow: 0 1px 2px rgba(120, 20, 40, .4); }
.choice.selected .choice-check { transform: scale(1); }
.choice.selected .choice-check path { stroke-dashoffset: 0; }
.choice.pulse { animation: choicePulse .5s var(--spring); }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .65s ease-out forwards; z-index: -1; }

/* امتیاز ستاره‌ای */
.stars { display: flex; gap: 8px; flex-wrap: wrap; }
.star {
  --d: 0; position: relative; border: 0; background: none; padding: 4px; cursor: pointer; color: rgba(255, 255, 255, .18); line-height: 0; border-radius: 14px;
  animation: optIn .5s var(--spring) both; animation-delay: calc(var(--d) * 70ms + 180ms);
  transition: transform .3s var(--spring), color .2s, filter .2s;
}
.star .ico { width: clamp(42px, 11vw, 56px); height: clamp(42px, 11vw, 56px); }
.star.on { color: #fbbf24; filter: drop-shadow(0 0 12px rgba(251, 191, 36, .75)); }
.star.hover { color: #fde68a; }
.star:hover { transform: scale(1.18) rotate(-8deg); }
.star.pop { animation: starPop .5s var(--spring); }
.star:focus-visible { outline: 2px solid #fcd34d; }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 8px #fbbf24; pointer-events: none; animation: spark .7s ease-out forwards; }
.rating-caption { margin-top: 10px; min-height: 1.9em; font-weight: 700; font-size: 1.05rem; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rating-caption.show { animation: pop .45s var(--spring); }

/* طیف عددی */
.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale-btn {
  --d: 0; --h: 40; width: 50px; height: 50px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: #fff;
  font-weight: 700; font-size: 1.05rem; cursor: pointer;
  animation: optIn .5s var(--spring) both; animation-delay: calc(var(--d) * 40ms + 180ms);
  transition: transform .3s var(--spring), background .25s, border-color .25s, box-shadow .3s;
}
.scale-btn:hover { transform: translateY(-4px); border-color: hsl(var(--h) 90% 65% / .7); background: hsl(var(--h) 90% 55% / .18); }
.scale-btn.selected {
  background: linear-gradient(160deg, hsl(var(--h) 95% 62%), hsl(calc(var(--h) - 12) 88% 46%)); border-color: transparent;
  transform: translateY(-4px) scale(1.12); box-shadow: 0 12px 26px -8px hsl(var(--h) 90% 50% / .8);
}
.scale-track { height: 6px; border-radius: 99px; margin-top: 14px; background: linear-gradient(90deg, hsl(140 70% 45%), hsl(45 95% 55%), hsl(350 85% 55%)); opacity: .55; }
.scale-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: .82rem; color: var(--muted-2); }

/* ورودی‌ها */
.field {
  width: 100%; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); padding: 14px 18px; border-radius: 18px;
  font-size: 1.1rem; outline: none; color: #fff; transition: border-color .25s, box-shadow .25s, background .25s;
  animation: optIn .55s var(--ease) both; animation-delay: .18s;
}
.field:focus { border-color: #fcd34d; background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 4px rgba(251, 191, 36, .16), 0 12px 30px -16px rgba(251, 191, 36, .6); }
.field::placeholder { color: rgba(233, 220, 247, .45); }
textarea.field { min-height: 150px; resize: vertical; font-size: 1rem; line-height: 1.9; }
.field.ltr { direction: ltr; text-align: right; letter-spacing: .06em; }

.select { position: relative; animation: optIn .55s var(--ease) both; animation-delay: .18s; }
.select-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  padding: 14px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); text-align: right; font-weight: 500; color: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.select-btn:hover { border-color: rgba(252, 211, 77, .45); }
.select-btn .placeholder { color: rgba(233, 220, 247, .5); font-weight: 400; }
.select-btn .ico { transition: transform .3s var(--spring); color: #fde68a; }
.select.open .select-btn { border-color: #fcd34d; box-shadow: 0 0 0 4px rgba(251, 191, 36, .16); }
.select.open .select-btn .ico { transform: rotate(180deg); }
.select-panel {
  position: relative; z-index: 2; margin-top: 8px; border-radius: 18px; overflow: hidden;
  background: rgba(30, 18, 58, .96); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  transform-origin: top; animation: dropIn .28s var(--spring) both;
}
.select-search { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: #fde68a; }
.select-search input { border: 0; outline: none; flex: 1; background: none; min-width: 0; color: #fff; font-size: 16px; padding: 4px 0; }
.select-list { max-height: min(300px, 42vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 6px; margin: 0; list-style: none; }
.select-list::-webkit-scrollbar { width: 6px; }
.select-list::-webkit-scrollbar-thumb { background: rgba(252, 211, 77, .4); border-radius: 6px; }
.select-item { min-height: 46px; padding: 10px 14px; border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; display: flex; justify-content: space-between; align-items: center; animation: optIn .3s var(--ease) both; transition: background .15s, padding .2s; }
.select-item:nth-child(-n+10) { animation-delay: calc(var(--d, 0) * 25ms); }
.select-item:hover, .select-item.active { background: rgba(251, 191, 36, .14); padding-right: 20px; }
.select-item.selected { color: #fcd34d; font-weight: 700; }
.select-empty { padding: 14px; color: var(--muted-2); text-align: center; font-size: .9rem; }

.err { margin-top: 14px; color: #fecdd3; font-size: .92rem; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: rgba(225, 29, 72, .18); border: 1px solid rgba(251, 113, 133, .35); }
.shake { animation: shake .45s ease; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; animation: rise .6s var(--ease) both; animation-delay: .25s; }
.nav-main { display: flex; align-items: center; gap: 12px; }
.nav-hint { color: var(--muted-2); font-size: .8rem; }
.nav-hint kbd { font-family: inherit; font-size: .75rem; padding: 1px 8px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); direction: ltr; display: inline-block; }

/* پایان */
.done { text-align: center; padding: 6px 0; position: relative; }
.done-tulip { width: 140px; height: 140px; margin: 0 auto 4px; overflow: visible; }
.done-tulip .stem { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .1s ease forwards; }
.done-tulip .leaf { transform-box: fill-box; transform-origin: 100% 100%; transform: scale(0); animation: grow .5s .7s var(--spring) forwards; }
.done-tulip .flower { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); animation: grow .7s .9s var(--spring) forwards; }
.done-tulip .halo { transform-box: fill-box; transform-origin: center; opacity: 0; animation: halo 2.2s 1.1s ease-out infinite; }
.done h2 { margin: 0 0 8px; font-size: 1.8rem; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .7s 1.1s var(--ease) both; }
.done p { margin: 0 auto 26px; color: var(--muted); max-width: 450px; animation: rise .7s 1.25s var(--ease) both; }
.done .btn { animation: rise .7s 1.4s var(--ease) both; }
.confetti { position: fixed; top: -20px; width: 10px; height: 14px; pointer-events: none; z-index: 50; border-radius: 3px 10px; animation: confetti linear forwards; }
.hp { position: absolute; right: -9999px; width: 1px; height: 1px; opacity: 0; }

.message-wrap { flex: 1; display: grid; place-items: center; padding: 24px 16px; }
.message-card { max-width: 480px; width: 100%; text-align: center; border-radius: 30px; padding: 38px 30px; animation: rise .7s var(--ease) both; }
.message-card h1 { margin: 12px 0 6px; font-size: 1.45rem; }
.message-card p { color: var(--muted); margin: 0 0 24px; }

/* ================================================================ انیمیشن‌ها */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes optIn { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(-60px) rotateY(10deg) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(60px) rotateY(-10deg) scale(.97); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes stepOut { to { opacity: 0; transform: translateX(40px) scale(.98); filter: blur(4px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px) scaleY(.85); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes turn { to { --angle: 360deg; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scale(1); } }
@keyframes halo { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(2); } }
@keyframes shine { to { left: 130%; } }
@keyframes sheen { to { background-position: -200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes choicePulse { 0% { transform: scale(.97); } 60% { transform: scale(1.03); } }
@keyframes starPop { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-15deg); } 100% { transform: scale(1); } }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0); opacity: 0; } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

@media (max-width: 560px) {
  .form-card { padding: 16px 14px; gap: 12px; }
  .form-card-icon { width: 50px; height: 50px; border-radius: 15px; }
  .form-card-go { display: none; }
  .survey { padding-top: 4px; justify-content: flex-start; }
  .survey-card { border-radius: 26px; }
  .nav-hint { display: none; }
  .scale-btn { width: calc((100% - 32px) / 5); height: 48px; }
  .btn-lg { width: 100%; }
  .choice:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
