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

:root {
  /* ── تایپوگرافی: مقیاس بزرگ‌تر و ویرایشی ── */
  --fs-xs: 13px;     --fs-sm: 15px;    --fs-base: 17px;
  --fs-md: 19px;     --fs-lg: 22px;    --fs-xl: 28px;    --fs-2xl: 46px;

  /* ── فاصله‌گذاری سخاوتمندانه ── */
  --sp-1: 6px;   --sp-2: 12px;  --sp-3: 18px;  --sp-4: 24px;
  --sp-5: 32px;  --sp-6: 40px;  --sp-8: 56px;  --sp-10: 90px;

  /* ── شعاع بسیار بزرگ ── */
  --r-xs: 12px;  --r-sm: 18px;  --r-md: 24px;
  --r-lg: 32px;  --r-xl: 42px;  --r-full: 999px;

  /* ── سایه فقط نرم ── */
  --sh-1: 0 6px 18px rgba(0,0,0,.035);
  --sh-2: 0 10px 30px rgba(0,0,0,.05);
  --sh-3: 0 20px 50px rgba(0,0,0,.065);
  --sh-4: 0 30px 80px rgba(0,0,0,.08);

  --dur-fast: 200ms;  --dur-base: 300ms;  --dur-slow: 350ms;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* ── پالت ── */
  --bg: #F8F7F5;
  --surface: #FFFFFF;
  --ink: #1F1F1F;
  --ink-soft: #707070;
  --primary: #6F9278;
  --primary-dark: #5B7D66;
  --primary-light: #8FAE96;
  --accent: #E7B95D;
  --emergency: #D36C6C;
  --success: #66B27B;
  --warning: #E7B95D;
  --danger: #D36C6C;
  --line: #ECE8E2;

  --glass: rgba(255,255,255,.78);
  --blur: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Vazirmatn', sans-serif;
  background: linear-gradient(180deg, #FCFBF9, #F5F3EF);
  background-attachment: fixed;
  color: var(--ink);
  direction: rtl;
  font-size: var(--fs-base);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
.display { font-weight: 800; letter-spacing: -.5px; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-sm); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-xs); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.hidden { display: none !important; }


/* ---------- ورود / ثبت‌نام ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.auth-card {
  background: #fff; border-radius: var(--r-lg); padding: var(--sp-6);
  width: 100%; max-width: 440px; box-shadow: var(--sh-4); position: relative;
}
.auth-logo { display: flex; align-items: center; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-1); font-size: var(--fs-xl); font-weight: 800; }
.auth-sub { text-align: center; color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: var(--sp-4); background: var(--bg); border-radius: var(--r-full); padding: 6px; }
.auth-tabs button { flex: 1; padding: 12px; border: none; border-radius: var(--r-full); background: transparent; font-family: inherit; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; color: var(--ink-soft); transition: all var(--dur-base) var(--ease); }
.auth-tabs button.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(111,146,120,.3); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); margin-bottom: var(--sp-1); }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: #fff; outline: none;
  font-size: var(--fs-sm); transition: all var(--dur-base) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(111,146,120,.1);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 15px 32px; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 700; border: none; cursor: pointer;
  transition: all var(--dur-slow) var(--ease);
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 15px 40px rgba(111,146,120,.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); }
.btn-accent { background: var(--accent); color: white; }
.btn-danger-soft { background: #F3D8D4; color: var(--danger); }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }
.btn-ghost {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.btn-ghost:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.error-box { background: #F3D8D4; color: var(--danger); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 12px; font-weight: 700; }
.info-box { background: rgba(23,80,78,0.08); color: var(--primary); padding: 10px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 12px; }

/* ---------- چیدمان اصلی ---------- */
.app-shell { display: flex; min-height: 100vh; }
@media (max-width: 1024px) { .app-shell { flex-direction: column; } }

.sidebar {
  width: 288px; flex-shrink: 0;
  background: var(--glass); backdrop-filter: blur(var(--blur));
  border-inline-start: 1px solid rgba(255,255,255,.6);
  padding: var(--sp-4); display: flex; flex-direction: column;
  box-shadow: var(--sh-1);
}
@media (max-width: 1024px) { .sidebar { width: 100%; } }
.brand { display: flex; align-items: center; gap: 8px; font-size: 26px; margin-bottom: 16px; padding: 0 4px; }


.nav { display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 1025px) { .nav { flex-direction: column; gap: 0; } }
.nav button {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 13px 16px; border-radius: var(--r-sm); border: none;
  background: transparent; color: #303030;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; white-space: nowrap; width: 100%;
  transition: all var(--dur-base) var(--ease);
}
.nav button:hover { background: rgba(111,146,120,.09); color: var(--primary); }
.nav button.active { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(111,146,120,.28); }
.nav button.emergency-nav.active { background: var(--danger); color: #fff; box-shadow: 0 8px 20px rgba(211,108,108,.3); }
.badge { background: var(--warning); color: white; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-inline-start: auto; }

.main { flex: 1; padding: var(--sp-6) var(--sp-8); padding-bottom: 130px; max-width: 1480px; min-width: 0; }
@media (max-width: 640px) { .main { padding: 14px; padding-bottom: 140px; } }

.card {
  background: var(--surface); border: none; border-radius: var(--r-md);
  padding: var(--sp-5); margin-bottom: var(--sp-4);
  box-shadow: var(--sh-2); transition: all var(--dur-slow) var(--ease);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.col-span-2 { grid-column: span 2; }
@media (max-width: 760px) { .col-span-2 { grid-column: span 1; } }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.section-title h2 { font-size: var(--fs-xl); margin: 0; font-weight: 800; letter-spacing: -.8px; }
.stripe { height: 8px; border-radius: 999px; overflow: hidden; display: flex; margin-bottom: 14px; }
.stripe div { flex: 1; }

.id-card-body { display: flex; align-items: center; gap: 14px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: #E5E1D6; color: var(--ink-soft); }

.dial-wrap { display: flex; align-items: center; gap: 16px; }
.dial { position: relative; width: 128px; height: 128px; flex-shrink: 0; }
.dial-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-num b { font-size: 30px; }
.dial-num span { font-size: 11px; color: var(--ink-soft); }

.care-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.care-row:last-child { border-bottom: none; }
.care-row .info { flex: 1; min-width: 140px; }
.care-row .interval-tag { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #E5E1D6; color: var(--ink-soft); margin-inline-end: 6px; }
.status-line { font-size: 12px; margin-top: 2px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-xs); font-weight: 700; padding: 6px 14px; border-radius: var(--r-full); }
.chip button { border: none; background: transparent; cursor: pointer; }

.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); margin-bottom: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-card { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, rgba(224,148,47,0.15), rgba(23,80,78,0.15)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 6px; inset-inline-start: 6px; background: white; border: none; border-radius: 999px; padding: 4px; cursor: pointer; z-index: 2; }

.modal-overlay { position: fixed; inset: 0; background: rgba(35,32,28,0.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-box { background: var(--surface); border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: between; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-head span { font-family: 'Lalezar', sans-serif; font-size: 18px; }
.modal-head button { border: none; background: transparent; cursor: pointer; }
.modal-body { padding: 16px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }

.row-flex { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

.emoji-btn { width: 38px; height: 38px; border-radius: 10px; border: 2px solid transparent; background: #F2EFE7; font-size: 18px; cursor: pointer; }
.emoji-btn.selected { background: rgba(23,80,78,0.15); border-color: var(--primary); }

.progress-bar { width: 100%; height: 8px; border-radius: 999px; overflow: hidden; background: #E5E1D6; }
.progress-bar div { height: 100%; }

.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-swatch.selected { border-color: var(--ink); }

.role-tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; color: white; font-weight: 700; margin-top: 4px; }
.top-error { background: #F3D8D4; color: var(--danger); padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.top-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.muted { color: var(--ink-soft); font-size: 13px; }
.icon-btn { border: none; background: transparent; cursor: pointer; display: inline-flex; }

.loading-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); gap: 8px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- انتخابگر تاریخ شمسی ---------- */
.jdate { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.jdate .jd-part {
  padding: 8px 6px; border-radius: 10px; border: 1px solid #DDD7C9; background: #FBFAF6;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px; outline: none; min-width: 72px;
}
.care-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn.sm { padding: 10px 20px; font-size: var(--fs-xs); }

/* ---------- گالری ---------- */
.preview-img { width: 100%; max-height: 240px; object-fit: contain; border-radius: 12px; background: #F2EFE7; margin-bottom: 12px; }
.photo-meta {
  position: absolute; bottom: 0; inset-inline: 0; background: rgba(35,32,28,0.6); color: white;
  font-size: 10px; padding: 4px 6px; text-align: center; z-index: 1;
}
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.check-box { width: 24px; height: 24px; border: none; border-radius: 8px; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- اورژانس ---------- */
.emergency-wrap { background: #FBEDEA; margin: -20px; padding: 20px; border-radius: 18px; }
.emergency-head { display: flex; align-items: center; gap: 8px; background: var(--emergency); color: white; padding: 12px; border-radius: 14px; margin-bottom: 18px; }
.emergency-call { background: var(--emergency); color: white; padding: 18px; border-radius: 16px; font-size: 16px; }
.emergency-call.dark { background: var(--ink); }

/* ---------- فیلترها ---------- */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
  padding: 10px 20px; border-radius: var(--r-full); border: 1px solid var(--line); cursor: pointer;
  background: #fff; color: var(--ink-soft); font-family: inherit;
  font-size: var(--fs-xs); font-weight: 700; transition: all var(--dur-base) var(--ease);
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 8px 20px rgba(111,146,120,.25); }

/* ---------- باکس بازشونده افزودن ---------- */
.upload-box summary {
  cursor: pointer; font-weight: 700; color: var(--primary); list-style: none; user-select: none;
}
.upload-box summary::-webkit-details-marker { display: none; }

/* ---------- گالری: کارت و نمایشگر ---------- */
.photo-card { cursor: pointer; transition: transform 0.15s; }
.photo-card:hover { transform: scale(1.02); }

.lightbox {
  position: fixed; inset: 0; background: rgba(20,18,16,0.94); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lb-inner { max-width: 900px; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.lb-inner img {
  width: 100%; max-height: 74vh; object-fit: contain; border-radius: 12px; background: #000;
}
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border-radius: 14px; padding: 12px 16px;
}
.lb-close {
  position: absolute; top: 16px; inset-inline-start: 16px; background: rgba(255,255,255,0.15); color: white;
  border: none; border-radius: 999px; width: 40px; height: 40px; font-size: 16px; cursor: pointer; z-index: 2;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15);
  color: white; border: none; border-radius: 999px; width: 46px; height: 46px;
  font-size: 30px; line-height: 1; cursor: pointer; z-index: 2;
}
.lb-prev { inset-inline-end: 12px; }
.lb-next { inset-inline-start: 12px; }
@media (max-width: 640px) { .lb-nav { width: 38px; height: 38px; font-size: 24px; } }

/* ---------- خط زمانی سوابق پزشکی ---------- */
.timeline { position: relative; padding-inline-start: 34px; }
.timeline::before {
  content: ''; position: absolute; inset-inline-start: 15px; top: 8px; bottom: 8px;
  width: 2px; background: #DDD7C9;
}
.tl-item { position: relative; margin-bottom: 14px; }
.tl-dot {
  position: absolute; inset-inline-start: -34px; top: 14px; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; border: 3px solid var(--bg); z-index: 1;
}
.tl-card { margin-bottom: 0; }
.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tl-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.type-tag {
  display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px;
  color: white; font-weight: 700;
}

/* ---------- سوییچر گربه (منوی کشویی) ---------- */
.cat-switch { margin-bottom: 18px; position: relative; }
.cat-switcher { position: relative; }
.cat-switch-row { display: flex; gap: 6px; align-items: stretch; }

.cat-current { display: flex; gap: 6px; align-items: stretch; }
.cat-current-btn {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 11px 13px; border-radius: 13px; border: none; cursor: pointer;
  background: white; color: var(--primary);
  font-family: 'Vazirmatn', sans-serif; font-weight: 700; font-size: 14px;
}
.cat-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.cat-current-name { flex: 1; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-count {
  background: #E5E1D6; color: var(--ink-soft); font-size: 11px;
  padding: 1px 7px; border-radius: 999px; flex-shrink: 0;
}
.cat-arrow { font-size: 11px; opacity: 0.6; transition: transform 0.18s; flex-shrink: 0; }
.edit-cat {
  padding: 0 11px; border-radius: 13px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.16); font-size: 14px;
}

.cat-menu {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 40;
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(35,32,28,0.28);
  display: none;
}
.cat-menu.open { display: block; }
.cat-menu-list { max-height: 230px; overflow-y: auto; }
.cat-menu-item {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 11px 13px; border: none; background: transparent; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--line); text-align: start;
}
.cat-menu-item:hover { background: #F6F3EC; }
.cat-menu-item.active { background: rgba(23,80,78,0.08); font-weight: 700; }
.cat-menu-name { flex-shrink: 0; }
.cat-menu-breed {
  flex: 1; font-size: 11px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-check { color: var(--primary); font-weight: 700; flex-shrink: 0; }
.cat-menu-add {
  width: 100%; padding: 12px; border: none; cursor: pointer;
  background: #F0EBDD; color: var(--primary);
  font-family: 'Vazirmatn', sans-serif; font-weight: 700; font-size: 13px;
}
.cat-menu-add:hover { background: #E8E1CF; }
.add-cat-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%;
  padding: 11px 13px; border-radius: 13px; border: none;
  background: rgba(255,255,255,0.16); color: white;
  font-family: 'Vazirmatn', sans-serif; font-weight: 700; cursor: pointer;
}

/* ---------- گروه‌بندی منوی کناری ---------- */
.nav-group { display: contents; }
@media (min-width: 1025px) {
  .nav-group { display: block; margin-bottom: 14px; }
  .nav-group:last-child { margin-bottom: 0; }
}
.nav-title {
  display: none; font-size: var(--fs-xs); font-weight: 700;
  color: var(--ink-soft); padding: 0 16px 8px; margin-top: var(--sp-2);
}
/* خط جداکننده ظریف بالای هر سرفصل */
.nav-group + .nav-group .nav-title {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.13);
}
@media (min-width: 1025px) { .nav-title { display: block; } }
.nav-group button { margin-bottom: 2px; }

/* ---------- زیرتب‌ها (جابه‌جایی سریع بین بخش‌های مرتبط) ---------- */
.subtabs {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.subtabs-label {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  white-space: nowrap; flex-shrink: 0;
  padding-inline-end: 12px; border-inline-end: 1px solid var(--line);
}
.subtabs-row { display: flex; gap: 6px; }
.subtab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--r-full); border: none; cursor: pointer;
  background: transparent; color: var(--ink-soft); font-family: inherit;
  font-size: var(--fs-sm); font-weight: 600; white-space: nowrap;
  transition: all var(--dur-base) var(--ease);
}
.subtab:hover { background: #E9E4D9; color: var(--ink); }
.subtab.active { background: var(--primary); color: #fff; }
.subtab-badge {
  background: var(--warning); color: white; font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}
.subtab.active .subtab-badge { background: rgba(255,255,255,0.28); }
@media (max-width: 640px) {
  .subtabs { gap: 8px; }
  .subtabs-label { display: none; }
}

.nav-version {
  font-size: 10.5px; color: rgba(255,255,255,0.35);
  padding: 12px 12px 0; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1024px) { .nav-version { display: none; } }

/* ---------- اطلاعات حجم آپلود ---------- */
.upload-info {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-size: 12px; color: var(--ink-soft); margin-bottom: 12px;
}
.upload-info b { color: var(--ink); }
.upload-info .saved {
  background: rgba(76,139,93,0.14); color: var(--success);
  padding: 2px 9px; border-radius: 999px; font-weight: 700;
}

/* ---------- لوگو و شعار برند ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 26px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-size: var(--fs-lg); font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.brand-tag { font-size: var(--fs-xs); color: var(--ink-soft); }

/* ═══════════ صفحه عمومی ═══════════ */
.lp-wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 640px) { .lp-wrap { padding-inline: 16px; } }












@media (max-width: 860px) {  }
@media (max-width: 480px) {  }







.lp-sec { padding: var(--sp-10) 0; }
.lp-alt { background: rgba(255,255,255,.5); border: none; }
.lp-sec h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -1.2px; text-align: center; margin-bottom: var(--sp-8); line-height: 1.3; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-4); }
.lp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lp-card {
  background: #fff; border: none; border-radius: var(--r-lg); padding: var(--sp-5);
  box-shadow: var(--sh-2); transition: all var(--dur-slow) var(--ease);
}
.lp-card:hover { transform: translateY(-6px); box-shadow: var(--sh-4); }
.lp-alt .lp-card { background: var(--bg); }
.lp-card b { display: block; font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.lp-card p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 2; margin: 0; }

.lp-steps { list-style: none; counter-reset: s; max-width: 660px; margin: 0 auto; padding: 0; }
.lp-steps li { counter-increment: s; position: relative; padding: 0 78px var(--sp-5) 0; }
.lp-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 0;
  width: 58px; height: 58px; border-radius: 50%; background: #F4F5F2; color: var(--primary);
  display: grid; place-items: center; font-weight: 800; font-size: var(--fs-lg);
}
.lp-steps li b { display: block; font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.lp-steps li span { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 2; }

.lp-foot { background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--sp-8) 0 var(--sp-5); margin-top: var(--sp-8); border: none; }
.lp-foot-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-soft); }
.lp-foot a:hover { color: var(--primary); }

.auth-close { position: absolute; top: 14px; inset-inline-start: 14px; border: none; background: transparent;
  font-size: 17px; color: var(--ink-soft); cursor: pointer; }
.auth-card { position: relative; }
.auth-wrap { position: fixed; inset: 0; z-index: 90; background: rgba(35,32,28,.5); backdrop-filter: blur(3px); }

/* ═══════════ پابرگ نوار کناری ═══════════ */
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar { display: flex; flex-direction: column; }
.user-box { padding: 0 4px 10px; }
.ub-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.ub-meta { font-size: 11px; color: rgba(255,255,255,.5); }
@media (max-width: 1024px) { .side-foot { display: none; } }

/* ═══════════ خط زمانی ═══════════ */
.tl-group { margin-bottom: 20px; }
.tl-month { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; padding-inline-start: 4px; }
.tl-list { padding: 0; }
.tl-row { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.tl-row:last-child { border-bottom: none; }
.tl-day { width: 26px; text-align: center; font-size: 15px; font-weight: 800; color: var(--ink-soft); flex-shrink: 0; padding-top: 3px; }
.tl-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: 14px; flex-shrink: 0; }
.tl-body { flex: 1; min-width: 0; }
.tl-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-title b { font-size: 14px; }
.tl-detail { font-size: 13px; color: var(--ink-soft); line-height: 1.9; margin-top: 4px; }
.tl-meta { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }

/* ═══════════ اسناد ═══════════ */
.doc-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-row:last-child { border-bottom: none; }
.doc-ic { width: 38px; height: 38px; border-radius: 10px; background: #F0EBDD;
  display: grid; place-items: center; font-size: 17px; flex-shrink: 0; }
.doc-b { flex: 1; min-width: 140px; }
.doc-b b { display: block; font-size: 14px; }
.doc-b span { display: block; font-size: 12px; margin-top: 2px; }

/* ═══════════ هزینه‌ها ═══════════ */
.mchart { display: flex; align-items: flex-end; gap: 6px; height: 116px; padding-top: 8px; overflow-x: auto; }
.mbar { flex: 1; min-width: 26px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mbar i { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; display: block; opacity: .85; }
.mbar span { font-size: 10px; color: var(--ink-soft); white-space: nowrap; }
.bar-row { margin-bottom: 14px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; margin-bottom: 5px; }
.bar-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.ex-row { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ex-row:last-child { border-bottom: none; }
.ex-b { flex: 1; min-width: 130px; }
.ex-b b { display: block; font-size: 14px; }
.ex-b span { display: block; font-size: 12px; margin-top: 2px; }
.ex-amt { font-size: 14px; white-space: nowrap; }

/* ═══════════ انبار ═══════════ */
.inv-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.inv-row:last-child { border-bottom: none; }
.inv-b { flex: 1; min-width: 180px; }
.inv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-act { display: flex; gap: 6px; align-items: center; }

/* ═══════════ دفترچه ═══════════ */
.j-icons { display: flex; gap: 10px; flex-wrap: wrap; font-size: 19px; margin-bottom: 6px; }
.jchart { display: flex; align-items: flex-end; gap: 5px; height: 100px; padding-top: 6px; overflow-x: auto; }
.jbar { flex: 1; min-width: 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.jbar i { width: 100%; border-radius: 3px 3px 0 0; display: block; }
.jbar span { font-size: 10px; color: var(--ink-soft); }

/* ═══════════ متفرقه ═══════════ */
.check-line { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; cursor: pointer; font-size: 14px; }
.check-line input { width: 17px; height: 17px; accent-color: var(--primary); }

/* بازگشت از اپ به صفحه عمومی */
.brand-btn {
  width: 100%; border: none; background: transparent; cursor: pointer;
  text-align: start; padding: 0; margin-bottom: 4px; border-radius: 10px;
  transition: opacity .15s;
}
.brand-btn:hover { opacity: .8; }
.brand-btn .brand-tag { color: rgba(255,255,255,.6); }

/* بازیابی رمز عبور */
.auth-link {
  display: block; width: 100%; margin-top: 12px; padding: 6px;
  background: none; border: none; cursor: pointer;
  font-family: 'Vazirmatn', sans-serif; font-size: 13px; color: var(--primary); font-weight: 600;
}
.auth-link:hover { text-decoration: underline; }
.auth-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.95; margin-bottom: 16px; }

/* مدیریت آلبوم */
.album-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.album-row:last-child { border-bottom: none; }
.album-row b { flex: 1; min-width: 120px; font-size: 14px; }

/* ═══════════ دستیار هوشمند ═══════════ */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ai-card {
  text-align: start; cursor: pointer; padding: 20px;
  font-family: 'Vazirmatn', sans-serif; transition: .18s;
  display: flex; flex-direction: column; gap: 6px;
}
.ai-card:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-2px); }
.ai-card:disabled, .ai-card.is-busy { opacity: .55; cursor: default; }
.ai-ic { font-size: 22px; }
.ai-card b { font-size: 15px; color: var(--ink); }
.ai-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin: 0; }

.ai-out { margin-top: 16px; }
.ai-text {
  white-space: pre-wrap; line-height: 2.1; font-size: 14.5px;
  background: var(--bg); border-radius: 12px; padding: 18px;
}
.ai-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft); line-height: 1.95;
}
.ai-note b { color: var(--danger); }

/* ═══════════ اشتراک ═══════════ */
.usage-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap;
}
.usage-row:last-child { border-bottom: none; }
.plan-card { border-color: var(--primary); }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.plan-head b { font-size: 17px; }
.plan-head p { font-size: 13px; margin-top: 3px; }
.plan-list { margin: 0 0 16px; padding-inline-start: 20px; }
.plan-list li { font-size: 13.5px; color: var(--ink-soft); line-height: 2.1; }

.plan-block {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(23,80,78,.07); border: 1px solid rgba(23,80,78,.25);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.plan-block b { font-size: 14px; }
.plan-block p { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* ═══════════ انتخاب دامپزشک ═══════════ */
.vet-selected {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
}
.vet-selected b { font-size: 14.5px; }
.vet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; flex-wrap: wrap;
}
.vet-row:last-child { border-bottom: none; }
.vet-row:hover { background: var(--bg); }
.vet-b { flex: 1; min-width: 180px; }
.vet-b b { font-size: 14.5px; }
.vet-svc { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.vet-svc span {
  font-size: 11px; background: var(--line-2, #F0EBDD); color: var(--ink-soft);
  padding: 2px 8px; border-radius: 999px;
}
.svc-picker { display: flex; gap: 7px; flex-wrap: wrap; }
.svc-chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; background: var(--surface);
}
.svc-chip input { accent-color: var(--primary); }
.svc-chip:has(input:checked) { border-color: var(--primary); background: rgba(23,80,78,.07); }

/* ═══════════ پنل مدیر ═══════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.kpi-box { padding: 16px 18px; margin: 0; }
.admin-vet { margin-bottom: 12px; }
.admin-vet-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-vet-h b { font-size: 15px; margin-inline-end: 6px; }
.admin-tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
.admin-tbl th {
  text-align: start; padding: 11px 16px; font-size: 11.5px; font-weight: 700;
  color: var(--ink-soft); background: var(--bg); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.admin-tbl td { padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-tbl tr:last-child td { border-bottom: none; }
.code-hint {
  font-family: monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; direction: ltr; text-align: left;
  overflow-x: auto; white-space: nowrap;
}

/* ═══════════ اشتراک‌گذاری ═══════════ */
.share-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.share-row:last-child { border-bottom: none; }
.share-b { flex: 1; min-width: 160px; }
.share-b b { font-size: 14px; margin-inline-end: 6px; }
.share-link {
  font-family: monospace; font-size: 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px;
  direction: ltr; text-align: left; overflow-x: auto; white-space: nowrap; cursor: pointer;
}

/* ═══════════ آگهی‌ها ═══════════ */
.lst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lst-card {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); cursor: pointer; transition: .18s;
}
.lst-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(35,32,28,.5); }
.lst-img {
  aspect-ratio: 4/3; background: #F0EBDD; display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.lst-img img { width: 100%; height: 100%; object-fit: cover; }
.lst-kind {
  position: absolute; top: 8px; inset-inline-start: 8px; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; color: #fff;
}
.lst-lost { background: var(--danger); }
.lst-found { background: var(--success); }
.lst-adopt { background: var(--primary); }
.lst-b { padding: 12px 14px; }
.lst-b b { font-size: 14.5px; display: block; }
.lst-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lst-photos img { width: 100%; border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.lst-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.lst-preview img { width: 74px; height: 74px; object-fit: cover; border-radius: 10px; }

/* ═══════════ مقالات ═══════════ */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.art-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  background: var(--surface); cursor: pointer; transition: .18s;
}
.art-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(35,32,28,.5); }
.art-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.art-card b { font-size: 15px; display: block; margin: 8px 0 6px; line-height: 1.6; }
.art-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin: 0; }
.art-full h1 { font-size: 24px; font-family: 'Lalezar', sans-serif; font-weight: 400; margin: 10px 0 8px; line-height: 1.6; }
.art-cover { width: 100%; border-radius: 12px; margin-bottom: 14px; }
.art-meta { font-size: 12.5px; margin-bottom: 16px; }
.art-summary {
  font-size: 15px; line-height: 2.1; padding: 14px 16px; background: var(--bg);
  border-radius: 12px; margin-bottom: 18px;
}
.art-body { font-size: 14.5px; line-height: 2.2; }
.art-note {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-soft);
}

