/* =========================================================
   نخبگان نجف‌آباد — استایل اصلی
   تم: پسته‌ای / کرم / پریمیوم — ترند طراحی 2026
========================================================= */

:root{
  /* پالت پسته‌ای */
  --pistachio-50:  #f5f8f0;
  --pistachio-100: #e8f0dc;
  --pistachio-200: #d3e3bd;
  --pistachio-300: #b7cf9e;
  --pistachio-400: #9ec27f;
  --pistachio-500: #7fae62;
  --pistachio-600: #64934a;
  --pistachio-700: #4f7a3a;
  --pistachio-800: #3f6130;
  --pistachio-900: #354f2a;

  --cream: #fbf9f3;
  --cream-dark: #f3efe2;
  --sand: #e9dfc5;
  --ink: #263124;
  --ink-soft: #566151;
  --ink-faint: #8b9484;
  --white: #ffffff;

  --accent-gold: #c9a86a;
  --accent-terracotta: #c98a5f;
  --danger: #c65b4e;
  --success: #4f9d5e;
  --info: #4a8ca8;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(60, 74, 46, .06);
  --shadow-md: 0 8px 24px rgba(60, 74, 46, .10);
  --shadow-lg: 0 20px 50px rgba(60, 74, 46, .14);
  --shadow-glow: 0 0 0 1px rgba(127,174,98,.14), 0 20px 45px rgba(127,174,98,.18);

  --font: 'Vazirmatn', 'IRANSans', Tahoma, Arial, sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(circle at 12% 8%, rgba(127,174,98,.10), transparent 45%),
    radial-gradient(circle at 92% 4%, rgba(201,168,106,.12), transparent 40%),
    var(--cream);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a{ text-decoration:none; color:inherit; }
ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

.container{ max-width:1240px; margin:0 auto; padding:0 24px; }

/* ---------- عناصر پس‌زمینه تزئینی ---------- */
.bg-blob{
  position:absolute; border-radius:50%; filter: blur(60px); z-index:0; opacity:.55;
  background: radial-gradient(circle, var(--pistachio-300), transparent 70%);
}

/* ---------- هدر / ناوبری ---------- */
.site-header{
  position: sticky; top:0; z-index:100;
  background: rgba(251,249,243,.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(127,174,98,.16);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 24px; max-width:1240px; margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; color: var(--pistachio-800); }
.brand-mark{
  width:38px; height:38px; border-radius:12px;
  background: linear-gradient(135deg, var(--pistachio-400), var(--pistachio-600));
  display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px;
  box-shadow: var(--shadow-sm);
}
.brand small{ display:block; font-weight:400; font-size:11px; color: var(--ink-faint); }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  padding:9px 16px; border-radius:999px; font-size:14.5px; font-weight:600; color: var(--ink-soft);
  transition:.2s;
}
.nav-links a:hover, .nav-links a.active{ background: var(--pistachio-100); color: var(--pistachio-800); }

.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; background:none; border:none; font-size:24px; color:var(--pistachio-700); }

/* ---------- دکمه‌ها ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 22px; border-radius: 999px; font-weight:700; font-size:14.5px;
  border:1px solid transparent; transition:.22s ease; white-space:nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--pistachio-500), var(--pistachio-700));
  color:#fff; box-shadow: 0 10px 25px rgba(100,147,74,.35);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 32px rgba(100,147,74,.42); }
.btn-outline{ border-color: var(--pistachio-400); color: var(--pistachio-700); background: rgba(255,255,255,.5); }
.btn-outline:hover{ background: var(--pistachio-100); }
.btn-gold{ background: linear-gradient(135deg, var(--accent-gold), #b08e4f); color:#fff; box-shadow:0 10px 22px rgba(201,168,106,.35); }
.btn-ghost{ color: var(--ink-soft); background: transparent; }
.btn-ghost:hover{ background: rgba(0,0,0,.04); }
.btn-sm{ padding:7px 14px; font-size:13px; }
.btn-block{ width:100%; }
.btn-danger{ background: linear-gradient(135deg,#d4756a,var(--danger)); color:#fff; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- هیرو ---------- */
.hero{ position:relative; overflow:hidden; padding: 88px 0 64px; }
.hero .blob1{ width:420px; height:420px; top:-140px; right:-100px; }
.hero .blob2{ width:340px; height:340px; bottom:-120px; left:-80px; background: radial-gradient(circle, var(--accent-gold), transparent 70%); opacity:.28;}
.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns: 1.1fr .9fr; gap:48px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:999px;
  background: var(--pistachio-100); color: var(--pistachio-800); font-size:13px; font-weight:700; margin-bottom:20px;
}
.eyebrow .dot{ width:7px; height:7px; border-radius:50%; background: var(--pistachio-600); }
.hero h1{ font-size: 46px; line-height:1.35; font-weight:800; margin:0 0 18px; color: var(--ink); }
.hero h1 span{
  background: linear-gradient(135deg, var(--pistachio-600), var(--pistachio-800));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{ font-size:17px; color: var(--ink-soft); max-width:560px; margin-bottom:30px; }
.hero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:38px; }
.hero-stats{ display:flex; gap:34px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-size:28px; font-weight:800; color: var(--pistachio-800); }
.hero-stat span{ font-size:13px; color: var(--ink-faint); }

