/* ==========================================================================
   قیمت‌بان - سیستم طراحی نسخه ۲ («طلای اعتماد + بنفش فناوری»)
   سبک: مینیمال سوئیسی + سطوح شیشه‌ای | RTL | تیره/روشن | بدون فریم‌ورک
   ========================================================================== */

/* ==========================================================================
   فونت‌ها — همه محلی سرو می‌شوند (بدون وابستگی به Google Fonts که در ایران فیلتر است)
   فونت اصلی: ساحل (Sahel) — فونت ایرانی با مجوز آزاد، گرد و خوانا با ارقام جمع‌وجور.
   تعویض فونت: فقط مقدار --font را عوض کنید (فونت‌های جایگزین پایین‌تر تعریف شده‌اند).
   ========================================================================== */
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel-Light.woff2') format('woff2');
  font-weight: 100 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel.woff2') format('woff2');
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel-Bold.woff2') format('woff2');
  font-weight: 700 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('../fonts/Sahel-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* فونت‌های جایگزین — برای تعویض، نام آن‌ها را اول --font بگذارید */
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-arabic-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-arabic-600.woff2') format('woff2');
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-latin-600.woff2') format('woff2');
  font-weight: 500 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-arabic-700.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('../fonts/IBMPlexSansArabic-latin-700.woff2') format('woff2');
  font-weight: 700 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Estedad';
  src: url('../fonts/Estedad-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- توکن‌ها: حالت روشن ---------- */
:root {
  --font: 'Sahel', 'Plex Arabic', 'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, sans-serif,
          'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji';
  --font-num: var(--font);
  --bg: #f4f5f9;
  --bg-glow-1: rgba(245, 158, 11, .14);
  --bg-glow-2: rgba(124, 58, 237, .10);
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --surface-3: #e9edf4;
  --glass: rgba(255, 255, 255, .74);
  --border: #e3e7ee;
  --border-strong: #cfd6e2;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #5b6b82;
  --brand: #f59e0b;
  --brand-2: #fbbf24;
  --brand-deep: #b45309;
  --on-brand: #1a1200;
  --brand-soft: rgba(245, 158, 11, .14);
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, .12);
  --link: #6d28d9;
  --up: #15803d;
  --up-bg: rgba(22, 163, 74, .12);
  --down: #dc2626;
  --down-bg: rgba(220, 38, 38, .11);
  --flat: #64748b;
  --warn: #b45309;
  --warn-bg: rgba(245, 158, 11, .16);
  --info: #1d4ed8;
  --info-bg: rgba(59, 130, 246, .12);
  --telegram: #229ED9;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow: 0 2px 6px rgba(15, 23, 42, .05), 0 14px 40px -18px rgba(15, 23, 42, .22);
  --shadow-lg: 0 8px 20px -8px rgba(15, 23, 42, .18), 0 30px 60px -30px rgba(15, 23, 42, .28);
  --header-h: 66px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t: 220ms;
  color-scheme: light;
}

/* ---------- توکن‌ها: حالت تیره ---------- */
html[data-theme="dark"] {
  --bg: #0a0f1e;
  --bg-glow-1: rgba(245, 158, 11, .16);
  --bg-glow-2: rgba(139, 92, 246, .18);
  --surface: #111a2f;
  --surface-2: #172238;
  --surface-3: #1e2b46;
  --glass: rgba(14, 21, 40, .74);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #e9edf6;
  --text-2: #c5cddc;
  --muted: #94a3b8;
  --brand: #f5a623;
  --brand-2: #fcd34d;
  --brand-deep: #d97706;
  --on-brand: #1a1200;
  --brand-soft: rgba(245, 158, 11, .16);
  --accent: #a78bfa;
  --accent-soft: rgba(139, 92, 246, .18);
  --link: #fcd34d;
  --up: #34d399;
  --up-bg: rgba(52, 211, 153, .14);
  --down: #f87171;
  --down-bg: rgba(248, 113, 113, .14);
  --flat: #94a3b8;
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .14);
  --info: #93c5fd;
  --info-bg: rgba(96, 165, 250, .14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 18px 50px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 40px 80px -40px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- پایه ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* درخشش پس‌زمینه */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 100% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, var(--bg-glow-2), transparent 60%);
}
a { color: var(--link); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--text); }
img, svg { max-width: 100%; vertical-align: middle; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[role="button"], summary, label[for], .price-table tbody tr[data-href] { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
/* اعداد: فونت عددی اختصاصی + ارقام هم‌عرض تا ستون‌های قیمت دقیقاً زیر هم بیفتند */
.num, .price, .tabular, td.num, .badge, .big-price, .kpi .v, .conv-result .r-val, .code-box, .ticker__item strong {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.bold { font-weight: 700; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
main.container { flex: 1; padding-top: 22px; padding-bottom: 48px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

:focus-visible { outline: 3px solid rgba(245, 158, 11, .55); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(245, 158, 11, .35); }

/* ---------- انیمیشن‌های پایه ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes ticker { to { transform: translateX(50%); } }
@keyframes flashUp { 0% { background: var(--up-bg); } 100% { background: transparent; } }
@keyframes flashDown { 0% { background: var(--down-bg); } 100% { background: transparent; } }

.reveal { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { animation: none; }
}

/* ---------- هدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: 14px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); white-space: nowrap; letter-spacing: -.01em; }
.brand img, .brand svg.logo { height: 38px; width: 38px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(245, 158, 11, .7); }
.brand small { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); line-height: 1.2; letter-spacing: 0; }
.nav { display: flex; gap: 2px; margin-inline-start: 8px; }
.nav a {
  padding: 8px 13px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .92rem;
  display: flex; gap: 7px; align-items: center; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-deep); }
html[data-theme="dark"] .nav a.active { color: var(--brand-2); }
.header-actions { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.search-form { position: relative; }
.search-form input {
  width: 230px; height: 42px; border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface-2); padding: 0 40px 0 14px; outline: none; transition: width var(--t) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus { width: 300px; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-form .icon { position: absolute; inset-inline-end: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); font-size: .72rem; color: var(--muted); line-height: 1.4; font-family: Consolas, Menlo, monospace; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: background var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(.96); }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 7px; padding: 0 12px; height: 42px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; font-weight: 600; max-width: 190px; transition: background var(--t-fast); }
.user-menu summary:hover { background: var(--surface-2); }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
  animation: rise .18s var(--ease);
}
.dropdown a, .dropdown button { display: flex; gap: 9px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; text-align: start; font-size: .92rem; font-weight: 500; transition: background var(--t-fast); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.mobile-toggle { display: none; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .search-form input { width: 160px; }
  .search-form input:focus { width: 210px; }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .search-form { display: none; }
  .header-actions .login-btn span { display: none; }
}
.announcement { background: linear-gradient(90deg, var(--brand-deep), var(--accent)); color: #fff; text-align: center; padding: 8px 16px; font-size: .9rem; font-weight: 500; }
.announcement a { color: #fff; text-decoration: underline; }

/* ---------- نوار قیمت متحرک (ticker) ---------- */
.ticker { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); height: 42px; display: flex; align-items: center; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.ticker::before { inset-inline-start: 0; background: linear-gradient(to left, transparent, var(--surface)); }
.ticker::after { inset-inline-end: 0; background: linear-gradient(to right, transparent, var(--surface)); }
.ticker__track { display: flex; gap: 34px; width: max-content; padding-inline: 20px; animation: ticker 70s linear infinite; will-change: transform; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--text-2); white-space: nowrap; }
.ticker__item .t-icon { font-size: 1rem; }
.ticker__item strong { color: var(--text); font-weight: 700; }
.ticker__item .badge { padding: 0 7px; font-size: .74rem; }
@media (prefers-reduced-motion: reduce) { .ticker { height: auto; padding: 8px 0; } .ticker__track { animation: none; flex-wrap: wrap; width: auto; gap: 14px 24px; } .ticker__track > .is-dupe { display: none; } }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: .93rem; line-height: 1.3; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: var(--on-brand); box-shadow: 0 8px 20px -10px rgba(245, 158, 11, .8); }
.btn-primary:hover { filter: brightness(1.05); color: var(--on-brand); border-color: transparent; box-shadow: 0 12px 26px -10px rgba(245, 158, 11, .9); }
.btn-success { background: var(--up); border-color: var(--up); color: #fff; }
.btn-success:hover { filter: brightness(1.06); color: #fff; }
.btn-danger { color: var(--down); border-color: rgba(220, 38, 38, .35); background: transparent; }
.btn-danger:hover { background: var(--down-bg); color: var(--down); border-color: var(--down); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); transform: none; }
.btn-glass { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--border-strong); }
.btn-telegram { background: var(--telegram); border-color: var(--telegram); color: #fff; box-shadow: 0 8px 20px -10px rgba(34, 158, 217, .8); }
.btn-telegram:hover { background: #1c8fc8; color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .84rem; border-radius: 10px; }
.btn-lg { min-height: 50px; padding: 12px 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* ---------- کارت ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 20px; }
.card-header { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-header .icon { color: var(--brand-deep); }
html[data-theme="dark"] .card-header .icon { color: var(--brand-2); }
.card-footer { padding: 12px 20px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); background: var(--surface-2); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.section-title h2 { margin: 0; display: flex; align-items: center; gap: 8px; }

/* ---------- نشان‌ها ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.badge.up { background: var(--up-bg); color: var(--up); }
.badge.down { background: var(--down-bg); color: var(--down); }
.badge.flat { background: var(--surface-3); color: var(--flat); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.neutral { background: var(--surface-3); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all var(--t-fast) var(--ease); }
.chip.active, .chip:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-soft); }
html[data-theme="dark"] .chip.active, html[data-theme="dark"] .chip:hover { color: var(--brand-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.live { background: var(--up); animation: pulse 2s infinite; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--up-bg); color: var(--up); font-size: .8rem; font-weight: 700; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: .84rem; color: var(--muted); }
.meta-chip strong { color: var(--text); font-weight: 700; }
.meta-chip .icon { color: var(--brand-deep); }
html[data-theme="dark"] .meta-chip .icon { color: var(--brand-2); }

/* ---------- هیرو ---------- */
.hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h1 { margin: 0 0 6px; }
.hero .sub { color: var(--muted); margin: 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: .9rem; }
.hero--home { padding: 34px 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 240px at 90% 0%, var(--brand-soft), transparent 65%), radial-gradient(500px 240px at 5% 100%, var(--accent-soft), transparent 65%); }
.hero__text { position: relative; max-width: 640px; }
.hero__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; margin: 12px 0 8px; line-height: 1.25; }
.hero__title .grad { background: linear-gradient(90deg, var(--brand-deep), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .hero__title .grad { background: linear-gradient(90deg, var(--brand-2), var(--brand)); -webkit-background-clip: text; background-clip: text; }
.hero__sub { color: var(--muted); font-size: 1rem; margin: 0 0 16px; max-width: 560px; }
.hero__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero__actions { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 200px; }
@media (max-width: 700px) { .hero--home { padding: 24px 18px; } .hero__actions { width: 100%; flex-direction: row; } .hero__actions .btn { flex: 1; } }

/* ---------- کارت قیمت ---------- */
.price-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.price-card {
  position: relative; display: block; padding: 16px 16px 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t);
}
.price-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity var(--t) var(--ease);
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.price-card:hover::after { opacity: 1; }
.price-card .pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.price-card .pc-icon { font-size: 1.35rem; width: 38px; height: 38px; display: grid; place-items: center; background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); border-radius: 12px; flex: none; }
.price-card .pc-icon img { width: 26px; height: 26px; border-radius: 50%; }
.price-card .pc-name { font-weight: 700; font-size: .93rem; line-height: 1.3; }
.price-card .pc-sym { color: var(--muted); font-size: .72rem; font-weight: 500; }
.price-card .pc-price { font-size: 1.35rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.price-card .pc-unit { font-size: .72rem; color: var(--muted); font-weight: 500; }
.price-card .pc-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.price-card .sparkline { width: 84px; height: 30px; }
.price-card.flash-up { animation: flashUp 1.2s ease-out; } .price-card.flash-down { animation: flashDown 1.2s ease-out; }
.sparkline--up { color: var(--up); } .sparkline--down { color: var(--down); }

/* ---------- جدول قیمت ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table th, .price-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.price-table th { font-size: .76rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
.price-table tbody tr { transition: background var(--t-fast) var(--ease); }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr.flash-up { animation: flashUp 1.2s ease-out; }
.price-table tbody tr.flash-down { animation: flashDown 1.2s ease-out; }
.price-table .asset-cell { display: flex; align-items: center; gap: 11px; color: inherit; }
.price-table .asset-cell .a-icon { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.price-table .asset-cell .a-icon img { width: 24px; height: 24px; border-radius: 50%; }
.price-table .asset-cell .a-name { font-weight: 700; line-height: 1.3; }
.price-table .asset-cell .a-sym { font-size: .72rem; color: var(--muted); font-weight: 500; }
.price-table .price { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.price-table .unit { color: var(--muted); font-size: .72rem; font-weight: 500; }
.price-table .sparkline { width: 104px; height: 32px; }
.price-table .hl { font-size: .8rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 800px) { .price-table .col-hl, .price-table .col-time { display: none; } }
@media (max-width: 480px) { .price-table .col-spark { display: none; } .price-table th, .price-table td { padding: 11px 9px; } }
.watch-btn { background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 8px; line-height: 0; transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.watch-btn:hover { color: var(--brand); background: var(--brand-soft); transform: scale(1.08); }
.watch-btn.active { color: var(--brand); }
.watch-btn.active .icon { fill: currentColor; }

/* ---------- تب‌ها ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 13px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex: none; min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .88rem; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast), box-shadow var(--t-fast); }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs .active .icon { color: var(--brand-deep); }
html[data-theme="dark"] .tabs .active .icon { color: var(--brand-2); }
.tab-pane { display: none; } .tab-pane.active { display: block; animation: fadeIn .25s var(--ease); }

/* ---------- لایه‌بندی دو ستونه ---------- */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1024px) { .layout-2col { grid-template-columns: 1fr; } .sidebar { position: static; } }

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 15px; }
.form-group label, .label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.help { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); outline: none; transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(13px + 5px) 50%, 13px 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-inline-start: 30px; }
.textarea { height: auto; min-height: 104px; padding: 10px 13px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.input.ltr, .textarea.ltr { direction: ltr; text-align: left; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 0 11px 11px 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-inline-start: 0; border-radius: 11px 0 0 11px; background: var(--surface-2); color: var(--muted); font-size: .85rem; white-space: nowrap; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 32px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; transition: background var(--t), border-color var(--t); flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--t) var(--ease); }
.switch input:checked + .track { background: var(--up); border-color: var(--up); }
.switch input:checked + .track::after { transform: translateX(-18px); }
.switch input:focus-visible + .track { outline: 3px solid rgba(245, 158, 11, .55); outline-offset: 2px; }
.error-text { color: var(--down); font-size: .8rem; margin-top: 4px; }
.is-invalid { border-color: var(--down) !important; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 10px; font-size: .85rem; cursor: pointer; background: var(--surface); transition: all var(--t-fast); }
.checks label:hover { border-color: var(--border-strong); }
.checks label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
html[data-theme="dark"] .checks label:has(input:checked) { color: var(--brand-2); }

/* ---------- پیام‌ها ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; animation: rise .3s var(--ease); }
.flash .icon { flex: none; margin-top: 3px; }
.flash-success { background: var(--up-bg); color: var(--up); border-color: rgba(22, 163, 74, .3); }
.flash-error { background: var(--down-bg); color: var(--down); border-color: rgba(220, 38, 38, .3); }
.flash-info { background: var(--info-bg); color: var(--info); }
.flash-warning { background: var(--warn-bg); color: var(--warn); }
.flash .close { margin-inline-start: auto; background: none; border: 0; color: inherit; font-size: 1.25rem; line-height: 1; opacity: .7; padding: 0 4px; }
.flash .close:hover { opacity: 1; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; opacity: .35; margin-bottom: 8px; }

/* ---------- تبلیغات ---------- */
.ad { position: relative; display: flex; justify-content: center; align-items: center; margin: 0 auto; }
.ad img { border-radius: 12px; max-height: 260px; }
.ad__label { position: absolute; top: 5px; inset-inline-start: 7px; font-size: .62rem; color: var(--muted); background: var(--glass); padding: 1px 6px; border-radius: 6px; pointer-events: none; backdrop-filter: blur(6px); }
.ad--header_top, .ad--footer, .ad--home_middle, .ad--asset_page { margin: 14px auto; max-width: var(--container); padding: 0 20px; }
.ad--header_top img, .ad--footer img, .ad--asset_page img { max-height: 120px; }
.ad--sidebar img { max-height: 620px; }
.ad--empty { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 14px; font-size: .78rem; color: var(--muted); min-height: 64px; background: repeating-linear-gradient(45deg, transparent, transparent 8px, var(--surface-2) 8px, var(--surface-2) 16px); }
.ad--empty a { color: var(--muted); }
.ad--mobile_sticky { display: none; position: fixed; bottom: 62px; inset-inline: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 6px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .15); }
.ad--mobile_sticky img { max-height: 60px; }
.ad__close { position: absolute; top: -12px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 16px; line-height: 1; color: var(--muted); }
@media (max-width: 800px) { .ad--mobile_sticky:not(.ad--empty) { display: flex; } }
.ad__text { font-weight: 600; }

/* ---------- ناوبری موبایل ---------- */
.mobile-nav { display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 45; height: 62px; background: var(--glass); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); min-height: 44px; transition: color var(--t-fast); }
.mobile-nav a.active { color: var(--brand-deep); }
html[data-theme="dark"] .mobile-nav a.active { color: var(--brand-2); }
.mobile-nav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.mobile-nav .icon { width: 22px; height: 22px; }
@media (max-width: 800px) { .mobile-nav { display: flex; } body { padding-bottom: 64px; } }

