/* ═══════════════════════════════════════════════════════════════
   وب‌سایت مطب دکتر سیدحمیدرضا ابطحی
   پالت: فیروزه‌ای + آبی سرمه‌ای + سفید  |  RTL فارسی
   ═══════════════════════════════════════════════════════════════ */

/* ── فونت وزیرمتن ── */
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

/* ── متغیرها ── */
:root {
  --primary: #0fb5ba;
  --primary-600: #0c979e;
  --primary-700: #0a7b83;
  --primary-deep: #085f66;
  --navy: #0b3954;
  --navy-2: #082b40;
  --blue: #1173a6;
  --bg: #f4fbfb;
  --card: #ffffff;
  --ink: #16323f;
  --muted: #54707d;
  --line: #d9edee;
  --gold: #f4a950;
  --danger: #e05d5d;
  --success: #27ae60;
  --grad: linear-gradient(135deg, #0fb5ba 0%, #1173a6 100%);
  --grad-deep: linear-gradient(140deg, #082b40 0%, #0a7b83 60%, #0fb5ba 100%);
  --shadow: 0 14px 34px rgba(8, 95, 102, .12);
  --shadow-sm: 0 4px 14px rgba(8, 95, 102, .08);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
}

/* ── ریست ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--primary-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-deep); }
ul[role="list"], ol[role="list"] { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: rgba(15, 181, 186, .28); }
:focus-visible { outline: 3px solid rgba(15, 181, 186, .45); outline-offset: 2px; }

/* اسکرول‌بار */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #e8f5f5; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #17c3c8, #0d8ea0); border-radius: 8px; border: 2px solid #e8f5f5; }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 2000; }
.skip-link:focus { inset-inline-start: 8px; color: #fff; }

/* ── کانتینر و بخش‌ها ── */
.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 181, 186, .12); color: var(--primary-700);
  font-weight: 700; font-size: .82rem; padding: 6px 16px; border-radius: 999px;
  margin-bottom: 14px; border: 1px solid rgba(15, 181, 186, .25);
}
.kicker::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; color: var(--navy); line-height: 1.5; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ── دکمه‌ها ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 14px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  text-align: center; line-height: 1.6;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(15, 181, 186, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px rgba(15, 181, 186, .45); }
.btn-outline { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-outline:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--primary-700); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); background: rgba(15, 181, 186, .07); color: var(--primary-deep); }
.btn-light { background: #fff; color: var(--primary-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--navy); }
.btn-danger { background: #fdeaea; color: #c33; border-color: #f5c8c8; }
.btn-danger:hover { background: #f9d4d4; color: #a22; }
.btn-sm { padding: 9px 18px; font-size: .87rem; border-radius: 11px; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ── چیپ و نشان ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--muted); transition: all .2s;
}
a.chip:hover, button.chip:hover, .chip.is-active { border-color: var(--primary); color: var(--primary-700); background: rgba(15, 181, 186, .09); }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-cat { background: rgba(15, 181, 186, .12); color: var(--primary-700); }
.badge-new { background: #fff4e2; color: #b26a00; }
.badge-ok { background: #e5f7ec; color: #1d8a4d; }
.badge-gray { background: #eef3f5; color: #5b7480; }

/* ── پیام‌های فلاش ── */
.flash-stack { position: fixed; top: 18px; inset-inline: 0; z-index: 1500; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.flash {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(480px, 92%);
  background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 18px 44px rgba(8, 43, 64, .22);
  border-inline-start: 5px solid var(--primary); animation: flashIn .45s cubic-bezier(.2, .9, .3, 1.2);
}
.flash-success { border-color: var(--success); }
.flash-error { border-color: var(--danger); }
.flash-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--primary); }
.flash-success .flash-icon { background: var(--success); }
.flash-error .flash-icon { background: var(--danger); }
.flash-msg { flex: 1; font-size: .92rem; font-weight: 500; }
.flash-x { background: none; border: 0; font-size: 1.3rem; color: #9ab; line-height: 1; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }

/* ═══════════ هدر و ناوبری ═══════════ */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(8, 43, 64, .08); border-color: var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 8px 18px rgba(15, 181, 186, .4);
}
.brand-logo svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-text b { font-size: 1.02rem; font-weight: 800; color: #fff; transition: color .3s; }
.brand-text small { font-size: .72rem; color: rgba(255, 255, 255, .8); transition: color .3s; }
.site-header.is-scrolled .brand-text b, .site-header.nav-open .brand-text b { color: var(--navy); }
.site-header.is-scrolled .brand-text small, .site-header.nav-open .brand-text small { color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: 11px; font-weight: 500; font-size: .93rem;
  color: rgba(255, 255, 255, .92); position: relative; transition: color .3s, background .2s;
  white-space: nowrap;
}
.main-nav > .nav-list > .nav-item > .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.main-nav > .nav-list > .nav-item > .nav-link.is-active { font-weight: 700; }
.main-nav > .nav-list > .nav-item > .nav-link.is-active::after {
  content: ''; position: absolute; bottom: 3px; inset-inline: 13px; height: 3px; border-radius: 3px; background: var(--primary);
}
.site-header.is-scrolled .nav-link { color: var(--muted); }
.site-header.is-scrolled .main-nav > .nav-list > .nav-item > .nav-link:hover { color: var(--primary-deep); background: rgba(15, 181, 186, .08); }
.site-header.is-scrolled .main-nav > .nav-list > .nav-item > .nav-link.is-active { color: var(--primary-deep); }
.main-nav .btn { margin-inline-start: 8px; }
.caret {
  flex: none; width: 7px; height: 7px; display: inline-block;
  border-inline-end: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .25s;
}

/* منوی کشویی چندسطحی */
.nav-drop {
  position: absolute; top: calc(100% + 12px); inset-inline-start: 0; z-index: 1200;
  min-width: 240px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 22px 48px rgba(8, 43, 64, .18);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.nav-drop::before { content: ''; position: absolute; top: -14px; inset-inline: 0; height: 14px; }
.nav-item:hover > .nav-drop,
.nav-item:focus-within > .nav-drop,
.nav-item.is-open > .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-item:hover > .nav-link > .caret,
.nav-item.is-open > .nav-link > .caret { transform: rotate(225deg) translateY(-2px); }
.nav-drop .nav-item { padding: 2px; }
.nav-drop .nav-link {
  width: 100%; padding: 10px 13px; border-radius: 11px; font-size: .9rem;
  color: var(--ink); background: none;
}
.nav-drop .nav-link:hover { background: rgba(15, 181, 186, .1); color: var(--primary-deep); }
.nav-drop .nav-link.is-active { color: var(--primary-deep); font-weight: 700; background: rgba(15, 181, 186, .12); }
.nav-drop .nav-drop { top: -9px; inset-inline-start: auto; inset-inline-end: calc(100% + 10px); border-radius: 16px; }
.nav-drop .nav-drop::before { top: 0; inset-inline-start: auto; inset-inline-end: -14px; width: 14px; height: 100%; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 10px; padding: 11px 10px;
}
.site-header.is-scrolled .nav-toggle, .site-header.nav-open .nav-toggle { background: rgba(15, 181, 186, .1); border-color: var(--line); }
.nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s, background .3s; }
.site-header.is-scrolled .nav-toggle span, .site-header.nav-open .nav-toggle span { background: var(--navy); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav {
  display: none; background: #fff; border-top: 1px solid var(--line);
  padding: 14px 4vw 22px; box-shadow: 0 24px 40px rgba(8, 43, 64, .12);
  max-height: calc(100dvh - 78px); overflow-y: auto;
}
.mobile-nav a { display: block; padding: 13px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.mobile-nav a:hover, .mobile-nav a.is-active { background: rgba(15, 181, 186, .09); color: var(--primary-deep); }
.mobile-nav .btn { margin-top: 10px; }
.nav-open .mobile-nav { display: block; animation: navDrop .3s ease; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-10px); } }

/* زیرمنوی آکاردئونی منوی موبایل */
.mnav-row { display: flex; align-items: stretch; gap: 6px; }
.mnav-row > a { flex: 1; }
.mnav-expand {
  flex: none; width: 46px; margin: 4px 0; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--muted); cursor: pointer;
  display: grid; place-items: center;
}
.mnav-expand .caret { transform: rotate(-45deg) translateY(-2px); }
.mnav-group.is-open > .mnav-row .mnav-expand { background: rgba(15, 181, 186, .1); color: var(--primary-deep); border-color: var(--primary); }
.mnav-group.is-open > .mnav-row .mnav-expand .caret { transform: rotate(135deg) translateY(-1px); }
.mnav-children { display: none; margin: 6px 18px 10px 2px; padding-inline-start: 12px; border-inline-start: 2px solid rgba(15, 181, 186, .3); }
.mnav-group.is-open > .mnav-children { display: block; animation: navDrop .25s ease; }

/* ═══════════ اسلایدر هیرو ═══════════ */
.hero-slider { position: relative; height: min(92vh, 820px); min-height: 560px; overflow: hidden; background: var(--navy-2); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); }
.slide.is-active .slide-bg { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8, 43, 64, .92) 8%, rgba(10, 123, 131, .62) 48%, rgba(8, 43, 64, .25) 100%);
}
.slide-caption { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 60px; }
.slide-kicker {
  display: inline-flex; align-items: center; gap: 10px; color: #aef3f0; font-weight: 700; font-size: .9rem;
  background: rgba(15, 181, 186, .18); border: 1px solid rgba(120, 230, 230, .35); backdrop-filter: blur(6px);
  padding: 8px 20px; border-radius: 999px; margin-bottom: 20px;
}
.slide-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2ee6dc; box-shadow: 0 0 12px #2ee6dc; }
.slide-caption h1 {
  color: #fff; font-size: clamp(1.9rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.45;
  max-width: 620px; text-shadow: 0 4px 30px rgba(8, 43, 64, .5); margin-bottom: 16px;
}
.slide-caption h1 em { font-style: normal; color: #4fe3de; }
.slide-caption p { color: rgba(255, 255, 255, .88); font-size: clamp(.98rem, 1.6vw, 1.15rem); max-width: 560px; margin-bottom: 30px; }
.slide-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.slide.is-active .slide-kicker { animation: fadeUp .8s .25s both; }
.slide.is-active .slide-caption h1 { animation: fadeUp .8s .4s both; }
.slide.is-active .slide-caption p { animation: fadeUp .8s .55s both; }
.slide.is-active .slide-cta { animation: fadeUp .8s .7s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(8, 43, 64, .35); backdrop-filter: blur(8px); color: #fff; font-size: 1.4rem;
  display: grid; place-items: center; transition: background .25s, transform .25s;
}
.slider-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { inset-inline-start: 26px; }
.slider-arrow.next { inset-inline-end: 26px; }
.slider-dots { position: absolute; bottom: 34px; inset-inline: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.slider-dot { width: 34px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .35); border: 0; transition: all .3s; }
.slider-dot.is-active { background: #2ee6dc; width: 52px; box-shadow: 0 0 12px rgba(46, 230, 220, .8); }
.slider-progress { position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: rgba(255, 255, 255, .12); z-index: 5; }
.slider-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2ee6dc, #1173a6); }
.slider-progress.is-animating span { animation: progressFill 6.5s linear forwards; }
@keyframes progressFill { from { width: 0; } to { width: 100%; } }

/* موج جداکننده */
.wave-divider { position: relative; margin-top: -1px; background: #fff; }
.wave-divider svg { display: block; width: 100%; height: 60px; }

/* نوار کارت‌های سریع */
.quick-strip { background: #fff; padding-bottom: 8px; }
.quick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -74px; position: relative; z-index: 10; }
.quick-card {
  background: #fff; border-radius: var(--radius); padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start;
  box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.quick-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(8, 95, 102, .16); }
.qc-icon { flex: none; width: 52px; height: 52px; border-radius: 15px; background: rgba(15, 181, 186, .12); color: var(--primary-700); display: grid; place-items: center; }
.qc-icon svg { width: 26px; height: 26px; }
.quick-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 2px; }
.quick-card p { font-size: .88rem; color: var(--muted); }
.quick-card a { font-weight: 700; }

/* ── چیدمان دو ستونه ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.media-frame { position: relative; }
.media-frame img { border-radius: 26px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.media-frame::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: 30px;
  background: linear-gradient(135deg, rgba(15, 181, 186, .18), rgba(17, 115, 166, .12)); z-index: -1;
}
.float-badge {
  position: absolute; bottom: -20px; inset-inline-start: -14px; background: var(--grad); color: #fff;
  border-radius: 18px; padding: 14px 22px; text-align: center; box-shadow: 0 16px 34px rgba(15, 181, 186, .4);
  animation: floaty 4.5s ease-in-out infinite;
}
.float-badge b { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.3; }
.float-badge small { font-size: .78rem; opacity: .92; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.check-list .ck { flex: none; width: 24px; height: 24px; border-radius: 8px; background: rgba(39, 174, 96, .13); color: var(--success); display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 5px; }
.about-quote {
  margin-top: 26px; background: linear-gradient(135deg, rgba(15, 181, 186, .08), rgba(17, 115, 166, .07));
  border-inline-start: 4px solid var(--primary); border-radius: 14px; padding: 18px 22px;
  font-size: 1.02rem; color: var(--navy); font-weight: 500;
}
.tags-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ── کارت خدمات ── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .28s, box-shadow .28s, border-color .28s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 4px;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(15, 181, 186, .4); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 62px; height: 62px; border-radius: 18px; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 22px rgba(15, 181, 186, .32);
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { font-size: 1.08rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: var(--muted); }

/* ── نوار آمار ── */
.stats-band { background: var(--grad-deep); position: relative; overflow: hidden; }
.stats-band::before, .stats-band::after {
  content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .1);
}
.stats-band::before { width: 420px; height: 420px; top: -210px; inset-inline-end: -120px; }
.stats-band::after { width: 300px; height: 300px; bottom: -170px; inset-inline-start: -80px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; position: relative; z-index: 2; }
.stat-item b { display: block; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; color: #4fe3de; line-height: 1.35; }
.stat-item span { color: rgba(255, 255, 255, .85); font-size: .95rem; font-weight: 500; }

/* ── آکاردئون پرسش و پاسخ ── */
.qa-list { display: grid; gap: 16px; max-width: 860px; margin-inline: auto; }
.qa-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.qa-item[open] { box-shadow: var(--shadow); border-color: rgba(15, 181, 186, .45); }
.qa-item summary {
  list-style: none; display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; cursor: pointer;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-avatar {
  flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.qa-q { flex: 1; }
.qa-q .qa-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.qa-q .qa-meta b { color: var(--navy); font-size: .88rem; }
.qa-q h3 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.8; }
.qa-toggle { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(15, 181, 186, .1); color: var(--primary-700); display: grid; place-items: center; font-weight: 800; transition: transform .3s; margin-top: 6px; }
.qa-item[open] .qa-toggle { transform: rotate(45deg); }
.qa-body { padding: 0 22px 22px 22px; }
.qa-answer {
  background: linear-gradient(135deg, rgba(15, 181, 186, .07), rgba(17, 115, 166, .05));
  border: 1px solid rgba(15, 181, 186, .25); border-radius: 14px; padding: 18px 20px;
}
.qa-answer .qa-answer-label { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary-700); font-size: .88rem; margin-bottom: 8px; }
.qa-answer .qa-answer-label svg { width: 18px; height: 18px; }
.qa-answer p { font-size: .94rem; }
.qa-empty { text-align: center; padding: 50px 20px; color: var(--muted); }

/* ── کارت مقاله ── */
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .28s, box-shadow .28s;
}
.article-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.ac-cover { position: relative; aspect-ratio: 16/9.4; overflow: hidden; }
.ac-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .ac-cover img { transform: scale(1.06); }
.ac-cover .badge { position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(8, 43, 64, .72); color: #7ff0ec; backdrop-filter: blur(6px); }
.ac-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ac-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.8; margin-bottom: 8px; }
.ac-body h3 a { color: inherit; }
.ac-body h3 a:hover { color: var(--primary-700); }
.ac-body p { font-size: .88rem; color: var(--muted); flex: 1; }
.ac-foot { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }
.ac-foot span { display: inline-flex; align-items: center; gap: 5px; }
.ac-foot svg { width: 14px; height: 14px; opacity: .7; }

/* ── مقاله تکی ── */
.prose { max-width: 820px; margin-inline: auto; font-size: 1.02rem; }
.prose h2 { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin: 34px 0 12px; position: relative; padding-inline-start: 18px; }
.prose h2::before { content: ''; position: absolute; inset-inline-start: 0; top: 8px; bottom: 8px; width: 5px; border-radius: 5px; background: var(--grad); }
.prose h3 { color: var(--primary-deep); font-size: 1.12rem; font-weight: 700; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: #26404d; }
.prose ul, .prose ol { margin: 0 22px 18px 0; display: grid; gap: 8px; color: #26404d; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--navy); }
.prose blockquote {
  background: linear-gradient(135deg, rgba(15, 181, 186, .08), rgba(17, 115, 166, .06));
  border-inline-start: 4px solid var(--primary); border-radius: 14px; padding: 18px 22px; margin: 22px 0; color: var(--navy);
}
.article-hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); max-width: 960px; margin: 30px auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 15px; height: 15px; opacity: .75; }

/* ── هیرو صفحه‌های داخلی ── */
.page-hero {
  position: relative; background: var(--grad-deep); color: #fff; text-align: center;
  padding: 158px 0 64px; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px); background-size: 26px 26px;
}
.page-hero h1 { position: relative; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.page-hero p { position: relative; color: rgba(255, 255, 255, .85); max-width: 620px; margin: 10px auto 0; }
.breadcrumb { position: relative; display: flex; justify-content: center; gap: 8px; font-size: .84rem; color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.breadcrumb a { color: #7ff0ec; }
.breadcrumb a:hover { color: #fff; }

/* ── نوار ابزار (جستجو + دسته‌ها) ── */
.toolbar { display: grid; gap: 18px; margin-bottom: 34px; }
.search-box { display: flex; max-width: 520px; margin-inline: auto; width: 100%; }
.search-box input {
  flex: 1; border: 2px solid var(--line); border-inline-end: 0; border-radius: 14px 0 0 14px;
  padding: 12px 18px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button { border: 0; background: var(--grad); color: #fff; padding: 0 24px; border-radius: 0 14px 14px 0; font-size: 1rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── مرورگر موضوعی مطالب (درخت دسته‌ها) ── */
.tree-browse {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 26px; margin-bottom: 38px; box-shadow: var(--shadow-sm);
}
.tb-head { text-align: center; margin-bottom: 24px; }
.tb-head h2 { color: var(--navy); font-size: 1.3rem; margin: 6px 0; }
.tb-head p { color: var(--muted); font-size: .88rem; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tb-card {
  background: linear-gradient(180deg, #f7fdfd, #fff); border: 1.5px solid var(--line);
  border-radius: 18px; padding: 16px; transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: 10px;
}
.tb-card:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 14px 30px rgba(15, 181, 186, .14); }
.tb-card-head { display: flex; align-items: center; gap: 10px; }
.tb-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(15, 181, 186, .12); color: var(--primary-700);
}
.tb-icon svg { width: 21px; height: 21px; }
.tb-name { font-weight: 700; color: var(--navy); font-size: .95rem; }
.tb-card-head:hover .tb-name { color: var(--primary-deep); }
.tb-count { margin-inline-start: auto; font-size: .74rem; color: var(--muted); background: #eef7f7; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tb-children { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tb-child {
  font-size: .78rem; color: var(--primary-700); background: rgba(15, 181, 186, .07);
  border: 1px solid rgba(15, 181, 186, .18); border-radius: 999px; padding: 4px 12px; transition: all .2s;
}
.tb-child:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── کارت زیردسته‌ها داخل صفحهٔ دسته ── */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 34px; }
.cat-card {
  display: flex; align-items: center; gap: 11px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 16px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(15, 181, 186, .13); }
.cat-card-icon { flex: none; width: 38px; height: 38px; border-radius: 11px; background: rgba(15, 181, 186, .12); color: var(--primary-700); display: grid; place-items: center; }
.cat-card-icon svg { width: 20px; height: 20px; }
.cat-card-name { font-weight: 700; font-size: .88rem; color: var(--navy); }
.cat-card-count { margin-inline-start: auto; font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ── فرم‌ها ── */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="password"],
.field input[type="url"], .field input[type="number"], .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: 13px; padding: 12px 16px;
  background: #fbfefe; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 181, 186, .14); background: #fff; }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.captcha-row { display: flex; align-items: center; gap: 14px; background: rgba(15, 181, 186, .07); border: 1.5px dashed rgba(15, 181, 186, .45); border-radius: 13px; padding: 12px 16px; }
.captcha-row b { color: var(--primary-deep); font-size: 1.05rem; white-space: nowrap; }
.captcha-row input { flex: 1; border: 2px solid var(--line); border-radius: 10px; padding: 9px 14px; outline: none; max-width: 150px; text-align: center; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 13px;
  border: 2px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: all .2s;
}
.radio-card input:checked + span { border-color: var(--primary); color: var(--primary-deep); background: rgba(15, 181, 186, .08); }
.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* اطلاعات کنار فرم */
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.info-item .qc-icon { width: 46px; height: 46px; border-radius: 13px; }
.info-item h3 { font-size: .95rem; font-weight: 800; color: var(--navy); }
.info-item p { font-size: .88rem; color: var(--muted); }
.form-success {
  text-align: center; padding: 40px 24px;
}
.form-success .fs-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: rgba(39, 174, 96, .12); color: var(--success); display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; }
.form-success h3 { color: var(--navy); font-size: 1.25rem; margin-bottom: 8px; }

/* ── صفحه‌بندی ── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 44px; }
.pg-btn { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: .9rem; transition: all .2s; }
a.pg-btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.pg-btn.is-current { background: var(--grad); border-color: transparent; color: #fff; }
.pg-btn.is-disabled { opacity: .45; cursor: default; }
.pg-dots { color: var(--muted); padding: 0 2px; }

/* ── نوار دعوت به نوبت ── */
.cta-band { background: var(--grad-deep); position: relative; overflow: hidden; padding: clamp(48px, 7vw, 76px) 0; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 24px 24px;
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.cta-inner p { color: rgba(255, 255, 255, .85); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: #7ff0ec; font-weight: 800; font-size: 1.15rem; direction: ltr; }

/* ═══════════ فوتر ═══════════ */
.site-footer { flex-shrink: 0; margin-top: auto; background: var(--navy-2); color: #cfe4ea; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 60px 0 44px; }
.f-col h4 { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.f-col h4::after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad); }
.f-brand .brand { margin-bottom: 14px; }
.f-brand .brand-text b { color: #fff; }
.f-brand .brand-text small { color: #9db8c2; }
.f-brand p { font-size: .88rem; color: #9db8c2; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #cfe4ea; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '‹'; color: var(--primary); font-weight: 800; }
.footer-links a:hover { color: #7ff0ec; }
.f-contact { display: grid; gap: 12px; font-size: .88rem; }
.f-contact div { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { flex: none; width: 17px; height: 17px; color: var(--primary); margin-top: 5px; }
.f-social { display: flex; gap: 10px; margin-top: 18px; }
.f-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); display: grid; place-items: center; color: #cfe4ea; transition: all .25s; }
.f-social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.f-social svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #9db8c2; }
.footer-bottom a { color: #7ff0ec; font-weight: 600; }

/* دکمه‌های شناور */
.float-call {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 30px rgba(15, 181, 186, .45);
  animation: pulseRing 2.6s infinite;
}
.float-call svg { width: 24px; height: 24px; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(15, 181, 186, .5); } 70% { box-shadow: 0 0 0 18px rgba(15, 181, 186, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 181, 186, 0); } }
.to-top {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 900; width: 48px; height: 48px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--primary-700);
  font-size: 1.15rem; font-weight: 800; box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all .3s;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }

/* ═══════════ پنل مدیریت ═══════════ */
.admin-body { background: #eef7f7; }
.admin-login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 30px 16px;
  background: var(--grad-deep); position: relative; overflow: hidden;
}
.admin-login-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.2px); background-size: 26px 26px;
}
.admin-login-card {
  position: relative; width: min(430px, 100%); background: #fff; border-radius: 26px; padding: 40px 36px;
  box-shadow: 0 30px 80px rgba(4, 26, 38, .45); animation: fadeUp .6s both;
}
.admin-login-card .brand-logo { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; }
.admin-login-card .brand-logo svg { width: 34px; height: 34px; }
.admin-login-card h1 { text-align: center; color: var(--navy); font-size: 1.3rem; font-weight: 800; }
.admin-login-card > p { text-align: center; color: var(--muted); font-size: .87rem; margin: 6px 0 26px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 52px !important; }
.pw-toggle { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 1.1rem; padding: 6px; }
.admin-alert { background: #fdeaea; color: #b03333; border: 1px solid #f5c8c8; border-radius: 12px; padding: 11px 16px; font-size: .87rem; margin-bottom: 16px; text-align: center; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-side {
  flex: none; width: 262px; background: var(--navy-2); color: #cfe4ea; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { padding: 22px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-side .brand-text b { color: #fff; font-size: .98rem; }
.admin-side .brand-text small { color: #9db8c2; }
.admin-menu { padding: 16px 14px; display: grid; gap: 5px; flex: 1; }
.admin-menu a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  color: #b8cdd6; font-size: .93rem; font-weight: 500; transition: all .2s;
}
.admin-menu a svg { width: 20px; height: 20px; opacity: .85; }
.admin-menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-menu a.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(15, 181, 186, .35); }
.admin-menu .menu-badge { margin-inline-start: auto; background: var(--gold); color: #5c3a00; border-radius: 999px; font-size: .72rem; font-weight: 800; padding: 1px 9px; }
.admin-side-foot { padding: 16px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px; }
.admin-side-foot a, .admin-side-foot button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: #b8cdd6; padding: 10px 12px; border-radius: 10px; font-size: .88rem; text-align: start; }
.admin-side-foot a:hover, .admin-side-foot button:hover { background: rgba(224, 93, 93, .14); color: #ffb3b3; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.admin-topbar p { font-size: .78rem; color: var(--muted); }
.admin-user-chip { display: flex; align-items: center; gap: 10px; background: rgba(15, 181, 186, .09); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: .85rem; font-weight: 700; color: var(--navy); }
.admin-user-chip .qa-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: .9rem; }
.admin-content { flex: 1; padding: 26px; max-width: 1160px; width: 100%; margin-inline: auto; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-sm); }
.stat-card .sc-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; }
.stat-card .sc-icon svg { width: 26px; height: 26px; }
.sc-teal { background: rgba(15, 181, 186, .12); color: var(--primary-700); }
.sc-amber { background: #fff4e2; color: #b26a00; }
.sc-green { background: rgba(39, 174, 96, .12); color: #1d8a4d; }
.sc-blue { background: rgba(17, 115, 166, .12); color: var(--blue); }
.stat-card b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.4; }
.stat-card span { font-size: .82rem; color: var(--muted); font-weight: 500; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { font-size: 1rem; font-weight: 800; color: var(--navy); }
.panel-body { padding: 22px; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab-btn { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; font-size: .86rem; transition: all .2s; }
.tab-btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.tab-btn.is-active { background: var(--grad); border-color: transparent; color: #fff; }
.tab-btn .cnt { background: rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.tab-btn:not(.is-active) .cnt { background: #fff4e2; color: #b26a00; }

.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
.admin-table th { text-align: start; font-size: .78rem; color: var(--muted); font-weight: 700; padding: 12px 14px; background: #f6fbfb; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 14px; border-bottom: 1px solid #edf6f6; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fafdfd; }
.td-strong { font-weight: 700; color: var(--navy); }
.td-muted { color: var(--muted); font-size: .82rem; }
.thumb-sm { width: 66px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); display: inline-grid; place-items: center; transition: all .2s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary-deep); }
.icon-btn.is-danger:hover { border-color: var(--danger); color: var(--danger); background: #fdeaea; }
.icon-btn svg { width: 17px; height: 17px; }

.status-select { border: 2px solid var(--line); border-radius: 10px; padding: 7px 10px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--navy); }
.status-select.is-pending { border-color: #f2c879; color: #b26a00; background: #fff9ec; }
.status-select.is-confirmed { border-color: #9fd8b4; color: #1d8a4d; background: #effaf3; }
.status-select.is-done { border-color: #b9d7ea; color: #1173a6; background: #eef6fb; }
.status-select.is-canceled { border-color: #efb9b9; color: #c33; background: #fdf1f1; }

.switch { position: relative; display: inline-block; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; margin: 0; }
.switch .track { position: absolute; inset: 0; background: #cfe0e3; border-radius: 999px; transition: background .25s; }
.switch .track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(-20px); }
.switch-label { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }

.qa-admin-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; background: #fff; }
.qa-admin-card.is-pending { border-inline-start: 4px solid var(--gold); }
.qa-admin-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 10px; }
.qa-admin-head b { color: var(--navy); }
.qa-admin-head .qa-avatar { width: 38px; height: 38px; border-radius: 12px; font-size: .95rem; }
.qa-admin-body { color: #26404d; font-size: .92rem; margin-bottom: 14px; }
.answer-box { background: linear-gradient(135deg, rgba(15, 181, 186, .07), rgba(17, 115, 166, .05)); border: 1px solid rgba(15, 181, 186, .3); border-radius: 13px; padding: 14px 16px; font-size: .9rem; margin-bottom: 14px; }
.answer-box b { color: var(--primary-700); display: block; margin-bottom: 4px; font-size: .84rem; }
.qa-admin-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.qa-admin-actions form { display: flex; align-items: center; gap: 8px; }

.img-preview { width: 160px; height: 96px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.empty-state { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty-state .es-icon { font-size: 2.4rem; margin-bottom: 8px; }

/* ── انیمیشن اسکرول ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ ریسپانسیو ═══════════ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-side { width: 232px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .split { grid-template-columns: 1fr; }
  .split .media-frame { max-width: 560px; margin-inline: auto; }
  .quick-cards { grid-template-columns: 1fr; gap: 14px; margin-top: -50px; }
  .quick-card { padding: 18px 20px; }
  .hero-slider { min-height: 620px; }
  .slide-caption { align-items: center; text-align: center; }
  .slide-caption h1, .slide-caption p { max-width: 640px; }
  .slide-cta { justify-content: center; }
  .admin-side {
    position: fixed; inset-inline-start: 0; top: 0; z-index: 1200; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: -20px 0 60px rgba(4, 26, 38, .3);
  }
  html[dir="rtl"] .admin-side { transform: translateX(100%); }
  .admin-side.is-open { transform: translateX(0); }
  .admin-topbar { padding: 12px 16px; }
  .admin-topbar .menu-btn { display: inline-grid !important; }
  .admin-content { padding: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .radio-cards { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .slider-arrow { display: none; }
  .page-hero { padding: 130px 0 48px; }
  .cta-inner { justify-content: center; text-align: center; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .float-call { bottom: 18px; inset-inline-start: 18px; width: 50px; height: 50px; }
  .to-top { bottom: 18px; inset-inline-end: 18px; }
}
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); place-items: center; }
.menu-btn svg { width: 21px; height: 21px; }

/* ═══════════════════════════════════════════════════════════════
   افزوده‌های نسخه ۲.۱ — تایپوگرافی مقاله، جعبه‌های رنگی،
   تایم‌لاین معرفی، لایت‌باکس، نوار پیشرفت مطالعه و ادیتور غنی
   ═══════════════════════════════════════════════════════════════ */

/* ── نوار پیشرفت مطالعه ── */
.read-progress {
  position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 1200;
  background: transparent; pointer-events: none; opacity: 0; transition: opacity .3s;
}
.read-progress.is-visible { opacity: 1; }
.read-progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue) 100%);
  border-radius: 0 3px 3px 0; transition: width .1s linear;
}

/* ── لایت‌باکس تصاویر مقاله ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 26, 38, .88); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; padding: 30px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(920px, 94vw); max-height: 88vh; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); background: #fff; padding: 6px;
}
.lightbox .lb-x {
  position: absolute; top: 18px; inset-inline-start: 18px; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.5rem; cursor: pointer; transition: background .2s;
}
.lightbox .lb-x:hover { background: rgba(255, 255, 255, .3); }

/* ── تایپوگرافی غنی مقاله ── */
.prose img {
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: zoom-in;
  transition: transform .25s, box-shadow .25s; margin-inline: auto;
}
.prose img:hover { transform: scale(1.015); box-shadow: var(--shadow); }
.prose figure { margin: 26px auto 22px; text-align: center; }
.prose figure img { display: inline-block; max-width: min(560px, 100%); }
.prose figcaption {
  margin-top: 10px; font-size: .8rem; color: var(--muted);
  background: rgba(15, 181, 186, .07); display: inline-block;
  padding: 4px 14px; border-radius: 999px;
}
.prose .img-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin: 26px auto; padding: 18px; background: #fff;
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.prose .img-row img { max-height: 250px; width: auto; }
.prose a { font-weight: 600; border-bottom: 2px solid rgba(15, 181, 186, .35); }
.prose a:hover { border-bottom-color: var(--primary); }
.prose h4 { color: var(--navy); font-size: 1.02rem; margin: 22px 0 8px; }
.prose ol, .prose ul { padding-right: 8px; }
.prose ol li, .prose ul li { padding-inline-start: 4px; }
.prose > ol { counter-reset: step; list-style: none; margin-inline: 0; }
.prose > ol > li {
  position: relative; counter-increment: step; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 54px 12px 14px; margin-bottom: 10px;
}
.prose > ol > li::before {
  content: counter(step); position: absolute; inset-inline-start: 10px; top: 50%;
  transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.prose blockquote {
  position: relative; background: linear-gradient(135deg, rgba(15,181,186,.09), rgba(17,115,166,.07));
  border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm);
  padding: 18px 52px 18px 20px; margin: 22px 0; color: var(--navy); font-weight: 500;
}
.prose blockquote::before {
  content: '❝'; position: absolute; inset-inline-start: 16px; top: 14px;
  font-size: 1.5rem; color: var(--primary); opacity: .8;
}

/* ── جعبه‌های محتوایی رنگی ── */
.prose .info-box, .prose .warn-box, .prose .tip-box {
  border-radius: var(--radius); padding: 20px 22px; margin: 26px 0; border: 1px solid;
}
.prose .info-box { background: #effbfd; border-color: #bfe7ec; }
.prose .info-box h3 { color: var(--primary-deep); }
.prose .warn-box { background: #fff8ec; border-color: #f4ddb0; }
.prose .warn-box h3 { color: #a06b00; }
.prose .tip-box { background: #f2fbf4; border-color: #c4ecd0; }
.prose .tip-box h3 { color: #1d7a43; }
.prose .info-box h3, .prose .warn-box h3, .prose .tip-box h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.05rem;
}
.prose .info-box h3::before, .prose .warn-box h3::before, .prose .tip-box h3::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
}
.prose .info-box h3::before { background: var(--primary); }
.prose .warn-box h3::before { background: var(--gold); }
.prose .tip-box h3::before { background: var(--success); }
.prose .info-box h3, .prose .warn-box h3, .prose .tip-box h3 { margin-inline-start: 0; }
.prose .info-box .prose-inner-gap { height: 0; }

/* ── تایم‌لاین معرفی پزشک ── */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-inline-start: 26px; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--primary), var(--blue));
}
.tl-item {
  position: relative; display: flex; gap: 18px; align-items: flex-start;
  padding: 14px 0 22px;
}
.tl-item::before {
  content: ''; position: absolute; inset-inline-start: -26px; top: 24px;
  width: 17px; height: 17px; border-radius: 50%; background: #fff;
  border: 4px solid var(--primary); box-shadow: 0 0 0 4px rgba(15, 181, 186, .15);
}
.tl-year {
  flex: 0 0 auto; min-width: 96px; text-align: center; font-weight: 800; font-size: .9rem;
  color: #fff; background: var(--grad); border-radius: 999px; padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.tl-body h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.tl-body p { color: var(--muted); font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.info-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.info-card h3 {
  display: flex; align-items: center; gap: 10px; color: var(--navy);
  font-size: 1.08rem; margin-bottom: 14px;
}
.ic-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--grad); flex: 0 0 auto; }
.ic-dot.is-alt { background: linear-gradient(135deg, var(--gold), var(--blue)); }
.info-card ul { list-style: none; display: grid; gap: 10px; }
.info-card li { position: relative; padding-inline-start: 22px; color: #26404d; }
.info-card li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--primary-700); font-weight: 800;
}

/* ── ادیتور غنی (پنل مدیریت) ── */
.editor-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 8px 10px; background: #f6fcfc; border-bottom: 1px solid var(--line);
}
.ed-btn {
  width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.ed-btn svg { width: 17px; height: 17px; }
.ed-btn:hover { background: rgba(15, 181, 186, .12); color: var(--primary-deep); }
.ed-btn.is-active { background: var(--primary); color: #fff; }
.ed-sep { width: 1px; height: 22px; background: var(--line); margin: 0 5px; }
.ed-select {
  height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-family: var(--font); font-size: .85rem; padding: 0 8px; color: var(--ink); cursor: pointer;
}
.ed-color {
  width: 34px; height: 34px; padding: 2px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; cursor: pointer;
}
.editor-area {
  min-height: 380px; max-height: 65vh; overflow-y: auto; padding: 20px 22px;
  font-size: 1rem; line-height: 2; outline: none; background: #fff;
}
.editor-area:focus { background: #fdffff; }
.editor-area img { max-width: min(480px, 100%); border-radius: 10px; margin: 10px auto; box-shadow: var(--shadow-sm); }
.editor-area figure { text-align: center; margin: 14px 0; }
.editor-area figcaption { font-size: .8rem; color: var(--muted); background: rgba(15,181,186,.07); display: inline-block; padding: 2px 12px; border-radius: 999px; margin-top: 6px; }
.editor-area blockquote { border-inline-start: 4px solid var(--primary); background: rgba(15,181,186,.07); padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.editor-area:empty::before, .editor-area > p:only-child > br:only-child::before { color: #9db6bf; content: attr(data-placeholder); }
.editor-area h2, .editor-area h3, .editor-area h4 { color: var(--navy); }
.editor-status {
  display: flex; align-items: center; gap: 12px; padding: 7px 14px;
  border-top: 1px solid var(--line); background: #f6fcfc; font-size: .78rem; color: var(--muted);
}
.editor-words { font-weight: 700; color: var(--primary-deep); }
.editor-upload-msg { color: var(--blue); }
.editor-source-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; opacity: 0 !important; }
.editor-source-visible {
  position: static !important; width: 100% !important; height: 380px !important; opacity: 1 !important; clip: auto !important;
  font-family: monospace; font-size: .85rem !important; line-height: 1.8; direction: ltr; text-align: left;
  border: none; outline: none; padding: 16px 18px; background: #10222c; color: #b7f4f1;
}
.editor-wrap.is-source .editor-area { display: none; }

/* ── ریسپانسیو افزوده‌ها ── */
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .tl-item { flex-direction: column; gap: 8px; }
  .tl-item::before { top: 6px; }
  .prose > ol > li { padding-inline-start: 14px; padding-inline-end: 14px; }
  .prose > ol > li::before { position: static; transform: none; margin-bottom: 8px; }
  .editor-toolbar { gap: 3px; padding: 6px; }
  .ed-btn { width: 31px; height: 31px; }
  .ed-sep { display: none; }
}

/* ═══════════════ نسخه ۲.۲ ═══════════════ */

/* ── بخش «درباره این وب‌سایت» در صفحه اصلی ── */
.site-about-intro {
  max-width: 840px; margin: 0 auto 34px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; box-shadow: var(--shadow-sm); font-size: 1.02rem;
}
.site-about-intro p { margin: 0; line-height: 2; }

/* ── متن معرفی در صفحه درباره پزشک ── */
.about-intro-prose p { color: var(--muted); margin: 0 0 12px; line-height: 2; }

/* ── بدنه کارت‌های اطلاعاتی صفحه معرفی (HTML قابل ویرایش) ── */
.info-card-body ul { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.info-card-body li { position: relative; padding-inline-start: 22px; color: #26404d; line-height: 1.9; }
.info-card-body li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .58em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--grad);
}
.info-card-body p { color: #26404d; line-height: 1.9; margin: 4px 0; }

/* ── کد آدرس صفحه در پنل ── */
.slug-code {
  font-family: ui-monospace, monospace; font-size: .78rem; direction: ltr;
  background: #f0f7f8; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; color: var(--primary-deep);
  white-space: nowrap;
}

/* ── مدیریت منو ── */
.menu-add-row { display: grid; grid-template-columns: 220px 1fr auto; gap: 14px; align-items: end; }
.menu-manage-list { display: grid; gap: 12px; }
.menu-row {
  display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center;
  background: #f8fcfc; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.menu-row.is-hidden-item { opacity: .6; }
.mr-order { display: grid; gap: 4px; justify-items: center; }
.mr-num { font-size: .78rem; font-weight: 800; color: var(--primary-deep); }
.mv-btn {
  width: 26px; height: 22px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
  font-size: .6rem; color: var(--primary-deep); cursor: pointer; line-height: 1;
}
.mv-btn:hover:not([disabled]) { background: var(--primary); color: #fff; border-color: var(--primary); }
.mv-btn[disabled] { opacity: .35; cursor: default; }
.mr-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mr-fields { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 8px; flex: 1; min-width: 260px; }
.mr-fields input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .9rem; background: #fff;
}
.mr-fields input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.mr-actions { display: flex; align-items: center; gap: 8px; }

/* ── مدیریت دسته‌بندی درختی ── */
.cat-add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.cat-add-row .btn { grid-column: 1 / -1; justify-self: start; }
.cat-add-row select, .cat-add-row input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .9rem; background: #fff;
}
.cat-add-row select:focus, .cat-add-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.cat-tree-list { display: grid; gap: 10px; }
.cat-row {
  background: #f8fcfc; border: 1px solid var(--line); border-inline-start: 4px solid rgba(15, 181, 186, .45);
  border-radius: 14px; padding: 10px 12px; transition: margin .2s;
}
.cr-order { float: inline-start; display: grid; gap: 4px; justify-items: center; margin-inline-end: 10px; }
.cr-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cr-fields { display: grid; grid-template-columns: minmax(150px, 1.2fr) 1.4fr minmax(170px, 1fr); gap: 8px; flex: 1; min-width: 300px; }
.cr-fields input, .cr-fields select {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .88rem; background: #fff;
}
.cr-fields input:focus, .cr-fields select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.cr-meta { display: flex; gap: 6px; align-items: center; }
.cr-actions { display: flex; align-items: center; gap: 8px; }

/* ── ویرایش تایم‌لاین در پنل ── */
.tl-row { display: grid; grid-template-columns: 140px 1fr 1.4fr 36px; gap: 8px; margin-bottom: 10px; }
.tl-row input {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .88rem; background: #fff;
}
.tl-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.tl-del {
  border: 1px solid #f5c8c8; background: #fdeaea; color: #c33; border-radius: 10px; font-size: 1.05rem;
  cursor: pointer; line-height: 1;
}
.tl-del:hover { background: #f9d4d4; }

/* ── استایل کادرهای آماده داخل ادیتور (پیش‌نمایش) ── */
.editor-area .info-box, .editor-area .tip-box, .editor-area .warn-box { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-size: .92rem; line-height: 1.9; }
.editor-area .info-box { background: rgba(56, 132, 255, .08); border: 1px solid rgba(56, 132, 255, .3); }
.editor-area .tip-box { background: rgba(22, 163, 110, .09); border: 1px solid rgba(22, 163, 110, .35); }
.editor-area .warn-box { background: rgba(217, 119, 6, .08); border: 1px solid rgba(217, 119, 6, .35); }

/* ── ریسپانسیو بخش‌های جدید ── */
@media (max-width: 760px) {
  .menu-add-row { grid-template-columns: 1fr; align-items: stretch; }
  .mr-fields { grid-template-columns: 1fr; }
  .cat-add-row { grid-template-columns: 1fr; }
  .cr-fields { grid-template-columns: 1fr; }
  .cr-meta { order: 3; }
  .tl-row { grid-template-columns: 1fr 1fr; }
  .tl-row input[name="tl_desc[]"] { grid-column: 1 / -1; }
  .site-about-intro { padding: 18px; }
}

/* ═══════════ درخت موضوعی مطالب (نسخهٔ ۲.۷) ═══════════ */
.tree-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 26px 10px; margin-bottom: 34px; }
.tb-head { margin-bottom: 14px; }
.tb-head .kicker { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--primary-700); background: rgba(15, 181, 186, .1); border-radius: 999px; padding: 3px 12px; margin-bottom: 10px; }
.tb-head h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 6px; }
.tb-head p { font-size: .88rem; color: var(--muted); line-height: 1.9; margin: 0; }
.tb-tree { padding-bottom: 14px; }
.tb-node { border-bottom: 1px dashed var(--line); }
.tb-node:last-child { border-bottom: 0; }
.tb-node > summary { display: flex; align-items: center; gap: 10px; padding: 12px 4px; cursor: pointer; list-style: none; font-weight: 700; color: var(--navy); font-size: .96rem; border-radius: 10px; transition: background .2s; }
.tb-node > summary::-webkit-details-marker { display: none; }
.tb-node > summary:hover { background: rgba(15, 181, 186, .06); }
.tb-caret { width: 9px; height: 9px; border-inline-start: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); transition: transform .25s; flex: 0 0 auto; }
.tb-node[open] > .summary, .tb-node[open] > summary .tb-caret { transform: rotate(45deg); }
.tb-name { flex: 1; }
.tb-count { font-size: .74rem; font-weight: 700; color: var(--primary-700); background: rgba(15, 181, 186, .1); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.tb-branch { padding: 2px 14px 14px 4px; }
.tb-viewall { display: block; font-size: .82rem; font-weight: 700; color: var(--primary-700); background: rgba(15, 181, 186, .07); border: 1px dashed rgba(15, 181, 186, .4); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; text-decoration: none; transition: background .2s; }
.tb-viewall:hover { background: rgba(15, 181, 186, .14); }
.tb-leaf { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 4px; color: var(--ink); text-decoration: none; font-size: .9rem; border-radius: 10px; transition: background .2s; }
.tb-leaf:hover { background: rgba(15, 181, 186, .06); }
.tb-leaf-name { flex: 1; }
.tb-leaf .tb-count { background: transparent; color: var(--muted); }

/* ═══════════ v2.8: درخت در ستون باریک کنار مطالب ═══════════ */
.cat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: start; }
.cat-side { position: sticky; top: 94px; max-height: calc(100vh - 116px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 20px 8px; scrollbar-width: thin; scrollbar-color: rgba(15, 181, 186, .45) transparent; }
.cat-side::-webkit-scrollbar { width: 7px; }
.cat-side::-webkit-scrollbar-thumb { background: rgba(15, 181, 186, .4); border-radius: 999px; }
.cat-side .tb-head h2 { font-size: 1.02rem; }
.cat-side .tb-head p { font-size: .8rem; }
.cat-side .tb-node > summary { font-size: .9rem; padding: 10px 2px; }
.cat-side .tb-leaf { font-size: .85rem; }
.cat-main { min-width: 0; }
.cat-main--solo { max-width: 100%; }
.tb-node .is-current, .tb-leaf.is-current { background: rgba(15, 181, 186, .13); border-radius: 10px; }
.tb-node .is-current .tb-name, .tb-leaf.is-current .tb-leaf-name { color: var(--primary-deep); }
.tb-leaf.is-current { padding-inline-start: 10px; box-shadow: inset 3px 0 0 var(--primary); }
.tree-anchor-chip { scroll-margin-top: 110px; }
.cat-side { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; gap: 20px; }
  .cat-main { order: 1; }
  .cat-side { order: 2; position: static; max-height: none; }
}

/* ═══════════ v2.9: جستجوی فهرست پنل + تصاویر استاندارد ═══════════ */
.admin-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.admin-search input[type="text"] {
  flex: 1 1 240px; max-width: 380px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--navy);
}
.admin-search input[type="text"]:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.admin-search button {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 18px;
  border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.admin-search button:hover { background: var(--primary-deep); }
.admin-search .clear-link { font-size: .85rem; color: var(--muted); text-decoration: none; }
.admin-search .clear-link:hover { color: var(--danger); }

/* ═══════════ v2.10: پست منتخب + ترتیب بخش‌ها و مقالات ═══════════ */
.badge-star { background: linear-gradient(135deg, #f4a950, #e8871e); color: #4a3402; font-weight: 800; }
.order-input { width: 64px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 9px; font: inherit; color: var(--navy); background: #fff; }
.order-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 181, 186, .14); }
.sec-order-table .td-strong { display: flex; align-items: center; gap: 8px; }
.sec-order-grip { color: var(--muted); font-weight: 700; letter-spacing: -1px; user-select: none; }
.sec-order-btns { display: flex; gap: 6px; }
.sec-order-btns .icon-btn { width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--primary-700); cursor: pointer; font-size: .8rem; transition: background .15s; }
.sec-order-btns .icon-btn:hover { background: rgba(15, 181, 186, .1); }

/* ═══════════ v2.12: تیک نمایش/حذف بخش‌های صفحه اصلی ═══════════ */
.sec-show-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; }
.sec-show-toggle input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin: 0; }
.sec-show-toggle input:checked + span { color: var(--primary-700); }
.sec-order-table tr.sec-row-hidden .td-strong { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(22, 50, 63, .45); }
.sec-order-table tr.sec-row-hidden .sec-order-btns { opacity: .55; }
