/* ============================================================================
   داروبانک — Design System v3  (Modern · Professional · RTL-first)
   ----------------------------------------------------------------------------
   یک دیزاین‌سیستم کامل و مدرن: توکن‌ها، کامپوننت‌ها، انیمیشن‌ها، دارک‌مود.
   همهٔ کلاس‌های قدیمی حفظ شده‌اند تا صفحات بدون تغییر کار کنند.
   ============================================================================ */

/* ---------------------------------------------------------------- 1) توکن‌ها */
:root {
    /* ============================================================
       پالت «بالینی» v5 — الهام‌گرفته از مراجع پزشکی معتبر
       (Cleveland Clinic · Mayo Clinic · DailyMed/NLM · drugs.com ·
        MedlinePlus/NIH · GoodRx)
       ============================================================ */

    /* آبی پزشکی (رنگ اصلی اعتبار و اعتماد) */
    --brand:        #0b5fa5;
    --brand-2:      #084a82;
    --brand-3:      #0e7fb8;
    --brand-contrast:#ffffff;
    --brand-soft:   #e8f2fa;
    --brand-tint:   #f2f8fd;
    --brand-ring:   rgba(11, 95, 165, .20);

    /* آبی‌فیروزه‌ای پزشکی (رنگ دوم — NLM / DailyMed) */
    --accent:       #0e9aa7;
    --accent-2:     #0b7f8c;
    --accent-soft:  #e6f6f8;

    /* نارنجی هشدار (MedlinePlus/NIH) */
    --warm:         #cf5200;
    --warm-soft:    #fff4ed;

    /* سطوح و متن */
    --c-bg:        #f3f7fc;
    --c-bg-2:      #e9f1f9;
    --c-surface:   #ffffff;
    --c-surface-2: #f6fafd;
    --c-text:      #0d2438;
    --c-text-2:    #3d5a73;
    --c-muted:     #6b8399;
    --c-border:    #dce8f2;
    --c-border-2:  #c6d8e8;

    /* وضعیت‌ها */
    --danger:  #b42318;  --danger-soft:  #fef3f2;  --danger-bd:  #fda29b;
    --warning: #b54708;  --warning-soft: #fffaeb;  --warning-bd: #fedf89;
    --ok:      #067647;  --ok-soft:      #ecfdf3;  --ok-bd:      #abefc6;
    --info:    #0b5fa5;  --info-soft:    #eff8ff;  --info-bd:    #b2ddff;

    /* گرادیان‌ها — آرام و بالینی (نه پرزرق‌وبرق) */
    --grad-brand: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
    --grad-hero:  radial-gradient(900px 420px at 88% -20%, rgba(14,154,167,.10), transparent 62%),
                  radial-gradient(760px 380px at 8% -10%, rgba(11,95,165,.10), transparent 60%),
                  linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
    --grad-band:  linear-gradient(135deg, #0b4d86 0%, #0b5fa5 55%, #0e7fb8 100%);

    /* شکل و سایه — کم‌شعاع‌تر و ملایم‌تر = حس مرجع پزشکی */
    --r-xs: 6px; --r-sm: 10px; --r: 14px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
    --sh-1: 0 1px 2px rgba(13,36,56,.05), 0 1px 2px rgba(13,36,56,.03);
    --sh-2: 0 2px 8px rgba(13,36,56,.05), 0 1px 2px rgba(13,36,56,.03);
    --sh-3: 0 12px 28px -14px rgba(13,36,56,.20), 0 4px 10px -6px rgba(13,36,56,.08);
    --sh-brand: 0 6px 18px -6px rgba(11,95,165,.40);

    /* تایپوگرافی */
    --font: "Vazirmatn", "IRANSansX", "Segoe UI", Tahoma, system-ui, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --fs-1: clamp(1.6rem, 1.1rem + 2vw, 2.45rem);
    --fs-2: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
    --fs-3: 1.12rem;
    --fs-body: 15.5px;
    --lh: 1.9;

    /* فاصله‌ها */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 22px; --sp-6: 32px; --sp-7: 48px;

    /* ابعاد */
    --container: 1200px;
    --header-h: 68px;
    --ease: cubic-bezier(.22,.9,.3,1);

    --header-bg: rgba(255,255,255,.92);

    color-scheme: light;
}

/* ---------------------------------------------------------------- 2) پایه */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: var(--lh);
    color: var(--c-text);
    background: var(--c-bg);
    background-image:
        radial-gradient(1000px 480px at 100% -10%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 60%),
        radial-gradient(900px 420px at -10% 10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { line-height: 1.5; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); }
p { margin: 0 0 1em; }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }

/* اسکرول‌بار مدرن */
* { scrollbar-width: thin; scrollbar-color: var(--c-border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--c-muted); background-clip: padding-box; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }

/* ---------------------------------------------------------------- 3) هدر */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--c-border) 80%, transparent);
    box-shadow: 0 1px 0 rgba(15,27,51,.02), 0 8px 30px -22px rgba(15,27,51,.4);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); padding-block: 10px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-text); }
.brand-mark {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--grad-brand); color: #fff;
    font-weight: 900; font-size: 17px; letter-spacing: -.5px;
    box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255,255,255,.35);
    position: relative; overflow: hidden;
}
.brand-mark::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 45%, transparent 60%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.brand:hover .brand-mark::after { transform: translateX(120%); }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: 17.5px; font-weight: 800; }
.brand-text small { color: var(--c-muted); font-size: 11.5px; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.main-nav a {
    position: relative; padding: 9px 14px; border-radius: var(--r-pill);
    color: var(--c-text-2); font-weight: 650; font-size: 14px;
    transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--c-text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.main-nav a.active::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px;
    background: var(--grad-brand); border-radius: 2px;
}
.nav-count {
    display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
    background: var(--grad-brand); color: #fff; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 800; margin-inline-start: 6px; vertical-align: middle;
}

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-grid; place-items: center; min-width: 40px; height: 38px; padding: 0 12px;
    border: 1px solid var(--c-border); border-radius: var(--r-pill);
    background: var(--c-surface); color: var(--c-text);
    font-weight: 800; font-size: 13px; transition: .18s;
}
.lang-switch:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--sh-2); }

.theme-switch { display: flex; gap: 7px; align-items: center; padding: 4px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-muted) 8%, transparent); }
.theme-dot {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; padding: 0;
    cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.theme-dot:hover { transform: scale(1.12); }
.theme-dot.active { border-color: var(--c-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 12%, transparent); }
.theme-dot-clinic { background: linear-gradient(135deg, #2f6bff, #7c3aed); }
.theme-dot-teal   { background: linear-gradient(135deg, #0d9488, #22c55e); }
.theme-dot-dark   { background: linear-gradient(135deg, #0b1020, #38bdf8); }

.nav-toggle {
    display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface);
    cursor: pointer; font-size: 20px; color: var(--c-text);
}
.header-search { padding-bottom: 12px; }

/* ---------------------------------------------------------------- 4) جستجو */
.search-form { display: flex; gap: 10px; position: relative; }
.search-form input[type=text] {
    flex: 1 1 auto; min-width: 0;
    padding: 14px 18px; border-radius: var(--r);
    border: 1.5px solid var(--c-border-2); background: var(--c-surface); color: var(--c-text);
    font-family: var(--font); font-size: 15px; outline: none;
    box-shadow: var(--sh-1); transition: border-color .18s, box-shadow .18s;
}
.search-form input[type=text]:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.search-form.mini input[type=text] { padding: 11px 15px; }

.suggest-box {
    position: absolute; top: calc(100% + 8px); inset-inline: 0;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r); box-shadow: var(--sh-3); z-index: 120;
    display: none; max-height: 340px; overflow-y: auto; padding: 6px;
}
.suggest-box.open { display: block; animation: daroDrop .18s var(--ease); }
.suggest-item { padding: 10px 13px; border-radius: var(--r-xs); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.suggest-item:hover, .suggest-item.active { background: var(--brand-soft); color: var(--brand); }
.suggest-item .g { color: var(--c-muted); font-size: 12.5px; }
@keyframes daroDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- 5) دکمه‌ها */
.btn {
    --btn-bg: var(--c-surface); --btn-fg: var(--c-text); --btn-bd: var(--c-border-2);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: var(--r);
    background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
    font-family: var(--font); font-size: 14.5px; font-weight: 750; cursor: pointer;
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform .14s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-primary {
    --btn-bg: var(--grad-brand); --btn-fg: #fff; --btn-bd: transparent;
    box-shadow: var(--sh-brand);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 18px 40px -14px rgba(47,107,255,.55); }
.btn-danger { --btn-bg: linear-gradient(135deg, #ef4444, #dc2626); --btn-fg: #fff; --btn-bd: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; color: var(--c-text-2); }
.btn-ghost:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: var(--r-lg); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------------------------------------------------------------- 6) کارت‌ها */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    padding: var(--sp-5);
    position: relative;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.card-title { margin: 0 0 14px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand) 35%, var(--c-border)); }

.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stat-card { text-align: center; padding: 24px 16px; overflow: hidden; }
.stat-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: var(--grad-brand); opacity: .9;
}
.stat-card .num {
    display: block; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 900; line-height: 1.25;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat-card .lbl { color: var(--c-muted); font-size: 13.5px; font-weight: 600; }
.stat-card .ico {
    width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); font-size: 20px;
}

/* ---------------------------------------------------------------- 7) هیرو */
.hero {
    position: relative; padding: 64px 0 56px; overflow: hidden;
    background: var(--grad-hero);
    border-bottom: 1px solid color-mix(in srgb, var(--c-border) 70%, transparent);
}
.hero::before, .hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
    z-index: 0;
}
.hero::before { width: 380px; height: 380px; background: color-mix(in srgb, var(--brand) 45%, transparent); top: -140px; inset-inline-start: -80px; animation: daroFloat 12s ease-in-out infinite; }
.hero::after  { width: 320px; height: 320px; background: color-mix(in srgb, var(--accent) 45%, transparent); bottom: -150px; inset-inline-end: -60px; animation: daroFloat 14s ease-in-out infinite reverse; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: var(--fs-1); font-weight: 900; margin-bottom: 12px; letter-spacing: -.02em; }
.hero .lead { color: var(--c-text-2); font-size: clamp(15px, 1rem + .3vw, 17px); max-width: 780px; margin-bottom: 26px; }
.hero .search-form { max-width: 760px; }
.hero .search-form input[type=text] { padding: 17px 20px; font-size: 16px; border-radius: var(--r-lg); background: var(--c-surface); }
.hero .search-form .btn { padding: 17px 30px; border-radius: var(--r-lg); font-size: 16px; }

/* برچسب‌های شیشه‌ای هیرو */
.hero .chip { background: color-mix(in srgb, var(--c-surface) 70%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------------------------------------------------------------- 8) نشان و چیپ */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 11px; border-radius: var(--r-pill);
    font-size: 12px; font-weight: 750; line-height: 1.7;
    background: color-mix(in srgb, var(--c-muted) 10%, transparent);
    color: var(--c-text-2); border: 1px solid color-mix(in srgb, var(--c-muted) 18%, transparent);
    margin-inline-end: 5px; margin-bottom: 5px; white-space: nowrap;
}
.badge-primary { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 22%, transparent); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-bd); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-bd); }
.badge-ok      { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-bd); }
.badge-info    { background: var(--info-soft); color: var(--info); border-color: var(--info-bd); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 15px; border-radius: var(--r-pill);
    background: var(--c-surface); border: 1.5px solid var(--c-border-2);
    color: var(--c-text); font-size: 13.5px; font-weight: 650;
    margin: 0 0 8px 6px; transition: .18s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-2); }

