/* ============================================================
   مناظره — سیستم طراحی نسخه‌ی مینیمال روشن
   پالت: کاغذی گرم | مونوکروم + سبز/قرمز معنایی
   ============================================================ */

:root {
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-2: #faf8f2;
  --line: #e9e5d8;
  --line-strong: #d9d4c4;
  --ink: #1e1b14;
  --text: #1e1b14;
  --muted: #6f6d62;
  --faint: #a3a193;

  --accent: #d99613;
  --accent-ink: #7a5604;
  --accent-bg: rgba(217, 150, 19, 0.13);

  --pro: #0e9f6e;
  --pro-ink: #0b7a56;
  --pro-bg: #ecf8f2;
  --con: #e5484d;
  --con-ink: #b32a2e;
  --con-bg: #fdf0f0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30,27,20,.04), 0 4px 16px rgba(30,27,20,.05);
  --shadow-lift: 0 2px 4px rgba(30,27,20,.05), 0 12px 32px rgba(30,27,20,.09);
  --font: 'Vazirmatn', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  /* دانه‌ی کاغذی ظریف — تولیدشده با SVG، بدون تصویر خارجی */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #1e1b14; color: #fff; }

button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); }
a { color: inherit; }

.hidden { display: none !important; }

.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.icon-lg { width: 26px; height: 26px; }

/* ---------- اسکرول‌بار ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d2cdba; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #bdb8a2; }

/* ---------- تزئینات: خط‌خچ و دودل ---------- */
.squiggle-h { padding-bottom: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='12' viewBox='0 0 150 12'%3E%3Cpath d='M3 9 C 28 3, 48 11, 74 7 S 122 3, 147 8' fill='none' stroke='%23d99613' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom center; background-size: 150px 12px; }

.doodle {
  position: absolute; color: rgba(30,27,20,.28);
  animation: wobble 7s ease-in-out infinite; pointer-events: none;
}
.doodle-star { width: 44px; height: 44px; top: 12%; right: 4%; }
.doodle-arrow { width: 64px; height: 44px; bottom: 14%; left: 3%; animation-delay: -3s; }
@keyframes wobble { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-9px) rotate(7deg); } }
@media (max-width: 860px) { .doodle { display: none; } }

/* ============================================================
   ۱) انیمیشن ورودی — مینیمال
   ============================================================ */
