@font-face {
  font-family: "KoodakIR";
  src: url("../fonts/IRANSans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --navy: #102a43;
  --cyan: #25c2dc;
  --green: #26df73;
  --pink: #ff5792;
  --amber: #ffbd43;
  --ink: #183247;
  --muted: #657b8c;
  --line: #dceaf2;
  --surface: #fff;
  --bg: #f5f9fc;
  --shadow: 0 18px 50px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: KoodakIR, Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.9;
  background:
    radial-gradient(circle at 100% 0, rgba(38,223,115,.12), transparent 28rem),
    radial-gradient(circle at 0 14%, rgba(37,194,220,.13), transparent 30rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.public-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.public-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220,234,242,.86);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}
.public-header__inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 24px;
}
.public-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); }
.public-brand img { width: 66px; height: 50px; object-fit: contain; }
.public-nav { display: flex; gap: 24px; margin-right: auto; }
.public-nav a { color: #415c70; }
.public-nav a:hover { color: #087eab; }
.public-auth { display: flex; gap: 8px; }
.public-button {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyan);
  border-radius: 12px;
  color: #062f3a;
  background: var(--cyan);
  font-weight: 700;
}
.public-button--ghost { color: #087eab; background: transparent; }
.public-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 60px;
}
.public-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -150px;
  top: -210px;
  border: 78px solid rgba(255,87,146,.08);
  border-radius: 50%;
}
.public-hero__inner { position: relative; z-index: 1; text-align: center; }
.public-hero__eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: #087eab;
  background: rgba(37,194,220,.12);
  font-size: 12px;
  font-weight: 800;
}
.public-hero h1 { margin: 18px 0 10px; color: var(--navy); font-size: clamp(28px, 5vw, 48px); line-height: 1.35; }
.public-hero p { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 16px; }
.public-search {
  display: flex;
  max-width: 700px;
  margin: 28px auto 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.public-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}
.public-search button {
  padding: 9px 22px;
  border: 0;
  border-radius: 12px;
  color: #063640;
  background: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.filter-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 20px 0 38px; }
.filter-tabs a { padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; }
.filter-tabs a.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 72px; }
.public-member {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(16,42,67,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.public-member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.public-member::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 6px;
  top: 0;
  right: 22px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--pink));
}
.public-member__photo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 8px auto 16px;
  object-fit: cover;
  border: 5px solid #eef7fa;
  border-radius: 32px;
}
.public-member h2 { margin: 0; text-align: center; color: var(--navy); font-size: 17px; }
.public-member__role { min-height: 48px; margin: 6px 0 12px; color: var(--muted); text-align: center; font-size: 12px; }
.public-member__about { min-height: 75px; color: #486276; font-size: 12px; }
.public-member__link { display: block; padding-top: 12px; border-top: 1px solid var(--line); color: #087eab; text-align: center; font-weight: 800; }
.public-empty { padding: 55px 20px; border: 1px dashed #b9cfdb; border-radius: 24px; text-align: center; background: #fff; }
.profile-hero { padding: 50px 0 32px; }
.profile-hero__card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  padding: 34px;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,87,146,.25), transparent 14rem),
    linear-gradient(135deg, var(--navy), #0a738c);
  box-shadow: 0 26px 70px rgba(16,42,67,.20);
}
.profile-hero__photo { width: 180px; height: 180px; object-fit: cover; border: 7px solid rgba(255,255,255,.85); border-radius: 48px; }
.profile-hero h1 { margin: 10px 0 8px; font-size: 32px; }
.profile-hero p { margin: 0; color: rgba(255,255,255,.78); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile-tag { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 12px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; padding-bottom: 72px; }
.profile-section { margin-bottom: 20px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(16,42,67,.05); }
.profile-section h2 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.profile-section p { margin: 0; color: #456076; }
.profile-sidebar { align-self: start; position: sticky; top: 98px; }
.profile-links { display: flex; flex-direction: column; gap: 8px; }
.profile-links a { padding: 10px 13px; border-radius: 11px; color: #087eab; background: #edf8fb; overflow-wrap: anywhere; }
.privacy-note { padding: 15px; border-radius: 14px; color: #39576d; background: #f0f6f9; font-size: 12px; }
.public-footer { color: #dcebf2; background: var(--navy); }
.public-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; padding: 45px 0; }
.public-footer strong { display: block; margin-bottom: 12px; color: #fff; }
.public-footer p { max-width: 420px; color: #adc3d0; }
.public-footer a { display: block; margin: 5px 0; color: #adc3d0; }
.public-footer__bottom { padding: 14px; border-top: 1px solid rgba(255,255,255,.08); color: #829dac; text-align: center; font-size: 11px; }

@media (max-width: 980px) {
  .public-nav { display: none; }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
}
@media (max-width: 700px) {
  .public-shell { width: min(100% - 20px, 1180px); }
  .public-header__inner { min-height: 66px; gap: 10px; }
  .public-brand span { display: none; }
  .public-brand img { width: 52px; }
  .public-button { min-height: 36px; padding: 6px 11px; font-size: 11px; }
  .public-hero { padding: 45px 0 35px; }
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .public-member { padding: 15px; border-radius: 18px; }
  .public-member__photo { width: 86px; height: 86px; border-radius: 24px; }
  .profile-hero__card { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .profile-hero__photo { width: 140px; height: 140px; margin: auto; }
  .profile-tags { justify-content: center; }
  .public-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .member-grid { grid-template-columns: 1fr; }
  .public-member__about { min-height: 0; }
}