/* ---------------------------------------------------------------- 9) نتایج */
.result-list { display: flex; flex-direction: column; gap: 14px; }
.result-card {
    display: flex; gap: 16px; justify-content: space-between; align-items: flex-start;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-lg);
    padding: 18px; box-shadow: var(--sh-1);
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.result-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: color-mix(in srgb, var(--brand) 30%, var(--c-border)); }
.result-card .info { flex: 1 1 auto; min-width: 0; }
.result-card h3 { margin: 0 0 5px; font-size: 17.5px; }
.result-card h3 a { color: var(--c-text); }
.result-card h3 a:hover { color: var(--brand); }
.result-card .meta-line { color: var(--c-muted); font-size: 13.5px; margin-bottom: 8px; }
.result-card .actions { display: flex; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }
.thumb-sm { width: 88px; height: 88px; border-radius: var(--r); object-fit: cover; flex: 0 0 88px; border: 1px solid var(--c-border); background: var(--c-surface-2); }
.thumb-sm.placeholder { display: grid; place-items: center; color: var(--c-muted); font-size: 26px; }
@media (max-width: 640px) { .thumb-sm { width: 64px; height: 64px; flex-basis: 64px; } .result-card .actions { width: 100%; } }

/* ---------------------------------------------------------------- 10) فیلترها و چیدمان */
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .form-row { margin-bottom: 14px; }
.filters label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--c-text-2); }
.filters input[type=text], .filters input[type=number], .filters select, .filters textarea,
.input, select.input, textarea.input {
    width: 100%; padding: 11px 13px; border-radius: var(--r-sm);
    border: 1.5px solid var(--c-border-2); background: var(--c-surface); color: var(--c-text);
    font-family: var(--font); font-size: 14px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.filters input:focus, .filters select:focus, .input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 6px 0; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--brand); }

.layout-sidebar { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 940px) { .layout-sidebar { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------------------------------------------------------------- 11) صفحهٔ دارو */
.drug-hero {
    position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xl);
    padding: 26px; box-shadow: var(--sh-2); overflow: hidden;
}
.drug-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--grad-brand); }
.drug-hero h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); }
.drug-hero .sub { color: var(--c-muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.fact { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 12px 14px; }
.fact .k { display: block; color: var(--c-muted); font-size: 12px; margin-bottom: 3px; }
.fact .v { font-weight: 750; font-size: 14.5px; word-break: break-word; }

.boxed-alert {
    display: flex; gap: 12px; align-items: flex-start;
    background: linear-gradient(135deg, var(--danger-soft), color-mix(in srgb, var(--danger-soft) 60%, #fff));
    border: 1.5px solid var(--danger-bd); border-inline-start: 5px solid var(--danger);
    color: #7f1d1d; border-radius: var(--r); padding: 16px 18px; font-weight: 700; margin-top: 16px;
}
.boxed-alert::before { content: "⚠"; font-size: 20px; line-height: 1.3; }

.drug-body { display: grid; grid-template-columns: 268px minmax(0,1fr); gap: 24px; align-items: start; margin-top: 24px; }
@media (max-width: 1000px) { .drug-body { grid-template-columns: 1fr; } }
.toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - 120px); overflow-y: auto; }
.toc a { display: block; padding: 8px 12px; border-radius: var(--r-xs); color: var(--c-text-2); font-size: 13.5px; transition: .16s; border-inline-start: 2px solid transparent; }
.toc a:hover { background: var(--brand-soft); color: var(--brand); }
.toc a.active { background: var(--brand-soft); color: var(--brand); border-inline-start-color: var(--brand); font-weight: 700; }

.section-block { margin-bottom: 16px; }
.section-block h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-content { white-space: pre-wrap; word-break: break-word; font-size: 15px; color: var(--c-text-2); }
.section-content.markdown-table { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; direction: ltr; text-align: left; }
details.section-block { border-bottom: 1px solid var(--c-border); padding-bottom: 4px; }
details.section-block > summary {
    cursor: pointer; font-weight: 750; font-size: 16.5px; padding: 14px 6px;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; color: var(--c-text);
}
details.section-block > summary::-webkit-details-marker { display: none; }
details.section-block > summary::before {
    content: "▸"; color: var(--brand); transition: transform .2s var(--ease); font-size: 14px;
}
details.section-block[open] > summary::before { transform: rotate(90deg); }
details.section-block > summary:hover { color: var(--brand); }

/* ---------------------------------------------------------------- 12) جدول */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--c-border); background: var(--c-surface); }
table.table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.table th, table.table td { padding: 12px 14px; text-align: start; font-size: 14px; vertical-align: top; border-bottom: 1px solid var(--c-border); }
table.table thead th { background: var(--c-surface-2); font-size: 13px; font-weight: 800; color: var(--c-text-2); position: sticky; top: 0; }
table.table tbody tr:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
table.table tr:last-child td { border-bottom: 0; }
table.table td.num, table.table th.num { text-align: center; }
.compare-table th:first-child { width: 180px; }

/* ---------------------------------------------------------------- 13) هشدارها و تداخل */
.notice {
    display: flex; gap: 10px; align-items: flex-start;
    border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; font-size: 14px;
    border: 1px solid var(--c-border); background: var(--c-surface);
}
.notice-warning { background: var(--warning-soft); border-color: var(--warning-bd); color: #7c2d12; }
.notice-danger  { background: var(--danger-soft);  border-color: var(--danger-bd);  color: #7f1d1d; }
.notice-info    { background: var(--info-soft);    border-color: var(--info-bd);    color: #075985; }

.interaction-pair { margin-bottom: 18px; }
.interaction-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sev { border-radius: var(--r-pill); padding: 4px 13px; font-size: 12.5px; font-weight: 800; }
.sev-high    { background: var(--danger);  color: #fff; }
.sev-moderate{ background: var(--warning); color: #fff; }
.sev-info    { background: var(--brand);   color: #fff; }
.sev-none    { background: color-mix(in srgb, var(--c-muted) 12%, transparent); color: var(--c-muted); }
.snippet {
    background: var(--c-surface-2); border-inline-start: 3px solid var(--brand);
    border-radius: var(--r-xs); padding: 11px 14px; margin: 8px 0; font-size: 14px; color: var(--c-text-2);
}
.snippet mark { background: #fde68a; color: #713f12; padding: 1px 4px; border-radius: 4px; }

/* ---------------------------------------------------------------- 14) انتخاب دارو */
.picker { position: relative; }
.picker-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.picker-item {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--brand-soft); color: var(--brand);
    border-radius: var(--r-pill); padding: 6px 8px 6px 14px; font-size: 13.5px; font-weight: 700;
}
.picker-item button {
    border: 0; background: color-mix(in srgb, var(--brand) 16%, transparent); color: inherit;
    width: 21px; height: 21px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1;
    transition: background .15s;
}
.picker-item button:hover { background: color-mix(in srgb, var(--brand) 30%, transparent); }

/* ---------------------------------------------------------------- 15) صفحه‌بندی */
.pagination { display: flex; gap: 7px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; padding: 9px 13px; border-radius: var(--r-sm); border: 1px solid var(--c-border);
    background: var(--c-surface); color: var(--c-text); font-weight: 700; font-size: 13.5px;
    text-align: center; transition: .16s;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.pagination .current { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------- 16) پاورقی */
.disclaimer-band {
    background: linear-gradient(135deg, var(--warning-soft), color-mix(in srgb, var(--warning-soft) 50%, #fff));
    border-top: 1px solid var(--warning-bd); margin-top: 48px;
}
.disclaimer { padding: 16px 20px; font-size: 13px; color: #92400e; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.site-footer { background: var(--c-surface); border-top: 1px solid var(--c-border); }
.footer-inner {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px;
    padding: 34px 20px; color: var(--c-text-2); font-size: 13.5px;
}
.footer-inner > div:first-child strong { font-size: 16px; color: var(--c-text); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--c-muted); transition: color .16s; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--c-border); padding: 14px 20px; text-align: center; color: var(--c-muted); font-size: 12.5px; }
@media (max-width: 780px) { .footer-inner { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------------------------------------------------------- 17) ابزارها */
.muted { color: var(--c-muted); }
.small { font-size: 13px; }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:26px}
.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:26px}
.flex{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}
.hidden{display:none!important}
.section-title { display: flex; align-items: center; gap: 11px; margin: 6px 0 16px; font-size: clamp(1.15rem,1rem+.5vw,1.4rem); }
.section-title::before { content: ""; width: 5px; height: 24px; border-radius: 4px; background: var(--grad-brand); }
hr.sep { border: 0; height: 1px; background: var(--c-border); margin: 22px 0; }

/* ---------------------------------------------------------------- 18) گالری */
.gallery { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.gallery-main {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--c-border); background: var(--c-surface-2); cursor: zoom-in;
    box-shadow: var(--sh-2);
}
.gallery-main img { width: 100%; max-height: 440px; object-fit: contain; display: block; transition: transform .4s var(--ease); }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; align-content: start; }
.gallery-thumbs img {
    width: 100%; height: 90px; object-fit: cover; border-radius: var(--r-sm);
    border: 2px solid transparent; cursor: pointer; background: var(--c-surface-2); transition: .2s var(--ease);
}
.gallery-thumbs img:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.gallery-thumbs img.active { border-color: var(--brand); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 24px;
    background: rgba(8,12,24,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; animation: daroFade .2s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r); box-shadow: 0 40px 90px rgba(0,0,0,.55); animation: daroScale .25s var(--ease); }
.lightbox .lb-close { position: absolute; top: 20px; inset-inline-end: 24px; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: #fff; color: #111; font-size: 19px; cursor: pointer; box-shadow: var(--sh-2); }

/* ---------------------------------------------------------------- 19) توست/لودینگ */
.toast-wrap { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--c-text); color: var(--c-surface); padding: 11px 17px; border-radius: var(--r-sm);
    box-shadow: var(--sh-3); font-size: 13.5px; font-weight: 600; animation: daroUp .3s var(--ease); }
.skeleton { background: linear-gradient(90deg, var(--c-surface-2) 25%, var(--c-bg-2) 40%, var(--c-surface-2) 55%);
    background-size: 840px 100%; animation: daroShimmer 1.3s infinite linear; border-radius: var(--r-sm); min-height: 16px; }
.skeleton.card-sk { height: 96px; margin-bottom: 12px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; display: inline-block;
    border: 3px solid var(--c-border); border-top-color: var(--brand); animation: daroSpin .8s linear infinite; vertical-align: middle; }
.empty-state { text-align: center; padding: 54px 20px; color: var(--c-muted); }
.empty-state .ico { font-size: 44px; opacity: .5; display: block; margin-bottom: 10px; }

/* ---------------------------------------------------------------- 20) انیمیشن */
@keyframes daroUp    { from { opacity:0; transform: translateY(20px);} to { opacity:1; transform:none; } }
@keyframes daroFade  { from { opacity:0 } to { opacity:1 } }
@keyframes daroScale { from { opacity:0; transform: scale(.94) } to { opacity:1; transform:none } }
@keyframes daroFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
@keyframes daroShimmer { 0% { background-position: -420px 0 } 100% { background-position: 420px 0 } }
@keyframes daroSpin { to { transform: rotate(360deg) } }
@keyframes daroPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.35) } 50% { box-shadow: 0 0 0 12px rgba(220,38,38,0) } }

/* فقط وقتی JS فعال است پنهان می‌شود تا محتوا بدون JS هم دیده شود */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; }
html.js .reveal.in { opacity: 1; animation: daroUp .6s var(--ease) both; }
.reveal.d1.in{animation-delay:.08s}.reveal.d2.in{animation-delay:.16s}.reveal.d3.in{animation-delay:.24s}.reveal.d4.in{animation-delay:.32s}
.hero h1 { animation: daroUp .7s var(--ease) both; }
.hero .lead { animation: daroUp .7s .1s var(--ease) both; }
.hero .search-form { animation: daroUp .7s .2s var(--ease) both; }
.result-card { animation: daroUp .45s var(--ease) both; }
.result-card:nth-child(2n){animation-delay:.05s}.result-card:nth-child(3n){animation-delay:.1s}
.boxed-alert { animation: daroPulse 2.6s infinite; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in, .hero h1, .hero .lead, .hero .search-form, .result-card, .hero::before, .hero::after { animation: none !important; opacity: 1 !important; }
    * { transition: none !important; }
}

/* ---------------------------------------------------------------- 21) ریسپانسیو/موبایل */
.nav-backdrop { position: fixed; inset: 0; background: rgba(9,14,26,.5); z-index: 110; display: none; }
.nav-backdrop.open { display: block; animation: daroFade .2s ease; }
@media (max-width: 940px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(82vw, 340px);
        background: var(--c-surface); flex-direction: column; align-items: stretch; gap: 4px;
        padding: 84px 18px 20px; margin: 0; z-index: 120; overflow-y: auto;
        transform: translateX(110%); transition: transform .3s var(--ease);
        box-shadow: -24px 0 60px rgba(0,0,0,.28); border-inline-start: 1px solid var(--c-border);
    }
    [dir="ltr"] .main-nav { transform: translateX(-110%); box-shadow: 24px 0 60px rgba(0,0,0,.28); }
    .main-nav.open { transform: translateX(0) !important; }
    .main-nav a { font-size: 15.5px; padding: 13px 16px; border-radius: var(--r-sm); }
    .header-inner { flex-wrap: wrap; }
    .header-tools { margin-inline-start: 0; }
}
@media (max-width: 640px) {
    :root { --fs-body: 14.5px; --sp-5: 16px; }
    .container { padding-inline: 14px; }
    .hero { padding: 40px 0 36px; }
    .hero .search-form { flex-direction: column; }
    .hero .search-form .btn { width: 100%; }
    .drug-body { grid-template-columns: 1fr; }
    .toc { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
    .toc a { white-space: nowrap; background: var(--c-surface-2); border-radius: var(--r-pill); padding: 7px 13px; border: 0; }
    .toc .card-title { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .compare-table th:first-child { position: sticky; inset-inline-start: 0; background: var(--c-surface); z-index: 2; }
    .gallery-thumbs { grid-template-columns: repeat(4,1fr); }
    .gallery-thumbs img { height: 64px; }
}

/* ---------------------------------------------------------------- 22) چاپ */
@media print {
    .site-header, .site-footer, .disclaimer-band, .actions, .toc, .btn, .hero::before, .hero::after { display: none !important; }
    body { background: #fff; background-image: none; }
    .card, .result-card, .drug-hero { box-shadow: none; border-color: #ccc; }
}

/* ---------------------------------------------------------------- 23) کامپوننت‌های تکمیلی v3 */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--c-surface) 70%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--c-border));
    color: var(--brand); font-size: 12.5px; font-weight: 750; margin-bottom: 16px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }

.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; padding-top: 22px; border-top: 1px dashed color-mix(in srgb, var(--c-border-2) 90%, transparent); }
.hero-trust .t { display: flex; flex-direction: column; }
.hero-trust .t b { font-size: 20px; font-weight: 900; color: var(--c-text); font-variant-numeric: tabular-nums; }
.hero-trust .t span { font-size: 12.5px; color: var(--c-muted); }