#intro {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.intro-brand {
  display: flex; gap: 4px;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 900; letter-spacing: -1px;
}
.intro-brand span { opacity: 0; transform: translateY(24px); display: inline-block; }
.intro-tag {
  color: var(--muted); font-size: .92rem;
  opacity: 0; transform: translateY(10px);
}
.intro-line { width: 120px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; }
.intro-line i { display: block; height: 100%; width: 0; background: #1e1b14; }

/* ============================================================
   ناوبری
   ============================================================ */
.nav {
  position: fixed; top: 0; right: 0; left: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 44px);
  background: rgba(247, 246, 243, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: none;
}
/* خوشه‌ی راست‌چین: برند + لینک‌ها کنار هم از سمت راست */
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.12rem; text-decoration: none; color: var(--text); }
.nav-logo .mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: #1e1b14; color: #fff;
}
.nav-logo .mark svg { width: 17px; height: 17px; }
.nav-divider { width: 1px; height: 22px; background: var(--line-strong); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 9px; font-size: .87rem;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .2s, background .2s;
}
.nav-links a svg { width: 15px; height: 15px; }
.nav-links a:hover { color: var(--text); background: rgba(25,25,25,.05); }
.nav-links a.active { color: var(--text); background: rgba(25,25,25,.07); font-weight: 700; }
/* CTA پنل مدیریت — مشخص و جدا از لینک‌های معمولی */
.nav-links a.nav-admin {
  background: #1e1b14; color: #fff; border: 1px solid #1e1b14;
  margin-inline-start: 8px; font-weight: 700;
}
.nav-links a.nav-admin:hover { background: #3a3a3a; border-color: #3a3a3a; }
.nav-links a.nav-ghost { border: 1px solid var(--line-strong); color: var(--text); margin-inline-start: 8px; }
.nav-links a.nav-ghost:hover { background: rgba(25,25,25,.05); }
@media (max-width: 860px) { .nav-divider { display: none; } }
@media (max-width: 720px) { .nav-links a:not(.nav-admin):not(.nav-ghost) { display: none; } }

/* ============================================================
   ۲) هیرو — سؤال + دو ستون چپ/راست
   ============================================================ */
#hero { padding: clamp(96px, 14vh, 140px) clamp(16px, 4vw, 44px) clamp(40px, 7vh, 72px); }
.hero-inner { max-width: 1120px; margin: 0 auto; }

.hero-kicker {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 18px;
}
.kicker-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 100px;
  padding: 5px 14px; background: var(--surface);
}
.kicker-chip--live { background: #1e1b14; color: #fff; border-color: #1e1b14; }
.kicker-chip--accent { background: var(--accent-bg); border-color: rgba(217,150,19,.4); color: var(--accent-ink); transform: rotate(-1.5deg); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pro); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-question {
  text-align: center;
  font-size: clamp(1.5rem, 4.4vw, 2.7rem);
  font-weight: 900; line-height: 1.55; letter-spacing: -.5px;
  max-width: 800px; margin: 0 auto 14px;
  /* خط‌خچ دستی زیر سؤال */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='14' viewBox='0 0 220 14'%3E%3Cpath d='M4 10 C 40 3, 75 13, 110 8 S 178 3, 216 9' fill='none' stroke='%23d99613' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 220px 14px; padding-bottom: 20px;
}
.hero-desc {
  text-align: center; color: var(--muted);
  max-width: 620px; margin: 0 auto clamp(32px, 5vh, 48px);
  font-size: .98rem;
}

/* گرید دو طرفه — موافق راست، مخالف چپ (در RTL ترتیب اول = راست) */
.vs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.5vw, 24px);
  align-items: stretch;
}
@media (max-width: 820px) { .vs-grid { grid-template-columns: 1fr; } }

.side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.side-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.side-card--pro { border-top: 3px solid var(--pro); }
.side-card--con { border-top: 3px solid var(--con); }

.side-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.side-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
}
.side-card--pro .side-icon { background: var(--pro-bg); color: var(--pro-ink); }
.side-card--con .side-icon { background: var(--con-bg); color: var(--con-ink); }
.side-title { flex: 1; }
.side-title h2 { font-size: 1.12rem; font-weight: 800; }
.side-title span { font-size: .78rem; color: var(--muted); }
.side-votes {
  font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 5px;
}
.side-card--pro .side-votes { color: var(--pro-ink); }
.side-card--con .side-votes { color: var(--con-ink); }
.side-votes small { font-size: .7rem; font-weight: 500; color: var(--faint); }

.side-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; flex: 1; }
.opinion {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
a.opinion:hover { border-color: var(--line-strong); background: var(--surface); }
.opinion-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  color: #fff; font-size: .8rem; font-weight: 700;
}
.opinion-body { min-width: 0; }
.opinion-body b { font-size: .85rem; display: block; }
.opinion-body .opinion-role { font-size: .72rem; color: var(--muted); display: block; margin-bottom: 3px; }
.opinion-body p { font-size: .82rem; color: var(--muted); line-height: 1.75; }

