
.public-profile-page{margin:0;min-height:100vh;background:linear-gradient(180deg,#edf4f8 0%,#f8fbfd 45%,#ffffff 100%);color:#17324f;font-family:Vazirmatn,Arial,sans-serif}
.public-profile-topbar{max-width:1240px;margin:0 auto;padding:22px 20px 8px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.back-link,.docmaker-mark{text-decoration:none;color:#1f4f88;font-weight:800;display:inline-flex;align-items:center;gap:10px}
.docmaker-mark img{width:42px;height:42px;object-fit:contain}
.public-profile-shell{max-width:1240px;margin:0 auto;padding:16px 20px 48px}
.public-profile-hero{display:grid;grid-template-columns:140px minmax(0,1fr) minmax(260px,320px);gap:24px;align-items:start;padding:28px;border-radius:28px;background:rgba(255,255,255,.88);box-shadow:0 22px 60px rgba(19,43,69,.09);backdrop-filter:blur(10px)}
.hero-avatar{width:140px;height:140px;border-radius:28px;background:#f3f7fa;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(38,87,164,.08)}
.hero-avatar img{width:100%;height:100%;object-fit:cover}
.hero-copy h1{margin:.2rem 0 .55rem;font-size:clamp(1.6rem,2.5vw,2.5rem);line-height:1.15}
.hero-copy p{margin:0;color:#5f7185;line-height:1.95}
.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#e9f1ff;color:#1f4f88;font-weight:800}
.hero-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.hero-chips a,.hero-chips span{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:#f4f8fc;color:#36516f;text-decoration:none;max-width:100%}
.hero-chips span span,.hero-chips a span{min-width:0;overflow-wrap:anywhere}
.hero-stats{display:grid;gap:12px}
.hero-stats article{padding:18px;border-radius:22px;background:linear-gradient(180deg,#eff5fb 0%,#ffffff 100%);box-shadow:inset 0 0 0 1px rgba(29,78,216,.08)}
.hero-stats strong{display:block;font-size:1.1rem;color:#163b67}
.hero-stats span{display:block;margin-top:6px;color:#6c7f93;font-size:.94rem}
.public-profile-documents{margin-top:24px;padding:24px;border-radius:28px;background:#fff;box-shadow:0 20px 56px rgba(19,43,69,.08)}
.section-heading h2{margin:0 0 8px;font-size:1.4rem}.section-heading p{margin:0;color:#6c7f93}
.profile-samples-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px;margin-top:18px}
.profile-sample-card{display:flex;flex-direction:column;border:1px solid #e2ebf2;border-radius:22px;overflow:hidden;background:#fbfdff}
.profile-sample-media{position:relative;display:block;aspect-ratio:1.25/1;background:#f1f6fb;text-decoration:none}
.profile-sample-media img{width:100%;height:100%;object-fit:cover}
.profile-sample-media > span.profile-sample-badge{position:absolute;top:14px;right:14px;padding:7px 11px;border-radius:999px;background:rgba(20,43,67,.8);color:#fff;font-size:.78rem;font-weight:800}
.profile-sample-body{padding:16px}
.profile-sample-title{display:block;text-decoration:none;color:#18314d;font-size:1.02rem;font-weight:900;margin-bottom:8px}
.profile-sample-body p{margin:0;color:#687b8f;line-height:1.8;min-height:52px}
.profile-sample-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.profile-sample-links a{text-decoration:none;color:#1f4f88;background:#eef4fb;padding:9px 12px;border-radius:12px;font-weight:700;display:inline-flex;align-items:center;gap:8px}.profile-sample-links a span{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.profile-sample-links a strong{font-weight:900;color:#173f70}
.public-empty-box{margin-top:18px;padding:24px;border:1px dashed #cbd8e6;border-radius:22px;text-align:center;color:#6d7f92;background:#f8fbfe}
.public-empty-box i{font-size:1.9rem;color:#89a1bd;margin-bottom:12px}
@media (max-width:960px){.public-profile-hero{grid-template-columns:1fr}.hero-avatar{width:120px;height:120px}.hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.public-profile-topbar{padding:18px 14px 8px;flex-direction:column;align-items:stretch}.public-profile-shell{padding:14px 14px 34px}.public-profile-hero,.public-profile-documents{padding:18px;border-radius:22px}.hero-stats{grid-template-columns:1fr}.hero-chips a,.hero-chips span{width:100%}}

/* v8.8.8 private profile cards */
.hero-stats .highlight-private { background:linear-gradient(135deg,#fff7ed,#ffedd5); border-color:#fdba74; }
.private-documents-showcase .section-heading h2 { color:#c2410c; }
.private-grid .private-card { border:1px solid #fdba74; background:linear-gradient(180deg,#fffaf5,#fff7ed); box-shadow:0 10px 22px rgba(194,65,12,.08); }
.private-grid .private-card .profile-sample-media span { background:#ea580c; }
.private-grid .private-card .profile-sample-title { color:#9a3412; }


/* v8.9.4 — missing previews are informative text, never a fake stock image. */
.profile-sample-media > .profile-sample-badge{position:absolute;top:14px;right:14px;z-index:3;padding:7px 11px;border-radius:999px;background:rgba(20,43,67,.82);color:#fff;font-size:.78rem;font-weight:800}
.profile-sample-media > .profile-preview-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:30px 22px;text-align:center;background:linear-gradient(145deg,#edf4fb,#fff);color:#1f4f88}
.profile-preview-placeholder i{font-size:2rem}.profile-preview-placeholder strong{font-size:1rem}.profile-preview-placeholder small{max-width:260px;color:#6c7f93;line-height:1.8;font-weight:600}
.profile-sample-media.is-missing-preview{min-height:250px}.profile-sample-media.has-ready-preview img{display:block}

/* 8.9.8 — mother-document language picker and Persian typography. */
html[lang="fa"] body,
html[lang="fa"] input,
html[lang="fa"] textarea,
html[lang="fa"] select,
html[lang="fa"] button {
  font-feature-settings: "ss01" 1;
  -webkit-font-feature-settings: "ss01" 1;
}
.hero-avatar.is-fallback{color:#2657a4;background:linear-gradient(145deg,#eef4fb,#f8fbff)}
.hero-avatar.is-fallback i{font-size:3rem}
.profile-document-languages{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid #e6edf4}
.profile-language-flag{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:6px 9px;border:1px solid #d8e2ee;border-radius:10px;background:#fff;color:#34506f;text-decoration:none;font-size:.76rem;font-weight:800;transition:.18s ease}
.profile-language-flag img{width:24px;height:17px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(15,23,42,.08)}
.profile-language-flag:hover{transform:translateY(-1px);border-color:#8daed3;background:#f5f9ff}
.profile-language-flag.active{border-color:#2657a4;background:#edf4ff;color:#173f70;box-shadow:0 0 0 3px rgba(38,87,164,.08)}

/* 8.9.11 — public profiles inherit the DocMaker blue/teal identity. */
.public-profile-page{background:radial-gradient(circle at 8% 0%,rgba(38,87,164,.16),transparent 30%),radial-gradient(circle at 92% 100%,rgba(35,111,105,.16),transparent 34%),linear-gradient(180deg,#eaf2f8 0%,#f7fbfa 48%,#fff 100%)}
.public-profile-topbar{position:relative}.public-profile-topbar::before{content:"";position:fixed;z-index:-1;inset:0 0 auto;height:150px;background:linear-gradient(110deg,#173b69 0%,#2657a4 58%,#236f69 100%);clip-path:ellipse(78% 78% at 50% 0%)}
.public-profile-topbar .back-link,.public-profile-topbar .docmaker-mark{border-color:rgba(255,255,255,.28);color:#fff;background:rgba(255,255,255,.12);backdrop-filter:blur(10px)}
.public-profile-hero{position:relative;overflow:hidden;border:1px solid rgba(38,87,164,.13)}.public-profile-hero::after{content:"";position:absolute;inset-inline:0;top:0;height:4px;background:linear-gradient(90deg,#173b69,#2657a4,#236f69)}
.public-profile-documents{border:1px solid rgba(38,87,164,.11)}
.profile-created-by{display:inline-flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap;font-size:10px!important;line-height:1.55}.profile-created-by small{font-size:9px!important;color:#55708a}.profile-created-by strong{font-size:10px!important;font-weight:850!important;color:#173f70!important}
.profile-sample-links a{padding:7px 10px!important;font-size:10px!important}.profile-sample-links a>i{font-size:11px}

/* DocMaker 8.9.15 — public profile dark theme. */
.public-theme-toggle{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid rgba(255,255,255,.3);border-radius:12px;color:#fff;background:rgba(255,255,255,.12);cursor:pointer}.public-theme-toggle .theme-toggle-label{font-size:12px;font-weight:850}
[data-theme="dark"] .public-theme-toggle{color:#fde68a;border-color:rgba(251,191,36,.38);background:rgba(251,191,36,.11)}[data-theme="dark"] .public-theme-toggle i{color:#fbbf24;filter:drop-shadow(0 0 6px rgba(251,191,36,.35))}
[data-theme="dark"] .public-profile-page{color:#e8eef6;background:radial-gradient(circle at 8% 0%,rgba(38,87,164,.22),transparent 30%),radial-gradient(circle at 92% 100%,rgba(35,111,105,.20),transparent 34%),linear-gradient(180deg,#08111f 0%,#0b1320 48%,#0b1120 100%)}
[data-theme="dark"] :is(.public-profile-hero,.public-profile-documents){border-color:#26364a;background:#111827;box-shadow:0 20px 50px rgba(0,0,0,.24);backdrop-filter:none}
[data-theme="dark"] :is(.hero-copy h1,.section-heading h2,.profile-sample-title){color:#f8fafc}
[data-theme="dark"] :is(.hero-copy p,.section-heading p,.profile-sample-body p,.hero-stats span){color:#aab8c8}
[data-theme="dark"] .hero-chips :is(a,span),[data-theme="dark"] .hero-stats article,[data-theme="dark"] .profile-sample-card,[data-theme="dark"] .public-empty-box{color:#dce6f0;border-color:#2a394d;background:#172235}
[data-theme="dark"] .profile-sample-media{background:#101b2b}[data-theme="dark"] .profile-sample-links a,[data-theme="dark"] .profile-language-flag{color:#cfe1f4;border-color:#33465d;background:#17283d}
[data-theme="dark"] .profile-preview-placeholder{color:#bcd1e6!important;background:linear-gradient(145deg,#111c2b,#17283b)!important}
@media(max-width:640px){.public-profile-topbar{display:grid;grid-template-columns:1fr auto;align-items:center}.public-profile-topbar .back-link{grid-column:1/-1}.public-theme-toggle .theme-toggle-label{display:none}.public-theme-toggle{width:42px;padding:0}}
