/* ═══════════════════════════════════════════
   خانواده برداشت — Design System
   Light · Minimal · Cinematic
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:        #FAFAF8;
  --surface:   #F3F2EE;
  --white:     #FFFFFF;
  --dark:      #0C0C0C;
  --body:      #2E2E2E;
  --muted:     #888888;
  --light:     #BBBBBB;
  --gold:      #C4922A;
  --gold-lt:   #E8B84B;
  --wine:      #8B1A2F;
  --wine-lt:   rgba(139,26,47,0.08);
  --border:    #E2E0DA;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.10);
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --transition: all 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--bg);
  color: var(--body);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ── LAYOUT ─────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container--sm { max-width: 780px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ── TYPOGRAPHY ─────────────────────────── */
.display { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; color: var(--dark); }
.heading { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; line-height: 1.25; color: var(--dark); }
.subheading { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; color: var(--dark); }
.body-lg { font-size: 1.1rem; line-height: 1.85; color: var(--body); }
.body-sm { font-size: 0.875rem; color: var(--muted); }
.label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.gold { color: var(--gold); }
.wine { color: var(--wine); }

/* ── BADGE / TAG ────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid;
}
.tag--gold  { color: var(--gold);  border-color: rgba(196,146,42,0.4);  background: rgba(196,146,42,0.06); }
.tag--wine  { color: var(--wine);  border-color: rgba(139,26,47,0.3);   background: rgba(139,26,47,0.05); }
.tag--dark  { color: var(--dark);  border-color: var(--border); background: var(--surface); }
.tag--green { color: #15803D; border-color: rgba(21,128,61,0.3); background: rgba(21,128,61,0.05); }

/* ── DIVIDER ────────────────────────────── */
.line { width: 48px; height: 2px; background: var(--gold); border-radius: 2px; margin: 20px 0 36px; }
.line--center { margin: 20px auto 36px; }

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 100px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--dark   { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #2a2a2a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.btn--gold   { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #b8831f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,146,42,0.35); }
.btn--wine   { background: var(--wine); color: #fff; }
.btn--wine:hover { background: #7a1728; transform: translateY(-2px); }
.btn--outline { background: transparent; border-color: var(--border); color: var(--dark); }
.btn--outline:hover { border-color: var(--dark); background: var(--dark); color: #fff; }
.btn--ghost  { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--dark); }
.btn--sm { font-size: 0.82rem; padding: 9px 20px; }
.btn--lg { font-size: 1.05rem; padding: 16px 40px; }
.btn--full { width: 100%; }

/* ── CARD ───────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__body { padding: 28px; }
.card__footer { padding: 18px 28px; border-top: 1px solid var(--border); background: var(--surface); }

/* ── FORM ───────────────────────────────── */
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: var(--dark); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--dark);
  transition: var(--transition);
  outline: none;
  direction: rtl;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,146,42,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 0.78rem; color: var(--wine); margin-top: 6px; }

/* ── UPLOAD BOX ─────────────────────────── */
.upload-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
}
.upload-box:hover { border-color: var(--gold); background: rgba(196,146,42,0.04); }
.upload-box .icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── SITE HEADER (بالای ناو) ─────────────── */
.site-header {
  background: #FAFAF8;
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.site-header__inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo img {
  height: 88px;
  width: auto;
  display: block;
  /* حذف پس‌زمینه سفید لوگو روی زمینه روشن */
  mix-blend-mode: multiply;
}
/* دکمه پشتیبانی در هدر */
.site-header__support {
  position: relative;
}
.hdr-support-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--dark); color: #fff;
  font-size: .88rem; font-weight: 700;
  padding: 9px 20px; border-radius: 10px;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s;
}
.hdr-support-btn:hover { background: var(--gold); color: #000; transform: translateY(-1px); }
.hdr-support-drop {
  position: absolute;
  left: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  min-width: 220px;
  list-style: none;
  padding: 8px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.site-header__support:hover .hdr-support-drop,
.site-header__support.open .hdr-support-drop {
  opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0);
}
.hdr-support-drop li a,
.hdr-support-drop li button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 18px;
  font-size: .87rem; font-weight: 600; color: var(--dark);
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: right;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.hdr-support-drop li a:hover,
.hdr-support-drop li button:hover { background: rgba(196,146,42,.08); color: var(--gold); }
.hdr-support-drop .drop-sep { height: 1px; background: var(--border); margin: 4px 0; }
.hdr-support-drop .drop-phone {
  display: block; font-size: .74rem; font-weight: 400;
  color: var(--muted); direction: ltr;
}
.hdr-support-drop .drop-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; display: inline-block; flex-shrink: 0;
}

@media(max-width:768px) {
  .site-header__logo img { height: 64px; }
  .hdr-support-btn { font-size: .8rem; padding: 7px 14px; }
}
@media(max-width:480px) {
  .site-header { padding: 10px 16px; }
  .site-header__logo img { height: 52px; }
  .hdr-support-drop { left: auto; right: 0; }
}

