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

: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: 'Vazirmatn', Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
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 { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══ نوار وضعیت: تاریخ / ساعت / آنلاین ═══ */
.status-bar {
  background: #14151c;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 12.5px;
  color: #b9bdcc;
}
.status-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.status-datetime { display: flex; align-items: center; gap: 10px; }
.status-sep { color: rgba(212, 164, 55, .5); }
.status-clock { font-variant-numeric: tabular-nums; color: var(--gold-light); font-weight: 700; letter-spacing: 1px; }
.status-online { display: flex; align-items: center; gap: 8px; color: #3ddc84; font-weight: 600; }
.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 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-bar {
  background: linear-gradient(90deg, #1c1e26, #2d3040, #1c1e26);
  border-bottom: 1px solid rgba(212, 164, 55, .35);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 60;
}
.ticker-bar::before, .ticker-bar::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.ticker-bar::before { right: 0; background: linear-gradient(to left, #1c1e26, transparent); }
.ticker-bar::after  { left: 0;  background: linear-gradient(to right, #1c1e26, transparent); }
.ticker-track {
  display: inline-flex;
  animation: ticker-ltr 45s linear infinite;
  will-change: transform;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
/* حرکت از چپ به راست */
@keyframes ticker-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.ticker-group { display: inline-flex; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 26px;
  border-left: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
}
.ticker-name  { color: #b9bdcc; }
.ticker-price { color: var(--gold-light); font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker-change { font-size: 11px; color: #8a8fa3; }
.ticker-change.up   { color: #3ddc84; }
.ticker-change.down { color: #ff6b6b; }

/* ═══ هدر ═══ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 164, 55, .18);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 30px rgba(35, 37, 45, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand-logo { height: 52px; transition: transform .3s; }
.brand:hover .brand-logo { transform: scale(1.05); }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 18px; border-radius: 12px; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); position: relative; transition: color .25s, background .25s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-dark); background: rgba(212, 164, 55, .1); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--gold-dark); cursor: pointer; }

/* ═══ هیرو ═══ */
.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-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);
}
.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: var(--shadow); 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);
}
.head-time { font-size: 12px; color: #8a8fa3; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.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-logo { height: 80px; }
.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.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; }
  .ticker-track { animation-duration: 90s; }
}

/* ═══ فوتر: امضای طراح ═══ */
.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 { background: none; border: none; color: #8a8fa3; font-size: 16px; cursor: pointer; padding: 4px; }
.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 svg { transform: scaleX(-1); }

/* ═══ ریسپانسیو ═══ */
@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: 'Times New Roman', serif; 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 svg { width: 32px; height: 32px; }
.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) {
  .main-nav {
    display: none; position: absolute; top: 74px; right: 0; left: 0;
    background: #fffdf7; flex-direction: column; padding: 14px 20px;
    box-shadow: 0 20px 40px rgba(35, 37, 45, .12); border-bottom: 1px solid rgba(212, 164, 55, .2);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 13px; }
  .price-table td, .price-table thead th { padding: 9px 10px; }
  .status-inner { font-size: 11px; }
  .chat-widget { bottom: 18px; right: 18px; }
  .chart-wrap { height: 280px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
}
