/*! WP Project Builder v1.14.0 */
/* پروژه ساز وردپرس: ویترین عمومی پروژه‌ها (کلاس‌ها با پیشوند psp- برای جلوگیری از تداخل با قالب). */
.psp {
    --psp-ink: #0b1220;
    --psp-muted: #667085;
    --psp-line: #e8edf3;
    --psp-teal: #16b8a7;
    --psp-teal-dark: #0f766e;
    --psp-dark: #0c1e2c;
    box-sizing: border-box;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 28px 72px;
    color: var(--psp-ink);
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: normal;
}
.psp[dir="rtl"] {
    font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
    word-spacing: .06em;
}
.psp, .psp *, .psp *::before, .psp *::after { box-sizing: border-box; }
.psp h2, .psp h3, .psp p, .psp ul { font-family: inherit; }
.psp a { text-decoration: none; }
.psp p, .psp h2, .psp h3 { overflow-wrap: break-word; word-break: normal; }

/* ---------- بنر بالای صفحه ---------- */
.psp-hero {
    display: grid; grid-template-columns: 1.08fr .92fr; min-height: 370px; overflow: hidden;
    margin: 0 0 32px; border-radius: 28px; background: var(--psp-dark);
    box-shadow: 0 22px 50px rgba(11, 18, 32, .13);
}
.psp-hero-copy {
    display: flex; flex-direction: column; justify-content: center; padding: 52px; color: #fff;
    background: radial-gradient(circle at 8% 8%, rgba(23, 149, 154, .45), transparent 42%);
}
.psp-eyebrow { display: block; color: #65e6d6; font-size: 13px; font-weight: 800; line-height: 1.6; }
.psp-hero h2 { margin: 10px 0 16px; padding: 0; color: #fff; font-size: 38px; font-weight: 900; line-height: 1.45; }
.psp-hero p { max-width: 570px; margin: 0 0 22px; color: #c8d8df; font-size: 15px; line-height: 2.1; }
.psp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.psp-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 18px;
    border-radius: 12px; font-size: 14px; font-weight: 800; line-height: 1.6; transition: transform .2s ease, background .2s ease;
}
.psp-btn:hover { transform: translateY(-2px); }
.psp-btn-primary { background: var(--psp-teal); color: #062d31; }
.psp-btn-ghost { border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.psp-btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.psp-hero-media { position: relative; min-height: 320px; overflow: hidden; background: linear-gradient(135deg, #0e3441, #0a202c); }
.psp-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.psp-hero-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, var(--psp-dark) 0%, transparent 48%, rgba(12, 30, 44, .14) 100%);
}
.psp[dir="ltr"] .psp-hero-media::after { transform: scaleX(-1); }
.psp-hero-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(21, 169, 168, .4), transparent 35%), linear-gradient(135deg, #0e3441, #09212e);
}
.psp-hero-placeholder span {
    position: relative; z-index: 2; display: grid; place-items: center; width: 112px; height: 112px;
    border: 1px solid rgba(105, 238, 224, .4); border-radius: 32px; background: rgba(17, 185, 168, .27);
    color: #8affeb; font-size: 60px; font-weight: 900; line-height: 1; box-shadow: 0 0 70px rgba(17, 185, 168, .33);
}
.psp-hero-placeholder i { position: absolute; border: 1px solid rgba(50, 217, 202, .33); border-radius: 50%; }
.psp-hero-placeholder i:nth-child(2) { width: 180px; height: 180px; }
.psp-hero-placeholder i:nth-child(3) { width: 280px; height: 280px; }
.psp-hero-placeholder i:nth-child(4) { width: 390px; height: 390px; }
@keyframes psp-pulse { 50% { transform: scale(1.05); opacity: .35; } }
@media (prefers-reduced-motion: no-preference) {
    .psp-hero-placeholder i { animation: psp-pulse 3s ease-in-out infinite; }
}

/* ---------- عنوان بخش و فیلترها ---------- */
.psp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 6px 0 14px; }
.psp-section-head h2 { margin: 0; padding: 0; font-size: 26px; font-weight: 900; line-height: 1.6; color: var(--psp-ink); }
.psp-section-head p { margin: 3px 0 0; color: var(--psp-muted); font-size: 14px; }
.psp-total { color: var(--psp-muted); font-size: 14px; white-space: nowrap; }
.psp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; }
.psp-section-head { scroll-margin-top: 90px; }
.psp-chip {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 18px;
    border: 1px solid var(--psp-line); border-radius: 999px; background: #fff; color: #344054;
    font-size: 14px; line-height: 1.5; white-space: nowrap; transition: .2s;
}
.psp-chip:hover { border-color: var(--psp-teal); color: var(--psp-teal-dark); }
.psp-chip.is-active { border-color: var(--psp-ink); background: var(--psp-ink); color: #fff; }

/* ---------- کارت پروژه ---------- */
.psp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.psp-card {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden; margin: 0;
    border: 1px solid var(--psp-line); border-radius: 22px; background: #fff;
    box-shadow: 0 9px 26px rgba(11, 18, 32, .04);
}
.psp-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.psp-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.psp-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.psp-ph svg { width: 44px; height: 44px; }
.psp-ph0 { background: linear-gradient(135deg, #d8f5ee, #dce8f3); color: #0e9f94; }
.psp-ph1 { background: linear-gradient(135deg, #e6e0ff, #efe9ff); color: #6d4fc2; }
.psp-ph2 { background: linear-gradient(135deg, #ffe8d5, #fde4e6); color: #b45309; }
.psp-pill {
    position: absolute; top: 14px; display: inline-flex; align-items: center; min-height: 28px; padding: 2px 13px;
    border-radius: 999px; background: #fff; color: #1f2937; font-size: 12px; font-weight: 800; line-height: 1.5;
    box-shadow: 0 2px 8px rgba(11, 18, 32, .08);
}
.psp-pill-type { inset-inline-end: 14px; }
.psp-pill-status { inset-inline-start: 14px; }
.psp-st-active { background: #d1fae5; color: #047857; }
.psp-st-paused { background: #fef3c7; color: #92400e; }
.psp-st-done { background: #fff; color: #1f2937; }
.psp-st-draft { background: #f2f4f7; color: #475467; }

.psp-body { display: flex; flex: 1; flex-direction: column; gap: 10px; min-width: 0; padding: 20px 22px 22px; }
.psp-title { margin: 0; padding: 0; color: var(--psp-ink); font-size: 20px; font-weight: 900; line-height: 1.7; }
.psp-meta { margin: 0; color: var(--psp-muted); font-size: 13px; line-height: 1.8; }
.psp-desc {
    display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #475467; font-size: 14px; line-height: 2;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.psp-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: auto; padding-top: 14px; border-top: 1px solid #eef0f3;
}
.psp-people { display: flex; align-items: center; gap: 8px; min-width: 0; }
.psp-people-text { color: var(--psp-muted); font-size: 13px; white-space: nowrap; }
.psp-stack { display: inline-flex; align-items: center; }
.psp-stack .psp-avatar + .psp-avatar { margin-inline-start: -8px; }
.psp-avatar {
    display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px;
    border: 2px solid #fff; border-radius: 50%; font-size: 12px; font-weight: 800; line-height: 1;
}
.psp-c0 { background: #d8f5ee; color: #0f766e; }
.psp-c1 { background: #e6e0ff; color: #5b3fb5; }
.psp-c2 { background: #ffe8d5; color: #b45309; }
.psp-c3 { background: #fde4ef; color: #be185d; }
.psp-c4 { background: #dbeafe; color: #1d4ed8; }
.psp-deliv { padding: 3px 13px; border-radius: 10px; background: #f2f4f7; color: #475467; font-size: 12px; font-weight: 800; line-height: 1.7; white-space: nowrap; }
.psp-d-free { background: #e6f8f4; color: #0f766e; }
.psp-d-paid { background: #e0f2fe; color: #164e63; }
.psp-d-license { background: #fef3c7; color: #92400e; }

/* فهرست اعضا (بازشونده) */
.psp-details { font-size: 13px; }
.psp-details summary { display: inline-flex; align-items: center; min-height: 36px; color: var(--psp-teal-dark); font-weight: 800; cursor: pointer; }
.psp-list { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 2px; }
.psp-member { display: flex; align-items: center; gap: 10px; min-width: 0; }
.psp-who { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; flex: 1; line-height: 1.6; }
.psp-name { color: var(--psp-ink); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.psp-role, .psp-mail, .psp-more { color: var(--psp-muted); font-size: 12px; overflow-wrap: anywhere; }
.psp-tag { display: inline-block; margin-inline-start: 4px; padding: 1px 8px; border-radius: 999px; background: #ccfbf1; color: #0f766e; font-size: 12px; font-weight: 800; white-space: nowrap; }
.psp-tag-alt { background: #fef3c7; color: #92400e; }

/* بخش مخصوص عضو و مدیر */
.psp-foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
    padding: 11px 14px; border-radius: 12px; background: #f8fafc; color: #344054; font-size: 13px;
}
.psp-mine { border: 1px solid #99f6e4; background: #f0fdfa; color: #115e59; }
.psp-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--psp-teal-dark); font-size: 13px; font-weight: 800; }
.psp-link:hover { text-decoration: underline; }

.psp-note { margin-top: 30px; padding: 15px 19px; border: 1px dashed #a7d9d2; border-radius: 16px; background: #f0fdfa; color: #115e59; font-size: 13px; line-height: 2; }
.psp-results { min-height: 120px; transition: opacity .15s ease; }
.psp-results.is-loading { opacity: .45; pointer-events: none; }
.psp-empty {
    display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 20px;
    border: 1px dashed #cfd8e3; border-radius: 20px; background: #fff; text-align: center; color: var(--psp-muted);
}
.psp-empty p { margin: 0; font-size: 15px; }

/* صفحه‌بندی */
.psp-pager { margin-top: 25px; }
.psp-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.psp-pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
    border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: #344054;
}
.psp-pager .page-numbers.current { border-color: var(--psp-teal); background: var(--psp-teal); color: #062d31; }
.psp a:focus-visible, .psp summary:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
    .psp-card { transition: transform .2s ease, box-shadow .2s ease; }
    .psp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(11, 18, 32, .1); }
}

/* ---------- تبلت: ۲ ستون ---------- */
@media (max-width: 1023px) {
    .psp { padding: 24px 20px 60px; }
    .psp-hero { grid-template-columns: 1fr; }
    .psp-hero-media { order: -1; min-height: 250px; }
    .psp-hero-media::after { background: linear-gradient(0deg, var(--psp-dark) 0%, transparent 55%); transform: none !important; }
    .psp-hero-copy { padding: 35px; }
    .psp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
/* ---------- موبایل: ۱ ستون ---------- */
@media (max-width: 639px) {
    .psp { padding: 17px 14px 48px; font-size: 15px; }
    .psp-hero { min-height: 0; margin-bottom: 25px; border-radius: 21px; }
    .psp-hero-media { min-height: 190px; }
    .psp-hero-copy { padding: 25px 21px; }
    .psp-hero h2 { font-size: 26px; line-height: 1.55; }
    .psp-hero p { font-size: 14px; line-height: 2; }
    .psp-btn { min-height: 44px; padding: 7px 14px; font-size: 13px; }
    .psp-section-head { display: block; margin-bottom: 12px; }
    .psp-section-head h2 { font-size: 22px; }
    .psp-total { display: block; margin-top: 5px; }
    .psp-bar { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 17px; padding: 2px 0 5px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .psp-bar::-webkit-scrollbar { display: none; }
    .psp-chip { flex: 0 0 auto; }
    .psp-grid { grid-template-columns: 1fr; gap: 15px; }
    .psp-body { padding: 18px; }
    .psp-title { font-size: 19px; }
}

/* ---------- درخواست مشارکت و پیام‌ها ---------- */
.psp-join { font-size: 13px; }
.psp-join summary {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px;
    background: var(--psp-ink); color: #fff; font-weight: 800; cursor: pointer; list-style: none;
}
.psp-join summary::-webkit-details-marker { display: none; }
.psp-join-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.psp-join-form textarea {
    width: 100%; min-height: 80px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 12px;
    font: inherit; font-size: 14px; resize: vertical;
}
.psp-join-state { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12.5px; font-weight: 800; }
.psp-join-rejected { background: #fee2e2; color: #991b1b; }
.psp-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px; }
.psp-notice-ok { background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.psp-notice-err { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* ---------- صفحه‌ی اختصاصی پروژه ---------- */
.psp-title-link { color: inherit; }
.psp-title-link:hover { color: var(--psp-teal-dark); }
.psp-media-link { position: absolute; inset: 0; z-index: 1; }
.psp-pill { z-index: 2; }
.psp-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 14px; color: var(--psp-teal-dark); font-size: 14px; font-weight: 800; }
.psp-back:hover { text-decoration: underline; }
.psp-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; scroll-margin-top: 90px; }
.psp-detail-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--psp-line); border-radius: 24px; background: #e2e8f0; box-shadow: 0 9px 26px rgba(11, 18, 32, .06); }
.psp-detail-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.psp-detail-title { margin: 0; padding: 0; color: var(--psp-ink); font-size: 32px; font-weight: 900; line-height: 1.5; }
.psp-detail-desc { color: #344054; font-size: 15px; line-height: 2.1; }
.psp-detail-desc p { margin: 0 0 12px; }
.psp-detail-team { padding-top: 14px; border-top: 1px solid #eef0f3; }
.psp-detail-team h3 { margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 800; }
.psp-detail-team .psp-list { padding: 0; }
@media (max-width: 1023px) {
    .psp-detail { grid-template-columns: 1fr; gap: 20px; }
    .psp-detail-media { aspect-ratio: 16 / 10; }
    .psp-detail-title { font-size: 26px; }
}

/* دسته‌ی بدون پروژه */
.psp-chip-count { margin-inline-start: 4px; font-size: 12px; opacity: .7; }
.psp-chip.is-empty:not(.is-active) { color: #98a2b3; }
.psp-empty .psp-chip { margin-top: 4px; }

/* ---------- ادامه مطلب و پاپ‌آپ متن کامل ---------- */
.psp-full[hidden] { display: none !important; }
.psp .psp-more {
    align-self: flex-start; margin: -2px 0 0; padding: 2px 0; border: 0; border-radius: 6px; background: none; box-shadow: none;
    color: var(--psp-teal-dark); font: inherit; font-size: 13.5px; font-weight: 800; line-height: 1.8; text-decoration: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.psp .psp-more::after { content: " \2190"; }
.psp[dir="ltr"] .psp-more::after { content: " \2192"; }
.psp .psp-more:hover { color: var(--psp-teal); text-decoration: underline; text-underline-offset: 4px; }
.psp .psp-more:focus-visible { outline: 3px solid rgba(22, 184, 167, .4); outline-offset: 2px; }

.psp-lock { overflow: hidden !important; }
.psp-modal {
    --psp-ink: #0b1220; --psp-muted: #667085; --psp-line: #e8edf3; --psp-teal: #16b8a7; --psp-teal-dark: #0f766e;
    position: fixed; z-index: 2147483000; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(8, 17, 28, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    color: var(--psp-ink); font-size: 16px; line-height: 1.9; letter-spacing: normal;
    animation: psp-fade .18s ease-out;
}
.psp-modal, .psp-modal *, .psp-modal *::before, .psp-modal *::after { box-sizing: border-box; }
.psp-modal[dir="rtl"] { font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif; word-spacing: .06em; }
.psp-modal-box {
    position: relative; display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: min(86vh, 760px);
    overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(8, 17, 28, .38);
    animation: psp-pop .22s cubic-bezier(.2, .8, .2, 1);
}
.psp-modal-box::before { content: ""; flex: none; height: 6px; background: linear-gradient(90deg, #16b8a7, #0f766e 60%, #0c1e2c); }
.psp-modal-head { flex: none; padding: 22px 28px 14px; padding-inline-end: 72px; border-bottom: 1px solid var(--psp-line); }
.psp-modal-title { margin: 0; padding: 0; color: var(--psp-ink); font-size: 22px; font-weight: 900; line-height: 1.7; }
.psp-modal-meta { margin: 2px 0 0; color: var(--psp-muted); font-size: 13px; line-height: 1.8; }
.psp-modal-body { flex: 1; min-height: 0; padding: 20px 28px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; color: #344054; font-size: 15.5px; line-height: 2.1; }
.psp-modal-body p { margin: 0 0 14px; }
.psp-modal-foot { flex: none; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 28px 22px; }
.psp-modal-link, .psp-modal-done {
    display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 20px; border-radius: 999px;
    font: inherit; font-size: 14px; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.psp-modal-link { background: var(--psp-teal-dark); color: #fff; }
.psp-modal-link:hover { background: #0b5f58; color: #fff; }
.psp-modal-done { background: #fff; color: var(--psp-ink); border-color: #d0d5dd; }
.psp-modal-done:hover { background: #f2f4f7; }
.psp-modal-close {
    position: absolute; top: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f7; color: var(--psp-ink);
    font: 400 26px/1 Arial, sans-serif; cursor: pointer; transition: background .15s, transform .15s;
    -webkit-appearance: none; appearance: none;
}
.psp-modal-close:hover { background: #e4e7ec; transform: rotate(90deg); }
.psp-modal-link:focus-visible, .psp-modal-done:focus-visible, .psp-modal-close:focus-visible { outline: 3px solid rgba(22, 184, 167, .5); outline-offset: 2px; }
@keyframes psp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes psp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
    .psp-modal { align-items: flex-end; padding: 0; }
    .psp-modal-box { max-width: none; max-height: 90vh; border-radius: 24px 24px 0 0; animation: psp-sheet .26s cubic-bezier(.2, .8, .2, 1); }
    .psp-modal-head { padding: 18px 20px 12px; padding-inline-end: 64px; }
    .psp-modal-title { font-size: 19px; }
    .psp-modal-body { padding: 16px 20px 6px; }
    .psp-modal-foot { padding: 12px 20px 20px; }
    .psp-modal-foot > * { flex: 1; }
    @keyframes psp-sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
    .psp-modal, .psp-modal-box { animation: none; }
    .psp-modal-close { transition: none; }
}
