/* ==========================================================================
   «از کجا شروع کنم؟»: سؤال‌های مرحله‌ای و نتیجه‌ی دستیار
   ========================================================================== */
.adv-card {
  max-width: 760px;
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 60%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.085), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 48px -30px rgba(0, 0, 0, 0.9);
}
@media (min-width: 640px) { .adv-card { padding: 30px 30px 26px; } }
.adv-card fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.adv-card legend { font-size: clamp(20px, 3.4vw, 26px); font-weight: 800; line-height: 1.5; margin-bottom: 6px; outline: none; }
.adv-hint { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }

.adv-progress { display: grid; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--text-3); }
.adv-progress i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.adv-progress i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--p); border-radius: inherit; background: linear-gradient(270deg, #8e1f2d, #ff5a6c); transition: width 0.4s var(--ease); }

.adv-opts { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .adv-opts--2 { grid-template-columns: 1fr 1fr; } }
.adv-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.adv-opt:hover { background: rgba(255, 255, 255, 0.065); }
.adv-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.adv-opt__t { flex: 1; }
.adv-opt__ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #ff8a96; background: rgba(142, 31, 45, 0.2); }
.adv-opt__ic svg { width: 20px; height: 20px; }
.adv-opt__mark { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22); transition: box-shadow 0.2s, background-color 0.2s; }
.adv-opt input[type="checkbox"] ~ .adv-opt__mark { border-radius: 7px; }
.adv-opt:has(input:checked) { background: rgba(142, 31, 45, 0.3); box-shadow: inset 0 0 0 1px rgba(255, 90, 108, 0.6); }
.adv-opt:has(input:checked) .adv-opt__mark {
  background: #ff5a6c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: none;
}
.adv-opt:has(input:focus-visible) { outline: 2px solid var(--crimson-text); outline-offset: 2px; }

.adv-note { display: grid; gap: 6px; margin-top: 14px; }
.adv-note textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: #0c0c0e;
  box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.78), inset -2px -2px 6px rgba(255, 255, 255, 0.045), 0 0 0 1px rgba(255, 255, 255, 0.06);
  outline: none;
}
.adv-note textarea:focus { box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(208, 82, 95, 0.75); }
.adv-note textarea::placeholder { color: var(--text-3); }
.adv-note small { font-size: 12px; color: var(--text-3); }

.adv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.adv-actions .btn { min-height: 48px; }
.adv-actions [data-next] { flex: 1; max-width: 280px; }
@media (max-width: 559px) { .adv-actions [data-next] { max-width: none; } }
.adv-err { min-height: 0; margin-top: 10px; font-size: 14px; color: #ff8a96; }
.adv-err:empty { display: none; }

/* در حال آماده شدن */
.adv-wait { display: grid; justify-items: center; gap: 12px; padding-block: 56px; text-align: center; }
.adv-wait b { font-size: 17px; }
.adv-wait small { font-size: 13.5px; color: var(--text-2); min-height: 1.6em; }
.adv-wait__dots { display: flex; gap: 8px; }
.adv-wait__dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5a6c; opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) {
  .adv-wait__dots i { animation: adv-dot 1.2s ease-in-out infinite; }
  .adv-wait__dots i:nth-child(2) { animation-delay: 0.15s; }
  .adv-wait__dots i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes adv-dot { 40% { opacity: 1; transform: translateY(-4px); } }
}
.adv-fail { display: grid; gap: 4px; }
.adv-fail b { font-size: 17px; }

/* نتیجه */
.adv-head { max-width: 760px; margin-bottom: 22px; }
.adv-summary { font-size: clamp(18px, 2.6vw, 22px); font-weight: 700; line-height: 1.85; outline: none; }
.adv-notice { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }
.adv-picks { display: grid; gap: 18px; }
@media (min-width: 900px) { .adv-picks { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; } }
.adv-pick { display: grid; gap: 10px; }
.adv-why { padding: 16px 18px; border-radius: 18px; background: rgba(142, 31, 45, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 90, 108, 0.22); display: grid; gap: 8px; }
.adv-rank { justify-self: start; font-size: 12.5px; font-weight: 700; color: #ffc2ca; padding: 2px 10px; border-radius: 999px; background: rgba(255, 90, 108, 0.16); }
.adv-why p { font-size: 15px; line-height: 1.95; color: var(--text); }
.adv-first { font-size: 14px !important; color: var(--text-2) !important; }
.adv-first b { color: var(--text); }
.adv-box { margin-top: 18px; max-width: 760px; padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); display: grid; gap: 4px; }
.adv-box b { font-size: 14.5px; }
.adv-box p { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.adv-box--warn { background: rgba(227, 179, 92, 0.08); box-shadow: inset 0 0 0 1px rgba(227, 179, 92, 0.25); }
.adv-box--warn b { color: #e8cf98; }
.adv-actions--end { margin-top: 26px; }
.adv-actions--end .btn svg { width: 18px; height: 18px; }
.adv-sub { margin: 40px 0 14px; font-size: 20px; font-weight: 800; }
[data-paths] .learning-card + .learning-card { margin-top: 12px; }