.feature-card { display: flex; flex-direction: column; gap: 10px; }
.feature-card .icon-box {
    width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 22px;
    background: var(--brand-soft); color: var(--brand); transition: transform .25s var(--ease);
}
.feature-card:hover .icon-box { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { margin: 0; font-size: 16.5px; }
.feature-card p { margin: 0; }

.cta-band {
    position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 34px;
    background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand);
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: transparent; }
.cta-band::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.14); top: -140px; inset-inline-end: -60px; }

/* ============================================================================
   20) بررسی تداخل دارویی (v4) — خلوت، ساده، رنگ‌بندی روشن
   ============================================================================ */
.ix-summary {
    display: flex; align-items: center; gap: var(--sp-4);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    box-shadow: var(--sh-2);
    margin-bottom: var(--sp-5);
    position: relative; overflow: hidden;
    flex-wrap: wrap;
}
.ix-summary::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 6px;
    background: var(--c-muted);
}
.ix-summary--high::before     { background: linear-gradient(180deg, #ef4444, #b91c1c); }
.ix-summary--moderate::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.ix-summary--info::before     { background: linear-gradient(180deg, var(--brand), var(--brand-3)); }
.ix-summary--none::before     { background: linear-gradient(180deg, #10b981, #059669); }

.ix-summary__icon {
    width: 54px; height: 54px; flex: 0 0 54px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    font-size: 26px; line-height: 1;
    background: var(--c-surface-2); border: 1px solid var(--c-border);
}
.ix-summary--high .ix-summary__icon     { background: var(--danger-soft);  border-color: var(--danger-bd); }
.ix-summary--moderate .ix-summary__icon { background: var(--warning-soft); border-color: var(--warning-bd); }
.ix-summary--info .ix-summary__icon     { background: var(--info-soft);    border-color: var(--info-bd); }
.ix-summary--none .ix-summary__icon     { background: var(--ok-soft);      border-color: var(--ok-bd); }

.ix-summary__main { flex: 1 1 220px; min-width: 0; }
.ix-summary__title { font-weight: 800; font-size: 1.16rem; letter-spacing: -.2px; }
.ix-summary__sub { color: var(--c-muted); font-size: .9rem; }

.ix-summary__stats { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.ix-stat {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--r-pill);
    font-size: .85rem; font-weight: 600;
    background: var(--c-surface-2); border: 1px solid var(--c-border);
}
.ix-stat b { font-size: 1rem; }
.ix-stat--high     { background: var(--danger-soft);  border-color: var(--danger-bd);  color: #991b1b; }
.ix-stat--moderate { background: var(--warning-soft); border-color: var(--warning-bd); color: #92400e; }
.ix-stat--info     { background: var(--info-soft);    border-color: var(--info-bd);    color: #075985; }
.ix-stat--none     { color: var(--c-muted); }

.ix-list { display: grid; gap: var(--sp-4); }

.ix-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--sh-1);
    position: relative;
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
    border-inline-start-width: 5px;
}
.ix-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.ix-card--high     { border-inline-start-color: #ef4444; }
.ix-card--moderate { border-inline-start-color: #f59e0b; }
.ix-card--info     { border-inline-start-color: var(--brand); }
.ix-card--none     { border-inline-start-color: var(--c-border-2); }

.ix-card__top {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-3);
}
.ix-pairline { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.ix-name { font-weight: 700; font-size: 1.06rem; }
.ix-plus {
    width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 50%; font-weight: 800; font-size: .9rem;
    background: var(--brand-soft); color: var(--brand-2);
}

.ix-pill {
    padding: 6px 14px; border-radius: var(--r-pill);
    font-size: .84rem; font-weight: 700; white-space: nowrap;
}
.ix-pill--high     { background: #fee2e2; color: #991b1b; }
.ix-pill--moderate { background: #fef3c7; color: #92400e; }
.ix-pill--info     { background: var(--info-soft); color: #075985; }
.ix-pill--none     { background: var(--c-surface-2); color: var(--c-muted); }

.ix-generics { font-size: .88rem; color: var(--c-muted); margin-bottom: 6px; }
.ix-explain { margin: 0 0 var(--sp-3); font-size: .96rem; color: var(--c-text-2); }

.ix-dup {
    display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap;
    background: var(--warning-soft); border: 1px solid var(--warning-bd);
    color: #92400e; border-radius: var(--r-sm);
    padding: 8px 12px; margin-bottom: var(--sp-3); font-size: .9rem;
}
.ix-dup__tag { font-weight: 800; }

.ix-none { color: var(--c-muted); font-size: .9rem; }

.ix-ev { border-top: 1px dashed var(--c-border); padding-top: var(--sp-3); }
.ix-ev > summary {
    cursor: pointer; display: flex; align-items: center; gap: var(--sp-2);
    font-weight: 600; font-size: .93rem; color: var(--brand-2);
    list-style: none; user-select: none;
}
.ix-ev > summary::-webkit-details-marker { display: none; }
.ix-ev > summary::before { content: "▸"; transition: transform .2s var(--ease); display: inline-block; }
.ix-ev[open] > summary::before { transform: rotate(90deg); }
.ix-ev__count {
    font-weight: 500; font-size: .8rem; color: var(--c-muted);
    background: var(--c-surface-2); border: 1px solid var(--c-border);
    padding: 1px 8px; border-radius: var(--r-pill);
}
.ix-ev__item { margin-top: var(--sp-3); }
.ix-ev__meta { font-size: .82rem; color: var(--c-muted); margin-bottom: 4px; }
.ix-ev__from { font-weight: 700; color: var(--c-text-2); }
.ix-ev__lang { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 6px; padding: 0 5px; font-size: .72rem; }
.ix-ev__text {
    font-size: .92rem; color: var(--c-text-2);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: var(--sp-3) var(--sp-4);
    line-height: 1.9;
}
.ix-ev__text mark { background: #fde68a; color: #713f12; padding: 1px 5px; border-radius: 5px; font-weight: 700; }

.ix-footnote { color: var(--c-muted); font-size: .84rem; margin-top: var(--sp-4); line-height: 1.85; }

.ix-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--c-muted); }
.ix-empty__icon { font-size: 42px; margin-bottom: var(--sp-3); opacity: .8; }
.ix-empty__title { font-weight: 700; font-size: 1.1rem; color: var(--c-text-2); }
.ix-empty__sub { font-size: .92rem; }

#stack-result.is-loading { opacity: .55; transition: opacity .2s; }

/* چاپ گزارش تداخل */
@media print {
    .ix-ev { display: block; }
    .ix-ev > summary { display: none; }
    .ix-card { break-inside: avoid; box-shadow: none; }
}

/* پنل انتخاب دارو در صفحهٔ تداخل */
.page-head { margin-bottom: var(--sp-4); }
.page-head .section-title { margin-top: 6px; margin-bottom: 6px; }
.ix-panel { padding: var(--sp-5); margin-bottom: var(--sp-5); }
.ix-panel__label { font-weight: 700; margin-bottom: var(--sp-3); font-size: .95rem; }
.ix-disclaimer { margin-top: var(--sp-5); }

/* ============================================================================
   21) نوار نتایج جستجو + کارت نتیجهٔ بازطراحی‌شده
   ============================================================================ */
.results-bar {
    display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r-pill); padding: 8px 8px 8px 18px;
    box-shadow: var(--sh-1); margin-bottom: var(--sp-4);
}
.results-bar__count { display: flex; align-items: baseline; gap: 6px; font-size: .92rem; color: var(--c-muted); }
.results-bar__count strong { font-size: 1.18rem; color: var(--c-text); letter-spacing: -.3px; }
.results-bar__page { font-size: .84rem; color: var(--c-muted); }
.results-bar__sort { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.chip {
    padding: 7px 14px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 600;
    color: var(--c-text-2); background: transparent; border: 1px solid transparent;
    transition: background .18s var(--ease), color .18s var(--ease);
    text-decoration: none;
}
.chip:hover { background: var(--c-surface-2); color: var(--c-text); }
.chip--active { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--sh-brand); }

.result-card .brand-line { margin-bottom: 7px; }
.brand-latin {
    display: inline-block; direction: ltr; unicode-bidi: isolate;
    font-size: .78rem; font-weight: 700; letter-spacing: .4px;
    color: var(--brand-2); background: var(--brand-soft);
    border-radius: var(--r-pill); padding: 3px 10px;
}
.result-card .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

@media (max-width: 640px) {
    .results-bar { border-radius: var(--r); padding: 10px 14px; }
    .results-bar__sort { margin-inline-start: 0; width: 100%; }
}

/* ============================================================================
   22) لایهٔ «بالینی» v5
   ----------------------------------------------------------------------------
   ترکیبی از الگوهای مراجع معتبر:
     · Cleveland Clinic → هدر رنگی، نویگیشن پیل، آبی پزشکی
     · Mayo Clinic      → تیترهای پراعتبار، فضای سفید زیاد، سلسله‌مراتب قوی
     · DailyMed / NLM   → جدول‌های مرجع، فاکس‌باکس، ارجاع به منبع، آبی‌فیروزه‌ای
     · drugs.com        → کارت‌های تمیز، سیستم برچسب، جستجوی واضح
     · MedlinePlus/NIH  → رنگ‌های دسترس‌پذیر، نارنجی برای هشدار
     · GoodRx           → سادگی برای کاربر عادی
   ============================================================================ */

/* ---------------------------------------------- 22.1 نوار اعتماد بالای هدر */
.trust-bar {
    background: var(--grad-band);
    color: #dceafa;
    font-size: .78rem;
    letter-spacing: .1px;
}
.trust-bar .container {
    display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
    min-height: 34px; padding-block: 4px;
}
.trust-bar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.trust-bar__dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd3dd; box-shadow: 0 0 0 3px rgba(127,211,221,.22); }
.trust-bar__sep { width: 1px; height: 14px; background: rgba(255,255,255,.22); }
.trust-bar a { color: #ffffff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.5); }
.trust-bar a:hover { border-bottom-style: solid; }
@media (max-width: 720px) { .trust-bar { font-size: .72rem; } .trust-bar__hide-sm { display: none; } }

/* ---------------------------------------------- 22.2 هدر */
.site-header {
    background: var(--header-bg);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 1px 0 rgba(13,36,56,.02);
}
.header-inner { min-height: var(--header-h); }
.brand { gap: 11px; }
.brand-mark {
    background: var(--grad-brand);
    color: #fff;
    border-radius: 11px;
    box-shadow: var(--sh-brand);
    font-weight: 800;
}
.brand-text strong { letter-spacing: -.3px; }
.brand-text span { color: var(--c-muted); font-size: .74rem; }

.main-nav a {
    position: relative;
    border-radius: var(--r-pill);
    padding: 8px 14px;
    font-weight: 600;
    color: var(--c-text-2);
    transition: background .18s var(--ease), color .18s var(--ease);
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-2); }
.main-nav a.is-active, .main-nav a[aria-current="page"] { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.main-nav a.is-active::after, .main-nav a[aria-current="page"]::after { display: none; }

.header-search input {
    border-radius: var(--r-pill);
    border: 1.5px solid var(--c-border-2);
    background: var(--c-surface);
    padding-inline: 18px;
}
.header-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }

/* ---------------------------------------------- 22.3 دکمه‌ها (ساده و بالینی) */
.btn {
    border-radius: var(--r-sm);
    font-weight: 650;
    letter-spacing: .1px;
    border: 1.5px solid transparent;
    transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease), border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--c-surface); color: var(--c-text-2); border-color: var(--c-border-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-tint); }
.btn-danger { background: var(--danger); color: #fff; }

/* ---------------------------------------------- 22.4 برچسب‌ها (reference tags) */
.badge {
    border-radius: 6px;
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .2px;
    padding: 3px 9px;
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    color: var(--c-text-2);
}
.badge-primary { background: var(--brand-soft); color: var(--brand-2); border-color: #cbe0f2; }
.badge-info    { background: var(--accent-soft); color: var(--accent-2); border-color: #c3e9ee; }
.badge-ok      { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-bd); }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-bd); }
.badge-danger  { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-bd); }

/* ---------------------------------------------- 22.5 کارت‌ها */
.card,
.result-card,
.feature-card,
.stat-card,
.drug-hero,
.section-block {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    border-radius: var(--r);
    box-shadow: var(--sh-1);
}
.card-title, .section-title { letter-spacing: -.3px; }
.section-title::after {
    content: ""; display: block; width: 46px; height: 3px;
    background: var(--grad-brand); border-radius: 3px; margin-top: 10px;
}

.result-card { padding: 16px 18px; gap: 14px; }
.result-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--c-border-2); }
.result-card h3 { font-size: 16.5px; font-weight: 750; }
.result-card h3 a { color: var(--brand-2); }
.result-card h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.result-card .meta-line { font-size: .84rem; }

.feature-card { padding: var(--sp-5); }
.feature-card:hover { box-shadow: var(--sh-2); }
.icon-box {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; font-size: 22px;
    background: var(--brand-soft); color: var(--brand);
}

/* ---------------------------------------------- 22.6 هیرو (آرام و معتبر) */
.hero {
    background: var(--grad-hero);
    border-bottom: 1px solid var(--c-border);
    padding-block: clamp(28px, 4vw, 52px);
}
.hero h1 { letter-spacing: -.6px; line-height: 1.35; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand-soft); color: var(--brand-2);
    border: 1px solid #cbe0f2;
    border-radius: var(--r-pill);
    padding: 5px 14px;
    font-size: .8rem; font-weight: 700;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-5); }
