/* ═══════════════════════════════════════════
   MEYAR — سکه و جواهر معیار
   تم لوکس طلایی + انیمیشن‌های اسکرول
   ═══════════════════════════════════════════ */

@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../Sans-fonts/Woff2/IRANSansXFaNum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansXFaNum';
  src: url('../Sans-fonts/Woff2/IRANSansXFaNum-Bold.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gold: #d4a437;
  --gold-light: #f0cf7a;
  --gold-dark: #a87c1f;
  --gold-grad: linear-gradient(135deg, #a87c1f 0%, #f0cf7a 45%, #d4a437 60%, #8a6516 100%);
  --bg: #faf7f0;
  --bg-card: #ffffff;
  --ink: #23252d;
  --ink-soft: #5c6070;
  --dark: #23252d;
  --dark-2: #2d3040;
  --green: #14a05a;
  --red: #d63a3a;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(35, 37, 45, .08);
  --shadow-gold: 0 8px 30px rgba(212, 164, 55, .25);
  --font: 'IRANSansXFaNum', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
button, input, select, textarea { font-family: var(--font); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #d8ad3c !important;
  outline-offset: 3px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.9;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: calc(100% - 40px); max-width: 1280px; margin-right: auto; margin-left: auto; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══ نوار بازار ═══ */
.ticker-bar {
  position: sticky; top: 0; z-index: 60; overflow: hidden;
  color: #cbd5e1; background: #0b1220;
  border-bottom: 1px solid rgba(201, 162, 39, .24);
}
.market-bar-inner { display: flex; align-items: stretch; min-height: 38px; }
.market-bar-status {
  position: relative; z-index: 4;
  display: flex; align-items: center; justify-content: flex-start; gap: 18px; flex: 0 0 auto;
  padding: 10px; direction: rtl; font-size: 11.5px;
  background: #0b1220; border-left: 1px solid rgba(255,255,255,.08);
}
.market-live { display: inline-flex; align-items: center; gap: 7px; color: #5ee49a; font-weight: 800; white-space: nowrap; }
.ticker-viewport {
  position: relative;
  width: 100%;
  height: 38px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  white-space: nowrap;
  direction: ltr;
}
.ticker-viewport::before,
.ticker-viewport::after {
  content: ''; position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 55px; pointer-events: none;
}
.ticker-viewport::before { left: 0; background: linear-gradient(to right, #0b1220 0%, rgba(11,18,32,0) 100%); }
.ticker-viewport::after { right: 0; background: linear-gradient(to left, #0b1220 0%, rgba(11,18,32,0) 100%); }
.online-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex-shrink: 0;
  box-shadow: 0 0 0 rgba(61, 220, 132, .6); animation: pulse-green 2s ease-out infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .5); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ═══ تیکر مارکیو ═══ */
.ticker-track {
  --ticker-duration: 38s;
  display: flex;
  align-items: center;
  width: max-content; height: 100%;
  animation: ticker-scroll var(--ticker-duration) linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes ticker-scroll {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  height: 100%; flex: 0 0 auto; padding: 0 24px;
  direction: rtl; white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px;
}
.ticker-name  { color: #cbd5e1; }
.ticker-price { color: #f4d77c; font-weight: 800; font-variant-numeric: tabular-nums; }
.ticker-change { font-size: 11px; color: #8a8fa3; }
.ticker-change.up   { color: #3ddc84; }
.ticker-change.down { color: #ff6b6b; }

@media (max-width: 768px) {
  .market-bar-status { gap: 10px; padding-inline: 8px; font-size: 10.5px; }
  .ticker-item { gap: 6px; padding-inline: 18px; font-size: 11px; }
  .ticker-track { --ticker-duration: 30s; }
  .ticker-viewport::before, .ticker-viewport::after { width: 30px; }
}

/* ═══ هدر اصلی ═══ */
.site-header {
  position: sticky; top: 38px; z-index: 50;
  background: rgba(11, 18, 32, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 39, .22);
  transition: transform .4s ease, box-shadow .4s ease, background .4s ease, border-color .4s ease;
  will-change: background, box-shadow;
}
.site-header.scrolled { background: rgba(11, 18, 32, .99); box-shadow: 0 12px 32px rgba(3, 8, 18, .28); }
.site-header.header-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; direction: rtl; }
.brand { position: relative; z-index: 2; display: inline-flex; align-self: stretch; flex: 1 1 0; align-items: center; justify-content: flex-start; min-width: 96px; }
.brand-logo { position: relative; z-index: 2; display: block; width: 96px; height: 124px; aspect-ratio: 1103 / 1426; object-fit: contain; transform: none; transition: transform .3s; }
.brand:hover .brand-logo { transform: scale(1.05); }
.main-nav { display: flex; flex: 0 0 auto; align-items: center; align-self: center; gap: 2px; margin: 0; order: 2; direction: rtl; height: 100%; }
@media (min-width: 921px) {
  .main-nav { gap: 10px; }
}
.main-nav a {
  padding: 29px 12px 25px; font-size: 13px; font-weight: 600;
  color: #cbd5e1; position: relative; transition: color .25s, background .25s;
}
.main-nav a::after, .nav-dropdown-toggle::after { content: ''; position: absolute; right: 12px; left: 12px; bottom: 15px; height: 2px; background: #c9a227; transform: scaleX(0); transform-origin: center; transition: transform .25s; }
.main-nav a:hover, .main-nav a.active, .nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: #f4d77c; }
.main-nav a:hover::after, .main-nav a.active::after, .nav-dropdown-toggle:hover::after, .nav-dropdown-toggle.active::after { transform: scaleX(1); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { position: relative; border: 0; background: transparent; color: #cbd5e1; cursor: pointer; font: inherit; padding: 29px 12px 25px; }
.nav-dropdown-toggle i { color: #c9a227; margin-right: 5px; font-size: 15px; vertical-align: middle; }
.nav-dropdown-menu { position: absolute; top: calc(100% - 8px); right: 0; min-width: 190px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); background: #151c2e; border: 1px solid rgba(201,162,39,.24); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.28); transition: opacity .2s, transform .2s, visibility .2s; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown.is-click-closed:hover .nav-dropdown-menu, .nav-dropdown.is-click-closed:focus-within .nav-dropdown-menu { opacity: 0; visibility: hidden; transform: translateY(8px); }
.nav-dropdown-menu a { display: block; padding: 8px 11px; border-radius: 7px; color: #cbd5e1; white-space: nowrap; }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover { background: rgba(201,162,39,.1); color: #f4d77c; }
.header-actions { display: flex; flex: 1 1 0; align-items: center; align-self: center; justify-content: flex-end; gap: 10px; direction: rtl; order: 3; }
.header-search { position: relative; display: flex; align-items: center; width: 215px; height: 38px; border: 1px solid rgba(148,163,184,.28); border-radius: 9px; background: #151c2e; overflow: visible; }
.header-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #f8fafc; padding: 0 12px; font: 11.5px var(--font); }
.header-search:focus-within { border-color: rgba(216,173,60,.62); }
.header-search input,
.header-search input:hover,
.header-search input:focus,
.header-search input:focus-visible,
.header-search input:active {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.header-search input::placeholder { color: #718096; }
.header-search button { display: inline-grid; width: 38px; height: 100%; place-items: center; padding: 0; border: 0; background: transparent; color: #c9a227; font-size: 18px; line-height: 1; cursor: pointer; }
.header-search button i { display: block; line-height: 1; }
.header-search-results { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 90; overflow: hidden; border: 1px solid rgba(201,162,39,.3); border-radius: 12px; background: #151c2e; box-shadow: 0 16px 36px rgba(3,8,18,.32); }
.header-search-results[hidden] { display: none; }
.header-search-result { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: #dbe3ee; font-size: 11px; transition: color .2s, background .2s; }
.header-search-result:hover { color: #f4d77c; background: rgba(201,162,39,.1); }
.header-search-result small { flex: 0 0 auto; color: #8997aa; font-size: 9px; }
.header-search-empty { padding: 10px 11px; color: #8997aa; font-size: 10px; text-align: right; }
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; padding: 0; background: transparent; border: 1px solid rgba(201,162,39,.35); border-radius: 8px; color: #f4d77c; line-height: 1; cursor: pointer; }
.nav-toggle i { display: block; font-size: 20px; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.search-hit td { background: rgba(201,162,39,.18) !important; transition: background .2s; }

/* ═══ هیرو ═══ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  background: radial-gradient(1200px 600px at 80% 20%, #3a3d4d, #23252d 60%);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.hero::after {
  position: absolute;
  right: -8%;
  bottom: -1px;
  left: -8%;
  z-index: 1;
  height: 170px;
  background: linear-gradient(to bottom, rgba(35, 37, 45, 0), rgba(107, 119, 143, .38) 48%, #eef2f7 100%);
  border-radius: 50% 50% 0 0 / 28% 28% 0 0;
  content: '';
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20, 21, 28, .92) 15%, rgba(24, 26, 35, .65) 55%, rgba(20, 21, 28, .35));
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-particles span {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light), rgba(212, 164, 55, 0));
  opacity: .5; animation: float-up linear infinite;
}
@keyframes float-up {
  from { transform: translateY(110%) scale(.6); opacity: 0; }
  15%  { opacity: .55; }
  to   { transform: translateY(-120%) scale(1.1); opacity: 0; }
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px;
  padding-top: 60px; padding-bottom: 100px;
}
.hero-title { color: #fff; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; margin-bottom: 22px; }
.hero-sep { color: var(--gold); margin: 0 14px; font-weight: 300; }
.hero-desc { color: #c9ccd8; font-size: 15px; max-width: 620px; margin-bottom: 30px; }
.hero-desc strong { color: var(--gold-light); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 14px;
  font-family: var(--font); font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-gold {
  background: var(--gold-grad); background-size: 200% 200%;
  color: #241a05; box-shadow: var(--shadow-gold);
  animation: gold-shimmer 4s ease infinite;
}
@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(212, 164, 55, .4); }
.btn-outline { border: 1.5px solid rgba(212, 164, 55, .6); color: var(--gold-light); background: rgba(212, 164, 55, .08); }
.btn-outline:hover { background: rgba(212, 164, 55, .18); transform: translateY(-3px); }
.hero-brand { text-align: center; }
.hero-logo-img {
  width: min(320px, 70%); filter: drop-shadow(0 12px 40px rgba(212, 164, 55, .35));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-brand-fa {
  margin-top: 18px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; }
.hero-wave svg { display: block; width: 100%; height: 90px; }

/* ═══ جداول قیمت ═══ */
.update-info {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 30px 0 20px; font-size: 14px; color: var(--ink-soft);
}
.pulse-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 rgba(20, 160, 90, .5); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 160, 90, .45); }
  70% { box-shadow: 0 0 0 12px rgba(20, 160, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 160, 90, 0); }
}
.stale-badge { background: #fff3e0; color: #b26a00; padding: 3px 12px; border-radius: 20px; font-size: 12px; }
/* چیدمان ماسونری (جاوااسکریپت جای‌گذاری می‌کند؛ حالت پیش‌فرض = گرید) */
.tables-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  align-items: start; margin-bottom: 60px;
}
.price-card.w-full { grid-column: 1 / -1; }
.tables-grid.masonry-on { display: block; position: relative; }
.tables-grid.masonry-on .price-card {
  position: absolute; margin: 0;
  transition: top .45s cubic-bezier(.22, .8, .35, 1), right .45s cubic-bezier(.22, .8, .35, 1);
}
.tables-grid.masonry-on.is-layout-animating .price-card {
  transition: none;
}
.row-link { cursor: pointer; }
.item-link { display: flex; align-items: center; gap: 10px; color: inherit; }
.item-link:hover { color: var(--gold-dark); }
.cell-chart { width: 34px; text-align: center; }
.chart-link { opacity: .55; transition: opacity .2s, transform .2s; display: inline-block; }
.row-link:hover .chart-link { opacity: 1; transform: scale(1.15); }
.price-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgb(148 163 184); overflow: hidden;
  border: 1px solid rgba(212, 164, 55, .14);
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(35, 37, 45, .12); }
.price-card-head {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1c1e26 0%, #2b2e3c 60%, #23252d 100%);
  border-bottom: 2px solid rgba(212, 164, 55, .55);
  padding: 15px 22px; position: relative; overflow: hidden;
}
.price-card-head::before {
  content: ''; position: absolute; top: 0; right: 0; width: 160px; height: 100%;
  background: radial-gradient(120px 60px at 100% 0%, rgba(212, 164, 55, .22), transparent 70%);
  pointer-events: none;
}
.price-card-head::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px;
  background: linear-gradient(105deg, transparent, rgba(240, 207, 122, .18), transparent);
  animation: head-shine 4s ease-in-out infinite; left: -80px;
}
@keyframes head-shine { 60%, 100% { left: 110%; } }
.price-card-head h2 {
  font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 10px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-card-head h2::before {
  content: ''; width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0;
  background: var(--gold-grad); box-shadow: 0 0 10px rgba(212, 164, 55, .8);
}
.table-wrap { overflow-x: auto; }
.price-card[data-market-container] .market-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .95s cubic-bezier(.22, .8, .35, 1);
  will-change: max-height;
}
.price-card[data-market-container]:not(.has-expand) .market-list { max-height: none; overflow: visible; transition: none; }
.price-card[data-market-container].has-expand .market-asset.is-extra { display: none; }
.price-card[data-market-container].has-expand .market-list.is-measuring-collapsed .market-asset.is-extra { display: none !important; }
.price-card[data-market-container].has-expand .market-list.is-collapsing .market-asset.is-extra { display: grid; }
.price-card[data-market-container].has-expand .market-list.is-expanded .market-asset.is-extra { display: grid; }
.tables-grid .price-card[data-market-container] {
  --market-columns: minmax(0, 1fr) 100px 100px 70px;
  background: rgba(21, 28, 46, .86);
  border: 1px solid rgba(201, 162, 39, .25);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tables-grid .price-card[data-market-container]:hover {
  border-color: rgba(201, 162, 39, .5);
  box-shadow: 0 26px 74px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.tables-grid .price-card[data-market-container] .price-card-head {
  min-height: 52px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1c1f2b, #171a24);
  border-bottom: 1px solid rgba(201, 162, 39, .28);
}
.tables-grid .price-card[data-market-container] .price-card-head::before,
.tables-grid .price-card[data-market-container] .price-card-head::after { display: none; }
.price-card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.price-card-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid rgba(212,164,55,.3); border-radius: 8px; color: #f0cf7a; background: rgba(212,164,55,.1); }
.price-card-icon i { font-size: 16px; line-height: 1; }
.price-card-icon .market-icon-image { width: 23px; height: 23px; }
.tables-grid .price-card[data-market-container] .price-card-head h2 {
  color: #f8fafc;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  letter-spacing: -.1px;
}
.tables-grid .price-card[data-market-container] .price-card-head h2::before { display: none; }
.market-list { padding: 6px 12px 8px; background: rgba(11, 18, 32, .2); }
.market-columns-head { display: grid; grid-template-columns: var(--market-columns); align-items: center; column-gap: 10px; min-height: 30px; padding: 0 22px; color: #94a3b8; background: rgba(15,23,42,.72); border-bottom: 1px solid rgba(148,163,184,.1); direction: rtl; font-size: 11px; font-weight: 700; }
.market-columns-spacer { grid-column: 1; }
.market-columns-head span { padding: 0 20px 0 0; text-align: right; }
.market-columns-head span:nth-child(3) { color: #f4d77c; }
.market-columns-head span:nth-child(4) { color: #5ee49a; }
.market-asset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 9px 10px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  transition: background .2s ease, transform .2s ease;
}
.market-asset:last-child { border-bottom: 0; }
.market-asset:hover { background: rgba(201, 162, 39, .07); transform: translateX(-2px); }
.market-asset-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 650; }
.market-asset-title > i { width: 25px; flex: 0 0 25px; color: var(--gold-light); font-size: 20px; text-align: center; }
.market-asset-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-asset .mini-coin { width: 25px; height: 25px; flex: 0 0 25px; }
.market-asset .mini-flag { width: 25px; flex: 0 0 25px; font-size: 18px; }
.market-asset-quote { display: flex; align-items: baseline; justify-content: flex-start; width: 100%; min-width: 0; direction: rtl; text-align: right; white-space: nowrap; }
.market-asset-quote small { display: none; color: #94a3b8; font-size: 9px; line-height: 1; }
.market-asset-quote strong { min-width: 0; overflow: hidden; color: #f8fafc; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.market-asset-quote em { display: none; }
.market-asset-quote.buy small { color: #5ee49a; }
.market-asset-quote.sell small { color: #f4d77c; }
.market-asset-price { display: flex; align-items: baseline; gap: 5px; color: #f8fafc; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-asset-price small { color: #9ca3af; font-size: 9px; font-weight: 500; }
.market-asset-change {
  display: inline-flex; align-items: center; gap: 4px;
  min-width: 66px; justify-content: flex-start;
  color: #9ca3af; font-size: 11px; font-weight: 700; direction: ltr; white-space: nowrap;
}
.market-asset-change.up { color: #35c47a; }
.market-asset-change.down { color: #ef6b73; }
.market-asset-change.flat { color: #8491a7; }
.market-asset-trend { font-size: 16px; line-height: 1; font-weight: 800; }
.table-expand-toggle {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; height: 32px; border: 0; border-top: 1px solid rgba(148, 163, 184, .12);
  background: transparent; color: var(--gold-light); cursor: pointer;
  font: 20px/1 var(--font); transition: background .2s, color .2s;
}
.table-expand-toggle:hover { background: rgba(201, 162, 39, .07); color: #fff1b5; }
.table-expand-toggle > span:first-child { display: block; transition: transform .35s ease; }
.table-expand-toggle .table-expand-label { font-size: 11px; line-height: 1; transition: color .2s; }
.table-expand-toggle[aria-expanded="true"] > span:first-child { transform: rotate(180deg); }
.table-expand-toggle:disabled { color: #667085; cursor: default; }
.table-expand-toggle:disabled:hover { background: transparent; color: #667085; }
main#prices {
  position: relative; z-index: 2;
  width: 100%; max-width: none; margin-top: -42px;
  border-radius: 30px 30px 0 0;
  padding-left: max(20px, calc((100vw - 1240px) / 2));
  padding-right: max(20px, calc((100vw - 1240px) / 2));
  background: #eef2f7;
}
.market-overview { padding: 54px 0 34px; direction: rtl; }
.market-overview-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; margin-bottom: 24px; }
.market-overview-updated { justify-self: start; text-align: left; direction: rtl; }
.market-overview-updated-row { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.market-overview-updated-row > span:first-child { display: block; color: #94a3b8; font-size: 14px; text-align: right; }
.market-overview-updated strong { display: block; margin-top: 3px; color: #334155; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.market-overview-updated strong#marketOverviewUpdated { display: flex; align-items: center; gap: 5px; direction: rtl; }
.market-overview-updated strong#marketOverviewUpdated > span { display: inline; color: #334155; font-size: 12px; text-align: right; }
.market-overview-heading { grid-column: 2; text-align: center; }
.market-overview-head h2 { color: #071a33; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.4px; }
.market-overview-head p { margin-top: 4px; color: #64748b; font-size: 13px; }
.market-overview-all { justify-self: end; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 1px solid rgba(201, 162, 39, .5); border-radius: 10px; color: #8a6516; background: #fffdf5; font-size: 12px; font-weight: 750; transition: background .2s, color .2s, transform .2s; }
@keyframes market-overview-cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(201, 162, 39, .12);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 8px 24px rgba(201, 162, 39, .32);
  }
}
.market-overview-all:hover { color: #071a33; background: #fff8dc; transform: translateX(-2px); }
.market-overview-all.is-attention {
  animation: market-overview-cta-pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .market-overview-all.is-attention { animation: none; }
}
.market-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.market-overview-card {
  min-width: 0; min-height: 340px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px;
  box-shadow: 0 10px 28px rgb(34 84 154 / 24%); direction: rtl;
  display: flex; flex-direction: column;
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.market-overview-card:hover { transform: translateY(-4px); border-color: rgba(201, 162, 39, .45); box-shadow: 0 16px 34px rgba(148, 163, 184, .25); }
.market-overview-card:focus-visible { outline: 2px solid #d8ad3c; outline-offset: 3px; }
.market-overview-card-head { display: flex; align-items: flex-start; gap: 11px; min-height: 42px; }
.market-overview-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px; color: #071a33; background: #f1f5f9; font-size: 16px; }
.market-overview-icon .mini-coin { width: 22px; height: 22px; }
.market-overview-icon i { font-size: 20px; line-height: 1; }
.market-overview-icon .market-icon-image { width: 32px; height: 32px; object-fit: contain; }
.market-overview-card[data-overview-card="geram18"] .market-overview-icon { background: #fffbeb; }
.market-overview-card[data-overview-card="usd"] .market-overview-icon { background: #eff6ff; }
.market-overview-card[data-overview-card="sekee"] .market-overview-icon { background: #fefce8; }
.market-overview-card[data-overview-card="silver999"] .market-overview-icon { background: #f1f5f9; }
.market-overview-title { flex: 1 1 auto; min-width: 0; }
.market-overview-title h3 { flex: 1; min-width: 0; overflow: hidden; color: #071a33; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.market-overview-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; margin-inline-start: auto; padding: 4px 7px; border: 1px solid rgba(201,162,39,.58); border-radius: 8px; color: #a17a1c; background: rgba(201,162,39,.06); font-size: 9px; font-weight: 750; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.market-overview-action:hover { transform: translateX(-2px); background: rgba(201,162,39,.12); box-shadow: 0 4px 12px rgba(201,162,39,.18); }
.market-overview-action i { font-size: 12px; line-height: 1; }
.market-overview-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.market-overview-quote { min-width: 0; padding: 7px 8px 6px; border: 1px solid #eef2f7; border-radius: 9px; background: #f8fafc; }
.market-overview-quote > span { display: block; color: #64748b; font-size: 9px; line-height: 1.2; }
.market-overview-quote strong { display: block; overflow: visible; margin-top: 4px; color: #071a33; font-size: clamp(12px, 1.35vw, 18px); font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.3px; text-overflow: clip; white-space: nowrap; }
.market-overview-quote small { display: block; margin-top: 2px; color: #94a3b8; font-size: 8px; }
.market-overview-quote.buy { border-color: rgba(22,163,74,.16); }
.market-overview-quote.sell { border-color: rgba(201,162,39,.22); }
.market-overview-quote.buy > span { color: #15803d; }
.market-overview-quote.sell > span { color: #a17a1c; }
.market-overview-change { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin-top: 3px; direction: ltr; font-variant-numeric: tabular-nums; }
.market-overview-change strong { font-size: 12px; }
.market-overview-change span { color: #64748b; font-size: 11px; }
.market-overview-change.up strong { color: #16a34a; }
.market-overview-change.down strong { color: #dc2626; }
.market-overview-change.flat strong { color: #64748b; }
.market-overview-change.up span { color: #16a34a; }
.market-overview-change.down span { color: #dc2626; }
.market-overview-change.flat span { color: #64748b; }
.market-overview-chart-wrap { height: 58px; margin: 9px 0 5px; }
.market-overview-chart { display: block; width: 100%; height: 100%; overflow: visible; }
.market-overview-line { transition: d .35s ease; }
.market-overview-chart.up .market-overview-line { stroke: #16a34a; }
.market-overview-chart.down .market-overview-line { stroke: #dc2626; }
.market-overview-chart.flat .market-overview-line { stroke: #64748b; }
.market-overview-chart stop:first-child { stop-color: #16a34a; }
.market-overview-chart.down stop:first-child { stop-color: #dc2626; }
.market-overview-chart.flat stop:first-child { stop-color: #64748b; }
.market-overview-ranges { display: flex; gap: 4px; padding: 3px; margin-top: auto; margin-bottom: 12px; border-radius: 9px; background: #f1f5f9; }
.market-overview-ranges button { flex: 1; padding: 5px 3px; border: 0; border-radius: 7px; background: transparent; color: #64748b; cursor: pointer; font: 10px var(--font); transition: background .2s, color .2s, box-shadow .2s; }
.market-overview-ranges button:hover { color: #071a33; }
.market-overview-ranges button.active { color: #071a33; background: #fff; box-shadow: 0 2px 6px rgba(7, 26, 51, .1); font-weight: 800; }
.market-overview-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid #eef2f7; }
.market-overview-details div { min-width: 0; }
.market-overview-details dt { color: #94a3b8; font-size: 10px; white-space: nowrap; }
.market-overview-details dd { margin-top: 3px; color: #334155; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.prices-page { min-height: 70vh; padding-top: 48px; }
.prices-page-head { margin-bottom: 24px; direction: rtl; }
.prices-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: #64748b; font-size: 12px; transition: color .2s, transform .2s; }
.prices-back:hover { color: #071a33; transform: translateX(3px); }
.prices-page-head h1 { color: #071a33; font-size: clamp(23px, 3vw, 32px); font-weight: 850; }
.prices-page-head p { margin-top: 5px; color: #64748b; font-size: 13px; }
@media (max-width: 1100px) {
  .market-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  main#prices { margin-top: -26px; border-radius: 22px 22px 0 0; }
  .market-overview { padding-top: 38px; }
  .market-overview-head { grid-template-columns: 1fr 1fr; align-items: center; gap: 14px; }
  .market-overview-heading { grid-column: 1 / -1; grid-row: 1; }
  .market-overview-updated { grid-column: 1; grid-row: 2; justify-self: start; }
  .market-overview-all { grid-column: 2; grid-row: 2; justify-self: end; }
  .market-overview-grid { grid-template-columns: 1fr; gap: 14px; }
  .market-overview-card { padding: 18px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .market-overview-price { gap: 6px; }
  .market-overview-quote { padding-right: 6px; padding-left: 6px; }
  .market-overview-quote strong { font-size: clamp(12px, 1.25vw, 16px); }
}
@media (max-width: 430px) {
  .market-overview-price { grid-template-columns: 1fr; }
}
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table thead th {
  background: #fdf6e3; color: #8a6516; font-weight: 700; font-size: 12.5px;
  padding: 10px 14px; text-align: right; position: sticky; top: 0;
}
.price-table td { padding: 11px 14px; border-top: 1px solid #f3eede; }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: #fdf9ec; }
.cell-title { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.cell-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cell-num.flash-up   { animation: flash-green 1.2s; }
.cell-num.flash-down { animation: flash-red 1.2s; }
@keyframes flash-green { 0% { background: rgba(20, 160, 90, .25); } 100% { background: transparent; } }
@keyframes flash-red   { 0% { background: rgba(214, 58, 58, .22); } 100% { background: transparent; } }
.mini-coin {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #d4a437 55%, #8a6516);
  box-shadow: inset 0 0 0 2.5px rgba(138, 101, 22, .5), 0 2px 6px rgba(138, 101, 22, .35);
  position: relative;
}
.mini-coin::after {
  content: ''; position: absolute; inset: 5px; border-radius: 50%;
  border: 1px dashed rgba(122, 88, 15, .55);
}
.mini-coin.gold { border-radius: 6px; }
.mini-coin.gold::after { border-radius: 3px; }
.mini-flag { font-size: 20px; width: 26px; text-align: center; flex-shrink: 0; }
.chg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.chg.up   { background: rgba(20, 160, 90, .12); color: var(--green); }
.chg.down { background: rgba(214, 58, 58, .1);  color: var(--red); }
.chg.flat { background: #f0f0f4; color: #8a8fa3; }

/* ═══ درباره ما ═══ */
.about {
  background: linear-gradient(180deg, var(--bg), #f3ecdb 40%, var(--bg));
  padding: 80px 0; position: relative; overflow: hidden;
}
.section-title { text-align: center; font-size: clamp(22px, 3vw, 34px); font-weight: 800; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 14px; margin: 10px 0 50px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.about-text h3 {
  font-size: 21px; font-weight: 800; margin-bottom: 18px; position: relative; padding-right: 18px;
}
.about-text h3::before {
  content: ''; position: absolute; right: 0; top: 8px; bottom: 8px; width: 5px;
  border-radius: 4px; background: var(--gold-grad);
}
.about-text p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; text-align: justify; }
.about-stats { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 130px; text-align: center;
  background: #fff; border: 1px solid rgba(212, 164, 55, .25);
  border-radius: 16px; padding: 18px 10px; box-shadow: var(--shadow);
}
.stat-num {
  display: block; font-size: 30px; font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 13px; color: var(--ink-soft); }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(35, 37, 45, .2); position: relative; z-index: 2; }
.about-media-ph {
  border-radius: var(--radius); background: var(--dark-2); padding: 60px 30px;
  display: flex; justify-content: center; position: relative; z-index: 2;
  box-shadow: 0 20px 60px rgba(35, 37, 45, .25);
}
.about-media-ph img { width: 70%; box-shadow: none; }
.about-media-frame {
  position: absolute; inset: -16px 16px 16px -16px;
  border: 2px solid rgba(212, 164, 55, .5); border-radius: var(--radius); z-index: 1;
}

/* ═══ فوتر ═══ */
.site-footer { background: linear-gradient(180deg, #2d3040, #23252d); color: #c9ccd8; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 60px 20px 40px;
}
.footer-brand-fa {
  margin: 12px 0 18px; font-size: 20px; font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-contact { font-size: 14px; line-height: 2.4; }
.footer-contact a { color: var(--gold-light); }
.footer-col h4 {
  color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px;
  border-radius: 3px; background: var(--gold-grad);
}
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: #a5aabb; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--gold-light); transform: translateX(-6px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0; text-align: center; font-size: 13px; color: #8a8fa3;
}

/* ═══ دکمه بالا ═══ */
.back-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold-grad); color: #241a05; font-size: 20px; font-weight: 800;
  box-shadow: var(--shadow-gold);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.back-top i { font-size: 18px; line-height: 1; }
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ═══ انیمیشن‌های اسکرول (reveal) ═══ */
.reveal { opacity: 0; transition: opacity .8s cubic-bezier(.22, .8, .35, 1), transform .8s cubic-bezier(.22, .8, .35, 1); will-change: opacity, transform; }
.reveal[data-reveal="up"]    { transform: translateY(46px); }
.reveal[data-reveal="right"] { transform: translateX(46px); }
.reveal[data-reveal="left"]  { transform: translateX(-46px); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══ فوتر: امضای طراح ═══ */
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer-credit a { color: var(--gold-light); font-weight: 700; transition: color .2s; }
.footer-credit a:hover { color: #fff; }

/* ═══ صفحه اختصاصی آیتم ═══ */
.item-page { padding-top: 26px; padding-bottom: 60px; }
.breadcrumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--gold-dark); }
.item-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid rgba(212, 164, 55, .18);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 20px;
}
.item-hero-right { display: flex; align-items: center; gap: 18px; }
.item-hero h1 { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; }
.item-hero-sub { font-size: 13px; color: var(--ink-soft); }
.mini-coin.big { width: 54px; height: 54px; }
.mini-flag.big { font-size: 44px; width: 54px; }
.item-hero-price { text-align: left; }
.item-price-main { font-size: clamp(24px, 3vw, 38px); font-weight: 800; font-variant-numeric: tabular-nums; }
.item-price-main small { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.item-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.item-card {
  background: var(--bg-card); border: 1px solid rgba(212, 164, 55, .15); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.item-card-label { font-size: 12px; color: var(--ink-soft); }
.item-card b { font-size: 17px; }
.num { font-variant-numeric: tabular-nums; }
.item-desc {
  background: var(--bg-card); border: 1px solid rgba(212, 164, 55, .15); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 20px;
  color: var(--ink-soft); font-size: 15px; text-align: justify;
}

/* نمودار */
.chart-card {
  background: var(--bg-card); border: 1px solid rgba(212, 164, 55, .18);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 24px;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head h2 { font-size: 17px; font-weight: 800; }
.chart-head h2 small { color: var(--ink-soft); font-weight: 500; font-size: 12px; }
.chart-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-filters button {
  font-family: var(--font); font-size: 13px; cursor: pointer;
  background: #f6f1e3; color: var(--gold-dark); border: 1px solid rgba(212, 164, 55, .25);
  border-radius: 10px; padding: 6px 14px; transition: all .2s;
}
.chart-filters button:hover { background: #f0e5c9; }
.chart-filters button.active {
  background: var(--gold-grad); color: #241a05; font-weight: 700; border-color: transparent;
  box-shadow: 0 4px 14px rgba(212, 164, 55, .3);
}
.chart-stats { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.chart-stats b { font-variant-numeric: tabular-nums; }
.txt-up { color: var(--green); }
.txt-down { color: var(--red); }
.chart-wrap { position: relative; height: 360px; }
.chart-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: 14px; background: rgba(255,255,255,.6);
}

/* مرتبط */
.related-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid rgba(212, 164, 55, .15); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow); font-size: 13.5px;
  transition: transform .2s, box-shadow .2s;
}
.related-item:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(35,37,45,.12); }
.related-name { flex: 1; font-weight: 600; }

/* ═══ ویجت چت ═══ */
.chat-widget { position: fixed; bottom: 26px; right: 26px; z-index: 80; }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold-grad); background-size: 200% 200%; color: #241a05;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(212, 164, 55, .45);
  animation: gold-shimmer 4s ease infinite; position: relative;
  transition: transform .25s;
}
.chat-fab:hover { transform: translateY(-4px) scale(1.05); }
.chat-fab-badge {
  position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px;
  border-radius: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
  box-shadow: 0 3px 10px rgba(214, 58, 58, .5);
}
.chat-panel {
  position: absolute; bottom: 74px; right: 0;
  width: min(360px, calc(100vw - 40px)); height: 480px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(20, 21, 28, .35);
  display: flex; flex-direction: column;
  border: 1px solid rgba(212, 164, 55, .25);
  animation: chat-in .3s cubic-bezier(.22, .8, .35, 1);
}
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.chat-panel[hidden] { display: none; }
.chat-head {
  background: linear-gradient(135deg, #2d3040, #1c1e26);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
}
.chat-head-info { display: flex; align-items: center; gap: 12px; }
.chat-head-title { color: #fff; font-weight: 700; font-size: 14.5px; }
.chat-head-sub { color: #8a8fa3; font-size: 11.5px; }
.chat-close { display: inline-grid; place-items: center; background: none; border: none; color: #8a8fa3; font-size: 16px; cursor: pointer; padding: 4px; }
.chat-close i { font-size: 18px; line-height: 1; }
.chat-close:hover { color: #fff; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #faf7f0; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 85%; }
.chat-msg.v { align-self: flex-start; align-items: flex-start; }
.chat-msg.a { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: 9px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.8;
  word-break: break-word; white-space: pre-wrap;
}
.chat-msg.v .chat-bubble { background: #fff; border: 1px solid #eee3c8; border-bottom-right-radius: 4px; }
.chat-msg.a .chat-bubble {
  background: linear-gradient(135deg, #f7e2ae, #ecc96a); color: #3d2c00;
  border-bottom-left-radius: 4px;
}
.chat-meta { font-size: 10.5px; color: #a5aabb; margin-top: 3px; padding: 0 4px; }
.chat-input { border-top: 1px solid #f0ead8; padding: 10px 12px; background: #fff; }
.chat-input input[type="text"] {
  width: 100%; font-family: var(--font); font-size: 13.5px;
  border: 1px solid #eee3c8; border-radius: 12px; padding: 9px 14px; outline: none;
  transition: border .2s;
}
.chat-input input[type="text"]:focus { border-color: var(--gold); }
#chatName { margin-bottom: 8px; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }
.chat-input-row button {
  width: 42px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--gold-grad); color: #241a05; display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.chat-input-row button:hover { transform: scale(1.08); }
.chat-input-row button i { display: inline-block; font-size: 19px; }

/* ═══ ریسپانسیو ═══ */
@media (max-width: 1024px) {
  .tables-grid { grid-template-columns: 1fr; }
  .item-hero { flex-direction: column; align-items: flex-start; }
  .item-hero-price { text-align: right; }
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-brand { order: 1; }
  .hero-desc { margin: 0 auto 30px; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
}
/* ═══════════════════════════════════════════
   اسلایدر هیرو (متحرک)
   ═══════════════════════════════════════════ */
.hero-slider { height: clamp(540px, 72vh, 680px); min-height: 0; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(700px 340px at 15% 110%, rgba(212, 164, 55, .14), transparent 65%),
    radial-gradient(500px 300px at 85% -10%, rgba(212, 164, 55, .1), transparent 60%);
}
.hs-slide {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transform: scale(1.015);
  transition: opacity .9s ease, visibility .9s, transform 1.1s ease;
}
.hs-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.hs-slide .hero-content { padding-top: 30px; padding-bottom: 90px; }
.hs-slide .hero-text > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .35, 1);
}
.hs-slide.active .hero-text > * { opacity: 1; transform: none; }
.hs-slide.active .hero-text > *:nth-child(1) { transition-delay: .15s; }
.hs-slide.active .hero-text > *:nth-child(2) { transition-delay: .3s; }
.hs-slide.active .hero-text > *:nth-child(3) { transition-delay: .45s; }
.hs-slide.active .hero-text > *:nth-child(4) { transition-delay: .6s; }
.hs-slide .hero-brand { opacity: 0; transform: translateX(-30px); transition: opacity .8s ease .35s, transform .8s cubic-bezier(.22,.8,.35,1) .35s; }
.hs-slide.active .hero-brand { opacity: 1; transform: none; }
.hs-center { grid-template-columns: 1fr !important; text-align: center; }
.hs-wide { max-width: 860px; margin: 0 auto; }
.hs-wide .hero-desc { margin-left: auto; margin-right: auto; }
.hs-center .hero-actions { justify-content: center; }
.hs-badge {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 18px; border-radius: 30px; font-size: 13px; font-weight: 700;
  color: var(--gold-light); background: rgba(212, 164, 55, .12);
  border: 1px solid rgba(212, 164, 55, .4);
  box-shadow: inset 0 0 20px rgba(212, 164, 55, .08);
}
.hero-logo-ring { position: relative; display: inline-block; padding: 30px; }
.hero-logo-ring::before, .hero-logo-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(212, 164, 55, .35);
}
.hero-logo-ring::before { animation: ring-spin 26s linear infinite; border-style: dashed; }
.hero-logo-ring::after { inset: -18px; border-color: rgba(212, 164, 55, .15); animation: ring-spin 40s linear infinite reverse; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* اسلاید قیمت‌های شاخص */
.hs-prices { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hs-price {
  min-width: 220px; padding: 20px 26px; border-radius: 20px; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(212, 164, 55, .35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08);
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.hs-price:hover { transform: translateY(-6px); border-color: rgba(240, 207, 122, .7); box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 30px rgba(212,164,55,.15); }
.hs-price-name { color: #c9ccd8; font-size: 14px; font-weight: 600; }
.hs-price-val {
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hs-price-chg { font-size: 13px; font-weight: 700; color: #8a8fa3; }
.hs-price-chg.up { color: #3ddc84; }
.hs-price-chg.down { color: #ff6b6b; }

/* اسلاید اعتماد: سکه بزرگ */
.hs-coin-stage { position: relative; display: inline-block; }
.hs-big-coin {
  display: block; width: 210px; height: 210px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffe9a8, #d4a437 52%, #8a6516 90%);
  box-shadow: inset 0 0 0 9px rgba(138, 101, 22, .5), inset 0 0 40px rgba(255, 236, 170, .4), 0 30px 70px rgba(0, 0, 0, .5);
  position: relative; animation: hero-float 6s ease-in-out infinite;
}
.hs-big-coin::before {
  content: ''; position: absolute; inset: 20px; border-radius: 50%;
  border: 2.5px dashed rgba(122, 88, 15, .55);
}
.hs-big-coin::after {
  content: 'MEYAR'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: 30px; font-weight: 700; letter-spacing: 3px; color: rgba(109, 79, 13, .85);
}
.hs-coin-shadow {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 150px; height: 22px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .45), transparent 70%);
  animation: coin-shadow 6s ease-in-out infinite;
}
@keyframes coin-shadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .8; } 50% { transform: translateX(-50%) scale(.82); opacity: .5; } }

/* نقاط و نوار پیشرفت */
.hs-nav {
  position: absolute; bottom: 106px; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center; gap: 10px;
}
.hs-nav button {
  width: 10px; height: 10px; border-radius: 20px; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .3); transition: all .35s;
}
.hs-nav button.active { width: 34px; background: var(--gold-grad); box-shadow: 0 0 12px rgba(212, 164, 55, .6); }
.hs-progress {
  position: absolute; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden;
}
.hs-progress span {
  display: block; height: 100%; width: 0; border-radius: 3px;
  background: var(--gold-grad);
}
.hs-progress span.run { animation: hs-run var(--hs-dur, 7s) linear forwards; }
@keyframes hs-run { from { width: 0; } to { width: 100%; } }

/* ═══════════════════════════════════════════
   چرا سکه معیار — کارت‌های ویژگی
   ═══════════════════════════════════════════ */
.why { padding: 80px 0 30px; position: relative; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card {
  position: relative; background: var(--bg-card);
  border: 1px solid rgba(212, 164, 55, .18); border-radius: 20px;
  padding: 30px 24px 26px; text-align: center; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.22, .8, .35, 1), box-shadow .35s, border-color .35s;
}
.why-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--gold-grad); opacity: 0; transition: opacity .35s;
}
.why-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(35, 37, 45, .14), 0 0 0 1px rgba(212, 164, 55, .25); border-color: rgba(212, 164, 55, .45); }
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #23252d, #2d3040);
  border: 1px solid rgba(212, 164, 55, .35);
  box-shadow: 0 10px 24px rgba(35, 37, 45, .25), inset 0 0 18px rgba(212, 164, 55, .1);
  color: var(--gold-light);
  transition: transform .35s;
}
.why-card:hover .why-icon { transform: scale(1.08) rotate(-4deg); }
.why-icon i { font-size: 32px; line-height: 1; }
.hero-trust i { margin-left: 4px; color: #f4d77c; font-size: 13px; vertical-align: -1px; }
.why-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 10px; }
.why-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 2; }

/* دکمه تلاش مجدد نمودار */
.chart-retry {
  font-family: var(--font); font-size: 12.5px; font-weight: 700; cursor: pointer;
  margin-right: 10px; padding: 5px 16px; border: none; border-radius: 10px;
  background: var(--gold-grad); color: #241a05;
}

/* ردیف‌های زبرا برای خوانایی جدول */
.price-table tbody tr:nth-child(even) { background: #fbf8ef; }
.price-table tbody tr:nth-child(even):hover, .price-table tbody tr:hover { background: #f8f1dd; }

/* ═══ ریسپانسیو بخش‌های جدید ═══ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slider { height: auto; min-height: 640px; }
  .hs-slide { position: absolute; }
  .hs-slide .hero-content { padding-bottom: 120px; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-slider { min-height: 700px; }
  .hs-prices { gap: 12px; }
  .hs-price { min-width: 150px; padding: 14px 16px; flex: 1; }
  .hs-big-coin { width: 150px; height: 150px; }
  .hero-logo-ring { padding: 18px; }
}

@media (max-width: 768px) {
  .market-bar-inner { padding: 0 14px; }
  .market-bar-status { gap: 10px; padding: 10px; }
  .ticker-item { padding: 8px 16px; font-size: 11px; }
  .header-inner { display: flex; min-height: 70px; gap: 12px; padding: 0 14px; flex-wrap: wrap; }
  .brand { flex: 0 0 auto; order: 1; justify-self: auto; }
  .brand-logo { width: 65px; height: 84px; }
  .main-nav {
    order: 3;
    height: auto;
    display: none; position: absolute; top: 70px; right: 0; left: 0;
    background: #0b1220; flex-direction: column; align-items: stretch; padding: 10px 14px 16px;
    box-shadow: 0 20px 40px rgba(3, 8, 18, .34); border-bottom: 1px solid rgba(201, 162, 39, .22);
  }
  .main-nav.open { display: flex; }
  .main-nav a, .nav-dropdown-toggle { padding: 11px 10px; text-align: right; }
  .main-nav a::after, .nav-dropdown-toggle::after { right: 10px; left: auto; bottom: 7px; width: 28px; }
  .nav-dropdown-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 0 12px 5px 0; padding: 3px 7px; border: 0; border-right: 1px solid rgba(201,162,39,.3); border-radius: 0; box-shadow: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 7px 10px; }
  .header-actions { order: 2; margin-right: 0; margin-left: auto; justify-self: auto; }
  .header-search { width: min(42vw, 190px); height: 34px; }
  .nav-toggle { display: block; order: 4; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 13px; }
  .price-table td, .price-table thead th { padding: 9px 10px; }
  .chat-widget { bottom: 18px; right: 18px; }
  .chart-wrap { height: 280px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 430px) {
  .header-search { width: 45vw; }
  .market-live { font-size: 10.5px; }
}

/* ═══ هیرو ثابت — معرفی برند و داشبورد بازار ═══ */
.hero-static {
  min-height: 570px;
  background: #0b1220;
  isolation: isolate;
}
.hero-static .hero-overlay {
  background: radial-gradient(circle at 12% 45%, rgba(201,162,39,.12), transparent 34%), linear-gradient(115deg, #0b1220 10%, #101a2d 55%, #0b1220 100%);
  z-index: -2;
}
.hero-grid-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
}
.hero-static-content {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(34px, 5vw, 72px);
  min-height: 570px; padding-top: 70px; padding-bottom: 74px;
}
.hero-static-content > .hero-text { order: 1; }
.hero-static-content > .market-dashboard { order: 2; }
.hero-static .hero-text { grid-column: 1; text-align: right; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 13px;
  color: #f4d77c; background: rgba(201,162,39,.09); border: 1px solid rgba(201,162,39,.3); border-radius: 999px; font-size: 12px; font-weight: 700;
}
.hero-badge .online-dot {
  background: #f4d77c;
  box-shadow: 0 0 0 rgba(244, 215, 124, .6);
  animation-name: pulse-gold;
}
@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(244, 215, 124, .55); }
  70% { box-shadow: 0 0 0 9px rgba(244, 215, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 215, 124, 0); }
}
.hero-static .hero-title { font-size: clamp(34px, 4.5vw, 60px); line-height: 1.35; margin-bottom: 20px; letter-spacing: -.6px; }
.hero-static .hero-desc { max-width: 570px; color: #b7c2d4; font-size: 16px; line-height: 2; margin: 0 0 30px; }
.hero-static .hero-actions { justify-content: flex-start; }
.hero-static .btn { border-radius: 10px; padding: 12px 22px; font-size: 13px; }
.hero-static .btn-gold { background: #c9a227; box-shadow: 0 10px 24px rgba(201,162,39,.18); animation: none; }
.hero-static .btn-gold:hover { background: #e4c457; box-shadow: 0 14px 30px rgba(201,162,39,.24); }
.hero-static .btn-outline { background: rgba(255,255,255,.035); border-color: rgba(201,162,39,.5); color: #f4d77c; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; color: #9aa9bd; font-size: 11.5px; }
.hero-trust span::first-letter { color: #5ee49a; }
.market-dashboard {
  grid-column: 2; width: 100%; max-width: 700px; justify-self: start; padding: 12px; direction: rtl;
  background: rgba(21,28,46,.86); border: 1px solid rgba(201,162,39,.25); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dashboard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid rgba(148,163,184,.14); }
.dashboard-head h2 { color: #f8fafc; font-size: 21px; margin-top: 5px; }
.dashboard-time { display: block; color: #8491a7; font-size: 10px; white-space: nowrap; margin-top: 3px; }
.market-chart { height: 82px; margin: 15px 0 8px; opacity: .85; }
.market-chart svg { width: 100%; height: 100%; display: block; }
.market-chart-line, .market-chart-area { transition: opacity .35s ease; }
.market-chart-controls { display: flex; gap: 6px; margin: 0 0 12px; }
.market-chart-controls button { border: 1px solid rgba(148,163,184,.16); border-radius: 7px; padding: 5px 11px; background: rgba(11,18,32,.45); color: #8491a7; cursor: pointer; font: 10px var(--font); transition: color .2s, background .2s, border-color .2s; }
.market-chart-controls button:hover, .market-chart-controls button.active { color: #f4d77c; background: rgba(201,162,39,.1); border-color: rgba(201,162,39,.45); }
.market-cards { display: grid; gap: 8px; }
.market-card { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid rgba(148,163,184,.12); border-radius: 10px; background: rgba(11,18,32,.46); transition: border-color .2s, background .2s, transform .2s; }
.market-card:hover { border-color: rgba(201,162,39,.5); background: rgba(201,162,39,.07); transform: translateX(-3px); }
.market-card-name { color: #cbd5e1; font-size: 11px; }
.market-card strong { color: #f8fafc; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.market-card strong small { color: #8491a7; font-size: 9px; font-weight: 500; }
.market-card-change { color: #94a3b8; font-size: 10px; font-weight: 800; direction: ltr; white-space: nowrap; }
.market-card-change.up { color: #5ee49a; }
.market-card-change.down { color: #ff7272; }

/* ═══ پیش‌نمایش تحلیل هوشمند Hero ═══ */
.market-insight-card {
  background: linear-gradient(145deg, rgba(17,24,39,.96), rgba(23,37,84,.9));
  border-color: rgba(212,175,55,.32);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.06);
}
.market-insight-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(148,163,184,.14); }
.market-insight-head > div:first-child { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.market-insight-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; color: #f0cf7a; }
.market-insight-icon i { font-size: 22px; line-height: 1; }
.market-insight-title-row { display: flex; align-items: center; gap: 7px; }
.market-insight-title-row h2 { color: #fff; font-size: 16px; font-weight: 800; }
.market-insight-ai { padding: 1px 6px; border: 1px solid rgba(212,175,55,.4); border-radius: 5px; color: #f0cf7a; background: rgba(212,175,55,.12); font-size: 9px; font-weight: 800; letter-spacing: .4px; }
.market-insight-trend { padding: 2px 7px; border-radius: 5px; font-size: 9px; font-weight: 750; }
.market-insight-trend.up { color: #86efac; background: rgba(22,163,74,.15); }
.market-insight-trend.down { color: #fca5a5; background: rgba(220,38,38,.15); }
.market-insight-trend.flat { color: #cbd5e1; background: rgba(148,163,184,.14); }
.market-insight-head > div:first-child p { margin-top: 3px; color: #94a3b8; font-size: 10px; line-height: 1.7; }
.market-insight-body { display: flex; flex-direction: column; gap: 8px; direction: ltr; padding: 8px 0 6px; }
.market-asset-summary { width: 100%; min-width: 0; direction: rtl; }
.market-insight-chart-wide { width: 100%; min-width: 0; direction: ltr; }
.market-insight-footer { display: flex; flex-direction: column; gap: 8px; direction: rtl; }
.market-insight-chart-label { display: flex; grid-column: 2; align-items: center; justify-content: flex-start; gap: 6px; color: #cbd5e1; font-size: 11px; white-space: nowrap; }
.market-insight-chart-label b { font-size: 10px; }
.market-insight-chart-label b.up { color: #16a34a; }
.market-insight-chart-label b.down { color: #dc2626; }
.market-insight-chart-label b.flat { color: #94a3b8; }
.market-insight-chart { height: 240px; margin: 0; opacity: 1; }
.marketChart {
  position: relative; width: 100%; min-width: 0; min-height: 240px; direction: ltr; overflow: hidden;
  border: 1px solid rgba(212,175,55,.12); border-radius: 12px; background: rgba(2,6,23,.26);
}
.marketChart .chart-tooltip {
  position: absolute; z-index: 10; pointer-events: none; padding: 7px 9px;
  color: #f8fafc; background: rgba(11,18,32,.95); border: 1px solid rgba(201,162,39,.45);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); white-space: nowrap;
  font-size: 10px; line-height: 1.8; direction: rtl;
}
.marketChart .market-chart-message {
  position: absolute; inset: 0; z-index: 5; display: grid; place-items: center;
  padding: 12px; color: #94a3b8; text-align: center; font-size: 10px; direction: rtl;
}
.marketChart .market-chart-message[hidden] { display: none; }
.marketChart .tv-lightweight-charts { direction: ltr; }
.market-insight-asset { display: flex; align-items: center; width: 100%; gap: 9px; padding: 5px 10px; border: 1px solid rgba(212,175,55,.25); border-radius: 11px; background: rgba(212,175,55,.08); direction: rtl; transition: background .2s, border-color .2s, transform .2s; }
.market-insight-asset:hover { border-color: rgba(212,175,55,.55); background: rgba(212,175,55,.13); transform: translateY(-2px); }
.market-insight-asset-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; color: #f0cf7a; background: rgba(212,175,55,.15); }
.market-insight-asset-icon i { font-size: 17px; }
.market-insight-asset-icon .market-icon-image { width: 22px; height: 22px; object-fit: contain; }
.market-insight-asset-content { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); flex: 1 1 auto; align-items: center; min-width: 0; gap: 16px; direction: rtl; }
.market-insight-asset-title-row { display: inline-flex; grid-column: 1; align-items: center; justify-self: start; min-width: 0; gap: 9px; direction: rtl; }
.market-insight-asset b { display: block; color: #fff; font-size: 11px; }
.market-insight-asset-title-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-insight-asset small { display: block; margin-top: 1px; color: #94a3b8; font-size: 9px; }
.market-insight-asset-price-row { display: flex; grid-column: 3; align-items: baseline; justify-self: end; gap: 8px; direction: rtl; white-space: nowrap; }
.market-insight-asset-price { color: #f4d77c !important; font-size: 11px !important; font-variant-numeric: tabular-nums; text-align: left; white-space: nowrap; }
.market-insight-asset strong { flex: 0 0 auto; color: #16a34a; direction: ltr; font-size: 12px; white-space: nowrap; }
.market-insight-asset strong::before { content: '('; }
.market-insight-asset strong::after { content: ')'; }
.market-insight-asset strong.down { color: #dc2626; }
.market-insight-asset strong.flat { color: #94a3b8; }
.market-insight-list { display: flex; flex-direction: column; min-height: 0; padding: 0 4px; }
.market-insight-list h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px; color: #fff; font-size: 12px; }
.market-insight-list h3 i { color: #d4af37; font-size: 16px; }
.market-insight-list ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 18px; list-style: none; }
.market-insight-list li { position: relative; overflow: visible; padding-right: 14px; color: #cbd5e1; font-size: 12px; line-height: 1.8; white-space: nowrap; }
.market-insight-list li::before { position: absolute; top: .75em; right: 0; width: 5px; height: 5px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 8px rgba(212,175,55,.5); content: ''; }
.market-insight-link { display: inline; color: inherit; text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }

/* ═══ نسخه تحلیل هوشمند در هیرو ═══ */
.hero-static .market-dashboard { max-width: 455px; padding: 24px 28px 20px; }
.hero-static .market-insight-card { border-radius: 24px; padding: 24px 28px 20px; }
.hero-static .market-insight-head { align-items: center; gap: 20px; padding-bottom: 18px; }
.hero-static .market-insight-heading { align-items: center; gap: 12px; }
.hero-static .market-insight-title-row h2 { font-size: clamp(19px, 2.2vw, 19px); line-height: 1.4; }
.hero-static .market-insight-ai { padding: 4px 8px; font-size: 12px; }
.hero-static .market-insight-teaser-body { display: flex; flex-direction: column; gap: 18px; direction: rtl; padding: 22px 0 4px; }
.hero-static .market-insight-teaser-body .market-insight-list { width: 100%; min-width: 0; padding: 0 4px; }
.hero-static .market-insight-teaser-body .market-insight-list h3 { margin: 0 0 10px; }
.hero-static .market-insight-teaser-body .market-insight-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.hero-static .market-insight-teaser-body .market-insight-list li { min-width: 0; white-space: normal; }
.hero-static .market-insight-teaser-actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 10%; }
.hero-static .market-insight-teaser-more { display: inline-flex; align-items: center; align-self: center; gap: 9px; color: #aab5c8; font-size: 12px; font-weight: 650; white-space: nowrap; }
.hero-static .market-insight-teaser-more i:first-child { color: #aab5c8; font-size: 17px; }
.hero-static .market-insight-teaser-more i:last-child { color: #8e9ab0; font-size: 15px; }
.hero-static .market-insight-teaser-more:hover { color: #fff; text-decoration: none; }
@media (max-width: 600px) {
  .hero-static .market-insight-head { flex-wrap: wrap; gap: 12px; }
  .hero-static .market-insight-heading { min-width: 0; flex: 1 1 220px; }
  .hero-static .market-insight-title-row { min-width: 0; }
  .hero-static .market-insight-title-row h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-static .market-insight-teaser-body .market-insight-list ul { grid-template-columns: 1fr; }
  .hero-static .market-insight-teaser-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-static .market-insight-teaser-more { align-self: center; }
}

@media (max-width: 1024px) {
  .hero-static-content { grid-template-columns: 1fr .9fr; gap: 30px; }
  .hero-static .hero-title { font-size: clamp(32px, 5vw, 48px); }
  .market-dashboard { padding: 18px; }
  .market-insight-chart, .marketChart { height: 250px; min-height: 250px; }
}
/* Hero intermediate layout: stack content before the desktop columns become cramped. */
@media (min-width: 761px) and (max-width: 1025px) {
  .hero-static { min-height: 0; }
  .hero-static-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 58px;
  }
  .hero-static .hero-text {
    grid-column: 1;
    width: 100%;
    max-width: 780px;
    margin-inline: auto;
  }
  .hero-static .hero-desc { max-width: 700px; }
  .market-dashboard {
    grid-column: 1;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    justify-self: center;
    padding: 14px;
  }
  .market-insight-body,
  .market-insight-chart-wide,
  .market-asset-summary,
  .market-insight-footer,
  .market-insight-list { min-width: 0; }
  .market-insight-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
  }
  .market-insight-list li {
    min-width: 0;
    white-space: normal;
  }
  .marketChart { width: 100%; max-width: 100%; }
}
@media (max-width: 760px) {
  .hero-static { min-height: 0; }
  .hero-static-content { display: flex; flex-direction: column; align-items: stretch; min-height: 0; gap: 34px; padding-top: 54px; padding-bottom: 58px; }
  .hero-static .hero-text { order: 1; text-align: center; }
  .hero-static .hero-desc { margin-left: auto; margin-right: auto; font-size: 14px; }
  .hero-static .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-static .btn { width: 100%; text-align: center; }
  .hero-badge { margin-bottom: 16px; }
  .hero-trust { justify-content: center; gap: 8px 14px; line-height: 1.8; }
  .market-dashboard { order: 2; max-width: none; justify-self: auto; padding: 14px; }
  .market-insight-body { gap: 20px; }
  .market-insight-chart, .marketChart { height: 240px; min-height: 240px; }
  .market-insight-list { padding: 0 2px 4px; }
  .market-insight-list ul { grid-template-columns: 1fr; }
  .market-insight-asset-title-row { gap: 6px; }
  .market-insight-asset strong { font-size: 11px; }
}

/* ═══ بازطراحی درباره معیار و چرا معیار ═══ */
.about { padding: 88px 0 64px; background: #f5f7fc; direction: rtl; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: clamp(45px, 8vw, 110px); }
.about-copy { max-width: 610px; }
.about-eyebrow { display: inline-block; color: #a17a1c; font-size: 11px; font-weight: 850; letter-spacing: .05px; }
.about-title { margin: 12px 0 12px; color: #162238; font-size: clamp(27px, 3.5vw, 43px); font-weight: 850; line-height: 1.5; letter-spacing: -.6px; }
.about-lead { margin-bottom: 17px; color: #8a6516 !important; font-size: 16px !important; font-weight: 750; }
.about-copy > p:not(.about-lead) { max-width: 560px; margin-bottom: 23px; color: #5d6b80; font-size: 14px; line-height: 2.2; text-align: right; }
.about-cta { display: inline-flex; align-items: center; gap: 7px; padding: 11px 17px; border: 1px solid rgba(201,162,39,.5); border-radius: 10px; color: #8a6516; background: #fffdf5; font-size: 12px; font-weight: 800; transition: background .2s, color .2s, transform .2s; }
.about-cta:hover { color: #162238; background: #fff8dc; transform: translateX(-3px); }
.about-visual { min-height: 360px; }
.about-visual-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding: 25px; overflow: hidden; border: 1px solid rgba(201,162,39,.4); border-radius: 24px; background: radial-gradient(circle at 15% 12%, rgba(201,162,39,.16), transparent 35%), linear-gradient(145deg, #16243b, #0b1220 74%); box-shadow: 0 22px 55px rgba(11,18,32,.2); }
.about-visual-inner::after { position: absolute; top: -90px; left: -80px; width: 250px; height: 250px; border: 1px solid rgba(240,207,122,.14); border-radius: 50%; content: ''; }
.about-visual-kicker { position: relative; z-index: 2; display: inline-flex; align-items: center; align-self: flex-start; padding: 5px 11px; border: 1px solid rgba(240,207,122,.28); border-radius: 99px; color: #f0cf7a; background: rgba(240,207,122,.08); font-size: 10px; font-weight: 750; }
.about-visual-brand { position: absolute; top: 50%; left: 50%; z-index: 1; width: min(52%, 205px); transform: translate(-50%, -55%); opacity: .92; }
.about-visual-brand img { display: block; width: 100%; max-height: 135px; object-fit: contain; filter: drop-shadow(0 16px 22px rgba(0,0,0,.28)); }
.about-visual-caption { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-self: flex-start; margin-top: auto; padding-top: 210px; }
.about-visual-caption strong { color: #fff; font-size: 14px; }.about-visual-caption span { color: #a7b4c7; font-size: 11px; }
.about-visual-line { position: absolute; right: -20px; bottom: -20px; left: 20px; height: 90px; border: 1px solid rgba(201,162,39,.34); border-radius: 50%; transform: rotate(-8deg); }
.about-banner-frame { position: relative; z-index: 2; height: 360px; overflow: hidden; border: 0; border-radius: 24px; background: #0b1220;box-shadow: 0 22px 55px rgb(11 18 32 / 75%), 0 0 0 1px rgb(11 18 32 / 0%);}
.about-banner-frame::after { display: none; }
.about-banner-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-feature-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 58px; border-top: 1px solid #e1e7ef; border-bottom: 1px solid #e1e7ef; }
.about-feature { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 82px; padding: 12px 18px; border-left: 1px solid #e1e7ef; }
.about-feature:last-child { border-left: 0; }
.about-feature > i { color: #a17a1c; font-size: 21px; }
.about-feature strong, .about-feature small { display: block; }.about-feature strong { color: #162238; font-size: 12px; font-weight: 850; }.about-feature small { margin-top: 3px; color: #7b8798; font-size: 10px; }
.about-brand-strip { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.15fr) minmax(0, 2.5fr); align-items: center; gap: 20px; min-width: 0; min-height: 76px; padding: 16px 22px; margin-top: 22px; border: 1px solid #e4e9f0; border-radius: 14px; background: rgba(255,255,255,.72); box-shadow: 0 8px 22px rgba(15,34,58,.04); direction: ltr; overflow: hidden; }
.about-brand-mark { color: #a17a1c6e; font-size: 27px; font-weight: 850; letter-spacing: 4px; }.about-brand-english { position: relative; color: #536176; font-size: 10px; font-weight: 800; line-height: 1.7; letter-spacing: .7px; }.about-brand-english::before { position: absolute; top: 50%; right: calc(100% + 2px); width: clamp(10px, 1.8vw, 16px); height: 1px; background: #c9a227; content: ''; }.about-brand-english small { color: #9aa5b5; font-size: 8px; letter-spacing: 1.2px; }.about-brand-strip p { color: #435167; font-size: 11px; line-height: 1.9; text-align: right; direction: rtl; }
.about-brand-strip > * { min-width: 0; }
.why { padding: 86px 0 92px; background: #fff; direction: rtl; }
.why-heading { margin-bottom: 36px; text-align: center; }.why-heading .section-title { margin-top: 8px; }
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-card { padding: 27px 22px 25px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15,34,58,.055); text-align: right; transition: transform .25s, border-color .25s, box-shadow .25s; }
.why-card::before { opacity: 1; height: 2px; background: #c9a227; }
.why-card:hover { transform: translateY(-5px); border-color: rgba(201,162,39,.55); box-shadow: 0 18px 35px rgba(15,34,58,.1); }
.why-icon { width: 46px; height: 46px; margin: 0 0 18px; border: 0; border-radius: 12px; background: #fff8df; box-shadow: none; color: #a17a1c; }
.why-card:hover .why-icon { transform: none; }.why-icon i { font-size: 23px; }
.why-card h3 { margin-bottom: 8px; color: #162238; font-size: 15px; }.why-card p { color: #64748b; font-size: 12px; line-height: 2; }
@media (max-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, .8fr); gap: 35px; }.why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .about { padding: 62px 0; }.about-grid { grid-template-columns: 1fr; gap: 34px; }.about-visual { order: 1; min-height: 0; }.about-copy { order: 2; max-width: none; text-align: center; }.about-copy > p:not(.about-lead) { text-align: center; }.about-cta { margin-inline: auto; }.about-visual-inner { min-height: 300px; height: 300px; }.about-banner-frame { min-height: 0; height: auto; aspect-ratio: 3 / 2; }.about-visual-caption { padding-top: 155px; }.about-visual-brand { width: 48%; }.about-visual-brand img { max-height: 115px; }.about-feature-row { grid-template-columns: 1fr 1fr; margin-top: 38px; }.about-feature { justify-content: flex-start; min-height: 72px; padding: 10px 12px; }.about-feature:nth-child(2) { border-left: 0; }.about-feature:nth-child(-n+2) { border-bottom: 1px solid #e1e7ef; }.about-brand-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; padding: 15px; }.about-brand-strip p { grid-column: 1 / -1; grid-row: 2; text-align: center; padding-top: 8px; border-top: 1px solid #edf1f5; }.why { padding: 62px 0 68px; }.why-grid { grid-template-columns: 1fr; gap: 14px; }.why-card { text-align: center; }.why-icon { margin-right: auto; margin-left: auto; }.why-card::before { right: 20%; left: 20%; } }
@media (max-width: 430px) { .about-brand-strip { gap: 8px 10px; padding: 12px; }.about-brand-mark { font-size: 22px; letter-spacing: 2px; }.about-brand-english { font-size: 9px; letter-spacing: .35px; }.about-brand-english::before { display: none; }.about-brand-english small { font-size: 7px; letter-spacing: .7px; }.about-brand-strip p { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .about-cta, .why-card { transition: none; }.about-cta:hover, .why-card:hover { transform: none; } }

/* ═══ Why Meyar — luxury trust section ═══ */
.why-luxury { position: relative; overflow: hidden; padding: 42px 0 54px; background: #f8f6f0; direction: rtl; }
.why-luxury::before { position: absolute; top: -180px; left: -130px; width: 430px; height: 430px; border: 1px solid rgba(201,162,39,.12); border-radius: 50%; content: ''; pointer-events: none; }
.why-luxury .container { position: relative; z-index: 1; }
.why-luxury-heading { max-width: 690px; margin: 0 auto 24px; text-align: center; }
.why-luxury-eyebrow { display: block; margin-bottom: 13px; color: #a17a1c; font-size: 10px; font-weight: 850; letter-spacing: 3px; }
.why-luxury-heading .section-title { margin: 0; color: #0b1426; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.8px; }
.why-luxury-subtitle { margin: 13px 0 8px; color: #a17a1c; font-size: 16px; font-weight: 750; }
.why-luxury-description { max-width: 610px; margin: 0 auto; color: #697487; font-size: 13px; line-height: 2.15; }
.why-luxury-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-luxury-card { overflow: hidden; border: 1px solid rgba(11,20,38,.09); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 16px 34px rgba(11,20,38,.065); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.why-luxury-card:hover { border-color: rgba(201,162,39,.45); box-shadow: 0 24px 45px rgba(11,20,38,.12); transform: translateY(-6px); }
.why-luxury-image { position: relative; height: 145px; overflow: hidden; background: #0b1426; }
.why-luxury-image::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(11,20,38,.42)); content: ''; pointer-events: none; }
.why-luxury-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.why-luxury-card:first-child .why-luxury-image img { object-position: center 60%; }
.why-luxury-card:hover .why-luxury-image img { transform: scale(1.045); }
.why-luxury-body { position: relative; min-height: 132px; padding: 31px 18px 17px; text-align: right; }
.why-luxury-icon { position: absolute; top: -25px; right: 20px; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 4px solid #f8f6f0; border-radius: 50%; color: #c9a227; background: #0b1426; box-shadow: 0 8px 18px rgba(11,20,38,.22); }
.why-luxury-icon i { font-size: 21px; line-height: 1; }
.why-luxury-body h3 { margin-bottom: 9px; color: #0b1426; font-size: 16px; font-weight: 850; }
.why-luxury-body p { color: #697487; font-size: 12px; line-height: 2; }
.why-credibility { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); align-items: stretch; margin-top: 26px; overflow: hidden; border: 1px solid rgba(201,162,39,.34); border-radius: 24px; background: rgba(255,255,255,.88); box-shadow: 0 18px 42px rgba(11,20,38,.07); direction: ltr; }
.why-credibility-visual { min-height: 145px; overflow: hidden; background: #0b1426; }
.why-credibility-visual img { display: block; width: 100%; height: 100%; min-height: 145px; object-fit: cover; object-position: center; }
.why-credibility-copy { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 28px; direction: rtl; }
.why-credibility-quote-wrap { flex: 1 1 auto; min-width: 0; }
.why-credibility-quote { margin: 0; color: #0b1426; font-size: clamp(17px, 2vw, 23px); font-weight: 800; line-height: 1.75; }
.why-credibility-signature { display: flex; align-items: center; gap: 12px; max-width: 220px; margin-top: 11px; color: rgba(161,122,28,.55); font-size: 11px; font-weight: 850; letter-spacing: 3px; direction: ltr; }
.why-credibility-signature span { flex: 1; height: 1px; background: rgba(201,162,39,.55); }
.why-credibility-items { display: flex; flex: 0 0 auto; align-items: center; color: #697487; font-size: 11px; font-weight: 750; }
.why-credibility-items span { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; text-align: center; }
.why-credibility-items span + span { margin-right: 17px; padding-right: 17px; border-right: 1px solid rgba(201,162,39,.55); }
.why-credibility-items i { color: #c9a227; font-size: 15px; }
@media (max-width: 1024px) { .why-luxury-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .why-luxury { padding: 58px 0 64px; }
  .why-luxury-heading { margin-bottom: 28px; }
  .why-luxury-description { font-size: 12px; }
  .why-luxury-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-luxury-image { height: 180px; }
  .why-luxury-body { min-height: 0; padding-bottom: 24px; }
  .why-credibility { grid-template-columns: 1fr; margin-top: 34px; }
  .why-credibility-visual { min-height: 175px; }
  .why-credibility-visual img { min-height: 175px; max-height: 210px; }
  .why-credibility-copy { flex-direction: column; gap: 18px; padding: 26px 22px 28px; text-align: center; }
  .why-credibility-quote { margin-bottom: 0; font-size: 19px; }
  .why-credibility-signature { margin-right: auto; margin-left: auto; }
  .why-credibility-items { flex-wrap: wrap; justify-content: center; gap: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { .why-luxury-card, .why-luxury-image img { transition: none; }.why-luxury-card:hover { transform: none; }.why-luxury-card:hover .why-luxury-image img { transform: none; } }

/* ═══ فوتر لوکس معیار ═══ */
.site-footer { position: relative; overflow: hidden; isolation: isolate; background: #07111f url('../img/footer/footer-bg.png') center center / cover no-repeat; color: #cbd3df; }
.site-footer::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(7,17,31,.72), rgba(7,17,31,.58) 45%, rgba(7,17,31,.7)); content: ''; }
.footer-glow { position: absolute; z-index: -1; top: -220px; right: 34%; width: 520px; height: 520px; border: 1px solid rgba(201,162,39,.12); border-radius: 50%; box-shadow: 0 0 110px rgba(201,162,39,.08); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: clamp(28px, 4vw, 70px); padding: 78px 0 56px; }
.footer-brand-fa { margin: 14px 0 10px; color: #f1d27d; font-size: 19px; font-weight: 850; }
.footer-brand-description { max-width: 245px; margin: 0 0 25px; color: #aab5c4; font-size: 12px; line-height: 2; }
.footer-contact { display: grid; gap: 10px; font-size: 11px; line-height: 1.7; }
.footer-contact a, .footer-contact > span { display: flex; align-items: center; gap: 9px; color: #cbd3df; transition: color .2s, transform .2s; }
.footer-contact a:hover { color: #f1d27d; transform: translateX(-4px); }
.footer-contact i { flex: 0 0 18px; color: #d8ad3c; font-size: 16px; text-align: center; }
.footer-col h4 { margin: 4px 0 20px; padding: 0 0 12px; color: #fff; font-size: 14px; font-weight: 850; }
.footer-col h4::after { width: 34px; height: 2px; background: #d8ad3c; }
.footer-col a, .footer-info > span { display: block; padding: 6px 0; color: #aab5c4; font-size: 11px; line-height: 1.8; transition: color .2s, transform .2s; }
.footer-col a:hover { color: #f1d27d; transform: translateX(-5px); }
.footer-info > span { color: #aab5c4; }
.footer-trust { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(216,173,60,.28); border-bottom: 1px solid rgba(216,173,60,.28); }
.footer-trust span { display: inline-flex; align-items: center; gap: 8px; color: #cbd3df; font-size: 10px; white-space: nowrap; }
.footer-trust i { color: #d8ad3c; font-size: 17px; }
.footer-bottom { position: relative; border-top: 0; padding: 19px 0; color: #8996a8; background: rgba(3,10,19,.34); font-size: 10px; }
.footer-bottom .container { gap: 14px 28px; }
.footer-copyright { flex-basis: 100%; text-align: center; overflow-wrap: anywhere; }
.footer-credit a { color: #d8ad3c; }
.footer-credit a:hover { color: #f7e1a0; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 54px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand-description { max-width: 360px; }
  .footer-trust { flex-wrap: wrap; justify-content: center; gap: 16px 28px; }
}
@media (max-width: 700px) {
  .site-footer { background-position: 63% center; }
  .site-footer::before { background: rgba(7,17,31,.78); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 58px 0 38px; }
  .footer-brand { grid-column: auto; }
  .footer-brand-description { max-width: 290px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-trust { align-items: flex-start; flex-direction: column; gap: 13px; padding: 18px 0; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}

/* ═══ رفتار responsive فوتر؛ فقط چیدمان داخلی فوتر تغییر می‌کند ═══ */
@media (min-width: 701px) and (max-width: 1025px) {
  .site-footer { background-position: 58% center; }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 36px;
    padding: 58px 0 38px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-info { grid-column: 1 / -1; }
  .footer-brand-description { max-width: 520px; }
  .footer-contact a,
  .footer-contact > span,
  .footer-col a,
  .footer-info > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .footer-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 8px 0;
  }
  .footer-trust span {
    min-width: 0;
    padding: 10px 12px;
    white-space: normal;
  }
  .footer-bottom .container { gap: 10px 22px; }
}

@media (min-width: 759px) and (max-width: 1025px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 28px;
  }
  .footer-grid > .footer-col {
    grid-column: auto;
    min-width: 0;
  }
  .footer-brand {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 24px;
    align-items: start;
    direction: rtl;
  }
  .footer-brand .footer-brand-fa,
  .footer-brand .footer-brand-description,
  .footer-brand .footer-contact {
    grid-column: 1;
    min-width: 0;
  }
  .footer-brand .footer-contact { width: 100%; }
}

@media (max-width: 700px) {
  .site-footer {
    background-position: 63% center;
    background-size: auto 100%;
    padding-bottom: 72px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
    padding: 44px 0 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-info { grid-column: auto; }
  .footer-brand-description { max-width: none; }
  .footer-contact a,
  .footer-contact > span,
  .footer-col a,
  .footer-info > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .footer-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .footer-trust span {
    min-width: 0;
    justify-content: flex-start;
    padding: 13px 8px;
    white-space: normal;
  }
}

/* ═══ فوتر فشرده برای تبلت کوچک و موبایل افقی ═══ */
@media (min-width: 460px) and (max-width: 758px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(10px, 2.8vw, 22px);
    row-gap: 22px;
    padding: 38px 0 28px;
  }
  .footer-brand {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: clamp(14px, 3vw, 28px);
    align-items: start;
    direction: rtl;
  }
  .footer-brand .footer-brand-fa,
  .footer-brand .footer-brand-description,
  .footer-brand .footer-contact {
    grid-column: 1;
    min-width: 0;
  }
  .footer-brand-fa { font-size: clamp(15px, 3vw, 19px); }
  .footer-brand-description { max-width: none; font-size: clamp(10px, 1.8vw, 12px); }
  .footer-contact {
    min-width: 0;
    font-size: clamp(9px, 1.8vw, 11px);
  }
  .footer-contact a,
  .footer-contact > span,
  .footer-contact a > span,
  .footer-contact > span > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .footer-grid > .footer-col {
    grid-column: auto;
    min-width: 0;
  }
  .footer-col h4 { margin-bottom: 12px; font-size: clamp(12px, 2vw, 14px); }
  .footer-col a,
  .footer-info > span {
    min-width: 0;
    padding: 4px 0;
    font-size: clamp(10px, 1.7vw, 11px);
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .footer-trust { grid-template-columns: minmax(0, 1fr); }
}

/* ═══ کنترل‌های شناور — هماهنگ با تم لوکس معیار ═══ */
.back-top {
  width: 46px; height: 46px; border: 1px solid rgba(216,173,60,.58); border-radius: 14px;
  background: rgba(7,17,31,.94); color: #f1d27d; box-shadow: 0 12px 28px rgba(3,10,19,.28), 0 0 0 4px rgba(216,173,60,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .3s, transform .3s, background .2s, color .2s, box-shadow .2s;
}
.back-top:hover { color: #07111f; background: #d8ad3c; box-shadow: 0 14px 30px rgba(201,162,39,.32), 0 0 0 4px rgba(216,173,60,.12); transform: translateY(-4px); }
.back-top i { font-size: 17px; }
.chat-fab {
  width: 56px; height: 56px; border: 1px solid rgba(216,173,60,.7); background: #0b1426; color: #f1d27d;
  box-shadow: 0 12px 30px rgba(3,10,19,.35), inset 0 0 0 1px rgba(255,255,255,.05);
  animation: none; transition: transform .25s, background .2s, color .2s, box-shadow .2s;
}
.chat-fab:hover { color: #07111f; background: #d8ad3c; box-shadow: 0 16px 34px rgba(201,162,39,.35), 0 0 0 4px rgba(216,173,60,.1); transform: translateY(-4px) scale(1.04); }
.chat-fab i { font-size: 22px; }
.chat-fab-badge {
  top: -5px;
  left: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #071426;
  border-radius: 50%;
  color: #071426;
  background: #D4B038;
  font-family: 'IRANSansXFaNum', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 12px rgba(212, 176, 56, .3);
}

/* ═══ بازطراحی پنل چت هماهنگ با رابط اصلی ═══ */
.chat-panel {
  width: min(390px, calc(100vw - 32px));
  height: 540px;
  max-height: calc(100vh - 118px);
  border: 1px solid rgba(201, 162, 39, .38);
  border-radius: 22px;
  background: #0b1426;
  box-shadow: 0 28px 80px rgba(3, 10, 19, .42), 0 0 0 5px rgba(201, 162, 39, .06);
  direction: rtl;
}
.chat-head {
  position: relative;
  min-height: 78px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(201, 162, 39, .28);
  background:
    radial-gradient(260px 110px at 12% 0%, rgba(212, 164, 55, .16), transparent 70%),
    linear-gradient(135deg, #16243b, #0b1426 75%);
}
.chat-head::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 207, 122, .65), transparent);
  content: '';
}
.chat-head-info { gap: 11px; }
.chat-head-info .online-dot { width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(61, 220, 132, .1), 0 0 14px rgba(61, 220, 132, .7); }
.chat-head-title { color: #f8fafc; font-size: 14px; font-weight: 850; }
.chat-head-sub { margin-top: 4px; color: #9aa8bc; font-size: 10.5px; }
.chat-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 10px;
  color: #aab5c4;
  background: rgba(255, 255, 255, .04);
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.chat-close:hover { color: #0b1426; border-color: #d8ad3c; background: #d8ad3c; transform: rotate(90deg); }
.chat-body {
  padding: 18px 15px;
  background:
    radial-gradient(340px 220px at 90% 0%, rgba(201, 162, 39, .08), transparent 70%),
    #f5f7fc;
  scrollbar-color: rgba(201, 162, 39, .55) transparent;
  scrollbar-width: thin;
}
.chat-body::-webkit-scrollbar { width: 5px; }
.chat-body::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(201, 162, 39, .55); }
.chat-msg { max-width: 88%; }
.chat-bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.95;
  box-shadow: 0 7px 18px rgba(11, 20, 38, .07);
}
.chat-msg.v .chat-bubble {
  border: 1px solid #e1e7ef;
  border-bottom-right-radius: 5px;
  color: #344258;
  background: #fff;
}
.chat-msg.a .chat-bubble {
  border: 1px solid rgba(201, 162, 39, .35);
  border-bottom-left-radius: 5px;
  color: #241a05;
  background: linear-gradient(135deg, #f5d986, #d4a437);
  box-shadow: 0 8px 20px rgba(161, 122, 28, .18);
}
.chat-meta { margin-top: 4px; color: #8793a5; font-size: 9.5px; }
.chat-input {
  padding: 13px;
  border-top: 1px solid rgba(201, 162, 39, .28);
  background: #0b1426;
}
.chat-input input[type="text"] {
  border: 1px solid #dce3ed;
  border-radius: 11px;
  color: #243149;
  background: #fff;
  font-size: 12px;
  box-shadow: inset 0 1px 2px rgba(11, 20, 38, .04);
}
.chat-input input[type="text"]::placeholder { color: #9aa6b7; }
.chat-input input[type="text"]:focus { border-color: #c9a227; box-shadow: 0 0 0 3px rgba(201, 162, 39, .14); }
.chat-input-row { gap: 7px; }
.chat-input-row button {
  width: 44px;
  min-width: 44px;
  border: 1px solid rgba(240, 207, 122, .45);
  border-radius: 11px;
  color: #241a05;
  background: linear-gradient(135deg, #f0cf7a, #c9a227);
  box-shadow: 0 7px 16px rgba(201, 162, 39, .2);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.chat-input-row button:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 22px rgba(201, 162, 39, .3); }
@media (max-width: 600px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { right: -2px; width: min(390px, calc(100vw - 32px)); height: min(540px, calc(100vh - 112px)); border-radius: 19px; }
}
.footer-bottom .container { justify-content: center; text-align: center; }

/* ═══ صفحه قیمت‌ها — هم‌راستا با تم اصلی ═══ */
.ai-analysis-page { position: relative; min-height: 640px; padding-top: 58px; padding-bottom: 78px; }
.ai-analysis-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: #a17a1c; font-size: 12px; font-weight: 700; }
.ai-analysis-back:hover { color: #071426; }
.ai-analysis-card { max-width: 820px; margin: 0 auto; padding: 30px 34px; border: 1px solid rgba(201,162,39,.28); border-radius: 24px; background: linear-gradient(145deg, #10223a, #071426 78%); box-shadow: 0 24px 60px rgba(11,20,38,.2); color: #dbe7f4; }
.ai-analysis-head { display: flex; align-items: center; gap: 13px; padding-bottom: 20px; border-bottom: 1px solid rgba(148,163,184,.16); }
.ai-analysis-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; border: 1px solid rgba(212,175,55,.5); border-radius: 14px; color: #f0cf7a; background: rgba(212,175,55,.12); font-size: 22px; }
.ai-analysis-label { color: #d4af37; font-size: 10px; }
.ai-analysis-card h2 { margin-top: 4px; color: #fff; font-size: clamp(18px, 3vw, 27px); line-height: 1.6; }
.ai-analysis-topic { margin-top: 20px; padding: 11px 14px; border-right: 3px solid #d4af37; border-radius: 9px; color: #94a3b8; background: rgba(2,6,23,.3); font-size: 11px; }
.ai-analysis-topic b { color: #f1d27d; font-weight: 700; }
.ai-analysis-loading { display: grid; justify-items: center; gap: 12px; padding: 58px 12px 38px; color: #94a3b8; font-size: 12px; text-align: center; }
.ai-analysis-loading[hidden],
.ai-analysis-content[hidden],
.ai-analysis-error[hidden] { display: none !important; }
.ai-analysis-spinner { width: 28px; height: 28px; border: 2px solid rgba(212,175,55,.25); border-top-color: #d4af37; border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-analysis-content { padding-top: 24px; }
.ai-analysis-explanation { color: #dbe7f4; font-size: 14px; line-height: 2.35; white-space: pre-line; }
.ai-analysis-content h2 { margin: 28px 0 12px; color: #f1d27d; font-size: 15px; }
.ai-analysis-content ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.ai-analysis-content li { position: relative; padding-right: 17px; color: #b7c7d9; font-size: 12px; line-height: 2; }
.ai-analysis-content li::before { position: absolute; top: .82em; right: 0; width: 6px; height: 6px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 8px rgba(212,175,55,.55); content: ''; }
.ai-analysis-disclaimer { margin-top: 26px; padding: 12px 14px; border: 1px solid rgba(214,58,58,.48); border-radius: 10px; color: #fecaca; background: rgba(127,29,29,.28); box-shadow: inset 3px 0 0 #d63a3a, 0 8px 22px rgba(127,29,29,.12); font-size: 10px; line-height: 2; }
.ai-analysis-error { margin-top: 25px; padding: 16px; border: 1px solid rgba(220,38,38,.25); border-radius: 10px; color: #fca5a5; background: rgba(127,29,29,.16); font-size: 12px; text-align: center; }
.ai-analysis-modal[hidden] { display: none; }
.ai-analysis-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 22px; }
.ai-analysis-modal-backdrop { position: absolute; inset: 0; background: rgba(2,8,18,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ai-analysis-modal-dialog { position: relative; z-index: 1; width: min(850px, 100%); max-height: min(88vh, 760px); overflow-y: auto; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.46); }
.ai-analysis-modal-dialog {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ai-analysis-modal-dialog::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.ai-analysis-modal-dialog .ai-analysis-card { max-width: none; margin: 0; }
.ai-analysis-modal-close { position: absolute; z-index: 2; top: 13px; left: 13px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(212,175,55,.35); border-radius: 50%; color: #cbd5e1; background: rgba(7,20,38,.75); cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.ai-analysis-modal-close:hover { color: #071426; background: #d4b038; transform: rotate(90deg); }
.ai-analysis-modal-close i { font-size: 15px; }
body.ai-modal-open { overflow: hidden; }
.market-overview-modal[hidden] { display: none; }
.market-overview-modal { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 22px; }
.market-overview-modal-backdrop { position: absolute; inset: 0; background: rgba(2,8,18,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.market-overview-modal-dialog { position: relative; z-index: 1; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.46); scrollbar-width: none; -ms-overflow-style: none; }
.market-overview-modal-dialog::-webkit-scrollbar { display: none; width: 0; height: 0; }
.market-overview-modal-dialog .market-dashboard { width: 100%; max-width: none; }
.market-overview-modal-dialog .market-insight-body { gap: 14px; padding: 18px 18px 20px; }
.market-overview-modal-dialog .market-insight-chart-wide { flex: 0 0 auto; }
.market-overview-modal-dialog .marketChart { height: clamp(250px, 36vh, 360px); min-height: 250px; }
.market-overview-modal-close { position: absolute; z-index: 2; top: 13px; left: 13px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(212,175,55,.35); border-radius: 50%; color: #cbd5e1; background: rgba(7,20,38,.75); cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.market-overview-modal-close:hover { color: #071426; background: #d4b038; transform: rotate(90deg); }
.market-overview-modal-close i { font-size: 15px; }
body.market-overview-modal-open { overflow: hidden; }
@media (min-width: 601px) and (max-width: 720px) {
  .market-overview-modal { padding: 12px; }
  .market-overview-modal-dialog { width: 100%; max-height: calc(100vh - 24px); border-radius: 20px; }
  .market-overview-modal-dialog .market-insight-body { gap: 12px; padding: 16px 12px 18px; }
  .market-overview-modal-dialog .marketChart { height: clamp(220px, 46vw, 300px); min-height: 220px; }
}
@media (max-width: 600px) {
  .ai-analysis-page { min-height: 520px; padding-top: 36px; padding-bottom: 54px; }
  .ai-analysis-card { padding: 23px 18px; border-radius: 18px; }
  .ai-analysis-explanation { font-size: 12.5px; line-height: 2.2; }
  .ai-analysis-modal { padding: 10px; }
  .ai-analysis-modal-dialog { max-height: 92vh; border-radius: 18px; }
  .market-overview-modal { padding: 10px; }
  .market-overview-modal-dialog { width: 100%; max-height: calc(100vh - 20px); border-radius: 18px; }
  .market-overview-modal-dialog .market-dashboard { min-height: 0; }
  .market-overview-modal-dialog .market-insight-body { gap: 14px; padding: 16px 12px 20px; }
  .market-overview-modal-dialog .marketChart { height: clamp(240px, 42vh, 340px); min-height: 240px; }
}
@media (max-width: 465px) {
  .market-overview-modal-dialog .market-insight-asset-content {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    align-items: center;
  }
  .market-overview-modal-dialog .market-insight-asset-content > * { min-width: 0; }
  .market-overview-modal-dialog .market-insight-asset-title-row { grid-column: 1; justify-self: start; }
  .market-overview-modal-dialog .market-insight-chart-label { grid-column: 2; justify-self: end; min-width: 0; }
  .market-overview-modal-dialog .market-insight-asset-price-row {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    white-space: normal;
  }
  .market-overview-modal-dialog .market-insight-asset-price-row small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
main#prices.prices-page {
  margin-top: 0; padding-top: 58px; padding-bottom: 72px; border-radius: 0;
  background: radial-gradient(circle at 88% 4%, rgba(201,162,39,.08), transparent 22%), #f5f7fc;
}
main#prices.prices-page .prices-page-head { position: relative; margin-bottom: 32px; text-align: center; }
main#prices.prices-page .prices-back { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 7px; color: #a17a1c; font-weight: 700; }
main#prices.prices-page .prices-back i { order: -1; font-size: 16px; }
main#prices.prices-page .prices-back:hover { color: #0b1426; }
main#prices.prices-page .prices-page-head h1 { color: #0b1426; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.5px; }
main#prices.prices-page .prices-page-head p { color: #697487; }
main#prices.prices-page .prices-page-updated { position: absolute; top: 3px; left: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding: 7px 10px; border-radius: 10px; color: #94a3b8; background: #EDF3FB; font-size: 10px; direction: rtl; text-align: right; }
main#prices.prices-page .prices-page-updated strong { color: #64748b; background: #EDF3FB; font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
main#prices.prices-page .prices-page-updated b { color: #c9a227; font-weight: 500; }
main#prices.prices-page .prices-filter-tabs { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto 30px; padding: 0 0 1px; width: 100%; max-width: 760px; border-bottom: 1px solid #e2e8f0; direction: rtl; }
main#prices.prices-page .prices-filter-tab { position: relative; min-width: 78px; padding: 10px 17px 12px; border: 0; color: #000; background: transparent; cursor: pointer; font: 700 14px var(--font); transition: color .2s, transform .2s; }
main#prices.prices-page .prices-filter-tab::after { position: absolute; right: 18%; bottom: -2px; left: 18%; height: 2px; border-radius: 99px; background: #000; content: ''; opacity: 0; transform: scaleX(.45); transition: opacity .2s, transform .2s; }
main#prices.prices-page .prices-filter-tab:hover { color: #000; transform: translateY(-1px); }
main#prices.prices-page .prices-filter-tab.is-active { color: #000; }
main#prices.prices-page .prices-filter-tab.is-active::after { opacity: 1; transform: scaleX(1); }
main#prices.prices-page .price-card.is-filtered-out { display: none; }
@keyframes prices-card-drop {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
main#prices.prices-page .price-card.market-filter-enter {
  animation: prices-card-drop .45s cubic-bezier(.22, .8, .35, 1) both;
}
main#prices.prices-page .tables-grid { gap: 20px; margin-bottom: 0; scroll-margin-top: 96px; }
main#prices.prices-page .price-card[data-market-container] { border-radius: 20px; box-shadow: 0 18px 48px rgba(11,20,38,.14), inset 0 1px 0 rgba(255,255,255,.05); }
main#prices.prices-page .price-card[data-market-container]:hover { transform: translateY(-5px); box-shadow: 0 25px 58px rgba(11,20,38,.2), inset 0 1px 0 rgba(255,255,255,.08); }
main#prices.prices-page .price-card[data-market-container] .price-card-head { background: linear-gradient(135deg, #0b1426, #16243b); }
main#prices.prices-page .market-list { background: rgba(7,17,31,.34); }
main#prices.prices-page .market-asset { min-height: 56px; }
@media (max-width: 600px) {
  main#prices.prices-page { padding-top: 38px; padding-bottom: 54px; }
  main#prices.prices-page .prices-page-head { margin-bottom: 24px; padding-top: 38px; }
  main#prices.prices-page .prices-back { top: 0; right: 0; }
  main#prices.prices-page .prices-page-updated {
    position: static;
    width: max-content;
    margin: 0 0 14px auto;
    align-items: flex-end;
    text-align: right;
  }
  main#prices.prices-page .prices-filter-tabs { width: 100%; justify-content: stretch; gap: 0; margin-bottom: 24px; }
  main#prices.prices-page .prices-filter-tab { min-width: 0; flex: 1; padding: 8px 5px 10px; font-size: 13px; }
}

/* ═══ طراحی نهایی کارت‌های قیمت ═══ */
main#prices.prices-page .tables-grid .price-card[data-market-container] {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(148 163 184);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
main#prices.prices-page .tables-grid .price-card[data-market-container]:hover {
  border-color: rgba(201, 162, 39, .48);
  box-shadow: 0 18px 40px rgba(148, 163, 184, .25);
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .price-card-head {
  min-height: 52px;
  padding: 10px 16px;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(135deg, #fffdf5, #fff);
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .price-card-head::before,
main#prices.prices-page .tables-grid .price-card[data-market-container] .price-card-head::after { display: none; }
main#prices.prices-page .tables-grid .price-card[data-market-container] .price-card-head h2 {
  color: #071a33;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .price-card-head h2::before {
  display: none;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-list {
  padding: 6px 12px 8px;
  background: #fff;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-columns-head {
  grid-template-columns: var(--market-columns);
  padding-inline: 22px;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom-color: #eef2f7;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-columns-head span:nth-child(3) { color: #a17a1c; }
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-columns-head span:nth-child(4) { color: #15803d; }
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset {
  color: #071a33;
  border-bottom-color: #eef2f7;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset:hover {
  background: #fffdf5;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-title > i,
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-price,
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-price small {
  color: #071a33;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-price small {
  color: #64748b;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .table-expand-toggle {
  border-top-color: #eef2f7;
  color: #a17a1c;
  background: #fff;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .table-expand-toggle:hover {
  color: #071a33;
  background: #fffdf5;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset {
  grid-template-columns: var(--market-columns);
  column-gap: 10px;
  min-height: 50px;
  padding: 7px 10px;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-title {
  grid-column: 1;
  grid-row: 1;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote {
  grid-row: 1;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-change {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  justify-self: end;
  justify-content: flex-end;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote strong {
  color: #071a33;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote em {
  color: #64748b;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote.buy {
  grid-column: 4;
}
main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote.sell {
  grid-column: 3;
}
@media (max-width: 600px) {
  main#prices.prices-page .tables-grid .price-card[data-market-container] {
    --market-columns: minmax(0, 1fr) 68px 68px 48px;
  }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-columns-head {
    column-gap: 6px;
    padding-inline: 14px;
    font-size: 8px;
  }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-columns-head span { padding-right: 4px; }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset {
    grid-template-columns: var(--market-columns);
    column-gap: 6px;
    row-gap: 0;
  }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-title { grid-column: 1; }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-change { grid-column: 2; }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote.buy { grid-column: 4; grid-row: 1; }
  main#prices.prices-page .tables-grid .price-card[data-market-container] .market-asset-quote.sell { grid-column: 3; grid-row: 1; }
}

/* ═══ رابط چت مطابق طرح مرجع ═══ */
.chat-panel {
  width: min(360px, calc(100vw - 32px));
  height: 510px;
  max-height: calc(100vh - 110px);
  border: 1px solid rgba(104, 143, 190, .42);
  border-radius: 18px;
  background: #071426;
  box-shadow: 0 28px 75px rgba(2, 9, 20, .52), 0 0 0 4px rgba(56, 91, 137, .11);
  transition: height .58s cubic-bezier(.22, .75, .25, 1), box-shadow .3s;
}
.chat-panel.is-minimized { height: 66px; min-height: 66px; }
.chat-panel.is-minimized .chat-body,
.chat-panel.is-minimized .chat-input { display: none; }
.chat-head {
  min-height: 66px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(88, 127, 174, .34);
  background: linear-gradient(135deg, #0d2039, #071426 78%);
}
.chat-head::after { right: 12px; left: 12px; background: linear-gradient(90deg, transparent, rgba(102, 145, 195, .5), transparent); }
.chat-head-info { gap: 10px; }
.chat-head-brand {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(212, 176, 56, .65);
  border-radius: 50%;
  background: rgba(212, 176, 56, .08);
  box-shadow: inset 0 0 0 3px rgba(212, 176, 56, .06), 0 0 18px rgba(212, 176, 56, .1);
}
.chat-head-brand img { width: 25px; height: 30px; object-fit: contain; }
.chat-head-title { font-size: 13px; font-weight: 800; }
.chat-head-sub { margin-top: 3px; color: #8294ad; font-size: 10px; }
.chat-head-actions { display: flex; align-items: center; gap: 5px; direction: rtl; }
.chat-minimize,
.chat-close {
  display: inline-grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(102, 145, 195, .32);
  border-radius: 50%;
  color: #9bb0c9;
  background: rgba(6, 18, 35, .62);
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.chat-minimize:hover,
.chat-close:hover { color: #071426; border-color: #d4b038; background: #d4b038; }
.chat-close:hover { transform: rotate(90deg); }
.chat-minimize i,
.chat-close i { font-size: 14px; line-height: 1; }
.chat-body {
  padding: 16px 12px;
  background: radial-gradient(330px 240px at 8% 0%, rgba(34, 70, 113, .27), transparent 72%), #071426;
  scrollbar-color: rgba(89, 128, 175, .65) transparent;
}
.chat-body::-webkit-scrollbar-thumb { background: rgba(89, 128, 175, .65); }
.chat-msg { max-width: 86%; }
.chat-msg.v { align-self: flex-end; align-items: flex-end; }
.chat-msg.a {
  align-self: flex-start;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  column-gap: 7px;
  align-items: start;
  direction: ltr;
}
.chat-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(212, 176, 56, .48);
  border-radius: 50%;
  background: rgba(212, 176, 56, .08);
}
.chat-avatar img { width: 19px; height: 23px; object-fit: contain; }
.chat-bubble {
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.95;
  box-shadow: 0 9px 21px rgba(0, 0, 0, .16);
}
.chat-msg.a .chat-bubble {
  grid-column: 2;
  grid-row: 1;
  border: 1px solid rgba(75, 115, 164, .34);
  border-bottom-right-radius: 5px;
  color: #dbe7f4;
  background: linear-gradient(145deg, #142b49, #0d2039);
  direction: rtl;
}
.chat-msg.a .chat-avatar { grid-column: 1; grid-row: 1; }
.chat-msg.a .chat-meta { grid-column: 2; grid-row: 2; direction: rtl; text-align: right; }
.chat-msg.v .chat-bubble {
  border: 1px solid rgba(240, 207, 122, .42);
  border-bottom-left-radius: 5px;
  color: #2a210c;
  background: linear-gradient(135deg, #f2cb62, #d4a437);
  box-shadow: 0 9px 21px rgba(161, 122, 28, .18);
}
.chat-meta { color: #657d9b; font-size: 9px; }
.chat-input {
  padding: 11px;
  border-top: 1px solid rgba(88, 127, 174, .32);
  background: #071426;
}
.chat-input input[type="text"] {
  border: 1px solid rgba(82, 120, 166, .5);
  border-radius: 10px;
  color: #dce8f5;
  background: #0d2039;
  font-size: 11.5px;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .12);
}
.chat-input input[type="text"]::placeholder { color: #7389a4; }
.chat-input input[type="text"]:focus { border-color: #d4b038; box-shadow: 0 0 0 3px rgba(212, 176, 56, .12); }
.chat-input-row { gap: 6px; }
.chat-input-row button {
  width: 42px;
  min-width: 42px;
  border: 1px solid rgba(240, 207, 122, .5);
  border-radius: 50%;
  color: #241a05;
  background: linear-gradient(135deg, #f0cf7a, #d4a437);
}
@media (max-width: 600px) {
  .chat-panel { width: min(360px, calc(100vw - 32px)); height: min(510px, calc(100vh - 110px)); }
}

/* تراز پیام‌ها و آواتار کاربر */
.chat-msg.a { align-self: flex-end; }
.chat-msg.v {
  align-self: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 29px;
  column-gap: 7px;
  align-items: start;
  direction: ltr;
}
.chat-msg.v .chat-avatar { grid-column: 2; grid-row: 1; justify-self: end; }
.chat-msg.v .chat-bubble {
  grid-column: 1;
  grid-row: 1;
  direction: rtl;
  border-radius: 14px;
}
.chat-msg.v .chat-meta {
  grid-column: 1;
  grid-row: 2;
  direction: rtl;
  text-align: right;
}
.chat-user-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  margin-top: 0;
  border: 1px solid #D4B038;
  border-radius: 50%;
  color: #D4B038;
  background: rgba(212, 176, 56, .1);
}
.chat-user-avatar i { color: #D4B038; font-size: 14px; line-height: 1; }
.chat-msg.a .chat-bubble { border-radius: 14px; }
.chat-input-row button,
.chat-input-row button i { color: #071426; }

/* ═══ هدر تبلت — جلوگیری از فشردگی و بیرون‌زدگی جستجو ═══ */
@media (min-width: 769px) and (max-width: 920px) {
  .header-inner {
    min-height: 76px;
    gap: 10px;
    padding: 0 14px;
    flex-wrap: nowrap;
  }
  .brand {
    flex: 0 0 64px;
    order: 1;
  }
  .brand-logo {
    width: 58px;
    height: 75px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    height: auto;
    padding: 10px 14px 16px;
    flex-direction: column;
    align-items: stretch;
    background: #0b1220;
    box-shadow: 0 20px 40px rgba(3, 8, 18, .34);
    border-bottom: 1px solid rgba(201, 162, 39, .22);
  }
  .main-nav.open { display: flex; }
  .main-nav a,
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: #cbd5e1;
    font: 600 13px var(--font);
    text-align: right;
    transition: color .25s, background .25s;
  }
  .nav-dropdown-toggle { justify-content: flex-start; }
  .main-nav a:hover,
  .main-nav a.active,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle.active {
    border-radius: 8px;
    color: #f4d77c;
    background: rgba(201, 162, 39, .08);
  }
  .nav-dropdown-toggle i {
    margin-right: 6px;
    transition: transform .25s;
  }
  .nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
  .main-nav a::after,
  .nav-dropdown-toggle::after { right: 10px; left: auto; bottom: 7px; width: 28px; }
  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0 12px 5px 0;
    padding: 3px 7px;
    border: 0;
    border-right: 1px solid rgba(201, 162, 39, .3);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 7px 10px; }
  .header-actions {
    flex: 0 1 auto;
    order: 2;
    margin-right: 0;
    margin-left: auto;
  }
  .header-search {
    width: min(38vw, 210px);
    min-width: 150px;
    height: 34px;
  }
  .nav-toggle { display: grid; order: 3; }
}

/* رفتار و ظاهر مشترک آیتم‌های منوی بازشونده در تبلت و موبایل */
@media (max-width: 920px) {
  .main-nav a,
  .nav-dropdown-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: #cbd5e1;
    font: 600 13px var(--font);
    text-align: right;
    transition: color .25s, background .25s;
  }
  .nav-dropdown-toggle { justify-content: flex-start; }
  .main-nav a:hover,
  .main-nav a.active,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle.active {
    border-radius: 8px;
    color: #f4d77c;
    background: rgba(201, 162, 39, .08);
  }
  .nav-dropdown-toggle i {
    margin-right: 6px;
    transition: transform .25s;
  }
  .nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
  .main-nav a::after,
  .nav-dropdown-toggle::after { right: 10px; left: auto; bottom: 7px; width: 28px; }
  .nav-dropdown-menu a { min-height: 38px; padding: 7px 10px; background: transparent; }
}

/* ═══ چیدمان مخصوص موبایل‌های کوچک مثل iPhone SE ═══ */
@media (max-width: 430px) {
  .header-inner {
    min-height: 70px;
    gap: 8px;
    padding: 0 10px;
    flex-wrap: nowrap;
  }
  .brand {
    flex: 0 0 56px;
    min-width: 56px;
    order: 1;
  }
  .brand-logo { width: 54px; height: 70px; }
  .nav-toggle {
    flex: 0 0 auto;
    order: 2;
    display: grid;
  }
  .header-actions {
    flex: 0 1 auto;
    order: 3;
    margin-right: 0;
    margin-left: 0;
  }
  .header-search {
    width: min(45vw, 170px);
    min-width: 0;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-analysis-modal-dialog,
  .chat-panel { animation: none; }
}
