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

/* فونت وزیرمتن به‌صورت محلی سرو می‌شود (بدون درخواست به گوگل) تا سایت سریع‌تر
   بارگذاری شود و به اتصال خارجی وابسته نباشد */
@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-SemiBold.woff2') format('woff2');
  font-weight: 600;
  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;
}

:root {
  --bg-dark: #0f1419;
  --bg-lighter: #1a1f2e;
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --accent-gold: #d4a574;
  --accent-gold-dark: #a67c52;
  --border-color: #2a2f3f;
  --hover-bg: #25293d;
}
body {
  font-family: 'Vazirmatn', sans-serif;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(212,165,116,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(212,165,116,0.04), transparent 60%),
    var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.5px; }
h1 { font-size: 56px; line-height: 1.15; }
h2 { font-size: 36px; line-height: 1.25; }
h3 { font-size: 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent-gold); display: inline-block; }
a { color: var(--accent-gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: #e8c9a0; }
button { font-family: 'Vazirmatn', sans-serif; cursor: pointer; transition: all 0.3s; }

.navbar { background: rgba(20,24,34,0.97); border-bottom: 1px solid var(--border-color); padding: 18px 0; position: sticky; top: 0; z-index: 100; }
.navbar-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: flex-start; align-items: center; gap: 56px; position: relative; }
.navbar-hamburger { display: none; background: none; border: 1px solid var(--border-color); border-radius: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; margin-right: auto; padding: 0; }
.navbar-hamburger svg { width: 20px; height: 20px; color: var(--text-primary); }
.navbar-mobile-links { display: none; }
.navbar-brand { font-size: 22px; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.navbar-brand-mark { width: 32px; height: 32px; border: 1px solid var(--accent-gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--accent-gold); font-size: 14px; font-weight: 700; }
.navbar-links { display: flex; gap: 32px; align-items: center; }
.navbar-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.3s; }
.navbar-links a:hover { color: var(--accent-gold); }

/* — نکته مهم: این بلاک رسپانسیو باید همیشه بعد از قوانین پایه بالا بیاید،
   چون specificity هر دو یکسان است و در CSS آخرین قانونِ هم‌وزن برنده می‌شود.
   اگر این بلاک را جابه‌جا کنید، منو دیگر در حالت موبایل جمع نخواهد شد. — */
@media (max-width: 768px) {
  .navbar-content { justify-content: space-between; }
  .navbar-hamburger { display: flex; }
  .navbar-links { display: none; }
  .navbar-mobile-links.is-open { display: flex; }
  .navbar-mobile-links { flex-direction: column; gap: 0; position: absolute; top: 100%; right: 0; left: 0; background: var(--bg-lighter); border-bottom: 1px solid var(--border-color); padding: 8px 20px 20px; z-index: 99; }
  .navbar-mobile-links a { padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: 15px; color: var(--text-secondary); }
  .navbar-mobile-links .btn { width: 100%; margin-top: 12px; text-align: center; }
}
.btn { padding: 12px 28px; border: 1px solid var(--accent-gold); background: transparent; color: var(--accent-gold); border-radius: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.btn:hover { background: var(--accent-gold); color: var(--bg-dark); }
.btn-solid { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); }
.btn-solid:hover { background: var(--accent-gold-dark); border-color: var(--accent-gold-dark); }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  right: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: right 0.6s ease;
}
.btn-shine:hover::after { right: 130%; }