.hero-visual{
  position:relative; border-radius: var(--radius-xl); padding: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,.75), rgba(255,255,255,.35));
  border:1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-visual .mini-card{
  background:#fff; border-radius: var(--radius-md); padding:16px 18px; box-shadow: var(--shadow-md);
  display:flex; align-items:center; gap:12px; margin-bottom:14px;
}
.hero-visual .mini-card:nth-child(2){ margin-right:36px; }
.hero-visual .mini-card:last-child{ margin-bottom:0; margin-right:70px;}
.mini-avatar{
  width:44px; height:44px; border-radius:12px; flex:none;
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700;
}
.mini-card h4{ margin:0 0 3px; font-size:14.5px; }
.mini-card p{ margin:0; font-size:12.5px; color:var(--ink-faint); }
.mini-tag{ margin-right:auto; font-size:11px; background:var(--pistachio-100); color:var(--pistachio-800); padding:4px 10px; border-radius:999px; font-weight:700; }

/* ---------- بخش‌های عمومی ---------- */
.section{ padding: 68px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 46px; }
.section-head .eyebrow{ margin-bottom:14px; }
.section-head h2{ font-size:32px; font-weight:800; margin:0 0 12px; }
.section-head p{ color: var(--ink-soft); font-size:15.5px; }
.section-alt{ background: linear-gradient(180deg, var(--pistachio-50), var(--cream)); }

.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:24px; }

.feature-card{
  background: #fff; border-radius: var(--radius-lg); padding:28px 24px;
  box-shadow: var(--shadow-sm); border:1px solid rgba(127,174,98,.10); transition:.25s;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(127,174,98,.25); }
.feature-icon{
  width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--pistachio-200), var(--pistachio-400)); color:var(--pistachio-900);
  font-size:22px; margin-bottom:16px;
}
.feature-card h3{ font-size:17px; margin:0 0 8px; }
.feature-card p{ font-size:14px; color: var(--ink-soft); margin:0; }

/* ---------- کارت‌های نخبه/شرکت ---------- */
.person-card{
  background:#fff; border-radius: var(--radius-lg); padding:22px; box-shadow: var(--shadow-sm);
  border:1px solid rgba(127,174,98,.10); transition:.25s; display:flex; flex-direction:column; height:100%;
}
.person-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.person-top{ display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.avatar{
  width:56px; height:56px; border-radius:16px; flex:none; color:#fff; font-weight:800; font-size:18px;
  display:flex; align-items:center; justify-content:center;
}
.avatar-sq{ border-radius:14px; }
.person-top h3{ margin:0 0 3px; font-size:16px; }
.person-top .muted{ font-size:12.5px; color: var(--ink-faint); }
.chip-row{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 14px; }
.chip{ background: var(--pistachio-50); border:1px solid var(--pistachio-200); color: var(--pistachio-800); font-size:11.5px; padding:5px 11px; border-radius:999px; font-weight:600; }
.person-desc{ font-size:13.5px; color: var(--ink-soft); margin-bottom:16px; flex:1; }
.person-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:14px; border-top:1px dashed var(--pistachio-200); }

/* ---------- فرم‌ها ---------- */
.auth-wrap{ max-width:460px; margin:60px auto; position:relative; z-index:1;}
.card{
  background:#fff; border-radius: var(--radius-lg); padding:34px; box-shadow: var(--shadow-md);
  border:1px solid rgba(127,174,98,.10);
}
.card-wide{ max-width:760px; margin:50px auto; }
.form-title{ text-align:center; margin-bottom:6px; font-size:23px; font-weight:800; }
.form-sub{ text-align:center; color: var(--ink-faint); font-size:13.5px; margin-bottom:28px; }

.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:13.5px; font-weight:700; margin-bottom:7px; color: var(--ink); }
.form-group .hint{ font-size:11.5px; color: var(--ink-faint); margin-top:5px; display:block; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=file], select, textarea{
  width:100%; padding: 12px 14px; border-radius: var(--radius-sm); border:1.5px solid var(--pistachio-200);
  background: var(--pistachio-50); font-family: inherit; font-size:14px; color: var(--ink); transition:.2s;
}
input:focus, select:focus, textarea:focus{
  outline:none; border-color: var(--pistachio-500); background:#fff; box-shadow: 0 0 0 4px rgba(127,174,98,.14);
}
textarea{ resize:vertical; min-height:110px; }
select{ cursor:pointer; }