/* ═══════════ دایرکتوری عمومی ═══════════ */
.vet-dir { margin-bottom: 12px; }

/* ═══════════ داشبورد دامپزشک ═══════════ */
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vp-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: var(--surface); cursor: pointer; transition: .18s;
}
.vp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(35,32,28,.5); }
.vp-head { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.vp-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.vp-head b { font-size: 15px; }
.vp-warn {
  margin-top: 10px; font-size: 12px; color: var(--danger);
  background: #F9E9E5; border-radius: 8px; padding: 7px 10px; line-height: 1.8;
}
.brief-head { margin-bottom: 14px; }
.brief-head h1 { font-size: 24px; font-family: 'Lalezar', sans-serif; font-weight: 400; margin: 0 0 4px; }
.brief-alert {
  background: #F9E9E5; border: 1px solid rgba(155,61,44,.3); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.9;
}
.brief-alert b { color: var(--danger); margin-inline-end: 6px; }
.sv-rec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sv-rec:last-child { border-bottom: none; }
.sv-rec-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

/* ═══════════ نوبت‌ها ═══════════ */
.appt-sug {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.appt-sug:last-child { border-bottom: none; }
.tile.is-locked { pointer-events: none; }


/* ═══════════ دسترس‌پذیری ═══════════ */

/* حلقه فوکوس روشن برای کاربر کیبورد */
:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible, .filter-chip:focus-visible, .subtab:focus-visible,
.icon-btn:focus-visible, .nav button:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}
.sidebar :focus-visible { outline-color: #fff; }
.emergency-call:focus-visible, .btn-danger:focus-visible { outline-color: var(--danger); }

/* احترام به کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* هدف لمسی حداقلی روی موبایل */
@media (pointer: coarse) {
  .icon-btn, .btn.sm, .filter-chip { min-height: 40px; }
  .emoji-btn { min-width: 42px; min-height: 42px; }
}

/* پرش به محتوا */
.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 12px 20px;
  border-radius: 0 0 10px 0; font-weight: 700; font-size: 14px;
}
.skip-link:focus { inset-inline-start: 0; }

/* متن فقط برای صفحه‌خوان */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* کنتراست کافی در حالت پرکنتراست */
@media (prefers-contrast: more) {
  :root { --ink-soft: #4A453E; --line: #C9C3B5; }
}


/* ═══════════ حالت تاریک ═══════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181A;
    --surface: #1E2124;
    --ink: #E8E6E1;
    --ink-soft: #9B9A94;
    --line: #2E3235;
    --primary: #4A8F7B;
    --primary-light: #5FA891;
    --accent: #D9A441;
    --success: #5FA872;
    --warning: #C99A4A;
    --danger: #C4685A;
  }
  body { background: var(--bg); color: var(--ink); }
  .card, .lp-card, .lp-nav, .lp-foot, .lp-alt { background: var(--surface); border-color: var(--line); }
  .lp-alt .lp-card { background: var(--bg); }
  input, select, textarea {
    background: #24282B !important; color: var(--ink) !important; border-color: var(--line) !important;
  }
  th, .subtabs-label, .filter-chip { background: #24282B; color: var(--ink-soft); }
  .filter-chip.active { background: var(--primary); color: #fff; }
  .modal-box, .auth-card { background: var(--surface); }
  .ai-text, .art-summary, .code-hint { background: #24282B; }
  tbody tr:hover td { background: #24282B; }
  .chip.neutral { background: #2E3235; color: var(--ink-soft); }
  .sidebar { background: #14312C; }
  .emergency-wrap { background: #2A1D1A; }
  .brief-alert, .sv-alert { background: #2A1D1A; border-color: rgba(196,104,90,.35); }
  img { opacity: .92; }
}

/* ═══════════ گزارش‌ها ═══════════ */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.rep-card {
  display: flex; flex-direction: column; gap: 7px; padding: 22px; cursor: pointer;
  text-align: start; font-family: 'Vazirmatn', sans-serif; transition: .18s; width: 100%;
}
.rep-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.rep-card.is-locked { opacity: .6; }
.rep-ic { font-size: 24px; }
.rep-card b { font-size: 15px; color: var(--ink); }
.rep-card p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin: 0; flex: 1; }
.rep-go { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 6px; }

/* ═══════════ برنامه نوبت‌ها ═══════════ */
.sched-card { margin-bottom: 12px; }
.sched-card.is-overdue { border-color: rgba(155,61,44,.35); }
.sched-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sched-head b { font-size: 16px; }
.sched-items { padding-top: 10px; }
.sched-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 13.5px; flex-wrap: wrap;
}
.sched-row .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sched-row b { min-width: 70px; }