.hero { max-width: 1400px; margin: 0 auto; padding: 100px 40px 60px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; position: relative; overflow: hidden; }
.hero-bg-icon { position: absolute; top: 50%; left: -60px; transform: translateY(-50%); width: 480px; height: 480px; opacity: 0.05; pointer-events: none; color: var(--accent-gold); z-index: 0; }
.hero > div, .hero > .hero-photo { position: relative; z-index: 1; }
.hero > .hero-photo { order: -1; }
@media (max-width: 900px) { .hero-bg-icon { width: 300px; height: 300px; left: 50%; transform: translate(-50%,-50%); } }
.hero h1 { margin-bottom: 24px; color: var(--text-primary); }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: flex-start; margin-bottom: 56px; }
.hero-actions .btn { padding: 14px 32px; }
.hero-credentials { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--border-color); }
.hero-credential-num { font-size: 28px; font-weight: 700; color: var(--accent-gold); }
.hero-credential-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; box-shadow: 0 0 60px rgba(212,165,116,0.18), 0 20px 50px -20px rgba(0,0,0,0.6); }
.hero-photo::before { content: ''; display: block; padding-top: 125%; } /* پشتیبان برای مرورگرهایی که aspect-ratio را پشتیبانی نمی‌کنند */
@supports (aspect-ratio: 4/5) { .hero-photo::before { content: none; } }
.hero-photo-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.hero-photo::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,20,25,0) 60%, rgba(15,20,25,0.45) 100%);
}
.hero-logo-frame { position: relative; width: 100%; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; }
.hero-logo-frame::before { content: ''; display: block; padding-top: 125%; }
@supports (aspect-ratio: 4/5) { .hero-logo-frame::before { content: none; } }
.hero-logo-ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78%; aspect-ratio: 1/1; border-radius: 50%;
  border: 1px solid rgba(212,165,116,0.35);
  box-shadow: 0 0 0 14px rgba(212,165,116,0.05), 0 0 90px rgba(212,165,116,0.22);
}
.hero-logo-ring::before {
  content: ''; position: absolute; inset: 14%; border-radius: 50%;
  border: 1px dashed rgba(212,165,116,0.25);
}
.hero-logo-img {
  position: relative; z-index: 1; width: 58%; max-width: 260px; height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.45));
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 60px 20px 40px; } .hero-photo, .hero-logo-frame { max-width: 320px; margin: 0 auto; order: -1; } }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; border-bottom: 1px solid var(--border-color); }
.section-header { margin-bottom: 80px; }
.section-header-anim .section-label,
.section-header-anim h2,
.section-header-anim p { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section-header-anim.is-revealed .section-label { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.section-header-anim.is-revealed h2 { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.section-header-anim.is-revealed p { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 12px; display: inline-block; position: relative; }
.section-header-anim .section-label::after { content: ''; position: absolute; right: 0; bottom: -8px; width: 0; height: 1px; background: var(--accent-gold); transition: width 0.7s ease 0.35s; }
.section-header-anim.is-revealed .section-label::after { width: 100%; }
.section-title { margin-bottom: 16px; color: var(--text-primary); }
.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 700px; line-height: 1.8; }

#services { position: relative; overflow: hidden; }
#services::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(600px 400px at 20% 30%, rgba(212,165,116,0.07), transparent 60%),
              radial-gradient(500px 350px at 80% 70%, rgba(212,165,116,0.05), transparent 60%);
  animation: driftGlow 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.services-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.16;
  filter: blur(3px) saturate(0.7);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}
#services .container { position: relative; z-index: 1; }
@keyframes driftGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -3%) scale(1.05); }
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.service-item { padding: 40px; background: var(--bg-lighter); border: 1px solid rgba(212,165,116,0.3); border-radius: 12px; transition: all 0.3s; position: relative; overflow: hidden; }
.service-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent-gold); transform: scaleX(0); transform-origin: right; transition: transform 0.3s; }
.service-item:hover { border-color: var(--accent-gold); background: var(--hover-bg); transform: translateY(-6px); box-shadow: 0 20px 40px -18px rgba(212,165,116,0.35); }
.service-item:hover::before { transform: scaleX(1); }
.service-number { font-size: 12px; font-weight: 700; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(212,165,116,0.3); border-radius: 10px; }
.service-item h3 { margin-bottom: 16px; color: var(--text-primary); }
.service-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.testimonial-slider { overflow: hidden; }
.testimonial-track { display: flex; gap: 32px; transition: transform 0.7s cubic-bezier(0.65,0,0.35,1); }
.testimonial-card { flex: 0 0 calc((100% - 64px) / 3); box-sizing: border-box; padding: 40px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 4px; }
@media (max-width: 900px) { .testimonial-card { flex-basis: calc((100% - 32px) / 2); } }
@media (max-width: 600px) { .testimonial-card { flex-basis: 100%; } }
.testimonial-quote-mark { font-size: 40px; color: var(--accent-gold); line-height: 1; margin-bottom: 12px; font-family: Georgia, serif; }
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 24px; }
.testimonial-author { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 13px; color: var(--text-secondary); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.stat-box { text-align: center; padding: 40px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 4px; transition: border-color 0.3s, transform 0.3s; }
.stat-box-active { border-color: rgba(212,165,116,0.4); position: relative; overflow: hidden; }
.stat-box-active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent-gold); }
.stat-box-active:hover { transform: translateY(-4px); border-color: var(--accent-gold); }
.testimonials-section { background: radial-gradient(800px 400px at 15% 20%, rgba(212,165,116,0.05), transparent 60%); }
.stat-number { font-size: 44px; font-weight: 700; color: var(--accent-gold); margin-bottom: 8px; }
.stat-label { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

.about-content { max-width: 1240px; }
.about-text { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 980px) { .about-text { grid-template-columns: 1fr 1fr; } .about-doc-col { grid-column: 1 / -1; } }
@media (max-width: 700px) { .about-text { grid-template-columns: 1fr; } }
.about-text-col p:last-child { margin-bottom: 0; }
.about-doc-col { display: flex; align-items: flex-start; justify-content: flex-start; padding-top: 0; margin-top: 0; align-self: start; }
.doc-a4 {
  position: relative;
  width: 220px;
  aspect-ratio: 1 / 1.414;
  background: linear-gradient(180deg, #f7f3ec, #ece5d8);
  border-radius: 3px;
  box-shadow: 0 30px 60px -22px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,165,116,0.25);
  padding: 20px 18px;
  overflow: hidden;
}
.doc-a4-line { height: 6px; background: rgba(20,22,30,0.14); border-radius: 2px; margin-bottom: 9px; width: 0%; transition: width 0.5s ease; }
.doc-a4-line.is-typed { width: var(--w, 100%); }
.doc-a4-title { height: 10px; background: rgba(166,124,82,0.5); border-radius: 2px; margin-bottom: 16px; width: 0%; transition: width 0.6s ease; }
.doc-a4-title.is-typed { width: 60%; }
.doc-stamp {
  position: absolute; bottom: 26px; left: 50%; width: 74px; height: 74px;
  border: 3px solid #a63c3c; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #a63c3c; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-align: center;
  transform: translate(-50%, 10px) rotate(-18deg) scale(1.6); opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.doc-stamp.is-stamped { opacity: 0.85; transform: translate(-50%, 0) rotate(-18deg) scale(1); }
.doc-stamp::before { content: ''; position: absolute; inset: 6px; border: 1px solid #a63c3c; border-radius: 50%; }
.doc-a4-caption { text-align: right; font-size: 12px; color: var(--text-secondary); margin-top: 16px; }
#about .section-header { margin-bottom: 40px; }
.about-text h2 { margin-bottom: 24px; }
.about-text p { font-size: 16px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; text-align: right; opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.about-text p.is-revealed { opacity: 1; transform: translateY(0); }
.about-stats-row { display: flex; justify-content: center; align-items: stretch; gap: 0; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border-color); }
.about-stat { flex: 1; max-width: 220px; text-align: center; position: relative; padding: 0 28px; opacity: 0; transform: translateY(20px) scale(0.94); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.about-stat.is-revealed { opacity: 1; transform: translateY(0) scale(1); }
.about-stat + .about-stat { border-right: 1px solid var(--border-color); }
.about-stat-icon { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--accent-gold); opacity: 0.85; }
.about-stat-icon svg { width: 100%; height: 100%; }
.about-stat .stat-number {
  font-size: 42px; margin-bottom: 8px;
  background: linear-gradient(180deg, #f0d9b8 0%, var(--accent-gold) 60%, var(--accent-gold-dark) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block;
}
.about-stat .stat-label { font-size: 13px; letter-spacing: 0.5px; }
.about-stat-underline { width: 0; height: 2px; background: var(--accent-gold); margin: 12px auto 0; transition: width 0.9s ease 0.3s; }
.about-stat.is-revealed .about-stat-underline { width: 32px; }
@media (max-width: 600px) { .about-stat { padding: 0 14px; } .about-stat .stat-number { font-size: 32px; } }

.features-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.feature-item { display: flex; flex-direction: column; text-align: right; opacity: 0; transform: translateY(10px); transition: opacity 0.6s ease, transform 0.6s ease; }
.feature-item.is-revealed { opacity: 1; transform: translateY(0); }
.feature-title-row { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; margin-bottom: 2px; }
.feature-text h4 { margin-bottom: 0; font-size: 16px; color: var(--text-primary); }
.feature-text p { margin: 0; font-size: 14px; color: var(--text-secondary); }
.feature-icon { color: var(--accent-gold); font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.contact-section { text-align: center; }
.contact-section .section-desc { margin: 0 auto; }
.contact-section h2 { margin-bottom: 24px; }
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 60px; }

.contact-card { padding: 32px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 4px; }
.contact-card-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 4px; margin: 0 auto 20px; color: var(--accent-gold); }
.contact-card-icon svg { width: 20px; height: 20px; }
.contact-card h4 { margin-bottom: 12px; }
.contact-card p { font-size: 14px; color: var(--text-secondary); }

/* — باکس مستقل ساعت و روزهای مشاوره — */
.schedule-box {
  margin-top: 40px; padding: 40px; border-radius: 12px; text-align: center;
  background: linear-gradient(180deg, var(--bg-lighter), var(--bg-dark));
  border: 1px solid rgba(212,165,116,0.3);
}
.schedule-box-icon {
  width: 48px; height: 48px; margin: 0 auto 16px; color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,165,116,0.35); border-radius: 50%;
}
.schedule-box-icon svg { width: 22px; height: 22px; }
.schedule-box-title { margin-bottom: 24px; font-size: 18px; }
.schedule-box-rows { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.schedule-row { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 200px; }
.schedule-row-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-gold); padding: 4px 14px; border: 1px solid rgba(212,165,116,0.35); border-radius: 999px;
}
.schedule-row-value { font-size: 14px; color: var(--text-secondary); }
@media (max-width: 600px) { .schedule-box { padding: 28px 20px; } .schedule-box-rows { gap: 24px; } }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 4px; padding: 48px; max-width: 500px; width: 90%; position: relative; }
.modal h2 { margin-bottom: 32px; color: var(--text-primary); }
.modal-close { position: absolute; top: 20px; left: 20px; background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; }
.modal-close:hover { color: var(--accent-gold); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-primary); font-family: 'Vazirmatn', sans-serif; font-size: 13px; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-gold); }