.hero-trust .t {
    display: flex; flex-direction: column; gap: 2px;
    padding-inline-start: var(--sp-4);
    border-inline-start: 3px solid var(--brand-soft);
}
.hero-trust .t b { font-size: 1.45rem; font-weight: 800; color: var(--brand-2); letter-spacing: -.5px; line-height: 1.2; }
.hero-trust .t span { font-size: .82rem; color: var(--c-muted); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------------------------------------------- 22.7 فاکس‌باکس (سبک DailyMed) */
.facts { gap: 0; border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; }
.fact {
    background: var(--c-surface);
    border: 0;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    padding: 11px 15px;
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3);
}
.fact:last-child { border-bottom: 0; }
.fact .k { color: var(--c-muted); font-size: .78rem; margin: 0; }
.fact .v { font-weight: 700; font-size: .92rem; }
.facts .fact:nth-child(odd) { background: var(--c-surface-2); }

/* ---------------------------------------------- 22.8 بخش‌های دارو (monograph) */
.section-block { padding: var(--sp-5); margin-bottom: var(--sp-4); }
.section-block > h2, .section-block > h3 {
    display: flex; align-items: center; gap: 10px;
    font-size: var(--fs-3); margin-top: 0;
    padding-bottom: 10px; border-bottom: 1px solid var(--c-border);
}
.section-content { color: var(--c-text-2); font-size: .95rem; }
.section-content h3 { color: var(--c-text); font-size: 1rem; }
.toc {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r); padding: var(--sp-4);
}
.toc a {
    display: block; padding: 7px 10px; border-radius: var(--r-xs);
    color: var(--c-text-2); font-size: .88rem; border-inline-start: 2px solid transparent;
}
.toc a:hover { background: var(--brand-tint); color: var(--brand-2); border-inline-start-color: var(--brand); }

/* ---------------------------------------------- 22.9 جدول‌ها */
.table-wrap { border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th {
    background: var(--c-surface-2); color: var(--c-text-2);
    font-size: .78rem; font-weight: 700; letter-spacing: .2px;
    text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--c-border);
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--brand-tint); }