/* ── NAV ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__logo {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nav__logo span { color: var(--gold); }
.nav__logo img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--dark); background: var(--surface); }
.nav__actions { display: flex; gap: 10px; align-items: center; }
.nav__menu-btn { display: none; background: none; border: none; cursor: pointer; font-size: 1.4rem; }

/* ── DROPDOWN ───────────────────────────── */
.has-dropdown { position: relative; }
.has-dropdown > a { display: flex; align-items: center; gap: 4px; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  list-style: none;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a,
.dropdown li button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  transition: var(--transition);
  text-decoration: none;
}
.dropdown li a:hover,
.dropdown li button:hover { color: var(--dark); background: var(--surface); }
.dropdown li .drop-icon { font-size: 1.1rem; flex-shrink: 0; }
.dropdown--support { min-width: 230px; }
.dropdown--support .drop-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown--support .drop-phone {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.drop-online-dot { width: 7px; height: 7px; background: #22C55E; border-radius: 50%; flex-shrink: 0; }
.dropdown .has-submenu { position: relative; }
.dropdown .has-submenu > a { justify-content: space-between; }
.dropdown .submenu {
  display: none;
  position: absolute;
  top: 0;
  right: 100%;
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  list-style: none;
  z-index: 220;
}
.dropdown .has-submenu:hover .submenu,
.dropdown .has-submenu:focus-within .submenu { display: block; }
.dropdown .drop-sep { height: 1px; background: var(--border); margin: 4px 0; }
/* نشانگر آنلاین روی آیتم پشتیبانی در ناو */
.nav__support-dot { display: inline-block; width: 7px; height: 7px; background: #22C55E; border-radius: 50%; margin-right: 2px; vertical-align: middle; }

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 0 24px;
}
/* ستون‌های گرید — مخفی، فضا نمی‌گیرند */
.footer__grid { display: none; }
.footer__brand, .footer__col { display: none; }

/* نوار باریک پایین */
.footer__bottom {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  padding: 14px 0;
}
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  color: rgba(255,255,255,0.5);
}
.footer__social a:hover { border-color: var(--gold); background: rgba(196,146,42,0.15); color: var(--gold-lt); }

/* ── HERO ───────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(196,146,42,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(139,26,47,0.05) 0%, transparent 50%),
    var(--bg);
}
.hero__inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero__content {}
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__film-strip {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  background: var(--dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__film-strip .placeholder-img {
  font-size: 5rem;
  opacity: 0.15;
}
.hero__film-strip .film-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
}
.hero__film-strip .film-badge p { font-size: 0.75rem; font-weight: 700; color: var(--dark); }
.hero__film-strip .film-badge span { font-size: 0.65rem; color: var(--muted); }

/* ── SECTION HEAD ───────────────────────── */
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; }
.section-head--center .line { margin: 20px auto 36px; }

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