/* — کلاس عمومی .input: روی input/select/textarea در هر جای پنل مدیریت
   (نه فقط داخل .form-group) ظاهر تیره و یکسان اعمال می‌کند — قبلاً این کلاس
   فقط برای چیدمان (flex) تعریف شده بود و رنگ/پس‌زمینه نداشت، به همین دلیل
   select ها و برخی فیلدها با ظاهر پیش‌فرض سفید مرورگر نمایش داده می‌شدند. — */
.input {
  width: 100%; padding: 10px 14px; background: var(--bg-dark);
  border: 1px solid var(--border-color); border-radius: 4px;
  color: var(--text-primary); font-family: 'Vazirmatn', sans-serif; font-size: 13px;
  transition: border-color 0.3s;
}
.input:focus { outline: none; border-color: var(--accent-gold); }
.input::placeholder { color: color-mix(in srgb, var(--text-secondary) 80%, transparent); }
select.input {
  cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center; background-size: 16px;
  padding-left: 36px;
}
select.input { color-scheme: dark; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-gold); width: 15px; height: 15px; vertical-align: middle; }
.form-error { color: #e07a7a; font-size: 13px; margin-bottom: 16px; display: none; }
.form-error.active { display: block; }

/* — پاپ‌آپ راهنمای بله پس از ثبت درخواست مشاوره — */
.bale-modal { text-align: center; }
.bale-modal-check {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(123,191,138,0.15); color: #7bbf8a;
  display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700;
}
.bale-modal-text { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 28px; }
.bale-modal-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; font-size: 14px; }
.bale-modal-note { margin-top: 16px; font-size: 12px; color: var(--text-secondary); direction: ltr; }

.admin-header { background: var(--bg-lighter); border-bottom: 1px solid var(--border-color); padding: 24px 0; margin-bottom: 60px; }
.admin-header-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.table-wrapper { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { padding: 16px; background: var(--hover-bg); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-gold); border-bottom: 1px solid var(--border-color); white-space: nowrap; }
td { padding: 16px; border-bottom: 1px solid var(--border-color); font-size: 14px; color: var(--text-secondary); }
tr:hover { background: var(--hover-bg); }

/* — پنل مدیریت: کارت‌های آماری، فیلتر، و کارت‌های درخواست مشاوره — */
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.admin-stats-grid .stat-box { padding: 20px; }
.admin-stats-grid .stat-number { font-size: 26px; margin-bottom: 4px; }
.admin-stats-grid .stat-label { font-size: 12px; }

.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; align-items: center; }
.admin-filter-bar .input { flex: 1 1 220px; }
.admin-filter-bar select.input { flex: 0 1 200px; }
@media (max-width: 600px) {
  .admin-filter-bar .input, .admin-filter-bar select.input, .admin-filter-bar .btn { flex: 1 1 100%; }
}