/* ---------- فوتر ---------- */
.site-footer { position: relative; border-top: 1px solid var(--border); background: var(--surface); margin-top: auto; padding: 36px 0 22px; font-size: .9rem; }
.site-footer::before { content: ''; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent); opacity: .7; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 28px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.site-footer li a .icon { width: 1em; height: 1em; opacity: .8; }
.site-footer li a:hover { color: var(--text); }
.site-footer .copy { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 16px; color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- صفحه‌ی دارایی ---------- */
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.asset-card { position: relative; }
.asset-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.asset-card.is-up::before { background: linear-gradient(90deg, var(--up), transparent); }
.asset-card.is-down::before { background: linear-gradient(90deg, var(--down), transparent); }
.asset-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.asset-head .big-icon { width: 60px; height: 60px; font-size: 1.9rem; border-radius: 18px; background: linear-gradient(145deg, var(--surface-2), var(--surface-3)); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.asset-head .big-icon img { width: 42px; height: 42px; border-radius: 50%; }
.asset-head h1 { margin: 0; font-size: 1.45rem; }
.asset-head .sym { color: var(--muted); font-size: .85rem; }
.big-price { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.big-price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; transition: border-color var(--t-fast); }
.stat:hover { border-color: var(--border-strong); }
.stat .k { font-size: .75rem; color: var(--muted); font-weight: 600; }
.stat .v { font-weight: 800; font-size: 1.05rem; }
.chart-box { position: relative; height: 360px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.chart-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
.range-btns { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border-radius: 11px; }
.range-btns button { min-height: 34px; padding: 4px 13px; border-radius: 9px; border: 0; background: transparent; font-size: .82rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all var(--t-fast); }
.range-btns button:hover { color: var(--text); }
.range-btns button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- مبدل ---------- */
.converter .conv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.converter .swap { height: 44px; width: 44px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--surface-2); display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: all var(--t-fast); }
.converter .swap:hover { color: var(--brand-deep); border-color: var(--brand); background: var(--brand-soft); transform: rotate(180deg); }
.conv-result { margin-top: 14px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); text-align: center; border: 1px solid var(--border); }
.conv-result .r-val { font-size: 1.55rem; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.conv-result .r-rate { font-size: .82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 480px) { .converter .conv-row { grid-template-columns: 1fr; } .converter .swap { width: 100%; } }

/* ---------- کارت‌های آماری ---------- */
.kpi { position: relative; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi::after { content: ''; position: absolute; inset-inline-end: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--brand-soft); filter: blur(24px); pointer-events: none; }
.kpi .k { font-size: .8rem; color: var(--muted); display: flex; gap: 6px; align-items: center; font-weight: 600; }
.kpi .v { font-size: 1.45rem; font-weight: 800; margin-top: 6px; line-height: 1.2; letter-spacing: -.01em; }
.kpi .s { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---------- جدول عمومی ---------- */
.table th, .table td { padding: 11px 13px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: .76rem; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table form { display: inline; }
.table.compact th, .table.compact td { padding: 8px 11px; font-size: .88rem; }
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); font-size: .85rem; color: var(--muted); font-weight: 600; transition: all var(--t-fast); }
.pagination a:hover { border-color: var(--brand); color: var(--brand-deep); }
.pagination .current { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: var(--on-brand); }

/* ---------- جزئیات (Accordion) ---------- */
details.box { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
details.box summary { padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; }
details.box summary::-webkit-details-marker { display: none; }
details.box summary::after { content: '▾'; margin-inline-start: auto; color: var(--muted); transition: transform var(--t) var(--ease); }
details.box[open] summary::after { transform: rotate(180deg); }
details.box .box-body { padding: 0 16px 16px; animation: fadeIn .2s var(--ease); }

/* ---------- تلگرام CTA ---------- */
.tg-card { position: relative; background: linear-gradient(135deg, #1e8fd0, #0b5c9c); color: #fff; border-radius: var(--radius); padding: 20px; overflow: hidden; box-shadow: 0 16px 40px -20px rgba(34, 158, 217, .7); }
.tg-card::after { content: ''; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .12); filter: blur(10px); }
.tg-card h3 { color: #fff; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.tg-card p { font-size: .88rem; opacity: .92; }
.tg-card .btn { background: #fff; color: #0b5c9c; border-color: #fff; position: relative; z-index: 1; }
.tg-card .btn:hover { background: #f1f7fc; color: #0b5c9c; }
.tg-card ul { margin: 8px 0 14px; padding-inline-start: 18px; font-size: .86rem; line-height: 1.8; }

/* ---------- کد اتصال ---------- */
.code-box { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 2px dashed var(--brand); border-radius: 12px; font-size: 1.5rem; font-weight: 800; letter-spacing: 3px; direction: ltr; font-family: Consolas, Menlo, monospace; background: var(--brand-soft); }

/* ---------- صفحه‌ی خطا ---------- */
.error-page { text-align: center; padding: 70px 16px; }
.error-page .code { font-size: 6rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .55; }

/* ---------- محتوای صفحه ---------- */
.prose { line-height: 1.95; color: var(--text-2); }
.prose h1, .prose h2, .prose h3 { color: var(--text); }
.prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; }
.prose img { border-radius: 12px; }
.prose table { margin: 1em 0; } .prose td, .prose th { border: 1px solid var(--border); padding: 8px 10px; }
.prose pre, .prose code { direction: ltr; text-align: left; font-family: Consolas, Menlo, monospace; font-size: .85em; }
.prose pre { background: var(--surface-2); padding: 12px 14px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--border); }
.prose code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* ---------- احراز هویت ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 430px; animation: rise .4s var(--ease); }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }
.auth-card .card { box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }

/* ---------- کمکی ---------- */
.tooltip { position: relative; cursor: help; border-bottom: 1px dotted var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; color: transparent; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 999px; transition: width var(--t); }
.copy-btn { cursor: pointer; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; } .mb-1 { margin-bottom: 8px; }
.w-auto { width: auto; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
.mono { font-family: Consolas, Menlo, monospace; direction: ltr; text-align: left; font-size: .85em; }
@media print { .site-header, .site-footer, .ad, .mobile-nav, .sidebar, .ticker { display: none !important; } body::before { display: none; } }