.vote-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 12px;
  font-size: .95rem; font-weight: 800;
  border: 2px solid #1e1b14;
  box-shadow: 4px 4px 0 #1e1b14;
  transition: transform .15s, box-shadow .15s;
}
/* حس استیکر: روی هاور بالا می‌پرد، با فشردن فرومی‌نشیند */
.vote-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #1e1b14; }
.vote-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1e1b14; }
.vote-btn--pro { background: var(--pro); color: #fff; }
.vote-btn--con { background: var(--con); color: #fff; }

/* ============================================================
   ۳) پرده‌ی رأی + اتاق گفت‌وگو
   ============================================================ */
#curtain {
  position: fixed; inset: 0; z-index: 800;
  transform: scaleX(0); transform-origin: right;
  display: grid; place-items: center;
}
#curtain .curtain-label { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 800; opacity: 0; color: #fff; }

#room { min-height: 100vh; padding: 110px clamp(16px, 4vw, 44px) 80px; max-width: 860px; margin: 0 auto; }
.room-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.room-head h2 { font-size: clamp(1.05rem, 2.4vw, 1.4rem); flex: 1; min-width: 220px; font-weight: 800; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: .85rem; color: var(--text); text-decoration: none;
  transition: background .2s;
}
.back-btn:hover { background: var(--surface-2); }
.room-side-badge {
  padding: 6px 16px; border-radius: 100px; font-weight: 700; font-size: .82rem;
}
.room-side-badge.pro { background: var(--pro-bg); color: var(--pro-ink); }
.room-side-badge.con { background: var(--con-bg); color: var(--con-ink); }

.chat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
  display: flex; flex-direction: column; gap: 20px;
  box-shadow: var(--shadow);
}
.msg { display: flex; gap: 13px; }
.msg-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-weight: 700; font-size: 1rem; color: #fff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.msg-avatar:hover { transform: scale(1.06); box-shadow: var(--shadow-lift); }
.msg-body { min-width: 0; flex: 1; }
.msg-name { font-size: .9rem; font-weight: 700; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.msg-name:hover { text-decoration: underline; }
.msg-role { font-size: .74rem; color: var(--muted); display: block; }
.msg-bubble {
  margin-top: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 16px;
  font-size: .92rem; color: #333330;
}
.msg--pro .msg-bubble { border-right: 2px solid var(--pro); }
.msg--con .msg-bubble { border-right: 2px solid var(--con); }
.msg-tag { font-size: .66rem; padding: 2px 9px; border-radius: 100px; font-weight: 700; }
.msg-tag.pro { background: var(--pro-bg); color: var(--pro-ink); }
.msg-tag.con { background: var(--con-bg); color: var(--con-ink); }
.chat-note {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .8rem;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
}
.room-cta { margin-top: 22px; display: flex; justify-content: center; }

/* ============================================================
   ۴) نگاه کلی
   ============================================================ */
#overview { padding: clamp(56px, 9vh, 96px) clamp(16px, 4vw, 44px); max-width: 1120px; margin: 0 auto; }

.section-head { text-align: center; margin-bottom: 44px; }
.section-kicker { color: var(--faint); font-size: .78rem; font-weight: 700; letter-spacing: 2px; }
.section-head h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 900; margin-top: 6px; letter-spacing: -.5px;
  /* خط‌خچ دستی زیر تیتر سکشن‌ها */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='12' viewBox='0 0 150 12'%3E%3Cpath d='M3 9 C 28 3, 48 11, 74 7 S 122 3, 147 8' fill='none' stroke='%23d99613' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 130px 11px; padding-bottom: 16px;
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; margin-inline: auto; font-size: .92rem; }

.vs-board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 30px);
  margin-bottom: 36px; box-shadow: var(--shadow);
}
.vs-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.vs-row:last-of-type { margin-bottom: 0; }
.vs-row .who { font-weight: 700; min-width: 60px; font-size: .85rem; }
.vs-row.pro .who { color: var(--pro-ink); }
.vs-row.con .who { color: var(--con-ink); }
.vs-track { flex: 1; height: 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vs-fill { height: 100%; width: 0; transition: width 1.2s cubic-bezier(.22,1,.36,1); }
.vs-fill.pro { background: var(--pro); }
.vs-fill.con { background: var(--con); }
.vs-num { font-weight: 700; min-width: 86px; text-align: left; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); }
.vs-total { text-align: center; color: var(--faint); font-size: .8rem; margin-top: 14px; }