.consult-card { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; margin-bottom: 20px; transition: border-color 0.3s; }
.consult-card.is-overdue { border-color: #e07a7a; }
.consult-card.is-today { border-color: var(--accent-gold); }

.consult-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.consult-card-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.consult-card-phone { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.consult-card-created { font-size: 12px; color: var(--text-secondary); margin-top: 4px; opacity: 0.8; }
.consult-status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Vazirmatn', sans-serif; font-size: 12.5px; font-weight: 600;
  padding: 7px 16px 7px 14px; border-radius: 999px; border: 1px solid; white-space: nowrap;
  letter-spacing: 0.2px;
}
.consult-status-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0;
}

.consult-reminder { font-size: 13px; padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; }
.consult-reminder.is-overdue { background: rgba(224,122,122,0.12); color: #e07a7a; }
.consult-reminder.is-today { background: rgba(212,165,116,0.12); color: var(--accent-gold); }

.consult-edit-form { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--border-color); padding-top: 16px; margin-top: 4px; }
.consult-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.consult-date-row { display: flex; gap: 8px; flex-wrap: wrap; }
.consult-date-row .input { flex: 1 1 90px; min-width: 90px; }
.consult-clear-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); margin-top: 8px; font-weight: 400; cursor: pointer; }
.consult-card-actions { display: flex; justify-content: flex-end; }
textarea.input { resize: vertical; min-height: 70px; }

.consult-delete-form { margin-top: 12px; text-align: left; }
.consult-delete-btn { background: none; border: none; color: #e07a7a; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.consult-delete-btn:hover { color: #f0a0a0; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-form { background: var(--bg-lighter); border: 1px solid var(--border-color); padding: 48px; border-radius: 4px; max-width: 400px; width: 90%; }
.login-form h2 { text-align: center; margin-bottom: 32px; }

.settings-group { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 8px; padding: 24px; margin-bottom: 24px; }
.settings-group-title { font-size: 15px; color: var(--accent-gold); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); }
.settings-group .form-group:last-child { margin-bottom: 0; }

.success-msg { position: fixed; top: 24px; right: 24px; background: var(--accent-gold); color: var(--bg-dark); padding: 16px 24px; border-radius: 4px; font-weight: 600; display: none; z-index: 2000; animation: slideIn 0.3s ease; }
.success-msg.active { display: block; }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

footer { background: var(--bg-lighter); border-top: 1px solid var(--border-color); padding: 60px 0; }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.footer-section h4 { margin-bottom: 16px; color: var(--text-primary); }
.footer-section p, .footer-section a { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid var(--border-color); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: color 0.3s, border-color 0.3s; }
.footer-social a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 32px; margin-top: 48px; text-align: center; font-size: 12px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .navbar-content { padding: 0 20px; } .container { padding: 0 20px; } .hero { padding: 60px 20px; } .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; } .about-content { grid-template-columns: 1fr; gap: 40px; } .navbar-links { gap: 16px; } .modal { padding: 32px; }
  .admin-header-content { padding: 0 20px; }
  .consult-card { padding: 18px; }
  .navbar-brand { font-size: 15px; gap: 6px; }
}

/* =====================  مقالات  ===================== */
.article-date { display: block; font-size: 12px; color: var(--text-secondary); opacity: 0.9; margin-bottom: 8px; }
.article-more { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--accent-gold); }

/* سه باکس صفحه اول */
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { display: flex; flex-direction: column; background: var(--bg-lighter); border: 1px solid rgba(212,165,116,0.3); border-radius: 12px; overflow: hidden; color: var(--text-primary); transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-6px); border-color: var(--accent-gold); box-shadow: 0 20px 40px -18px rgba(212,165,116,0.35); color: var(--text-primary); }
.article-card-cover { display: block; width: 100%; height: 190px; background: var(--bg-dark); overflow: hidden; }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.article-card:hover .article-card-cover img { transform: scale(1.05); }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.article-card-title { font-size: 18px; font-weight: 700; line-height: 1.7; margin-bottom: 10px; }
.article-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.9; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .article-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .article-cards { grid-template-columns: 1fr; } .article-card-cover { height: 180px; } }

/* صفحه آرشیو */
.page-hero { padding: 70px 0 30px; border-bottom: 1px solid var(--border-color); }
.page-title { font-size: 36px; color: var(--text-primary); margin-bottom: 12px; line-height: 1.5; }
.article-archive { padding: 50px 0 90px; }
.article-list { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }
.article-row { display: flex; gap: 22px; align-items: stretch; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; color: var(--text-primary); transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.article-row:hover { border-color: var(--accent-gold); background: var(--hover-bg); transform: translateY(-3px); color: var(--text-primary); }
.article-row-thumb { flex: 0 0 200px; height: 140px; border-radius: 8px; overflow: hidden; background: var(--bg-dark); }
.article-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-row-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.article-row-title { font-size: 19px; font-weight: 700; line-height: 1.7; margin-bottom: 8px; }
.article-row-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-empty { text-align: center; color: var(--text-secondary); padding: 60px 20px; border: 1px dashed var(--border-color); border-radius: 12px; line-height: 2; }
@media (max-width: 640px) {
  .page-hero { padding: 50px 0 24px; }
  .page-title { font-size: 28px; }
  .article-row { flex-direction: column; padding: 14px; }
  .article-row-thumb { flex: none; width: 100%; height: 180px; }
}
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a { min-width: 40px; padding: 8px 14px; text-align: center; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); }
.pagination a:hover, .pagination a.is-current { border-color: var(--accent-gold); color: var(--bg-dark); background: var(--accent-gold); }