/* ---------------------------------------------- 22.10 هشدارها (بالینی) */
.notice {
    border-radius: var(--r-sm);
    border: 1px solid var(--c-border);
    background: var(--c-surface-2);
    border-inline-start: 4px solid var(--c-muted);
    padding: 13px 16px;
}
.notice-info    { background: var(--info-soft);    border-color: var(--info-bd);    border-inline-start-color: var(--brand); color: #0a3f6e; }
.notice-warning { background: var(--warning-soft); border-color: var(--warning-bd); border-inline-start-color: var(--warning); color: #7a3208; }
.notice-danger  { background: var(--danger-soft);  border-color: var(--danger-bd);  border-inline-start-color: var(--danger); color: #8f1d14; }

.boxed-alert {
    background: #fff5f5;
    border: 1.5px solid var(--danger-bd);
    border-inline-start: 5px solid var(--danger);
    border-radius: var(--r-sm);
}
.boxed-alert strong { color: var(--danger); }

.disclaimer-band, .disclaimer {
    background: var(--warm-soft);
    border: 1px solid #ffd9c2;
    border-inline-start: 4px solid var(--warm);
    border-radius: var(--r-sm);
    color: #7a3208;
}

/* ---------------------------------------------- 22.11 فوتر */
.site-footer {
    background: #0b2a44;
    color: #b9cde0;
    border-top: 0;
}
.site-footer a { color: #dbe8f4; }
.site-footer a:hover { color: #fff; }
.footer-inner { border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-bottom { color: #8fa9c2; background: rgba(0,0,0,.18); }

/* ---------------------------------------------- 22.12 ریزه‌کاری‌ها */
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }
.mono, .ref-code { font-family: var(--font-mono); font-size: .82rem; direction: ltr; unicode-bidi: isolate; }

/* چیپ منبع — ارجاع به برچسب رسمی (سبک DailyMed) */
.ref-source {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .76rem; color: var(--c-muted);
    background: var(--c-surface-2); border: 1px solid var(--c-border);
    border-radius: 6px; padding: 3px 9px;
}
.ref-source b { color: var(--c-text-2); font-weight: 700; }

/* نوار کوچک بالای کارت‌های آماری */
.stat-card .ico { background: var(--brand-soft); color: var(--brand); border-radius: 10px; }
.stat-card .num { color: var(--brand-2); letter-spacing: -.5px; font-weight: 800; }

/* اسکرول‌بار ظریف */
* { scrollbar-width: thin; scrollbar-color: var(--c-border-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--c-muted); background-clip: content-box; }

/* چاپ: شبیه برگهٔ مرجع دارویی */
@media print {
    .site-header, .trust-bar, .site-footer, .filters, .actions, .pagination { display: none !important; }
    body { background: #fff; font-size: 11.5pt; }
    .card, .section-block, .drug-hero { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    a[href]::after { content: ""; }
}

/* ============================================================================
   23) لایهٔ صیقل حرفه‌ای v6 — آیکون‌های SVG، تایپوگرافی دقیق، جزئیات ریز
   ============================================================================ */

/* ---------------------------------------------- 23.1 آیکون‌های SVG */
.ico-svg { vertical-align: -.18em; flex: 0 0 auto; }
.btn .ico-svg, .chip .ico-svg, .badge .ico-svg { margin-inline-end: 1px; }
.icon-box .ico-svg, .stat-card .ico .ico-svg { width: auto; height: auto; }
.btn { display: inline-flex; align-items: center; gap: 7px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.eyebrow .ico-svg { color: var(--accent); }

/* ---------------------------------------------- 23.2 اعداد جدولی (تراز دقیق) */
.num, .stat-card .num, .hero-trust .t b, .results-bar__count strong,
.fact .v, .table td, .pagination { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------------------------------------------- 23.3 تایپوگرافی دقیق‌تر */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { line-height: 1.45; font-weight: 800; }
h1 { letter-spacing: -.7px; }
h2 { letter-spacing: -.45px; }
h3 { letter-spacing: -.25px; }
p { max-width: 78ch; }
.lead { font-size: clamp(1rem, .96rem + .35vw, 1.12rem); color: var(--c-text-2); max-width: 62ch; line-height: 1.85; }
.small { font-size: .84rem; }
.muted { color: var(--c-muted); }
.k, .lbl, .fact .k { letter-spacing: .2px; }

/* بخش‌عنوان با خط راهنمای کوچک */
.section-title { font-size: var(--fs-2); margin-bottom: var(--sp-4); }
.section-kicker {
    display: block; font-size: .72rem; font-weight: 800;
    letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--brand); margin-bottom: 6px;
}

/* ---------------------------------------------- 23.4 کارت آماری (چیدمان حرفه‌ای) */
.stat-card {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
    column-gap: var(--sp-4); row-gap: 2px; align-items: center;
    padding: var(--sp-5);
}
.stat-card .ico {
    grid-row: 1 / span 2;
    width: 48px; height: 48px; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand);
    border: 1px solid #cfe3f4;
}
.stat-card:nth-child(2) .ico { background: var(--accent-soft); color: var(--accent-2); border-color: #c6e8ec; }
.stat-card:nth-child(3) .ico { background: var(--brand-tint); color: var(--brand-3); border-color: #cfe3f4; }
.stat-card:nth-child(4) .ico { background: var(--c-surface-2); color: var(--c-text-2); border-color: var(--c-border); }
.stat-card .num { font-size: 1.55rem; line-height: 1.15; }
.stat-card .lbl { font-size: .82rem; color: var(--c-muted); }

/* ---------------------------------------------- 23.5 چیپ‌ها و برچسب‌ها */
.chip {
    padding: 7px 13px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-2);
    font-size: .84rem;
}
.chip:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-tint); }
.chip--active { border-color: var(--brand); }

/* ---------------------------------------------- 23.6 کارت امکانات */
.feature-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.feature-card h3 { margin: 6px 0 0; font-size: 1.02rem; color: var(--c-text); }
.feature-card p { margin: 0; line-height: 1.8; }
.feature-card .icon-box { transition: transform .2s var(--ease); }
.feature-card:hover .icon-box { transform: translateY(-2px); }
.feature-card::after {
    content: ""; position: absolute; inset-inline-end: var(--sp-5); top: 50%;
    width: 0; height: 0; opacity: 0; transition: opacity .2s;
}
.feature-card { position: relative; }

/* ---------------------------------------------- 23.7 نوار CTA */
.cta-band {
    background: var(--grad-band);
    border-radius: var(--r-lg);
    padding: var(--sp-6) var(--sp-6);
    color: #fff; position: relative; overflow: hidden;
    box-shadow: var(--sh-brand);
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(520px 240px at 88% 0%, rgba(255,255,255,.16), transparent 70%);
    pointer-events: none;
}
.cta-band h2 { margin: 0 0 6px; color: #fff; letter-spacing: -.4px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 68ch; }
.cta-band .btn { background: #fff; color: var(--brand-2); box-shadow: none; }
.cta-band .btn:hover { background: #eef6fd; }

/* ---------------------------------------------- 23.8 خطوط جداکنندهٔ مویی */
.hairline { height: 1px; background: var(--c-border); border: 0; margin: var(--sp-5) 0; }
.section-block > h2, .section-block > h3 { border-bottom-color: var(--c-border); }

/* ---------------------------------------------- 23.9 حالت پرینت — سرصفحهٔ مرجع */
@media print {
    @page { margin: 16mm 14mm; }
    body::before {
        content: "داروبانک — برگهٔ مرجع دارویی";
        display: block; border-bottom: 2px solid #0b5fa5;
        padding-bottom: 6px; margin-bottom: 12px;
        font-size: 10pt; font-weight: 700; color: #0b5fa5;
    }
    .badge, .chip { border: 1px solid #999; }
}

/* ---------------------------------------------- 23.10 مونوگراف دارو (شماره‌گذاری + TOC چسبان) */
.drug-body { counter-reset: sec; }
.drug-body .section-block { counter-increment: sec; position: relative; }
.drug-body .section-block > h2,
.drug-body .section-block > summary {
    display: flex; align-items: center; gap: 10px;
}
.drug-body .section-block > h2::before,
.drug-body .section-block > summary::before {
    content: counter(sec);
    flex: 0 0 auto;
    width: 24px; height: 24px; border-radius: 7px;
    display: inline-grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-2);
    font-size: .74rem; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.toc { position: sticky; top: calc(var(--header-h) + 18px); }
.toc .card-title { font-size: .92rem; margin-top: 0; }
.layout-sidebar { align-items: start; }
.ref-source { margin-top: 4px; }
.ref-source .ico-svg { color: var(--accent-2); }
.drug-hero h1 { line-height: 1.35; }
.drug-hero .sub { font-size: .95rem; }
.facts { margin-top: var(--sp-4); }

/* ---------------------------------------------- 23.11 نان‌ریزه */
.breadcrumbs {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; color: var(--c-muted);
    padding-top: var(--sp-4); padding-bottom: 2px;
}
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs .bc-sep { color: var(--c-border-2); display: inline-flex; transform: scaleX(-1); }
.bc-current { color: var(--c-text-2); font-weight: 650; }
@media print { .breadcrumbs { display: none; } }

/* مارکر پیش‌فرض details حذف شود (به‌جایش شمارهٔ بخش) */
.drug-body .section-block > summary { list-style: none; cursor: pointer; }
.drug-body .section-block > summary::-webkit-details-marker { display: none; }
.drug-body .section-block > summary::after {
    content: ""; margin-inline-start: auto;
    width: 7px; height: 7px; border-inline-end: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted);
    transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease);
}
.drug-body .section-block[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }

/* ---------------------------------------------- 23.12 «منظورتان این بود؟» */
.dym { padding: var(--sp-5); margin-top: var(--sp-3); border-inline-start: 4px solid var(--brand); }
.dym__title { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--brand-2); margin-bottom: var(--sp-3); }
.dym__list { display: flex; flex-wrap: wrap; gap: 8px; }
.dym__list .chip { font-weight: 650; }

/* ---------------------------------------------- 23.13 کدهای مرجع */
.codes-block {
    margin-top: var(--sp-4);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    background: var(--c-surface);
    overflow: hidden;
}
.codes-block__title {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    background: var(--c-surface-2);
    border-bottom: 1px solid var(--c-border);
    font-size: .82rem; font-weight: 750; color: var(--c-text-2);
}
.codes-block__title .ico-svg { color: var(--accent-2); }
.codes-block__grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.code-item {
    padding: 10px 16px;
    border-bottom: 1px solid var(--c-border);
    border-inline-end: 1px solid var(--c-border);
    display: flex; flex-direction: column; gap: 3px;
}
.code-item__k { font-size: .72rem; color: var(--c-muted); letter-spacing: .3px; text-transform: uppercase; }
.code-item__v { font-family: var(--font-mono); font-size: .86rem; color: var(--c-text); direction: ltr; unicode-bidi: isolate; word-break: break-all; }
.code-item__v:hover, .codes-block:hover .code-item__v { user-select: all; }

/* ---------------------------------------------- 23.14 داروهای مرتبط */
.related-block { margin-top: var(--sp-7); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-3); }
.related-card {
    display: flex; flex-direction: column; gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    background: var(--c-surface);
    text-decoration: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.related-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.related-card__title { font-weight: 700; font-size: .95rem; color: var(--brand-2); }
.related-card__meta { font-size: .8rem; color: var(--c-muted); }

/* ---------------------------------------------- 23.15 نوار پیشرفت مطالعه */
.read-progress {
    position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200;
    background: transparent; pointer-events: none;
}
.read-progress__bar {
    height: 100%; width: 0;
    background: var(--grad-brand);
    transition: width .1s linear;
}
.to-top {
    position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 150;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--c-surface); color: var(--brand-2);
    border: 1px solid var(--c-border-2);
    box-shadow: var(--sh-3);
    cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* TOC فعال (scroll-spy) */
.toc a.is-current {
    background: var(--brand-soft); color: var(--brand-2);
    border-inline-start-color: var(--brand); font-weight: 700;
}
@media print { .read-progress, .to-top { display: none !important; } }

/* ---------------------------------------------- 23.16 توصیهٔ بالینی + سطح «ممنوع» */
.ix-card--contra { border-inline-start-color: #7f1d1d; }
.ix-pill--contra { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.ix-stat--contra { background: #fee2e2; border-color: #fca5a5; color: #7f1d1d; }
.ix-summary--contraindicated::before { background: linear-gradient(180deg, #991b1b, #7f1d1d); }

.ix-advice {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-radius: var(--r-sm);
    font-size: .92rem; margin-bottom: var(--sp-3);
    border: 1px solid var(--c-border); background: var(--c-surface-2);
}
.ix-advice__tag {
    flex: 0 0 auto; font-size: .74rem; font-weight: 800;
    padding: 2px 9px; border-radius: 6px;
    background: var(--c-surface); border: 1px solid var(--c-border-2); color: var(--c-text-2);
}
.ix-advice--danger  { background: var(--danger-soft);  border-color: var(--danger-bd);  color: #8f1d14; }
.ix-advice--danger .ix-advice__tag  { background: #fff; border-color: var(--danger-bd); color: var(--danger); }
.ix-advice--warning { background: var(--warning-soft); border-color: var(--warning-bd); color: #7a3208; }
.ix-advice--warning .ix-advice__tag { background: #fff; border-color: var(--warning-bd); color: var(--warning); }
.ix-advice--info    { background: var(--info-soft);    border-color: var(--info-bd);    color: #0a3f6e; }
.ix-advice--none    { color: var(--c-text-2); }

/* ============================================================================
   24) لایهٔ «پریمیوم» v8 — عمق، بافت، تنوع رنگ، تیترهای دارای شخصیت
   ============================================================================ */

/* ---------------------------------------------- 24.1 فونت نمایشی تیترها */
:root {
    --font-display: "Shabnam", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
.brand-text strong,
.hero h1,
.section-title,
.cta-band h2,
.card-title {
    font-family: var(--font-display);
    font-weight: 700;
}
.hero h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3rem); line-height: 1.4; letter-spacing: -.9px; }
.brand-text strong { font-size: 1.14rem; letter-spacing: -.4px; }

/* کلمهٔ کلیدی با متن گرادیانی */
.hero h1 .hl {
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 55%, var(--accent) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    padding-inline-end: 2px;
}

/* ---------------------------------------------- 24.2 هدر — خط لهجه‌دار گرادیانی */
.site-header { position: relative; }
.site-header::after {
    content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand) 22%, var(--accent) 55%, transparent);
    opacity: .5;
}
.main-nav a { font-weight: 650; }
.main-nav a.is-active, .main-nav a[aria-current="page"] {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
}
.brand-mark {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 60%, var(--accent) 130%);
    box-shadow: 0 6px 16px -6px rgba(11,95,165,.55), inset 0 1px 0 rgba(255,255,255,.28);
    font-family: var(--font-display);
}

/* ---------------------------------------------- 24.3 هیرو — بافت + عمق */
.hero { position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(11,95,165,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,95,165,.045) 1px, transparent 1px);
    background-size: 34px 34px, 34px 34px;
    mask-image: radial-gradient(760px 420px at 78% 0%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(760px 420px at 78% 0%, #000 0%, transparent 72%);
}
.hero::after {
    content: "℞"; position: absolute; inset-inline-start: -18px; bottom: -54px;
    font-size: 260px; line-height: 1; font-family: Georgia, serif;
    color: var(--brand); opacity: .045; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .lead { font-size: clamp(1rem, .95rem + .4vw, 1.16rem); }

/* نوار جستجوی دستوری (command bar) */
.search-form input[type=text], .search-form input[type=search] {
    box-shadow: 0 2px 10px -4px rgba(13,36,56,.16), inset 0 1px 0 rgba(255,255,255,.7);
}
.hero .search-form input { padding-inline: 20px; }
.hero .search-form .btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 100%);
    box-shadow: 0 8px 20px -8px rgba(11,95,165,.55);
}

/* ---------------------------------------------- 24.4 کارت‌ها — عمق و لهجهٔ رنگی */
.card, .result-card, .feature-card, .stat-card { position: relative; }
.card::before, .feature-card::before, .stat-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--grad-brand); opacity: 0;
    transition: opacity .25s var(--ease);
    border-radius: var(--r) var(--r) 0 0;
}
.card:hover::before, .feature-card:hover::before, .stat-card:hover::before { opacity: 1; }

.feature-card:hover, .stat-card:hover {
    box-shadow: 0 18px 36px -20px rgba(11,95,165,.34), 0 4px 12px -8px rgba(13,36,56,.10);
    border-color: color-mix(in srgb, var(--brand) 26%, var(--c-border));
}

/* تنوع رنگ کارت‌های امکانات (نعنایی/کهربایی/بنفش/آبی) */
.feature-card:nth-child(1) .icon-box { background: linear-gradient(135deg,#e8f2fa,#d5e8f7); color: var(--brand); }
.feature-card:nth-child(2) .icon-box { background: linear-gradient(135deg,#fff1e8,#ffe3d1); color: var(--warm); }
.feature-card:nth-child(3) .icon-box { background: linear-gradient(135deg,#e6f6f8,#d3eef2); color: var(--accent-2); }
.feature-card:nth-child(4) .icon-box { background: linear-gradient(135deg,#f0ecfd,#e4dcfb); color: #6d43c8; }
.feature-card:nth-child(1):hover { border-color: #bfdcf3; }
.feature-card:nth-child(2):hover { border-color: #f6cdb0; }
.feature-card:nth-child(3):hover { border-color: #aee0e7; }
.feature-card:nth-child(4):hover { border-color: #cfc1f4; }
.feature-card::before { background: var(--brand); }
.feature-card:nth-child(2)::before { background: var(--warm); }
.feature-card:nth-child(3)::before { background: var(--accent); }
.feature-card:nth-child(4)::before { background: #7c53d6; }

/* آیکون‌باکس عمیق‌تر */
.icon-box { box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 2px 6px -3px rgba(13,36,56,.16); }

/* ---------------------------------------------- 24.5 اعداد گرادیانی */
.stat-card .num, .hero-trust .t b, .results-bar__count strong {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-3) 70%, var(--accent) 130%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------------------------------------- 24.6 تیتر بخش‌ها با نشان */
.section-title { position: relative; padding-inline-start: 16px; }
.section-title::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .18em;
    width: 5px; height: 1.15em; border-radius: 3px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
}
.section-title::after { display: none; }

/* ---------------------------------------------- 24.7 دکمه‌ها — عمق */
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 130%);
    box-shadow: 0 6px 16px -8px rgba(11,95,165,.6), inset 0 1px 0 rgba(255,255,255,.20);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: linear-gradient(180deg, #fff, var(--c-surface-2)); }

/* ---------------------------------------------- 24.8 فوتر — خط گرادیانی */
.site-footer { position: relative; }
.site-footer::before {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--warm));
    opacity: .85;
}

/* ---------------------------------------------- 24.9 برچسب/چیپ عمیق‌تر */
.badge { box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.chip { box-shadow: 0 1px 2px rgba(13,36,56,.04); }
.trust-bar { box-shadow: inset 0 -1px 0 rgba(255,255,255,.10); }

/* ---------------------------------------------- 24.10 کارت آماری — لهجهٔ رنگی کناری */
.stat-card:nth-child(1) { border-top-color: var(--brand); }
.stat-card:nth-child(2) { border-top-color: var(--accent); }
.stat-card:nth-child(3) { border-top-color: var(--brand-3); }
.stat-card:nth-child(4) { border-top-color: var(--c-border-2); }

/* ============================================================================
   25) هیرو پریمیوم — نوار آبی عمیق (الگوی Cleveland Clinic / Mayo Clinic)
   ============================================================================ */
.hero {
    background: var(--grad-band);
    color: #fff;
    padding-block: clamp(34px, 5vw, 62px);
    border-bottom: 0;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 38px 38px, 38px 38px;
    mask-image: radial-gradient(820px 460px at 82% 0%, #000 0%, transparent 74%);
    -webkit-mask-image: radial-gradient(820px 460px at 82% 0%, #000 0%, transparent 74%);
}
.hero::after {
    content: "℞"; position: absolute; inset-inline-start: -24px; bottom: -66px;
    font-size: 300px; line-height: 1; font-family: Georgia, serif;
    color: #fff; opacity: .055; pointer-events: none;
}
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.18); }
.hero h1 .hl {
    background: linear-gradient(100deg, #b9e6ff 0%, #7fd3dd 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.26);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero .eyebrow .dot { background: #7fd3dd; box-shadow: 0 0 0 3px rgba(127,211,221,.25); }

.hero .search-form input[type=text] {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px -12px rgba(0,0,0,.42);
    height: 52px;
}
.hero .search-form .btn-primary {
    height: 52px;
    background: #fff;
    color: var(--brand-2);
    box-shadow: none;
}
.hero .search-form .btn-primary:hover { background: #eef6fd; filter: none; }

.hero .chip {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.24);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero .chip:hover { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.5); }

.hero-trust .t { border-inline-start-color: rgba(255,255,255,.3); }
.hero-trust .t b {
    background: none; -webkit-text-fill-color: #fff; color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.hero-trust .t span { color: rgba(255,255,255,.72); }

/* بخش‌های صفحه با تینت‌های متناوب برای عمق بیشتر */
.container > .section-title ~ .grid,
.drug-body { position: relative; }

/* کارت آماری روی پس‌زمینهٔ روشن کمی «شناور» */
.stat-card { box-shadow: 0 6px 20px -14px rgba(13,36,56,.28), 0 1px 2px rgba(13,36,56,.04); }

@media (max-width: 640px) {
    .hero { padding-block: 28px 34px; }
    .hero .search-form input[type=text], .hero .search-form .btn-primary { height: 46px; }
}

/* ============================================================================
   26) هویت بصری v9 — تصویرسازی اختصاصی + لوگو + چیدمان دوستونه
   ============================================================================ */

/* ---------------------------------------------- 26.1 لوگوی SVG */
.brand-mark {
    background: none !important; box-shadow: none !important;
    padding: 0; width: 42px; height: 42px; display: inline-flex;
}
.brand-mark svg { display: block; border-radius: 12px; box-shadow: 0 10px 20px -10px rgba(11,95,165,.65); }

/* ---------------------------------------------- 26.2 هیرو دوستونه با تصویرسازی */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
}
.hero-art { position: relative; }
.hero-art::after {
    content: ""; position: absolute; inset: -8% -6% -8% -6%; z-index: -1;
    background: radial-gradient(60% 60% at 60% 50%, rgba(127,211,221,.28), transparent 70%);
    filter: blur(8px);
}
.hero-art img {
    width: 100%; height: auto; display: block;
    border-radius: var(--r-lg);
    -webkit-mask-image: linear-gradient(to right, #000 68%, transparent 100%);
    mask-image: linear-gradient(to right, #000 68%, transparent 100%);
    filter: saturate(1.07) contrast(1.04);
    animation: daroFloat 7s ease-in-out infinite;
}
html[dir="ltr"] .hero-art img {
    -webkit-mask-image: linear-gradient(to left, #000 68%, transparent 100%);
    mask-image: linear-gradient(to left, #000 68%, transparent 100%);
}
@keyframes daroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { display: none; }
}

/* ---------------------------------------------- 26.3 تصویرسازی کارت‌های امکانات (اسپرایت) */
.spot {
    display: block; width: 78px; height: 78px; flex: 0 0 78px;
    border-radius: 18px;
    background-image: url("../img/features.webp");
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-color: #fff;
    border: 1px solid var(--c-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 6px 16px -10px rgba(13,36,56,.35);
    transition: transform .22s var(--ease);
}
.spot-1 { background-position: 0% 0%; }
.spot-2 { background-position: 100% 0%; }
.spot-3 { background-position: 0% 100%; }
.spot-4 { background-position: 100% 100%; }
.feature-card:hover .spot { transform: translateY(-3px) scale(1.03); }

/* کارت‌های امکانات: کمی بلندتر و خواناتر */
.feature-card { padding: var(--sp-5); gap: 10px; }
.feature-card h3 { font-size: 1.06rem; }

/* ---------------------------------------------- 26.4 نوار آماری پریمیوم (روی هیرو) */
.hero-trust {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: var(--r);
    padding: var(--sp-4) var(--sp-5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    gap: var(--sp-5);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.hero-trust .t { border-inline-start: 0; padding-inline-start: 0; }
.hero-trust .t b { font-size: 1.5rem; }

/* لوگوی فوتر */
.site-footer .brand-mark svg { border-radius: 11px; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.site-footer .brand-text strong { color: #fff; }

/* ============================================================================
   27) کامپوننت‌های پورتال — پنل، لیست، رتبه‌بندی، مراحل، منابع، FAQ
   ============================================================================ */

/* پنل عمومی */
.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: var(--sh-1);
    overflow: hidden;
}
.panel__head {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    padding: 13px 18px;
    border-bottom: 1px solid var(--c-border);
    background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
}
.panel__title {
    display: flex; align-items: center; gap: 9px;
    margin: 0; font-size: .98rem; font-weight: 750; color: var(--c-text);
}
.panel__title .ico-svg { color: var(--brand); }
.panel__more { font-size: .82rem; color: var(--brand); font-weight: 650; text-decoration: none; }
.panel__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.panel--alert .panel__head { background: linear-gradient(180deg, var(--danger-soft), var(--c-surface)); }
.panel--alert .panel__title .ico-svg { color: var(--danger); }

/* لیست ساده */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { border-bottom: 1px solid var(--c-border); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a {
    display: block; padding: 11px 18px; text-decoration: none;
    transition: background .16s var(--ease);
}
.list-plain a:hover { background: var(--brand-tint); }
.list-plain__t { display: block; font-weight: 650; font-size: .93rem; color: var(--c-text); }
.list-plain__m { display: block; font-size: .79rem; color: var(--c-muted); margin-top: 2px; }

/* رتبه‌بندی مواد مؤثره */
.rank-list { padding: 6px 0; }
.rank-row {
    display: grid;
    grid-template-columns: 30px minmax(120px, 1.4fr) minmax(80px, 2fr) 64px;
    align-items: center; gap: 12px;
    padding: 7px 18px; text-decoration: none;
    transition: background .16s var(--ease);
}
.rank-row:hover { background: var(--brand-tint); }
.rank-row__n {
    width: 24px; height: 24px; border-radius: 7px;
    display: grid; place-items: center;
    background: var(--c-surface-2); border: 1px solid var(--c-border);
    font-size: .74rem; font-weight: 800; color: var(--c-muted);
    font-variant-numeric: tabular-nums;
}
.rank-row:nth-child(1) .rank-row__n { background: var(--brand); color: #fff; border-color: var(--brand); }
.rank-row:nth-child(2) .rank-row__n { background: var(--brand-soft); color: var(--brand-2); border-color: #cfe3f4; }
.rank-row:nth-child(3) .rank-row__n { background: var(--accent-soft); color: var(--accent-2); border-color: #c6e8ec; }
.rank-row__name { font-weight: 650; font-size: .9rem; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row__bar { height: 7px; border-radius: 999px; background: var(--c-bg-2); overflow: hidden; }
.rank-row__bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-3), var(--brand)); }
.rank-row__c { font-size: .82rem; color: var(--c-muted); text-align: end; font-variant-numeric: tabular-nums; }

/* مراحل */
.step-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r); padding: var(--sp-5); position: relative;
    box-shadow: var(--sh-1);
}
.step-card__n {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff; font-weight: 800; font-size: .95rem;
    margin-bottom: 10px;
}
.step-card h3 { margin: 0 0 4px; font-size: 1rem; }
.step-card p { margin: 0; }

/* منابع داده */
.sources-strip {
    display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r); padding: 12px 18px;
}
.sources-strip__label { font-size: .78rem; font-weight: 800; color: var(--c-muted); letter-spacing: .4px; }
.sources-strip__items { display: flex; gap: 8px; flex-wrap: wrap; }
.src-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .8rem; color: var(--c-text-2);
    background: var(--c-surface-2); border: 1px solid var(--c-border);
    border-radius: 999px; padding: 5px 12px;
}
.src-chip b { color: var(--brand-2); font-weight: 750; }
.src-chip .ico-svg { color: var(--accent-2); }

/* سؤالات متداول */
.faq { display: grid; gap: 8px; }
.faq__item {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r-sm); overflow: hidden;
}
.faq__item > summary {
    cursor: pointer; list-style: none;
    padding: 13px 18px; font-weight: 650; font-size: .93rem;
    display: flex; align-items: center; gap: 10px;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::before {
    content: "+"; flex: 0 0 auto;
    width: 20px; height: 20px; border-radius: 6px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand-2);
    font-weight: 800; font-size: .9rem; line-height: 1;
}
.faq__item[open] > summary::before { content: "−"; background: var(--brand); color: #fff; }
.faq__a { padding: 0 18px 15px 48px; color: var(--c-text-2); font-size: .9rem; line-height: 1.9; }

@media (max-width: 720px) {
    .rank-row { grid-template-columns: 26px minmax(80px,1fr) 56px; }
    .rank-row__bar { display: none; }
    .faq__a { padding-inline-start: 18px; }
}

/* ============================================================================
   28) ابزارهای سریع + کارت‌های دسته (v11)
   ============================================================================ */

/* ---------------------------------------------- 28.1 ابزار سریع (app launcher) */
.tools {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: var(--sp-3);
    margin-top: calc(-1 * var(--sp-5));
    margin-bottom: var(--sp-5);
    position: relative; z-index: 3;
}
.tool-tile {
    display: flex; flex-direction: column; gap: 3px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    padding: 15px 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px -18px rgba(13,36,56,.35), 0 1px 2px rgba(13,36,56,.05);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
    position: relative; overflow: hidden;
}
.tool-tile::after {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
    background: var(--grad-brand); opacity: 0; transition: opacity .2s var(--ease);
}
.tool-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 30%, var(--c-border)); box-shadow: 0 16px 32px -20px rgba(11,95,165,.45); }
.tool-tile:hover::after { opacity: 1; }
.tool-tile__ic {
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #e8f2fa, #d5e8f7);
    color: var(--brand); margin-bottom: 7px;
}
.tool-tile__ic--danger { background: linear-gradient(135deg,#fff0ee,#ffe0dc); color: var(--danger); }
.tool-tile__ic--accent { background: linear-gradient(135deg,#e6f6f8,#d3eef2); color: var(--accent-2); }
.tool-tile__t { font-weight: 750; font-size: .92rem; color: var(--c-text); }
.tool-tile__d { font-size: .76rem; color: var(--c-muted); }

/* ---------------------------------------------- 28.2 کارت‌های دستهٔ دارو */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: var(--sp-3);
}
.cat-card {
    display: flex; flex-direction: column; gap: 2px;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--r); padding: 14px 16px;
    text-decoration: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.cat-card--static { background: var(--c-surface-2); }
.cat-card--static:hover { transform: none; border-color: var(--c-border); box-shadow: none; }
.cat-card__ic {
    width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 6px;
}
.cat-card__t { font-weight: 700; font-size: .9rem; color: var(--c-text); }
.cat-card__n { font-size: 1.12rem; font-weight: 800; color: var(--brand-2); letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.cat-card__n small { font-size: .72rem; font-weight: 500; color: var(--c-muted); }
.cat-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }

@media (max-width: 720px) {
    .tools { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* ---------------------------------------------- 28.3 میان‌بر کیبورد */
.kbd-hint {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: .7rem; color: var(--c-muted);
    background: var(--c-surface-2); border: 1px solid var(--c-border);
    border-radius: 6px; padding: 2px 7px; font-family: var(--font-mono);
}
.search-form { position: relative; }
.search-form .kbd-hint {
    position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
    pointer-events: none;
}
.hero .search-form .kbd-hint { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .search-form input[type=text] { padding-inline-end: 64px; }
@media (max-width: 640px) { .search-form .kbd-hint { display: none; } }


/* ============================================================================
   29) لایهٔ «بالینی غنی» v13
   ----------------------------------------------------------------------------
   تیتر سِریف (Daro Naskh) + رنگ‌بندی پرجان + عمق + گرادیان + جزئیات ریز.
   هدف: هیچ‌چیز تخت و ساده نباشد؛ ولی حرفه‌ای و منظم بماند.
   ============================================================================ */

/* ---------------------------------------------- 29.1 تیترها: سِریف + نشان رنگی */
h1, h2, h3, .hero h1, .section-title, .card-title, .panel__title, .brand-text strong, .cta-band h2 {
    font-family: var(--font-display);
    letter-spacing: -.2px;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.5; }
.hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,.20); }

.section-title {
    position: relative;
    padding-inline-start: 18px;
    margin-bottom: var(--sp-4);
}
.section-title::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .12em;
    width: 6px; height: 1.2em; border-radius: 4px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
}
.section-title::after { display: none; }
.section-kicker {
    display: block;
    font-family: var(--font);
    font-size: .68rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 5px;
}

/* ---------------------------------------------- 29.2 ماست‌هد رنگی */
.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 2px 12px -8px rgba(13,36,56,.28);
}
.brand-text strong { font-size: 1.2rem; }
.main-nav a { border-radius: var(--r-pill); font-weight: 650; }
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-2); }
.main-nav a.is-active, .main-nav a[aria-current="page"] {
    background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand);
}
.main-nav a.is-active::after { display: none; }
.brand-mark svg { box-shadow: 0 8px 18px -8px rgba(11,95,165,.7); }

/* ---------------------------------------------- 29.3 هیرو: نوار آبی + درخشش */
.hero { background: var(--grad-band); color: #fff; border-bottom: 0; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(700px 320px at 78% 8%, rgba(127,211,221,.22), transparent 65%),
        radial-gradient(520px 280px at 12% 110%, rgba(14,143,208,.28), transparent 70%);
}
.hero::after {
    content: "℞"; position: absolute; inset-inline-start: -20px; bottom: -60px;
    font-family: Georgia, serif; font-size: 280px; line-height: 1;
    color: #fff; opacity: .05; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1, .hero .lead { color: #fff; }
.hero h1 .hl {
    background: linear-gradient(100deg, #b9e6ff 0%, #7fd3dd 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .lead { color: rgba(255,255,255,.9); }
.hero .eyebrow {
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
    color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 700;
}
.hero .eyebrow .dot { background: #7fd3dd; box-shadow: 0 0 0 3px rgba(127,211,221,.25); }
.hero .search-form input[type=text] { background: #fff; border: 0; height: 52px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.5); }
.hero .search-form .btn-primary { height: 52px; background: linear-gradient(135deg,#fff,#eaf3fb); color: var(--brand-2); }
.hero .chip { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.26); color: #fff; backdrop-filter: blur(6px); }
.hero .chip:hover { background: rgba(255,255,255,.24); color: #fff; border-color: rgba(255,255,255,.55); }

/* نوار آمار هیرو — پنل شیشه‌ای رنگی */
.hero-trust {
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
    border-radius: var(--r); padding: var(--sp-4) var(--sp-5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    gap: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.hero-trust .t { border-inline-start: 0; padding-inline-start: 0; padding-inline-end: 0; position: relative; }
.hero-trust .t + .t::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 12%; height: 76%; width: 1px;
    background: rgba(255,255,255,.20);
}
.hero-trust .t b {
    background: none; -webkit-text-fill-color: #fff; color: #fff;
    font-family: var(--font-display); font-size: 1.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero-trust .t span { color: rgba(255,255,255,.74); }

/* شکل هیرو + شرح */
.hero-art figcaption {
    margin-top: 10px; font-size: .78rem; color: rgba(255,255,255,.72);
    padding-inline-start: 12px; border-inline-start: 2px solid rgba(255,255,255,.5);
    line-height: 1.75;
}

/* ---------------------------------------------- 29.4 کارت‌ها: نوار رنگی + عمق */
.card, .result-card, .feature-card, .stat-card, .panel, .step-card,
.cat-card, .tool-tile, .related-card, .faq__item, .codes-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    box-shadow: var(--sh-2);
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.card::before, .feature-card::before, .stat-card::before, .panel::before, .cat-card::before, .tool-tile::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--grad-brand); opacity: 0; transition: opacity .22s var(--ease);
}
.card:hover::before, .feature-card:hover::before, .stat-card:hover::before,
.panel:hover::before, .cat-card:hover::before, .tool-tile:hover::before { opacity: 1; }
.card:hover, .result-card:hover, .feature-card:hover, .stat-card:hover,
.cat-card:hover, .tool-tile:hover, .related-card:hover, .panel:hover {
    box-shadow: var(--sh-3);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--c-border));
}
.feature-card:hover, .cat-card:hover, .tool-tile:hover, .stat-card:hover { transform: translateY(-3px); }

/* ---------------------------------------------- 29.5 کاشی ابزار: هر کدام رنگ خودش */
.tool-tile__ic {
    background: linear-gradient(135deg, #e6f2fb, #cfe6f8) !important;
    color: var(--brand) !important;
    border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.tool-tile:nth-child(2) .tool-tile__ic { background: linear-gradient(135deg,#e8f7f8,#cfedf1) !important; color: var(--accent-2) !important; }
.tool-tile:nth-child(3) .tool-tile__ic { background: linear-gradient(135deg,#fdf1e8,#fbe0cc) !important; color: var(--warm) !important; }
.tool-tile:nth-child(4) .tool-tile__ic { background: linear-gradient(135deg,#f1ecfd,#e2d8fb) !important; color: var(--violet) !important; }
.tool-tile:nth-child(5) .tool-tile__ic { background: linear-gradient(135deg,#fdecec,#fbd8d8) !important; color: var(--danger) !important; }
.tool-tile:nth-child(6) .tool-tile__ic { background: linear-gradient(135deg,#e9f4ff,#d3e7fb) !important; color: var(--brand-3) !important; }
.tool-tile::after { display: block !important; content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-brand); opacity: 0; }
.tool-tile:hover::after { opacity: 1; }

/* ---------------------------------------------- 29.6 کارت دسته: رنگ‌های متفاوت */
.cat-card__ic { border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.cat-card:nth-child(1) .cat-card__ic { background: linear-gradient(135deg,#e6f2fb,#cfe6f8); color: var(--brand); }
.cat-card:nth-child(2) .cat-card__ic { background: linear-gradient(135deg,#e8f7f8,#cfedf1); color: var(--accent-2); }
.cat-card:nth-child(3) .cat-card__ic { background: linear-gradient(135deg,#fdf1e8,#fbe0cc); color: var(--warm); }
.cat-card:nth-child(4) .cat-card__ic { background: linear-gradient(135deg,#eef8ef,#d9f0dc); color: var(--ok); }
.cat-card:nth-child(5) .cat-card__ic { background: linear-gradient(135deg,#f1ecfd,#e2d8fb); color: var(--violet); }
.cat-card:nth-child(6) .cat-card__ic { background: linear-gradient(135deg,#eef2f6,#dee7ef); color: var(--c-text-2); }
.cat-card__n {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-family: var(--font); font-weight: 800;
}

/* ---------------------------------------------- 29.7 کارت آماری: عدد گرادیانی */
.stat-card .ico { border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.stat-card .num {
    background: linear-gradient(135deg, var(--brand-2), var(--brand-3) 70%, var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    font-family: var(--font); font-weight: 800;
}

/* ---------------------------------------------- 29.8 دکمه‌ها و برچسب‌ها */
.btn-primary {
    background: var(--grad-brand); border-color: transparent;
    box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: #fff; border: 1px solid var(--c-border-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }
.badge { border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.chip { box-shadow: 0 1px 3px rgba(13,36,56,.06); }

/* ---------------------------------------------- 29.9 پنل‌ها و جدول‌ها */
.panel__head { background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface)); }
.panel__title { font-size: 1.02rem; }
.panel--alert .panel__head { background: linear-gradient(180deg, var(--danger-soft), var(--c-surface)); }
.list-plain a:hover { background: var(--brand-tint); }
.rank-row__bar i { background: linear-gradient(90deg, var(--accent), var(--brand)); }
.rank-row__n { border-radius: 8px; }
.table-wrap { border-radius: var(--r); box-shadow: var(--sh-1); }
.table th {
    background: linear-gradient(180deg, var(--c-surface-2), #eef4fa);
    font-size: .74rem; letter-spacing: .06em; text-transform: uppercase;
}
.facts { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.step-card__n { border-radius: 12px; background: var(--grad-brand); box-shadow: var(--sh-brand); }

/* ---------------------------------------------- 29.10 منابع + FAQ */
.src-chip { background: #fff; box-shadow: 0 1px 3px rgba(13,36,56,.06); }
.sources-strip { box-shadow: var(--sh-1); }
.faq__item > summary::before { background: var(--brand-soft); color: var(--brand-2); }
.faq__item[open] > summary::before { background: var(--grad-brand); color: #fff; }

/* ---------------------------------------------- 29.11 CTA و فوتر */
.cta-band {
    background: var(--grad-band); border-radius: var(--r-lg);
    box-shadow: 0 24px 50px -28px rgba(8,47,82,.7);
    position: relative; overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(520px 240px at 86% 0%, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
}
.cta-band .btn { background: #fff; color: var(--brand-2); }
.site-footer { background: var(--masthead-2); border-top: 3px solid transparent; border-image: linear-gradient(90deg, var(--brand), var(--accent), var(--warm)) 1; }
.site-footer::before { display: none; }

/* ---------------------------------------------- 29.12 ریزه‌کاری */
.ref-source { border-radius: 7px; }
.hero-art img { box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.read-progress__bar { background: linear-gradient(90deg, var(--accent), var(--brand)); }
.to-top { border-radius: var(--r-sm); }

/* ============================================================================
   30) فیلدهای داده‌ای پریمیوم v14
   ----------------------------------------------------------------------------
   جفت‌های «برچسب/مقدار»، کدهای مرجع و کارت‌های آماری — خاص ولی باوقار.
   ============================================================================ */

/* ---------------------------------------------- 30.1 جدول فاکت‌ها (برچسب/مقدار) */
.facts {
    counter-reset: fx;
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: var(--sh-1);
}
.fact {
    counter-increment: fx;
    display: grid;
    grid-template-columns: minmax(120px, auto) 1fr;
    align-items: baseline;
    gap: var(--sp-4);
    padding: 12px 18px 12px 22px;
    position: relative;
    border: 0;
    border-bottom: 1px solid var(--c-border);
    background: transparent;
    transition: background .2s var(--ease);
}
.fact:last-child { border-bottom: 0; }
.fact:nth-child(odd) { background: linear-gradient(90deg, var(--c-surface-2), transparent 60%); }

/* نشانگر رنگی + شمارهٔ ردیف */
.fact::before {
    content: counter(fx, decimal-leading-zero);
    position: absolute;
    inset-inline-start: 8px; top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: .6rem; font-weight: 700;
    color: var(--c-border-2);
    letter-spacing: .04em;
    transition: color .2s var(--ease);
}
/* نوار لهجه‌ی کناری */
.fact::after {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px;
    background: var(--grad-brand);
    transform: scaleY(0); transform-origin: center;
    transition: transform .22s var(--ease);
}
.fact:hover { background: linear-gradient(90deg, var(--brand-tint), transparent 65%); }
.fact:hover::after { transform: scaleY(1); }
.fact:hover::before { color: var(--brand); }

.fact .k {
    font-family: var(--font);
    font-size: .74rem; font-weight: 700;
    letter-spacing: .06em;
    color: var(--c-muted);
    text-transform: none;
    margin: 0;
    display: inline-flex; align-items: center; gap: 7px;
}
.fact .k::before {
    content: ""; width: 6px; height: 6px; border-radius: 2px;
    background: var(--brand-3);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
    flex: 0 0 auto;
}
.fact .v {
    font-size: .95rem; font-weight: 700;
    color: var(--c-text);
    letter-spacing: -.1px;
    text-align: end;
    font-variant-numeric: tabular-nums;
}
.fact .v[dir="ltr"] { direction: ltr; unicode-bidi: isolate; font-family: var(--font-mono); font-size: .86rem; }

/* ---------------------------------------------- 30.2 کدهای مرجع */
.codes-block {
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    background: var(--c-surface);
    box-shadow: var(--sh-1);
    overflow: hidden;
    margin-top: var(--sp-4);
}
.codes-block__title {
    background: linear-gradient(180deg, var(--c-surface-2), var(--c-surface));
    border-bottom: 1px solid var(--c-border);
    padding: 11px 18px;
    font-size: .78rem; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-text-2);
}
.codes-block__title .ico-svg { color: var(--accent-2); }
.codes-block__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    background: var(--c-border);
    gap: 1px;
}
.code-item {
    background: var(--c-surface);
    padding: 13px 16px;
    display: flex; flex-direction: column; gap: 5px;
    position: relative;
    transition: background .2s var(--ease);
    border: 0;
}
.code-item:hover { background: var(--brand-tint); }
.code-item__k {
    font-size: .64rem; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--c-muted);
    display: inline-flex; align-items: center; gap: 6px;
}
.code-item__k::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
.code-item__v {
    font-family: var(--font-mono);
    font-size: .92rem; font-weight: 600;
    color: var(--c-text);
    letter-spacing: .02em;
    direction: ltr; unicode-bidi: isolate;
    word-break: break-all;
    user-select: all;
}
/* دکمهٔ کپی */
.code-item::after {
    content: "کپی";
    position: absolute; inset-inline-end: 10px; top: 10px;
    font-family: var(--font); font-size: .62rem; font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
    border-radius: var(--r-xs);
    padding: 2px 7px;
    opacity: 0; transform: translateY(-3px);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    pointer-events: none;
}
.code-item:hover::after { opacity: 1; transform: none; }
.code-item.is-copied::after { content: "کپی شد ✓"; background: var(--ok-soft); color: var(--ok); border-color: var(--ok-bd); opacity: 1; transform: none; }

/* ---------------------------------------------- 30.3 کارت آماری (با شمارهٔ خاص) */
.card.stat-card {
    counter-increment: sc;
    padding: 20px 20px 22px;
    overflow: hidden;
    background:
        radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 62%),
        var(--c-surface);
}
#daroStats, .grid { counter-reset: sc; }
.stat-card::after {
    content: counter(sc, decimal-leading-zero);
    position: absolute; inset-inline-end: 14px; top: 10px;
    font-family: var(--font-mono);
    font-size: 1.6rem; font-weight: 800;
    color: color-mix(in srgb, var(--brand) 12%, transparent);
    letter-spacing: -.04em;
    pointer-events: none;
    transition: color .22s var(--ease);
}
.stat-card:hover::after { color: color-mix(in srgb, var(--brand) 26%, transparent); }
.stat-card .ico {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px -10px rgba(11,95,165,.7);
}
.stat-card .num { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.stat-card .lbl { text-transform: none; }
/* زیرخط لهجه‌دار که در hover باز می‌شود */
.stat-card .num::after {
    content: ""; display: block; height: 3px; width: 26px; margin-top: 7px;
    border-radius: 3px; background: var(--grad-brand);
    transition: width .28s var(--ease);
}
.stat-card:hover .num::after { width: 54px; }

/* ---------------------------------------------- 30.4 آمار هیرو */
.hero-trust .t { padding: 4px 14px; }
.hero-trust .t span {
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
    color: rgba(255,255,255,.62) !important;
}
.hero-trust .t b { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------- 30.5 ریزه‌کاری */
.result-card .meta-line strong { color: var(--c-text); }
.ix-stat { font-variant-numeric: tabular-nums; }
.table td { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
    .fact { grid-template-columns: 1fr; gap: 3px; }
    .fact .v { text-align: start; }
    .codes-block__grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   31) حذف سفیدی مرده + رنگی‌کردن سطوح (v15)
   ============================================================================ */

/* ---------------------------------------------- 31.1 رفع کشیده‌شدن پنل‌ها (سفیدی وسط) */
.grid-2 { align-items: start; }
.grid, .grid-3, .grid-4 { align-items: stretch; }
.panel { align-self: start; }

/* ---------------------------------------------- 31.2 سطوح دیگر سفید خالص نباشند */
.panel {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    position: relative;
    overflow: hidden;
}
.panel::after {
    content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--accent) 100%);
    opacity: .85;
}
.panel--alert::after { background: linear-gradient(180deg, var(--danger) 0%, var(--warm) 100%); }
.panel__head {
    background: linear-gradient(180deg, var(--brand-tint), #ffffff);
    border-bottom: 1px solid var(--c-border);
    padding-inline-start: 20px;
}
.panel--alert .panel__head { background: linear-gradient(180deg, var(--danger-soft), #ffffff); }

/* ردیف‌های فهرست: یک‌درمیان رنگی + hover جان‌دار */
.list-plain li:nth-child(odd) { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.list-plain a { padding-inline-start: 20px; }
.list-plain a:hover { background: var(--brand-soft); }
.list-plain a:hover .list-plain__t { color: var(--brand-2); }

/* ---------------------------------------------- 31.3 کارت‌ها: تینت گرادیانی سبک */
.card, .feature-card, .cat-card, .tool-tile, .step-card, .related-card, .result-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
.stat-card {
    background:
        radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

/* ---------------------------------------------- 31.4 نوارهای بخش رنگی (ریتم بصری) */
.band {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 6%, #fff), #ffffff);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-6) var(--sp-5);
    box-shadow: var(--sh-1);
}
.band--accent { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, #fff), #ffffff); }
.band--warm   { background: linear-gradient(180deg, color-mix(in srgb, var(--warm) 8%, #fff), #ffffff); }
.band > .section-title:first-child { margin-top: 0; }

/* ---------------------------------------------- 31.5 سطح عمومی روشن‌تر از سفید */
.sources-strip, .faq__item { background: linear-gradient(180deg, #ffffff, #f8fbff); }
.section-block { background: linear-gradient(180deg, #ffffff, #fafcff); }

/* ---------------------------------------------- 31.6 صفحهٔ دارو — سطوح رنگی */
.drug-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    border-inline-start: 4px solid var(--brand);
}
.facts { background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%); }
.fact:nth-child(odd) { background: linear-gradient(90deg, var(--brand-tint), transparent 65%); }
.section-block { border-inline-start: 3px solid var(--brand-soft); }
.toc { background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); }
.related-card { background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%); }
