/* صفحهٔ خوشامد — همیشه تیره و سینمایی، مستقل از پوستهٔ برنامه */
.wl {
  position: fixed; inset: 0; z-index: 90; direction: rtl; color: #f7ecd8; background: #0b0816;
  color-scheme: dark; opacity: 0; transition: opacity 0.55s ease; font-family: inherit;
}
.wl:focus { outline: none; }
.wl.in { opacity: 1; }
.wl.out { opacity: 0; pointer-events: none; }
.wl input, .wl select { -webkit-user-select: text; user-select: text; font: inherit; }

.wl-art { position: absolute; inset: 0; overflow: hidden; }
.wl-art .art { width: 100%; height: 100%; display: block; transform: scale(1.05); animation: wl-drift 40s ease-in-out infinite alternate; }
.wl-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 20, 0.5) 0, rgba(5, 6, 20, 0) 34%, rgba(12, 6, 10, 0.3) 68%, rgba(12, 6, 10, 0.78) 100%);
}
.wl-art .tw { animation: wl-tw 3.4s ease-in-out infinite; }
@keyframes wl-drift { from { transform: scale(1.05) translateX(-1.2%); } to { transform: scale(1.05) translateX(1.2%); } }
@keyframes wl-tw { 50% { opacity: 0.12; } }

.wl-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wl-embers i { position: absolute; bottom: -8px; width: 3px; height: 3px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 8px 2px rgba(255, 190, 90, 0.7); opacity: 0; animation: wl-ember linear infinite; }
@keyframes wl-ember {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translate(26px, -78vh); opacity: 0; }
}

.wl-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center;
  padding: max(14px, env(safe-area-inset-top)) 14px 0;
}