.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .feed { grid-template-columns: 1fr; } }
.feed-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.feed-col h3 { font-size: .95rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.feed-col.pro h3 { color: var(--pro-ink); }
.feed-col.con h3 { color: var(--con-ink); }
.feed-col .msg-bubble { font-size: .85rem; }

/* ============================================================
   ۵) مناظرات قبلی + گالری
   ============================================================ */
#debates, #gallery { padding: clamp(56px, 9vh, 96px) clamp(16px, 4vw, 44px); max-width: 1120px; margin: 0 auto; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.debate-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.debate-card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.debate-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.debate-tags span {
  font-size: .68rem; padding: 3px 10px; border-radius: 100px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.debate-card h3 { font-size: .98rem; line-height: 1.8; margin-bottom: 14px; font-weight: 700; }
.debate-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .76rem; }
.debate-meta span { display: inline-flex; align-items: center; gap: 5px; }
.debate-result { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.result-dot { width: 8px; height: 8px; border-radius: 50%; }
.result-dot.pro { background: var(--pro); }
.result-dot.con { background: var(--con); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.g-card {
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); position: relative; aspect-ratio: 4/3;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s;
}
/* حس کلاژ: کارت‌ها با کجی ملایم و متناوب */
.g-card:nth-child(odd) { transform: rotate(-1.1deg); }
.g-card:nth-child(even) { transform: rotate(1deg); }
.g-card:hover { transform: rotate(0) translateY(-5px) scale(1.02); box-shadow: var(--shadow-lift); z-index: 2; }
.g-art { position: absolute; inset: 0; display: grid; place-items: center; }
.g-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,20,18,.55)); }
.g-art .icon-lg { width: 54px; height: 54px; color: rgba(255,255,255,.92); filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); }
.g-type {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .68rem; font-weight: 700; padding: 4px 11px; border-radius: 100px;
  background: rgba(255,255,255,.92); color: #222;
  display: flex; align-items: center; gap: 5px;
}
.g-info { position: absolute; bottom: 0; right: 0; left: 0; z-index: 2; padding: 15px; }
.g-info b { font-size: .92rem; color: #fff; }
.g-info small { display: block; color: rgba(255,255,255,.75); font-size: .74rem; margin-top: 2px; }

/* ============================================================
   مودال‌ها
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(30, 30, 28, 0.4);
  backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; width: min(540px, 100%);
  max-height: 86vh; overflow-y: auto;
  padding: 28px; position: relative;
  box-shadow: var(--shadow-lift);
  transform: translateY(20px); transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.modal-back.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted);
  transition: all .2s;
}
.modal-close:hover { background: #1e1b14; color: #fff; border-color: #1e1b14; }

.lightbox-art { border-radius: 14px; aspect-ratio: 16/10; margin-bottom: 16px; display: grid; place-items: center; }
.lightbox-art .icon-lg { width: 72px; height: 72px; color: rgba(255,255,255,.92); }

/* ============================================================
   فوتر
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(16px, 4vw, 44px) 28px;
  text-align: center; color: var(--muted); font-size: .82rem;
  background: var(--surface);
}
footer .foot-brand { font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: 4px; }
footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   صفحه‌ی پروفایل اختصاصی
   ============================================================ */
.person-wrap { min-height: 100vh; padding: 110px clamp(16px, 4vw, 44px) 80px; max-width: 760px; margin: 0 auto; }
.person-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }

