/* --------------------------------------------------------------------------
   نسخه ۲.۵ — پاپ‌آپ تکمیل پروفایل و فرم‌های پویا
   -------------------------------------------------------------------------- */
.profile-popup-overlay{position:fixed;inset:0;z-index:2500;display:grid;visibility:hidden;padding:18px;opacity:0;place-items:center;transition:opacity .28s ease,visibility .28s ease}.profile-popup-overlay.is-open{visibility:visible;opacity:1}.profile-popup-backdrop{position:absolute;inset:0;background:rgba(5,8,19,.76);backdrop-filter:blur(9px)}.profile-popup-panel{position:relative;display:flex;overflow:hidden;width:min(980px,100%);max-height:min(92vh,940px);color:#f7f3ea;border:1px solid rgba(255,255,255,.14);border-radius:30px;background:linear-gradient(145deg,rgba(19,23,45,.98),rgba(11,16,34,.98));box-shadow:0 38px 120px rgba(0,0,0,.55);flex-direction:column;transform:translateY(24px) scale(.97);transition:transform .32s cubic-bezier(.2,.8,.2,1)}.profile-popup-overlay.is-open .profile-popup-panel{transform:translateY(0) scale(1)}.profile-popup-panel.theme-cosmic{background:linear-gradient(145deg,rgba(28,18,58,.98),rgba(7,20,38,.98))}.profile-popup-panel.theme-light{color:#1d2435;background:#f8f5ee}.profile-popup-panel.theme-teal{background:linear-gradient(145deg,#0e2f36,#11172d)}.profile-popup-art{position:absolute;inset:0;overflow:hidden;pointer-events:none}.profile-popup-art::before{position:absolute;inset:0;content:"";opacity:.18;background:url('../images/philosophy/cosmic-wisdom.webp') center/cover no-repeat}.profile-popup-art img{position:absolute;top:-70px;left:-50px;width:300px;height:300px;opacity:.32;mix-blend-mode:screen}.profile-popup-constellation{position:absolute;right:4%;bottom:8%;width:220px;height:220px;opacity:.18;background:url('../images/philosophy/path-orbit.webp') center/contain no-repeat;transform:rotate(-12deg)}.profile-popup-header{position:relative;z-index:2;display:grid;padding:22px 24px 16px;gap:14px;border-bottom:1px solid rgba(255,255,255,.1);grid-template-columns:64px 1fr auto;align-items:start}.profile-popup-symbol{display:grid;width:62px;height:62px;padding:8px;border:1px solid rgba(255,255,255,.18);border-radius:21px;background:rgba(255,255,255,.08);box-shadow:0 12px 32px rgba(127,91,229,.24);place-items:center}.profile-popup-symbol img{width:100%;height:100%;object-fit:contain}.profile-popup-heading h2{margin:4px 0 5px;font-size:24px;line-height:1.45}.profile-popup-heading p{max-width:700px;margin:0;color:rgba(247,243,234,.68);font-size:11px}.profile-popup-eyebrow{display:inline-flex;gap:7px;color:#c9b8ff;align-items:center;font-size:9px;font-weight:900}.profile-popup-close{display:grid;width:40px;height:40px;color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.13);border-radius:13px;background:rgba(255,255,255,.06);place-items:center;cursor:pointer}.profile-popup-required{display:inline-flex;padding:7px 10px;gap:6px;color:#ffdca0;border:1px solid rgba(245,183,72,.24);border-radius:99px;background:rgba(245,183,72,.11);align-items:center;font-size:8px;font-weight:900}.profile-popup-progress{position:relative;z-index:2;padding:11px 24px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.12)}.profile-popup-progress>div:first-child{display:flex;margin-bottom:6px;justify-content:space-between;font-size:8px}.profile-popup-progress-track{overflow:hidden;height:7px;border-radius:99px;background:rgba(255,255,255,.09)}.profile-popup-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#36c7c9,#9b6bff,#f3bd55);box-shadow:0 0 18px rgba(155,107,255,.45);transition:width .35s ease}.profile-popup-form{position:relative;z-index:2;overflow:auto;padding:20px 24px 0}.profile-popup-fields{display:grid;gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-popup-field{min-width:0}.profile-popup-field-wide{grid-column:1/-1}.profile-popup-field>span,.profile-popup-field legend{display:block;margin-bottom:7px;color:rgba(255,255,255,.85);font-size:10px;font-weight:900}.profile-popup-field b{margin-right:3px;color:#f7a7b4}.profile-popup-field input,.profile-popup-field textarea,.profile-popup-field select{width:100%;min-height:46px;padding:10px 12px;color:#fff;border:1px solid rgba(255,255,255,.13);outline:none;border-radius:13px;background:rgba(255,255,255,.055);transition:border-color .2s,box-shadow .2s,transform .2s}.profile-popup-field textarea{min-height:100px;resize:vertical}.profile-popup-field input:focus,.profile-popup-field textarea:focus,.profile-popup-field select:focus{border-color:#9b6bff;box-shadow:0 0 0 4px rgba(155,107,255,.14);transform:translateY(-1px)}.profile-popup-field option{color:#111827;background:#fff}.profile-popup-choice-field{min-width:0;margin:0;padding:0;border:0}.profile-popup-choice-row{display:flex;gap:9px;flex-wrap:wrap}.profile-popup-choice-row label{cursor:pointer}.profile-popup-choice-row input{position:absolute;opacity:0;pointer-events:none}.profile-popup-choice-row label span{display:inline-flex;min-height:43px;padding:8px 16px;gap:7px;color:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.12);border-radius:13px;background:rgba(255,255,255,.04);align-items:center;justify-content:center;font-size:10px;font-weight:800;transition:.2s}.profile-popup-choice-row input:checked+span{color:#fff;border-color:#9b6bff;background:linear-gradient(135deg,rgba(155,107,255,.35),rgba(54,199,201,.18));box-shadow:0 10px 25px rgba(0,0,0,.18)}.yes-no-row label{flex:1}.yes-no-row label span{width:100%}.profile-popup-avatar-field{display:grid;padding:14px;gap:15px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:linear-gradient(135deg,rgba(155,107,255,.12),rgba(54,199,201,.07));grid-column:1/-1;grid-template-columns:110px 1fr;align-items:center}.profile-popup-avatar-preview{display:grid;overflow:hidden;width:104px;height:104px;color:#d8caff;border:2px solid rgba(255,255,255,.2);border-radius:31px;background:rgba(255,255,255,.07);place-items:center;font-size:34px}.profile-popup-avatar-preview img{width:100%;height:100%;object-fit:cover}.profile-popup-avatar-field strong{display:block;font-size:13px}.profile-popup-avatar-field p{margin:3px 0 10px;color:rgba(255,255,255,.58);font-size:9px}.profile-popup-file-button{display:inline-flex;min-height:38px;padding:7px 12px;gap:7px;color:#fff;border-radius:11px;background:linear-gradient(135deg,#8b5cf6,#5b48d7);align-items:center;cursor:pointer;font-size:9px;font-weight:900}.required-note{display:block;margin-top:7px;color:#f8cb82;font-size:8px}.profile-popup-team-field>p{margin:-2px 0 10px;color:rgba(255,255,255,.55);font-size:8px}.profile-popup-team-grid{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-popup-team-card{position:relative;display:grid;min-width:0;padding:12px;gap:10px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.035);grid-template-columns:43px 1fr 22px;align-items:center;cursor:pointer;transition:.22s}.profile-popup-team-card:hover{border-color:color-mix(in srgb,var(--team-color) 55%,white);transform:translateY(-2px)}.profile-popup-team-card input{position:absolute;opacity:0}.team-card-icon{display:grid;width:42px;height:42px;color:#fff;border-radius:13px;background:linear-gradient(135deg,var(--team-color),color-mix(in srgb,var(--team-color) 45%,#111827));box-shadow:0 10px 25px color-mix(in srgb,var(--team-color) 25%,transparent);place-items:center}.team-card-copy{min-width:0}.team-card-copy strong,.team-card-copy small{display:block}.team-card-copy strong{font-size:10px}.team-card-copy small{overflow:hidden;color:rgba(255,255,255,.5);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.team-card-check{color:rgba(255,255,255,.15);transition:.2s}.profile-popup-team-card:has(input:checked){border-color:var(--team-color);background:color-mix(in srgb,var(--team-color) 15%,rgba(255,255,255,.03))}.profile-popup-team-card input:checked~.team-card-check{color:var(--team-color);transform:scale(1.18)}.profile-popup-stars-row{display:flex;direction:ltr;gap:7px;justify-content:center}.profile-popup-stars-row input{position:absolute;opacity:0}.profile-popup-stars-row label{cursor:pointer}.profile-popup-stars-row i{color:rgba(255,255,255,.17);font-size:30px;filter:drop-shadow(0 5px 10px rgba(0,0,0,.2));transition:.2s}.profile-popup-stars-row label:hover i,.profile-popup-stars-row label:has(input:checked) i{color:#f5bc48;transform:scale(1.15)}.profile-popup-checkbox{display:flex;padding:11px;gap:9px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.03);align-items:center}.profile-popup-checkbox input{width:18px;min-height:auto}.profile-popup-checkbox span{margin:0}.profile-popup-message{margin-top:13px;padding:10px 12px;border-radius:12px;font-size:9px}.profile-popup-message.error{color:#ffc5ce;border:1px solid rgba(242,118,135,.3);background:rgba(242,118,135,.12)}.profile-popup-message.info{color:#bdebea;background:rgba(54,199,201,.1)}.profile-popup-footer{position:sticky;bottom:0;display:flex;margin-top:18px;padding:13px 0 calc(15px + env(safe-area-inset-bottom));gap:10px;border-top:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,transparent 0,#11162b 25%);align-items:center;justify-content:flex-end}.profile-popup-footer>span{margin-left:auto;color:rgba(255,255,255,.5);font-size:8px}.profile-popup-submit{min-width:190px}.profile-popup-panel.theme-light .profile-popup-heading p,.profile-popup-panel.theme-light .profile-popup-field>span,.profile-popup-panel.theme-light .profile-popup-field legend,.profile-popup-panel.theme-light .profile-popup-footer>span{color:#586175}.profile-popup-panel.theme-light .profile-popup-field input,.profile-popup-panel.theme-light .profile-popup-field textarea,.profile-popup-panel.theme-light .profile-popup-field select{color:#1d2435;border-color:#dfe3ea;background:#fff}.profile-popup-panel.theme-light .profile-popup-choice-row label span{color:#465069;border-color:#dfe3ea;background:#fff}.profile-popup-panel.theme-light .profile-popup-team-card{color:#1d2435;border-color:#dfe3ea;background:#fff}.profile-popup-panel.theme-light .team-card-copy small{color:#778197}
@media(max-width:760px){.profile-popup-overlay{padding:0;align-items:end}.profile-popup-panel{width:100%;max-height:95vh;border-radius:25px 25px 0 0}.profile-popup-header{padding:17px 15px 13px;grid-template-columns:50px 1fr auto}.profile-popup-symbol{width:48px;height:48px;border-radius:16px}.profile-popup-heading h2{font-size:18px}.profile-popup-progress{padding:9px 15px}.profile-popup-form{padding:14px 15px 0}.profile-popup-fields{grid-template-columns:1fr}.profile-popup-field-wide,.profile-popup-avatar-field{grid-column:auto}.profile-popup-team-grid{grid-template-columns:1fr}.profile-popup-avatar-field{grid-template-columns:82px 1fr}.profile-popup-avatar-preview{width:78px;height:78px;border-radius:24px}.profile-popup-footer{align-items:stretch;flex-direction:column-reverse}.profile-popup-footer>span{margin-left:0;text-align:center}.profile-popup-submit{width:100%}}
@media(prefers-reduced-motion:reduce){.profile-popup-panel,.profile-popup-progress-track span,.profile-popup-team-card,.profile-popup-stars-row i{transition:none!important}}

.profile-popup-face-status{display:block;margin-top:8px;color:#64748b;line-height:1.8}.profile-popup-face-status.is-checking{color:#1d4ed8}.profile-popup-face-status.is-valid{color:#047857;font-weight:700}.profile-popup-face-status.is-invalid{color:#b91c1c;font-weight:700}