/* صفحه تک‌مقاله */
.article-page { padding: 50px 0 90px; }
.article-container { max-width: 820px; }
.article-crumbs { font-size: 13px; color: var(--text-secondary); margin-bottom: 26px; }
.article-head { margin-bottom: 28px; }
.article-title { font-size: 34px; line-height: 1.7; color: var(--text-primary); margin-bottom: 14px; }
.article-lead { font-size: 16px; color: var(--text-secondary); line-height: 2; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; margin-bottom: 32px; display: block; border: 1px solid var(--border-color); }
.article-body, .rte-area { font-size: 16px; line-height: 2.1; color: var(--text-primary); overflow-wrap: anywhere; }
.article-body h2, .rte-area h2 { font-size: 24px; margin: 36px 0 14px; color: var(--accent-gold); line-height: 1.7; }
.article-body h3, .rte-area h3 { font-size: 20px; margin: 28px 0 12px; line-height: 1.7; }
.article-body h4, .rte-area h4 { font-size: 17px; margin: 22px 0 10px; }
.article-body p, .rte-area p { margin: 0 0 16px; }
.article-body ul, .article-body ol, .rte-area ul, .rte-area ol { margin: 0 0 18px; padding-right: 26px; padding-left: 0; }
.article-body li, .rte-area li { margin-bottom: 6px; }
.article-body blockquote, .rte-area blockquote { margin: 22px 0; padding: 14px 20px; border-right: 3px solid var(--accent-gold); background: var(--bg-lighter); border-radius: 6px; color: var(--text-secondary); }
.article-body a, .rte-area a { text-decoration: underline; text-underline-offset: 4px; }
.article-body img, .rte-area img { display: block; max-width: 100%; height: auto; margin: 22px auto; border-radius: 10px; border: 1px solid var(--border-color); }
.article-body hr, .rte-area hr { border: 0; border-top: 1px solid var(--border-color); margin: 30px 0; }
.article-cta { margin-top: 48px; padding: 28px; text-align: center; background: var(--bg-lighter); border: 1px solid rgba(212,165,116,0.3); border-radius: 12px; }
.article-cta p { color: var(--text-secondary); margin-bottom: 18px; line-height: 2; }
.article-others { margin-top: 48px; }
.article-others h3 { margin-bottom: 14px; }
.article-others ul { list-style: none; margin: 0 0 20px; padding: 0; }
.article-others li { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.article-others li span { font-size: 12px; color: var(--text-secondary); }
@media (max-width: 640px) {
  .article-page { padding: 30px 0 60px; }
  .article-title { font-size: 25px; }
  .article-body, .rte-area { font-size: 15px; }
  .article-body h2, .rte-area h2 { font-size: 21px; }
  .article-cover { max-height: 240px; }
  .article-cta { padding: 20px 16px; }
}

/* ادمین: فهرست مقالات */
.article-admin-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.article-admin-thumb { width: 96px; height: 70px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.article-admin-info { flex: 1 1 260px; min-width: 0; }
.article-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.article-badge { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-left: 8px; }
.article-badge.is-published { background: rgba(123,191,138,0.15); color: #7bbf8a; }
.article-badge.is-draft { background: rgba(138,143,156,0.18); color: #8a8f9c; }
.article-btn-danger { border-color: #e07a7a; color: #e07a7a; }
.article-btn-danger:hover { background: #e07a7a; color: var(--bg-dark); border-color: #e07a7a; }
@media (max-width: 640px) {
  .article-admin-actions { width: 100%; }
  .article-admin-actions .btn, .article-admin-actions form { flex: 1 1 calc(50% - 8px); }
  .article-admin-actions form .btn { width: 100%; }
  .article-admin-actions a.btn { text-align: center; }
}

/* ادمین: فرم و ویرایشگر */
.article-edit-wrap { max-width: 980px; }
.article-cover-preview { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.article-cover-preview img { width: 160px; max-width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.article-check { display: flex; gap: 8px; align-items: center; font-weight: 400 !important; cursor: pointer; }
.article-submit-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .article-submit-row .btn { width: 100%; } }
.rte { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: var(--bg-dark); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--bg-lighter); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 5; }
.rte-toolbar button { min-width: 36px; height: 36px; padding: 0 10px; background: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-primary); font-family: 'Vazirmatn', sans-serif; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.rte-toolbar button:hover, .rte-toolbar button.is-active { border-color: var(--accent-gold); background: var(--accent-gold); color: var(--bg-dark); }
.rte-sep { width: 1px; background: var(--border-color); margin: 4px 2px; }
.rte-area { min-height: 380px; max-height: 70vh; overflow-y: auto; padding: 20px; outline: none; }
.rte-area:focus { box-shadow: inset 0 0 0 1px var(--accent-gold); }
.rte-source { width: 100%; min-height: 380px; border: 0; border-radius: 0; font-family: monospace; font-size: 13px; line-height: 1.7; }
.rte-status { min-height: 22px; padding: 4px 14px; font-size: 12px; color: var(--accent-gold); }
.rte-status.is-error { color: #e07a7a; }
@media (max-width: 640px) { .rte-toolbar button { min-width: 34px; height: 34px; padding: 0 8px; } .rte-area { padding: 14px; min-height: 300px; } }

/* دسته‌بندی مقالات */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 auto 32px; max-width: 900px; }
.cat-chips a { padding: 8px 20px; border: 1px solid var(--border-color); border-radius: 20px; font-size: 13px; color: var(--text-secondary); transition: all 0.2s; }
.cat-chips a:hover, .cat-chips a.is-current { border-color: var(--accent-gold); background: var(--accent-gold); color: var(--bg-dark); }
.cat-admin-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cat-admin-row .input { flex: 1 1 200px; }
@media (max-width: 640px) { .cat-admin-row .btn, .cat-admin-row form { flex: 1 1 100%; } .cat-admin-row form .btn { width: 100%; } }

/* ----- متن طولانی مقالات: جاستیفای + ارتفاع خط مناسب ----- */
.article-body p, .article-body li, .article-body blockquote, .article-lead, .rte-area p, .rte-area li, .rte-area blockquote,
.article-card-excerpt, .article-row-excerpt, .article-author span, .article-cta p {
  text-align: justify; text-justify: inter-word; line-height: 2.2; hyphens: manual;
}
.article-body [style*="text-align:center"], .rte-area [style*="text-align:center"] { text-align: center; }
.article-body [style*="text-align:left"], .rte-area [style*="text-align:left"] { text-align: left; }
.article-body [style*="text-align:right"], .rte-area [style*="text-align:right"] { text-align: right; }
.article-body h2, .article-body h3 { scroll-margin-top: 90px; text-align: right; }

.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.article-meta strong { color: var(--text-primary); font-weight: 600; }
.article-toc { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px 22px; margin-bottom: 32px; }
.article-toc strong { display: block; margin-bottom: 10px; color: var(--accent-gold); }
.article-toc ol { margin: 0; padding: 0 20px 0 0; }
.article-toc li { margin-bottom: 6px; font-size: 14px; line-height: 1.9; }
.article-toc li.toc-l3 { margin-right: 18px; font-size: 13px; opacity: 0.9; }
.article-toc a { color: var(--text-secondary); }
.article-toc a:hover { color: var(--accent-gold); }
.article-author { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding: 20px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 12px; }
.article-author img { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; border: 1px solid rgba(212,165,116,0.3); border-radius: 50%; padding: 8px; }
.article-author strong { display: block; margin-bottom: 4px; }
.article-author span { display: block; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 640px) { .article-author { flex-direction: column; text-align: center; } .article-meta { flex-direction: column; gap: 4px; } .article-toc { padding: 14px 16px; } }

.seo-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.seo-count { font-size: 12px; font-weight: 400; margin-right: 8px; }
.seo-count.is-ok { color: #7bbf8a; }
.seo-count.is-warn { color: var(--accent-gold); }
.seo-tips { margin: 16px 0 0; padding: 0 20px 0 0; font-size: 13px; color: var(--text-secondary); line-height: 2; }

/* منوی کشویی سفارشی */
.cselect { position: relative; width: 100%; }
.cselect-native { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cselect-btn { width: 100%; text-align: right; cursor: pointer; display: block; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a574' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; background-size: 16px; padding-left: 36px; min-height: 40px; }
.cselect.is-open .cselect-btn { border-color: var(--accent-gold); }
.cselect-list { display: none; position: absolute; right: 0; left: 0; top: calc(100% + 4px); z-index: 50; margin: 0; padding: 4px; list-style: none; max-height: 240px; overflow-y: auto; background: #1a1f2e; border: 1px solid var(--accent-gold); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.cselect.is-open .cselect-list { display: block; }
.cselect.is-up .cselect-list { top: auto; bottom: calc(100% + 4px); }
.cselect-list li { padding: 9px 12px; border-radius: 6px; font-size: 13px; color: #e8e6e3; cursor: pointer; line-height: 1.6; }
.cselect-list li.is-active, .cselect-list li:hover { background: #2a2f3f; color: #fff; }
.cselect-list li.is-selected { background: #d4a574; color: #0f1419; font-weight: 600; }

/* ===== چیدمان اینفوگرافیکی صفحه مقاله ===== */
.article-page { padding: 0 0 90px; }
.art-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(135deg, #16233b 0%, #0f1419 70%); border-bottom: 1px solid var(--border-color); }
.art-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-hero-shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgba(10,16,30,0.92) 0%, rgba(10,16,30,0.78) 45%, rgba(10,16,30,0.25) 100%), linear-gradient(0deg, rgba(15,20,25,0.85) 0%, transparent 55%); }
.art-hero:not(.has-cover) .art-hero-shade { background: radial-gradient(circle at 15% 20%, rgba(212,165,116,0.12), transparent 55%); }
.art-hero-inner { position: relative; z-index: 2; padding-top: 36px; padding-bottom: 44px; width: 100%; }
.art-hero .article-crumbs { color: rgba(232,230,227,0.75); margin-bottom: 36px; }
.art-hero .article-crumbs a { color: rgba(232,230,227,0.85); }
.art-hero-text { max-width: 640px; padding-right: 18px; border-right: 3px solid var(--accent-gold); }
.art-hero-title { font-size: 34px; line-height: 1.8; color: #fff; margin: 0 0 10px; font-weight: 800; }
.art-hero-sub { font-size: 17px; line-height: 2; color: var(--accent-gold); margin: 0; font-weight: 600; }
.article-container { max-width: 980px; padding-top: 28px; }
.article-container .article-meta { margin-bottom: 26px; }

.article-body .art-block { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: var(--bg-lighter); border: 1px solid rgba(212,165,116,0.25); border-radius: 14px; padding: 26px; margin-bottom: 22px; transition: border-color 0.3s; }
.article-body .art-block:hover { border-color: rgba(212,165,116,0.55); }
.article-body .art-block.has-media { grid-template-columns: 1.35fr 1fr; }
.article-body .art-block.has-media.media-start { grid-template-columns: 1fr 1.35fr; }
.article-body .art-block.has-media.media-start .art-media { order: -1; }
.article-body .art-intro { background: transparent; border: 0; padding: 0 0 6px; }
.art-block-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.art-icon { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(212,165,116,0.12); border: 1px solid rgba(212,165,116,0.4); color: var(--accent-gold); }
.art-icon svg { width: 24px; height: 24px; }
.article-body .art-block-head h2 { margin: 0; font-size: 21px; line-height: 1.7; color: var(--text-primary); }
.article-body .art-block-text > :last-child { margin-bottom: 0; }
.article-body .art-media { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.article-body .art-media img { margin: 0; border: 0; border-radius: 0; width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.article-body .art-block ul { list-style: none; padding: 0; margin: 0 0 12px; }
.article-body .art-block ul li { position: relative; padding-right: 30px; margin-bottom: 10px; }
.article-body .art-block ul li::before { content: '✓'; position: absolute; right: 0; top: 0; color: var(--accent-gold); font-weight: 800; }
.article-body .art-block.is-checklist { background: linear-gradient(135deg, rgba(212,165,116,0.1), var(--bg-lighter) 60%); }

.art-cta { display: grid; grid-template-columns: 1.5fr 1fr; margin-top: 44px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #14233f 0%, #0f1b33 100%); border: 1px solid rgba(212,165,116,0.35); }
.art-cta-text { padding: 34px; }
.art-cta-text h2 { font-size: 22px; line-height: 1.8; color: #fff; margin: 0 0 12px; }
.art-cta-text p { color: rgba(232,230,227,0.85); line-height: 2.1; margin: 0 0 22px; text-align: justify; }
.art-cta-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.art-cta-phone { color: var(--accent-gold); font-weight: 700; font-size: 18px; }
.art-cta-photo { position: relative; min-height: 220px; overflow: hidden; }
.art-cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.art-cta-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #14233f 0%, rgba(20,35,63,0) 45%); }
.article-container .article-toc { margin-bottom: 26px; }

@media (max-width: 760px) {
  .art-hero { min-height: 260px; }
  .art-hero-inner { padding-top: 24px; padding-bottom: 28px; }
  .art-hero .article-crumbs { margin-bottom: 22px; }
  .art-hero-title { font-size: 24px; }
  .art-hero-sub { font-size: 14px; }
  .art-hero-text { padding-right: 12px; }
  .article-body .art-block, .article-body .art-block.has-media, .article-body .art-block.has-media.media-start { grid-template-columns: 1fr; padding: 18px; }
  .article-body .art-block.has-media.media-start .art-media { order: 0; }
  .article-body .art-media img { max-height: 220px; }
  .art-cta { grid-template-columns: 1fr; }
  .art-cta-photo { order: -1; min-height: 160px; }
  .art-cta-photo::after { background: linear-gradient(0deg, #14233f 0%, rgba(20,35,63,0) 60%); }
  .art-cta-text { padding: 22px 18px; }
}

/* ===== تنظیمات سایت: منوی بخش‌بندی‌شده (دسکتاپ: سایدبار، موبایل: منوی کشویی مثل وب‌اپ) ===== */
.set-layout { max-width: 1340px; margin: 0 auto; padding: 24px 24px 40px; display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.set-admin-header { margin-bottom: 30px; }
.set-sidebar { position: sticky; top: 16px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 14px; padding: 14px; max-height: calc(100vh - 32px); overflow-y: auto; }
.set-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 14px; border-bottom: 1px solid var(--border-color); margin-bottom: 8px; }
.set-close { display: none; }
.set-brand { display: inline-flex; align-items: center; gap: 10px; }
.set-brand img { width: 30px; height: 30px; object-fit: contain; }
.set-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--accent-gold); opacity: 0.85; padding: 14px 10px 6px; }
.set-cat:first-of-type { padding-top: 4px; }
.set-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-secondary); font-size: 14px; transition: background 0.2s, color 0.2s; }
.set-link:hover { background: var(--hover-bg); color: var(--text-primary); }
.set-link.is-active { background: rgba(212,165,116,0.14); color: var(--accent-gold); font-weight: 700; box-shadow: inset -3px 0 0 var(--accent-gold); }
.set-link-ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-flex; }
.set-link-ico svg { width: 20px; height: 20px; }
.set-main { min-width: 0; }
.set-panel[hidden] { display: none; }
.set-panel { background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 14px; padding: 26px; }
.set-panel-head { margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.set-panel-cat { display: inline-block; font-size: 12px; color: var(--accent-gold); margin-bottom: 6px; }
.set-panel-head h3 { margin: 0; font-size: 20px; line-height: 1.7; }
.set-subcard { background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px 18px 6px; margin-bottom: 18px; }
.set-subcard-title { font-size: 13px; font-weight: 700; color: var(--accent-gold); margin-bottom: 14px; }
.set-panel .form-group:last-child { margin-bottom: 0; }
.set-savebar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 14px 18px; background: rgba(26,31,46,0.96); border: 1px solid var(--border-color); border-radius: 12px; }
.set-dirty { font-size: 13px; color: var(--accent-gold); }
.set-save-btn { padding: 12px 36px; margin-right: auto; }
.set-mobilebar, .set-overlay { display: none; }
.set-footer { margin-top: 40px; padding: 24px 0; }
#set-flash { margin-bottom: 18px; }

@media (max-width: 900px) {
  .set-admin-header { display: none; }
  .set-body { padding-bottom: 8px; }
  .set-mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--bg-lighter); border-bottom: 1px solid var(--border-color); }
  .set-mobilebar-title { flex: 1; font-weight: 700; font-size: 16px; text-align: center; }
  .set-menu-btn, .set-mobilebar-back { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); border-radius: 10px; background: transparent; color: var(--accent-gold); cursor: pointer; }
  .set-menu-btn svg, .set-mobilebar-back svg { width: 22px; height: 22px; }
  .set-layout { display: block; padding: 18px 14px 20px; }
  .set-sidebar { position: fixed; top: 0; bottom: 0; right: 0; width: min(84vw, 320px); max-height: none; z-index: 60; border-radius: 0; border-width: 0 0 0 1px; transform: translateX(100%); transition: transform 0.28s ease; padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); }
  .set-sidebar.is-open { transform: translateX(0); box-shadow: -20px 0 50px rgba(0,0,0,0.5); }
  .set-sidebar-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 12px; border-bottom: 1px solid var(--border-color); margin-bottom: 6px; }
  .set-close { width: 36px; height: 36px; border: 1px solid var(--border-color); border-radius: 10px; background: transparent; color: var(--text-primary); font-size: 16px; cursor: pointer; }
  .set-link { padding: 13px 12px; font-size: 15px; }
  .set-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 50; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
  .set-overlay.is-open { opacity: 1; pointer-events: auto; }
  .set-panel { padding: 18px 16px; }
  .set-panel-head h3 { font-size: 17px; }
  .set-savebar { position: fixed; right: 0; left: 0; bottom: 0; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
  .set-save-btn { flex: 1; margin: 0; padding: 14px; font-size: 15px; }
  .set-main { padding-bottom: 86px; }
  .set-dirty { display: none !important; }
  .set-footer { margin-bottom: 70px; }
}

/* ===== پنل یکپارچه مدیریت ===== */
.set-link { width: 100%; background: transparent; border: 0; font-family: inherit; text-align: right; cursor: pointer; margin-bottom: 2px; }
.set-link-text { flex: 1; }
.set-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #e07a7a; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.set-dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: #e07a7a; }
.set-menu-btn { position: relative; }
.set-group-btn.is-active { color: var(--accent-gold); font-weight: 700; }
.set-group-btn.is-active:not(.x) { background: transparent; box-shadow: none; }
.set-chev { font-size: 20px; line-height: 1; transition: transform 0.2s; color: var(--text-secondary); }
.set-group.is-open .set-chev { transform: rotate(-90deg); }
.set-sub { display: none; margin: 2px 0 8px; padding-right: 20px; border-right: 1px solid var(--border-color); margin-right: 20px; }
.set-group.is-open .set-sub { display: block; }
.set-subcat { font-size: 11px; font-weight: 700; color: var(--accent-gold); opacity: 0.85; padding: 10px 10px 4px; }
.set-sublink { display: block; width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text-secondary); background: transparent; border: 0; font-family: inherit; text-align: right; cursor: pointer; }
.set-sublink:hover { background: var(--hover-bg); color: var(--text-primary); }
.set-sublink.is-active { color: var(--accent-gold); background: rgba(212,165,116,0.12); font-weight: 700; }
.set-sublink-btn { color: #e07a7a; }
.set-viewsite { margin-top: 10px; border-top: 1px solid var(--border-color); border-radius: 0 0 10px 10px; padding-top: 14px; }
.adm-pagehead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-pagehead h1 { font-size: 24px; line-height: 1.7; margin: 0; }
.adm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .set-close { display: inline-flex; align-items: center; justify-content: center; }
  .set-sidebar-head { padding: 6px 6px 12px; }
  .adm-pagehead h1 { display: none; }
  .adm-pagehead { margin-bottom: 14px; }
  .adm-actions { width: 100%; }
  .adm-actions .btn { flex: 1 1 calc(50% - 10px); text-align: center; }
  .set-main { padding-bottom: 20px; }
  .set-body .set-main:has(.set-savebar) { padding-bottom: 86px; }
}

/* ===== نظرات مقالات (سایت) ===== */
.art-comments { margin: 48px 0 24px; }
.art-comments > h2 { font-size: 22px; margin-bottom: 20px; color: var(--text-primary); }
.cm-count { color: var(--accent-gold); font-size: 16px; }
.cm-empty { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.cm-flash { padding: 14px 18px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.cm-flash.is-ok { background: rgba(80,180,120,0.12); border-color: rgba(80,180,120,0.5); color: #8fe0b0; }
.cm-flash.is-err { background: rgba(220,90,90,0.12); border-color: rgba(220,90,90,0.5); color: #f0a0a0; }
.cm-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border-color); }
.cm-avatar { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-lighter); border: 1px solid var(--accent-gold); color: var(--accent-gold); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.cm-body { flex: 1; min-width: 0; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.cm-head strong { color: var(--text-primary); font-size: 14px; }
.cm-head time { color: var(--text-secondary); font-size: 12px; }
.cm-body p { margin: 0; font-size: 14px; line-height: 2; color: var(--text-secondary); overflow-wrap: anywhere; }
.cm-reply { margin-top: 14px; padding: 12px 16px; background: var(--bg-lighter); border-right: 3px solid var(--accent-gold); border-radius: 4px; }
.cm-badge { background: var(--accent-gold); color: var(--bg-dark); font-size: 11px; padding: 2px 10px; border-radius: 99px; font-weight: 700; }
.cm-form { margin-top: 32px; padding: 24px; background: var(--bg-lighter); border: 1px solid var(--border-color); border-radius: 6px; }
.cm-form h3 { font-size: 17px; margin-bottom: 18px; color: var(--text-primary); }
.cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .cm-row { grid-template-columns: 1fr; gap: 0; } .cm-form { padding: 18px; } }
.cm-hp { position: absolute; right: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm-note { margin: 14px 0 0; font-size: 12px; color: var(--text-secondary); line-height: 1.9; }

/* ===== مدیریت نظرات (ادمین) ===== */
.cm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cm-tab { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 99px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.cm-tab span { opacity: .75; margin-right: 4px; }
.cm-tab.is-active { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(212,165,116,0.08); }
.cm-admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cm-admin-mail { margin-right: 10px; font-size: 12px; color: var(--text-secondary); }
.cm-admin-meta { font-size: 12px; color: var(--text-secondary); margin: 6px 0 10px; }
.cm-admin-text { font-size: 14px; line-height: 2; margin: 0 0 14px; overflow-wrap: anywhere; }
.cm-admin-reply { background: var(--bg-dark); border-right: 3px solid var(--accent-gold); border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; }
.cm-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cm-admin-actions form { margin: 0; }
.cm-st { font-size: 12px; padding: 3px 12px; border-radius: 99px; border: 1px solid var(--border-color); }
.cm-st-pending { color: #e8c170; border-color: rgba(232,193,112,.5); }
.cm-st-approved { color: #8fe0b0; border-color: rgba(80,180,120,.5); }
.cm-st-rejected { color: #f0a0a0; border-color: rgba(220,90,90,.5); }
.cm-details { margin-top: 14px; }
.cm-details summary { cursor: pointer; font-size: 13px; color: var(--accent-gold); }
.cm-details form { margin-top: 10px; }
.cm-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0; }
.cm-pager a { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: 4px; text-decoration: none; color: var(--text-secondary); }
.cm-pager a.is-active { border-color: var(--accent-gold); color: var(--accent-gold); }