.person-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow); text-align: center;
}
.person-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 16px;
  font-size: 2rem; font-weight: 800; color: #fff;
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 2px var(--line-strong);
}
.person-card h1 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 900; }
.person-role { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.person-side {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 6px 18px; border-radius: 100px;
  font-size: .8rem; font-weight: 700;
}
.person-side.pro { background: var(--pro-bg); color: var(--pro-ink); }
.person-side.con { background: var(--con-bg); color: var(--con-ink); }

.person-quote {
  margin: 28px 0; padding: 20px 24px;
  border-radius: var(--radius); text-align: right;
  font-size: 1.02rem; line-height: 2; color: #2c2c29;
}
.person-quote.pro { background: var(--pro-bg); border-right: 3px solid var(--pro); }
.person-quote.con { background: var(--con-bg); border-right: 3px solid var(--con); }
.person-quote small { display: block; margin-top: 10px; color: var(--muted); font-size: .75rem; }

.person-section { margin-top: 28px; text-align: right; }
.person-section h2 {
  font-size: .95rem; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.person-resume { color: #3a3a36; font-size: .95rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }

.person-others { margin-top: 36px; }
.person-others h2 { font-size: .95rem; font-weight: 800; margin-bottom: 14px; }
.others-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.other-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 18px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-size: .83rem; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.other-chip:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.other-chip .mini-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .66rem; font-weight: 700; }
.other-chip.active { border-color: #1e1b14; box-shadow: var(--shadow); }

.person-error { text-align: center; padding: 60px 0; color: var(--muted); }

/* ============================================================
   نمایان‌شدن هنگام اسکرول
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   پنل مدیریت
   ============================================================ */
.adm-wrap { min-height: 100vh; padding: 96px clamp(16px, 4vw, 44px) 60px; max-width: 1200px; margin: 0 auto; }
.adm-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.adm-head h1 { font-size: 1.4rem; font-weight: 900; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-actions .btn {
  padding: 9px 18px; border-radius: var(--radius-sm); font-size: .83rem; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--text); background: var(--surface);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.adm-actions .btn:hover { background: #1e1b14; color: #fff; border-color: #1e1b14; }

.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.adm-tab {
  padding: 9px 20px; border-radius: var(--radius-sm); font-size: .87rem;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface);
  transition: all .2s;
}
.adm-tab.active { background: #1e1b14; color: #fff; border-color: #1e1b14; font-weight: 700; }

.adm-panel { display: none; }
.adm-panel.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.adm-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
@media (max-width: 940px) { .adm-grid { grid-template-columns: 1fr; } }
.adm-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  position: sticky; top: 86px;
}
.adm-form h3 { margin-bottom: 14px; font-size: .92rem; font-weight: 800; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 13px; color: var(--text); font-size: .88rem;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: #1e1b14; }
.field textarea { resize: vertical; min-height: 84px; }
.adm-submit {
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  background: #1e1b14; color: #fff; font-weight: 700; font-size: .9rem;
  transition: opacity .2s;
}
.adm-submit:hover { opacity: .85; }

.adm-list { display: flex; flex-direction: column; gap: 10px; }
.adm-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.adm-item .grow { flex: 1; min-width: 0; }
.adm-item b { font-size: .88rem; display: block; }
.adm-item small { color: var(--muted); font-size: .74rem; display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-item .del {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--con-bg); color: var(--con-ink); border: 1px solid #f5c6d0;
  display: grid; place-items: center;
  transition: all .2s;
}
.adm-item .del:hover { background: var(--con); color: #fff; border-color: var(--con); }
.side-pill { font-size: .66rem; padding: 3px 11px; border-radius: 100px; font-weight: 700; flex-shrink: 0; }
.side-pill.pro { background: var(--pro-bg); color: var(--pro-ink); }
.side-pill.con { background: var(--con-bg); color: var(--con-ink); }

/* فرم ورود ادمین */
.login-box {
  max-width: 380px; margin: 15vh auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 34px;
  text-align: center; box-shadow: var(--shadow);
}
.login-box h1 { font-size: 1.25rem; margin: 14px 0 4px; font-weight: 900; }
.login-box p { color: var(--muted); font-size: .84rem; margin-bottom: 20px; }
.login-err { color: var(--con-ink); font-size: .78rem; margin-top: 12px; min-height: 18px; }

.toast {
  position: fixed; bottom: 24px; right: 50%; transform: translate(50%, 80px);
  background: #1e1b14; color: #fff; font-weight: 600; font-size: .85rem;
  padding: 12px 26px; border-radius: 100px; z-index: 1200;
  box-shadow: var(--shadow-lift);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.toast.show { transform: translate(50%, 0); }