/* —— سربرگ —— */
.wl-hero { width: 100%; max-width: 760px; text-align: center; padding: clamp(8px, 4vh, 40px) 0 6px; }
.wl-fv { width: clamp(170px, 46vw, 300px); margin: 0 auto 2px; filter: drop-shadow(0 6px 22px rgba(255, 170, 70, 0.45)); }
.wl-fv img { width: 100%; height: auto; display: block; }
.wl-hero h1 { margin: 0; line-height: 1.12; text-shadow: none; }
.wl-hero .k1 { display: block; font-size: clamp(1.5rem, 5.4vw, 2.5rem); font-weight: 500; letter-spacing: 0.01em; color: #fbefd6; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7)); }
.wl-hero .k2 {
  display: block; font-size: clamp(3.2rem, 15vw, 6.6rem); font-weight: 900; line-height: 1.25;
  background: linear-gradient(180deg, #fff3cf 0%, #f6c764 52%, #d28a2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, 0.6));
}
.wl-tag { margin: 8px auto 14px; max-width: 520px; font-size: clamp(0.9rem, 2.8vw, 1.08rem); line-height: 1.9; color: #f4e3c2; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.wl-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wl-stats li { padding: 5px 12px; border-radius: 999px; font-size: 0.76rem; color: #f3dcae; background: rgba(20, 10, 10, 0.5); border: 1px solid rgba(240, 190, 100, 0.28); backdrop-filter: blur(6px); }
.wl-stats b { color: #ffd27a; font-weight: 800; }

/* —— پنل —— */
.wl-panel {
  position: relative; width: 100%; max-width: 760px; margin-top: 18px; padding: 16px 14px 0;
  background: rgba(17, 10, 12, 0.66); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 190, 100, 0.26); border-bottom: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.45);
}
@media (min-width: 760px) { .wl-panel { margin-bottom: 28px; border-bottom: 1px solid rgba(240, 190, 100, 0.26); border-radius: 26px; padding: 22px 24px 0; } }
.wl-hero, .wl-panel { opacity: 0; transform: translateY(14px); transition: opacity 0.8s 0.15s ease, transform 0.8s 0.15s ease; }
.wl-panel { transition-delay: 0.4s; }
.wl.in .wl-hero, .wl.in .wl-panel { opacity: 1; transform: none; }

.wl-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.wl-dots i { width: 22px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); transition: background 0.3s, width 0.3s; }
.wl-dots i.on { background: #f6c764; width: 34px; }
.wl-step h2 { margin: 0 0 4px; font-size: 1.22rem; font-weight: 800; color: #ffe3a6; }
.wl-sub { margin: 0 0 12px; font-size: 0.82rem; line-height: 1.9; color: rgba(247, 236, 216, 0.78); }

.wl-quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.wl-quick::-webkit-scrollbar { display: none; }
.wl-chip { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; color: #f6d9a0; background: rgba(240, 190, 100, 0.08); border: 1px solid rgba(240, 190, 100, 0.42); transition: background 0.15s, color 0.15s; }
.wl-chip.on { background: #f6c764; color: #2a1608; border-color: #f6c764; font-weight: 800; }

.wl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 620px) { .wl-grid { grid-template-columns: repeat(3, 1fr); } }
.wl-card {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 3px; align-content: start; text-align: start;
  padding: 12px; border-radius: 16px; color: #fbefd6;
  background: rgba(255, 255, 255, 0.055); border: 1px solid rgba(255, 255, 255, 0.13);
  transition: transform 0.12s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.wl-card:active { transform: scale(0.97); }
.wl-card:focus-visible, .wl-chip:focus-visible, .wl-cta:focus-visible, .wl-skip:focus-visible, .wl-back:focus-visible, .wl-x:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
.wl-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 4px; color: var(--c); background: color-mix(in srgb, var(--c) 17%, transparent); }
.wl-card b { font-size: 0.9rem; font-weight: 800; line-height: 1.5; }
.wl-card small { font-size: 0.7rem; line-height: 1.7; color: rgba(247, 236, 216, 0.68); }
.wl-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.8rem; font-weight: 900; color: #1b0f08; background: var(--c); opacity: 0; transform: scale(0.4); transition: opacity 0.18s, transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1); }
.wl-card.on { background: color-mix(in srgb, var(--c) 17%, rgba(255, 255, 255, 0.03)); border-color: var(--c); box-shadow: 0 0 0 1px var(--c) inset, 0 6px 22px color-mix(in srgb, var(--c) 18%, transparent); }
.wl-card.on .wl-check { opacity: 1; transform: none; }

/* —— نوار پایین (چسبان) —— */
.wl-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 -14px; padding: 18px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(17, 10, 12, 0.97) 58%, rgba(17, 10, 12, 0)); }
@media (min-width: 760px) { .wl-bar { margin: 0 -24px; padding-inline: 24px; border-radius: 0 0 26px 26px; } }
.wl-hint { margin: 0 0 6px; min-height: 1.1em; font-size: 0.78rem; color: #ffb4a0; text-align: center; }
.wl-cta {
  width: 100%; height: 52px; border-radius: 16px; font-size: 1rem; font-weight: 800; color: #2a1608;
  background: linear-gradient(135deg, #ffd47a, #e09a34); box-shadow: 0 8px 26px rgba(224, 154, 52, 0.35); transition: transform 0.12s, opacity 0.2s, background 0.2s;
}
.wl-cta:active:not(:disabled) { transform: scale(0.98); }
.wl-cta:disabled { color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.12); box-shadow: none; cursor: not-allowed; }

/* —— گام دوم —— */
.wl-form { display: grid; gap: 10px; padding-bottom: 18px; }
.wl-form[hidden] { display: none; }
.wl-field { width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); outline: none; }
.wl-field::placeholder { color: rgba(255, 255, 255, 0.5); }
select.wl-field { appearance: none; -webkit-appearance: none; padding-inline-end: 38px; background-repeat: no-repeat; background-size: 14px 14px; background-position: 14px 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6c764' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.wl-field option { background: #1d1311; color: #fff4dc; }
.wl-field:focus { border-color: #f6c764; box-shadow: 0 0 0 3px rgba(246, 199, 100, 0.22); }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wl-prev { white-space: pre-line; margin: 0; min-height: 1.2em; font-size: 0.8rem; line-height: 1.9; color: #ffd98c; }
.wl-err { margin: 0; min-height: 0; font-size: 0.8rem; color: #ffb4a0; }
.wl-err:empty { display: none; }
.wl-actions { display: grid; gap: 4px; margin-top: 4px; }
.wl-skip, .wl-back { height: 42px; border-radius: 12px; font-size: 0.88rem; color: #f2d79b; }
.wl-skip { font-weight: 700; }
.wl-back { color: rgba(247, 236, 216, 0.6); }

.wl-x { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; color: #fff; font-size: 1.05rem; background: rgba(20, 10, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); }

@media (max-height: 640px) { .wl-fv { width: 96px; } .wl-tag, .wl-stats { display: none; } }