.role-picker{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:10px; }
.role-card{
  border:2px solid var(--pistachio-200); border-radius: var(--radius-md); padding:22px 16px; text-align:center;
  cursor:pointer; transition:.2s; background: var(--pistachio-50);
}
.role-card:hover{ border-color: var(--pistachio-400); }
.role-card .r-icon{ font-size:30px; margin-bottom:10px; }
.role-card h4{ margin:0 0 4px; font-size:15px; }
.role-card p{ margin:0; font-size:12px; color: var(--ink-faint); }

/* ---------- بج / تگ وضعیت ---------- */
.badge{ display:inline-block; padding:4px 12px; border-radius:999px; font-size:11.5px; font-weight:700; }
.badge-pending{ background:#fdf2e0; color:#a5701a; }
.badge-approved{ background:#e7f5e6; color:#2e7d32; }
.badge-rejected{ background:#fbe9e7; color:#c62828; }
.badge-info{ background:#e3f1f8; color:#256a89; }

/* ---------- فوتر ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.75); padding: 54px 0 26px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:32px; margin-bottom:34px; }
.site-footer h4{ color:#fff; font-size:15px; margin:0 0 16px; }
.site-footer a{ display:block; padding:5px 0; font-size:13.5px; color: rgba(255,255,255,.65); transition:.2s; }
.site-footer a:hover{ color: var(--pistachio-300); }
.footer-bottom{ text-align:center; font-size:12.5px; border-top:1px solid rgba(255,255,255,.1); padding-top:22px; color: rgba(255,255,255,.45); }
.footer-brand{ display:flex; align-items:center; gap:10px; margin-bottom:14px; color:#fff; font-weight:800; }

/* ---------- تب و فیلتر ---------- */
.filter-bar{
  background:#fff; border-radius: var(--radius-lg); padding:20px; box-shadow: var(--shadow-sm); margin-bottom:30px;
  display:grid; grid-template-columns: 2fr 1fr 1fr auto; gap:12px; align-items:end;
}
.filter-bar .form-group{ margin:0; }

.pagination{ display:flex; justify-content:center; gap:8px; margin-top:36px; }
.pagination a, .pagination span{
  width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--pistachio-200); font-size:13.5px; font-weight:700; color: var(--ink-soft);
}
.pagination a:hover{ background: var(--pistachio-100); }
.pagination .active{ background: var(--pistachio-600); color:#fff; border-color: var(--pistachio-600); }

/* ---------- الرت‌ها ---------- */
.alert{ padding:14px 18px; border-radius: var(--radius-sm); font-size:14px; margin-bottom:20px; display:flex; align-items:center; gap:10px; }
.alert-success{ background:#e7f5e6; color:#2e7d32; }
.alert-error{ background:#fbe9e7; color:#c62828; }
.alert-info{ background:#e3f1f8; color:#256a89; }

/* ---------- صفحه پروفایل عمومی ---------- */
.profile-hero{ background: linear-gradient(135deg, var(--pistachio-600), var(--pistachio-800)); border-radius: var(--radius-xl); padding:40px; color:#fff; position:relative; overflow:hidden; margin-bottom:-60px; }
.profile-card{ background:#fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding:34px; position:relative; z-index:2; margin: 0 20px; }
.profile-top{ display:flex; gap:20px; align-items:center; margin-bottom:20px; }
.profile-avatar{ width:96px; height:96px; border-radius:24px; color:#fff; font-size:32px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-md); flex:none; border:4px solid #fff; }

/* ---------- استاتیک اسکرول‌بار / یوتیلیتی ---------- */
.text-center{ text-align:center; }
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.flex{ display:flex; } .items-center{ align-items:center; } .justify-between{justify-content:space-between;} .gap-8{gap:8px;} .gap-12{gap:12px;}
.muted{ color: var(--ink-faint); }
.w-full{ width:100%; }
.divider{ height:1px; background: var(--pistachio-100); margin: 22px 0; }

/* ---------- انیمیشن ---------- */
@keyframes fadeUp{ from{ opacity:0; transform: translateY(16px);} to{opacity:1; transform:none;} }
.fade-up{ animation: fadeUp .6s ease both; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .filter-bar{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 680px){
  .nav-links{ position:fixed; inset: 66px 0 0 0; background: var(--cream); flex-direction:column; align-items:stretch;
    padding:20px; transform: translateY(-120%); transition:.3s; z-index:90; }
  .nav-links.open{ transform: translateY(0); }
  .nav-toggle{ display:block; }
  .hero h1{ font-size:32px; }
  .grid-3, .grid-4, .grid-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns:1fr; }
  .filter-bar{ grid-template-columns:1fr; }
  .role-picker{ grid-template-columns:1fr; }
  .profile-top{ flex-direction:column; text-align:center; }
}