/* ═══════════════════════════════════════════
   لایه نهایی سیستم طراحی — Premium Minimal
   ═══════════════════════════════════════════ */

/* ── حذف حاشیه‌های سخت، جایگزینی با سایه نرم ── */
.card, .lp-card, .art-card, .lst-card, .vp-card, .svc, .tile, .panel, .rep-card,
.ai-card, .sched-card, .admin-vet, .plan-card, .kpi-box, .photo-card {
  border-color: transparent !important;
  box-shadow: var(--sh-2);
}
.card:hover, .lp-card:hover, .art-card:hover, .lst-card:hover,
.vp-card:hover, .rep-card:hover, .tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-4);
}

/* ── شعاع بزرگ در همه‌جا ── */
.card, .panel, .lp-card, .art-card, .lst-card, .vp-card, .rep-card,
.upload-box, .modal-box, .sched-card, .admin-vet, .kpi-box {
  border-radius: var(--r-md);
}
.gallery-grid .photo-card, .lst-img, .art-card img, .lst-photos img {
  border-radius: var(--r-sm);
}

/* ── آیکون گرد ── */
.st-ic, .card .ic, .svc-ic, .ai-ic, .doc-ic, .vp-av, .who-av, .avatar, .ev-ic, .tl-mark {
  border-radius: 50% !important;
  background: #F4F5F2 !important;
}