/* ── STAT BOX ───────────────────────────── */
.stat-box { padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); text-align: center; }
.stat-box .num { font-size: 2.4rem; font-weight: 900; color: var(--dark); line-height: 1; }
.stat-box .num span { color: var(--gold); }
.stat-box p { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ── STEP / TIMELINE ────────────────────── */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 28px; right: 28px; left: 28px;
  height: 1px;
  background: var(--border);
}
.step { flex: 1; text-align: center; padding: 0 16px; position: relative; }
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  color: var(--muted);
}
.step.active .step__num { background: var(--gold); border-color: var(--gold); color: #fff; }
.step h3 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step p { font-size: 0.82rem; color: var(--muted); }

/* ── COURSE CARD ────────────────────────── */
.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.course-card__top {
  height: 8px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
}
.course-card__body { padding: 28px; }
.course-card__icon { font-size: 2rem; margin-bottom: 16px; }
.course-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.course-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.course-card__meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.course-card__footer { padding: 20px 28px; border-top: 1px solid var(--border); background: var(--surface); display: flex; gap: 12px; align-items: center; justify-content: space-between; }

/* ── GALLERY ────────────────────────────── */
.gallery-grid { columns: 3; gap: 16px; }
.gallery-item { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { width: 100%; display: block; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: rgba(12,12,12,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  font-size: 2rem;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: var(--light);
}

/* ── ACCORDION ──────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: right;
  direction: rtl;
  transition: var(--transition);
}
.accordion-btn:hover { color: var(--gold); }
.accordion-btn .chevron { font-size: 0.8rem; color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
.accordion-btn.open .chevron { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-body.open { max-height: 600px; }
.accordion-body p { padding-bottom: 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.85; }

/* ── PODCAST ────────────────────────────── */
.podcast-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
}
.podcast-card:hover { box-shadow: var(--shadow-sm); }
.podcast-thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.podcast-info { flex: 1; }
.podcast-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.podcast-info p { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.podcast-play {
  width: 42px; height: 42px;
  background: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.podcast-play:hover { background: var(--gold); }

/* ── PROFILE CARD ───────────────────────── */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.profile-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.profile-card__cover {
  height: 100px;
  background: linear-gradient(135deg, var(--dark), #2a1a00);
  position: relative;
}
.profile-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  position: absolute;
  bottom: -36px; right: 24px;
  overflow: hidden;
}
.profile-card__body { padding: 44px 24px 24px; }
.profile-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.profile-card .role { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.profile-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.profile-card__footer { padding: 16px 24px; border-top: 1px solid var(--border); }

/* ── CALENDAR ───────────────────────────── */
.calendar-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.calendar-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.calendar-header h3 { font-size: 1rem; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day-name { padding: 10px; text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); }
.cal-day {
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  min-height: 60px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.cal-day:nth-child(7n) { border-left: none; }
.cal-day:hover { background: var(--surface); }
.cal-day.today { font-weight: 700; color: var(--gold); }
.cal-day.has-class::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wine);
}
.cal-day.empty { background: var(--surface); opacity: 0.5; cursor: default; }

/* ── AUTH ───────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-visual {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(196,146,42,0.15) 0%, transparent 70%);
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bg);
}
.auth-form { width: 100%; max-width: 440px; }

/* ── TOAST / ALERT ──────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.alert--info    { background: rgba(196,146,42,0.08); border: 1px solid rgba(196,146,42,0.2); color: #7a5a10; }
.alert--success { background: rgba(21,128,61,0.08); border: 1px solid rgba(21,128,61,0.2);  color: #14532d; }
.alert--error   { background: rgba(139,26,47,0.08); border: 1px solid rgba(139,26,47,0.2);  color: var(--wine); }

/* ── TABS ───────────────────────────────── */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 12px; width: fit-content; }
.tab-btn {
  padding: 9px 22px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── OTP INPUT ──────────────────────────── */
.otp-wrap { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.otp-input {
  width: 52px; height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}
.otp-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(196,146,42,0.12); }

/* ── INSURANCE CARD ─────────────────────── */
.insurance-cert {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.insurance-cert::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
}
.insurance-cert .watermark {
  position: absolute;
  font-size: 8rem;
  font-weight: 900;
  opacity: 0.03;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%) rotate(-30deg);
  pointer-events: none;
  white-space: nowrap;
  color: var(--dark);
}

/* ── PAGE HEADER ────────────────────────── */
.page-header {
  background: var(--dark);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold-lt); }

/* ── NEWS CARD ──────────────────────────── */
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card__img { height: 200px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--light); }
.news-card__body { padding: 24px; }
.news-card__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.news-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.8; margin-bottom: 18px; }

/* ── RESPONSIVE ─────────────────────────── */

/* منوی موبایل (open state) */
.nav__links--open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  padding: 80px 24px 40px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 500;
  overflow-y: auto;
  gap: 4px;
  animation: slideInNav 0.28s ease;
}
@keyframes slideInNav {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.nav__links--open .has-dropdown .dropdown {
  position: static;
  display: block;
  box-shadow: none;
  border: none;
  background: var(--surface);
  margin: 4px 0 4px 16px;
  padding: 4px;
}
.nav__links--open .has-dropdown > a { pointer-events: none; }
.nav__menu-btn { padding: 8px; line-height: 1; }
.nav__backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 499;
}
.nav__backdrop.active { display: block; }

@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__visual { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .steps { flex-wrap: wrap; }
  .steps::before { display: none; }
  .gallery-grid { columns: 2; }
  .nav__actions .btn { padding: 8px 14px; font-size: 0.8rem; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-header { padding: 60px 20px; }
  .page-header h1 { font-size: 1.7rem; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { columns: 1; }
  .auth-form-wrap { padding: 32px 20px; }
  .card__body { padding: 20px; }
  .btn--lg { padding: 14px 24px; font-size: 0.95rem; }
  .hero__inner { padding: 72px 16px 56px !important; }
  .display { font-size: 2.2rem !important; }
  .heading { font-size: 1.6rem !important; }

  /* فوتر موبایل */
  .footer { padding: 0 16px; }
  .footer__brand p { max-width: 100%; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* nav موبایل */
  .nav__inner { padding: 0 16px; }
  .nav__logo { font-size: 1.1rem; }
  .nav__actions { gap: 6px; }
  .nav__actions .btn { padding: 7px 12px; font-size: 0.78rem; }

  /* کارت‌ها در موبایل */
  .actor-card { margin-bottom: 4px; }
  .cert-stats, [style*="grid-template-columns:1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* فرم‌ها */
  .form-input, .form-select, .form-textarea {
    font-size: 16px; /* جلوگیری از zoom در iOS */
  }

  /* داشبورد موبایل */
  .sidebar { display: none; }
  .main-area { padding: 20px 16px; }
}

@media (max-width: 420px) {
  .nav__actions .btn--outline { display: none; } /* فقط دکمه اصلی */
  .display { font-size: 1.9rem !important; }
  .tag { font-size: 0.65rem; padding: 3px 8px; }
}