/* ── دستیار: گرادیان ملایم به‌جای رنگ پررنگ ── */
.ai-card { background: #fff; }
.ai-card:hover { border-color: transparent; }
.ai-out .ai-text {
  background: linear-gradient(135deg, rgba(111,146,120,.05), rgba(145,178,152,.08));
  border-radius: var(--r-sm); padding: var(--sp-4); line-height: 2.1; font-size: var(--fs-sm);
}

/* ── جدول‌ها: بدون خط سخت ── */
table th {
  background: transparent; border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs); padding: 14px 24px; color: var(--ink-soft);
}
table td { border-bottom: 1px solid rgba(236,232,226,.6); padding: 18px 24px; font-size: var(--fs-sm); }
tbody tr { transition: background var(--dur-base) var(--ease); }
tbody tr:hover td { background: rgba(111,146,120,.04); }

/* ── نوار پیشرفت و متر ── */
.progress-bar, .meter { height: 8px; border-radius: var(--r-full); background: #F1EFEB; }
.progress-bar div, .meter i { border-radius: var(--r-full); }

/* ── نمودارها ── */
.wbar i, .mbar i, .jbar i { border-radius: var(--r-xs) var(--r-xs) 0 0; }

/* ── مودال شیشه‌ای ── */
.modal-overlay { background: rgba(31,31,31,.4); backdrop-filter: blur(6px); }
.modal-box { box-shadow: var(--sh-4); border-radius: var(--r-lg); }
.modal-head { border-bottom: 1px solid var(--line); padding: var(--sp-4) var(--sp-5); }
.modal-head span { font-size: var(--fs-lg); font-weight: 800; }
.modal-body { padding: var(--sp-5); }

/* ── ردیف‌ها ── */
.usage-row, .care-row, .list-item, .doc-row, .ex-row, .inv-row, .share-row, .vet-row, .album-row {
  border-bottom: 1px solid rgba(236,232,226,.7);
  padding: var(--sp-3) 0;
}
.list-item { background: #fff; border-radius: var(--r-sm); padding: var(--sp-3) var(--sp-4); box-shadow: var(--sh-1); border: none; }

/* ── فاصله‌گذاری بخش‌ها ── */
.grid-2 { gap: var(--sp-4); }
.filter-row { gap: var(--sp-2); margin-bottom: var(--sp-4); }
.subtabs { border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); padding-bottom: var(--sp-2); gap: var(--sp-3); }

/* ── نوار کناری: عرض بیشتر ── */
@media (min-width: 1025px) {
  .nav-group { margin-bottom: var(--sp-3); }
  .nav-version, .ub-meta { font-size: var(--fs-xs); }
  .ub-name { font-size: var(--fs-sm); color: var(--ink); font-weight: 700; }
  .side-foot { border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .brand-btn .brand-tag { color: var(--ink-soft); }
}

/* ── سوییچر گربه ── */
.cat-current-btn {
  background: #fff; color: var(--ink); padding: 14px 18px;
  border-radius: var(--r-sm); box-shadow: var(--sh-1); font-size: var(--fs-sm);
}
.cat-menu { border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.cat-menu-item { padding: 14px 18px; font-size: var(--fs-sm); }
.edit-cat, .add-cat-btn { background: #fff; color: var(--ink-soft); box-shadow: var(--sh-1); border-radius: var(--r-sm); }

/* ── دکمه آیکونی ── */
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; background: #F4F5F2;
  display: inline-grid; place-items: center; border: none; cursor: pointer;
  transition: all var(--dur-base) var(--ease);
}
.icon-btn:hover { background: #ECEAE5; transform: translateY(-2px); }

/* ── موبایل ── */
@media (max-width: 1024px) {
  .sidebar { width: 100%; border-radius: 0; }
  .main { padding: var(--sp-4); padding-bottom: 140px; }
  
  
}
@media (max-width: 640px) {
  :root { --sp-10: 56px; --sp-8: 40px; }
  .card { padding: var(--sp-4); border-radius: var(--r-sm); }
  table th, table td { padding: 12px 14px; }
}


/* ═══════════════════════════════════════════
   صفحه اصلی — بر پایه چیدمان مرجع
   ═══════════════════════════════════════════ */

.lw {
  background: #FAF9F7;
  max-width: 1320px;
  margin: 28px auto;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(31,31,31,.1);
}

/* ── سربرگ ── */
.lw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 46px; height: 92px; position: relative; z-index: 10;
}
.lw-logo { display: flex; align-items: center; gap: 10px; }
.lw-logo-ic {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center; font-size: 22px;
}
.lw-logo-t { display: flex; flex-direction: column; line-height: 1.3; }
.lw-logo-t b { font-size: 21px; font-weight: 800; color: var(--primary); letter-spacing: -.4px; }
.lw-logo-t span { font-size: 12px; color: var(--ink-soft); }

.lw-nav { display: flex; height: 100%; }
.lw-nav a {
  color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 0 22px; display: flex; align-items: center;
  transition: all var(--dur-base) var(--ease);
}
.lw-nav a:hover { color: var(--primary); }
.lw-nav a.active {
  background: var(--primary); color: #fff;
  border-radius: 0 0 14px 14px;
}
.lw-act { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.lw-login {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 13px 32px; border-radius: var(--r-full);
  font-family: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px rgba(111,146,120,.35);
  transition: all var(--dur-slow) var(--ease);
}
.lw-login:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ── بدنه ── */
.lw-main {
  display: flex; padding: 40px 80px 0 46px;
  position: relative; min-height: 660px;
}
.lw-text {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  z-index: 10; max-width: 560px; padding-bottom: 50px;
}
.lw-text h1 {
  font-size: clamp(38px, 4.6vw, 62px); line-height: 1.25;
  color: var(--ink); font-weight: 900; letter-spacing: -1.6px; margin-bottom: var(--sp-3);
}
.lw-light { font-weight: 500; color: #4a4a4a; }
.lw-hl { color: var(--primary); }
.lw-text p {
  color: var(--ink-soft); font-size: 17px; line-height: 2.05;
  margin-bottom: var(--sp-5); max-width: 46ch;
}
.lw-cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.lw-btn1 {
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  padding: 17px 36px; border-radius: var(--r-full);
  font-family: inherit; font-weight: 700; font-size: 16px;
  box-shadow: 0 14px 32px rgba(111,146,120,.35);
  transition: all var(--dur-slow) var(--ease);
}
.lw-btn1:hover { background: var(--primary-dark); transform: translateY(-3px); }
.lw-btn2 {
  background: #fff; color: var(--ink); border: 1px solid var(--line); cursor: pointer;
  padding: 17px 34px; border-radius: var(--r-full);
  font-family: inherit; font-weight: 700; font-size: 16px;
  transition: all var(--dur-slow) var(--ease);
}
.lw-btn2:hover { border-color: var(--primary-light); transform: translateY(-3px); }

.lw-stats { display: flex; gap: var(--sp-5); margin-top: var(--sp-6); flex-wrap: wrap; }
.lw-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.lw-stats span { font-size: 13px; color: var(--ink-soft); }

/* ── تصویر ── */
.lw-img {
  flex: 1; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.lw-shape {
  position: absolute; top: -92px; inset-inline-start: 0; bottom: 0; width: 86%;
  background: #EDEFEA;
  clip-path: polygon(0 0, 75% 0, 100% 100%, 0 100%);
  z-index: 1;
}
.lw-cat {
  position: relative; z-index: 5;
  max-width: 118%; max-height: 620px;
  object-fit: contain;
  margin-inline-start: -40px;
  filter: drop-shadow(0 22px 40px rgba(31,31,31,.18));
}

/* ── نوار کناری شماره‌دار ── */
.lw-side {
  position: absolute; inset-inline-start: 34px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 10;
}
.lw-line { width: 2px; height: 46px; background: var(--ink); opacity: .25; }
.lw-side a {
  color: var(--ink-soft); font-size: 13px; font-weight: 700;
  transition: color var(--dur-base) var(--ease);
}
.lw-side a:hover { color: var(--primary); }

/* ── موبایل ── */
@media (max-width: 1000px) {
  .lw { margin: 12px; border-radius: var(--r-md); }
  .lw-head { padding: 0 20px; height: auto; padding-block: 16px; gap: 12px; position: relative; }
  .lw-main { flex-direction: column; padding: 24px 20px 0; min-height: auto; }
  .lw-text { max-width: 100%; padding-bottom: 24px; text-align: center; align-items: center; }
  .lw-text p { margin-inline: auto; }
  .lw-cta, .lw-stats { justify-content: center; }
  .lw-side { display: none; }
  .lw-img { min-height: 320px; margin-top: 20px; }
  .lw-shape { top: 0; width: 100%; clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); }
  .lw-cat { max-width: 92%; max-height: 380px; margin-inline-start: 0; }
}
@media (max-width: 560px) {
  .lw-stats { gap: var(--sp-3); }
  .lw-stats b { font-size: 21px; }
  .lw-login { padding: 11px 24px; font-size: 14px; }
}

/* ═══════ دکمه بازگشت به بالا ═══════ */
.to-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 45;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 22px;
  box-shadow: 0 12px 30px rgba(111,146,120,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all var(--dur-slow) var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ═══════ پیام حمایت از گربه‌ها ═══════ */
.charity-note {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(111,146,120,.08), rgba(231,185,93,.1));
  border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: var(--sp-4);
  font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.9;
}
.charity-note b { color: var(--primary-dark); }

/* ═══════════ بخش‌های تمام‌صفحه با رنگ متمایز ═══════════ */
.sec-full {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-8) 0;
  position: relative;
}
.sec-a { background: linear-gradient(160deg, #FCFBF9 0%, #F3F6F3 100%); }
.sec-b { background: linear-gradient(160deg, #F4F7F4 0%, #EDF2EE 100%); }
.sec-c { background: linear-gradient(160deg, #FBF8F2 0%, #F7F1E6 100%); }
.sec-e { background: linear-gradient(160deg, #F6F8FA 0%, #EFF3F6 100%); }
.sec-d { background: linear-gradient(160deg, #F2F5F2 0%, #E8EFEA 100%); }

.sec-badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--primary); background: #fff; padding: 8px 20px;
  border-radius: var(--r-full); margin-bottom: var(--sp-3);
  box-shadow: var(--sh-1); align-self: center;
}
.sec-full .lp-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.sec-full h2 { margin-bottom: var(--sp-2); }
.sec-sub {
  font-size: var(--fs-md); color: var(--ink-soft); line-height: 2;
  text-align: center; max-width: 58ch; margin: 0 auto var(--sp-6);
}
.sec-full .lp-grid, .sec-full .lp-steps { width: 100%; }

.card-ic { font-size: 30px; display: block; margin-bottom: var(--sp-2); }
.card-go {
  display: inline-block; margin-top: var(--sp-3);
  font-size: var(--fs-xs); font-weight: 700; color: var(--primary);
}
a.lp-card { display: block; }

@media (max-width: 900px) {
  .sec-full { min-height: auto; padding: var(--sp-8) 0; }
}

/* ═══════ منوی موبایل و پیمایش ═══════ */
html { scroll-behavior: smooth; }
.sec-full, section[id] { scroll-margin-top: 96px; }

.lw-burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: none; background: #fff; box-shadow: var(--sh-1);
  font-size: 20px; cursor: pointer; flex-shrink: 0;
}
@media (max-width: 1000px) {
  .lw-burger { display: grid !important; place-items: center; }
  .lw-head { position: relative !important; z-index: 200; }

  .lw-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    z-index: 300 !important;
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    padding: 8px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2DED6 !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(31,31,31,.28) !important;
    backdrop-filter: none !important;
  }
  .lw-nav.open { display: flex !important; }
  .lw-nav a {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1F1F1F !important;
    background: transparent !important;
  }
  .lw-nav a + a { border-top: 1px solid #F1EEE9 !important; }
  .lw-nav a.active {
    background: var(--primary) !important;
    color: #fff !important;
    border-top-color: transparent !important;
  }
  .lw-nav a.active::after { display: none !important; }
}

/* ═══════ دستیار راهنما ═══════ */
.hb-fab {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 46;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 26px;
  box-shadow: 0 14px 36px rgba(111,146,120,.45);
  transition: all var(--dur-slow) var(--ease);
}
.hb-fab:hover { transform: translateY(-4px) scale(1.05); }
.hb-panel {
  position: fixed; bottom: 100px; inset-inline-end: 26px; z-index: 47;
  width: 380px; max-width: calc(100vw - 32px); max-height: 72vh;
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-4);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.97);
  transition: all var(--dur-slow) var(--ease);
}
.hb-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.hb-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px; background: var(--primary); color: #fff;
}
.hb-head b { font-size: var(--fs-md); display: block; }
.hb-head span { font-size: var(--fs-xs); opacity: .85; }
.hb-head button { background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.hb-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hb-msg { padding: 12px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); line-height: 1.95; max-width: 92%; }
.hb-bot { background: var(--bg); align-self: flex-start; border-start-start-radius: 6px; }
.hb-me  { background: var(--primary); color: #fff; align-self: flex-end; border-start-end-radius: 6px; }
.hb-sug { display: flex; flex-direction: column; gap: 6px; }
.hb-sug button {
  text-align: start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px; font-family: inherit;
  font-size: var(--fs-xs); cursor: pointer; color: var(--primary); font-weight: 600;
  transition: all var(--dur-base) var(--ease);
}
.hb-sug button:hover { background: var(--bg); transform: translateX(-3px); }
.hb-foot { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.hb-foot input {
  flex: 1; padding: 13px 16px; border-radius: var(--r-full);
  border: 1px solid var(--line); font-size: var(--fs-sm); outline: none;
}
.hb-foot input:focus { border-color: var(--primary-light); }
.hb-foot button {
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 18px; flex-shrink: 0;
}
@media (max-width: 640px) {
  .hb-panel { inset-inline: 12px; bottom: 92px; width: auto; max-height: 68vh; }
  .hb-fab { width: 54px; height: 54px; bottom: 20px; inset-inline-end: 20px; }
  .to-top { bottom: 20px; inset-inline-start: 20px; width: 46px; height: 46px; }
}

/* ═══════ ویرایشگر متن ═══════ */
.rte { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; overflow: hidden; }
.rte-bar {
  display: flex; flex-wrap: wrap; gap: 3px; padding: 8px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.rte-btn {
  min-width: 36px; height: 36px; border: none; border-radius: 9px;
  background: #fff; cursor: pointer; font-family: inherit; font-size: 14px;
  font-weight: 700; color: var(--ink); box-shadow: var(--sh-1);
  transition: all var(--dur-base) var(--ease);
}
.rte-btn:hover { background: var(--primary); color: #fff; }
.rte-sep { width: 1px; background: var(--line); margin: 4px 3px; }
.rte-area {
  min-height: 300px; padding: 20px; outline: none;
  font-size: var(--fs-base); line-height: 2.2; direction: rtl;
}
.rte-area:empty::before { content: 'متن مقاله را اینجا بنویس…'; color: #B5B0A8; }
.rte-area h2 { font-size: var(--fs-lg); font-weight: 800; margin: 22px 0 10px; }
.rte-area h3 { font-size: var(--fs-md); font-weight: 700; margin: 18px 0 8px; }
.rte-area p { margin: 0 0 14px; }
.rte-area ul, .rte-area ol { padding-inline-start: 26px; margin: 0 0 14px; }
.rte-area li { margin-bottom: 6px; }
.rte-area blockquote {
  margin: 16px 0; padding: 14px 18px; background: var(--bg);
  border-inline-start: 4px solid var(--primary); border-radius: 0 12px 12px 0;
}
.rte-area img { max-width: 100%; border-radius: 14px; margin: 12px 0; display: block; }
.rte-area a { color: var(--primary); text-decoration: underline; }
.rte-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-top: 1px solid var(--line);
  background: var(--bg); font-size: var(--fs-xs);
}


/* ═══════ موبایل: فشرده‌تر و بدون اسکرول اضافه ═══════ */
@media (max-width: 640px) {
  :root {
    --fs-base: 15px; --fs-sm: 14px; --fs-md: 16px;
    --fs-lg: 19px; --fs-xl: 23px;
    --sp-4: 16px; --sp-5: 20px; --sp-6: 26px; --sp-8: 32px; --sp-10: 40px;
  }
  body { line-height: 1.75; }

  /* بخش‌ها: ارتفاع بر پایه محتوا، شروع از بالا */
  .sec-full {
    min-height: auto;
    justify-content: flex-start;
    padding: var(--sp-8) 0 var(--sp-6);
    scroll-margin-top: 84px;
  }
  .sec-full h2 { font-size: 24px; letter-spacing: -.7px; margin-bottom: 8px; }
  .sec-sub { font-size: 14px; line-height: 1.85; margin-bottom: var(--sp-4); max-width: 100%; }
  .sec-badge { font-size: 12px; padding: 6px 15px; margin-bottom: 10px; }

  /* کارت‌ها: جمع‌وجور */
  .lp-card { padding: 16px 18px; border-radius: var(--r-sm); }
  .lp-card b { font-size: 16px; margin-bottom: 4px; }
  .lp-card p { font-size: 13.5px; line-height: 1.8; }
  .lp-grid { gap: 10px; }
  .card-ic { font-size: 24px; margin-bottom: 6px; }
  .card-go { margin-top: 8px; font-size: 12.5px; }

  /* مراحل شروع */
  .lp-steps li { padding: 0 54px 16px 0; }
  .lp-steps li::before { width: 42px; height: 42px; font-size: 16px; }
  .lp-steps li b { font-size: 15.5px; }
  .lp-steps li span { font-size: 13.5px; line-height: 1.85; }

  /* هیرو */
  .lw-text h1 { font-size: 32px; line-height: 1.3; }
  .lw-text p { font-size: 14.5px; line-height: 1.85; }
  .lw-stats { gap: 18px; }
  .lw-stats b { font-size: 21px; }
  .lw-stats span { font-size: 11.5px; }

  /* اپ داخلی */
  .card { padding: 16px; margin-bottom: 12px; }
  .section-title h2 { font-size: 20px; }
  .field { margin-bottom: 12px; }
  .field input, .field select, .field textarea { padding: 13px 15px; }
  .btn { padding: 12px 22px; }
  .btn-lg { padding: 14px 26px; font-size: 15px; }
  .usage-row { padding: 9px 0; font-size: 13.5px; }
  .lp-foot { padding: var(--sp-6) 0 var(--sp-4); }
}

/* ═══════ ویرایشگر متن ═══════ */
.rte { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.rte-bar {
  display: flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding: 8px 10px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.rte-btn {
  min-width: 34px; height: 34px; padding: 0 9px; border: none; cursor: pointer;
  background: transparent; border-radius: 7px; font-family: inherit;
  font-size: 13px; color: var(--ink); transition: background var(--dur-base) var(--ease);
}
.rte-btn:hover { background: rgba(111,146,120,.14); color: var(--primary); }
.rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.rte-body {
  min-height: 280px; max-height: 560px; overflow-y: auto;
  padding: 18px 20px; font-size: var(--fs-base); line-height: 2.1; outline: none;
}
.rte-body:focus { box-shadow: inset 0 0 0 2px rgba(111,146,120,.18); }
.rte-body:empty::before {
  content: 'متن مقاله را اینجا بنویس…'; color: #B5B0A8;
}
.rte-body h2 { font-size: var(--fs-lg); font-weight: 800; margin: 20px 0 8px; }
.rte-body h3 { font-size: var(--fs-md); font-weight: 700; margin: 16px 0 6px; }
.rte-body p { margin: 0 0 12px; }
.rte-body ul, .rte-body ol { margin: 0 0 12px; padding-inline-start: 26px; }
.rte-body li { margin-bottom: 5px; }
.rte-body a { color: var(--primary); text-decoration: underline; }
@media (max-width: 640px) {
  .rte-body { min-height: 200px; padding: 14px 15px; font-size: 15px; }
  .rte-btn { min-width: 30px; height: 30px; font-size: 12px; }
}

/* ═══════ پرسش آزاد دستیار ═══════ */
.ask-out { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.ask-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ask-text {
  background: var(--bg); border-radius: var(--r-sm); padding: var(--sp-4);
  font-size: var(--fs-sm); line-height: 2.1;
}
.ask-text h3 { font-size: var(--fs-md); font-weight: 700; margin: 12px 0 6px; }
.ask-text li { margin-inline-start: 18px; }
.ask-src {
  margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-soft); line-height: 1.95;
}
.ask-src a { color: var(--primary); text-decoration: underline; }
.ask-fb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
}
