/*
Theme Name: Aslani Gold
Theme URI: https://example.com/aslani-gold
Author: Aslani Gold
Description: قالب فارسی اعلام قیمت طلا، سکه، آب‌شده و شمش با صفحات اصلی، شمش‌ها و درباره ما.
Version: 1.0.48
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: zarin-nerkh
*/

:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #fbfaf7;
  --line: #e8e0d3;
  --gold: #c8962e;
  --gold-soft: #fff4d7;
  --green: #0f4f45;
  --green-soft: #e6f3ef;
  --red: #b42318;
  --red-soft: #fff0ee;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.09);
}

* { box-sizing: border-box; }

.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;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 224, 211, 0.86);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.page-inner,
.main,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand-logo { width: 100px; height: 100px; display: block; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; }
.menu-toggle span { width: 20px; height: 2px; border-radius: 999px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav,
.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.call-button,
.primary-action,
.secondary-action,
.panel-action,
.bar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.call-button {
  min-height: 44px;
  padding: 0 16px;
  background: var(--green);
  color: var(--white);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(270deg, rgba(17, 24, 39, 0.78) 0%, rgba(17, 24, 39, 0.58) 42%, rgba(17, 24, 39, 0.05) 100%),
    var(--hero-image, none) center / cover no-repeat;
  color: var(--white);
}

.hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 88px 0 34px; }
.hero-content { width: min(610px, 100%); margin-left: auto; margin-right: 0; text-align: right; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff4d7; font-size: 13px; font-weight: 900; }
h1 { margin: 0; max-width: 650px; font-size: clamp(40px, 6vw, 72px); line-height: 1.15; }
.hero-copy { margin: 18px 0 28px; max-width: 560px; color: rgba(255,255,255,.82); font-size: 18px; font-weight: 600; }
.hero-actions, .bar-teaser-actions, .action-row { display: flex; flex-wrap: wrap; gap: 12px; }
.primary-action, .secondary-action { min-height: 50px; padding: 0 20px; }
.primary-action { background: var(--gold); color: #211706; }
.secondary-action { border: 1px solid rgba(255,255,255,.3); color: var(--white); }

.hero-prices { margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price-card { min-height: 150px; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(18px); }
.price-title { margin: 0 0 8px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 800; }
.price-value { margin: 0; font-size: 26px; line-height: 1.45; font-weight: 900; color: var(--white); }
.price-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: rgba(255,255,255,.78); font-size: 12px; font-weight: 800; }
.trend-up, .trend-down, .trend-flat { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-height: 28px; padding: 0; border-radius: 999px; font-size: 17px; line-height: 1; }
.trend-up { background: rgba(230,243,239,.18); color: #9ff0d2; }
.trend-down { background: rgba(255,240,238,.18); color: #ffb4aa; }
.trend-flat { background: rgba(255,244,215,.18); color: #ffe3a3; }

.main { padding: 54px 0 72px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 30px; line-height: 1.3; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.update-badge { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 900; white-space: nowrap; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 22px; align-items: start; }
.market-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.market-layout > .market-stack:first-child {
  position: sticky;
  top: 100px;
  align-self: start;
}
.market-side { gap: 14px; }
.table-shell, .contact-panel, .notice, .panel, .info-card, .map-panel, .product-card, .bar-teaser, .parsian-panel, .chart-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); }
.table-shell { overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
th { background: #f5f1ea; color: #475467; font-size: 13px; font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.asset-name { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.asset-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); flex: 0 0 auto; }
.price-cell { font-size: 18px; font-weight: 900; white-space: nowrap; }
.unit { color: var(--muted); font-size: 12px; font-weight: 800; }
.change { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; min-height: 32px; padding: 0; border-radius: 999px; font-size: 18px; line-height: 1; font-weight: 900; white-space: nowrap; }
.positive { background: var(--green-soft); color: var(--green); }
.negative { background: var(--red-soft); color: var(--red); }
.neutral { background: var(--gold-soft); color: #8a5c0f; }

.parsian-panel { overflow: hidden; }
.parsian-titlebar { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
.parsian-titlebar h3, .chart-head h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.parsian-titlebar p, .chart-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.parsian-titlebar span { display: inline-flex; min-height: 32px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--gold-soft); color: #8a5c0f; font-size: 12px; font-weight: 900; white-space: nowrap; }
.parsian-note { margin: 0; padding: 14px 18px 18px; color: var(--muted); font-size: 13px; font-weight: 800; border-top: 1px solid var(--line); }
.parsian-table th, .parsian-table td { padding: 14px 16px; }
.parsian-table .price-cell { font-size: 16px; }

.chart-panel { overflow: visible; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.chart-tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chart-tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 900; white-space: nowrap; }
.chart-tab.active { background: var(--green); color: var(--white); }
.chart-panel[data-chart="coin"] .chart-tab.active { background: var(--gold); color: #2f2306; }
.chart-body { padding: 20px 20px 0; }
.chart-canvas { position: relative; min-height: 260px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(to bottom, rgba(17,24,39,.06) 1px, transparent 1px) 0 0 / 100% 52px, linear-gradient(to left, rgba(17,24,39,.05) 1px, transparent 1px) 0 0 / 72px 100%, linear-gradient(180deg, #ffffff, #fbfaf7); overflow: visible; outline: none; }
.chart-line { position: absolute; inset: 24px 22px 50px; display: block; width: calc(100% - 44px); height: calc(100% - 74px); overflow: visible; filter: drop-shadow(0 8px 18px rgba(15,79,69,.14)); pointer-events: none; }
.chart-line polyline { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-panel[data-chart="coin"] .chart-line polyline { stroke: var(--gold); filter: drop-shadow(0 8px 18px rgba(200,150,46,.16)); }
.chart-points { position: absolute; inset: 24px 22px 50px; pointer-events: none; }
.chart-range { position: absolute; top: 24px; bottom: 50px; left: 0; z-index: 3; width: 92px; border-left: 2px solid rgba(15,79,69,.18); opacity: .5; pointer-events: none; }
.chart-range span { position: absolute; left: 8px; display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 32px; padding: 0 8px; border: 1px solid rgba(15,79,69,.16); border-radius: 8px; background: var(--white); color: var(--green); font-size: 11px; font-weight: 900; line-height: 1.45; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-range span { top: calc(var(--y, 50) * 1%); transform: translateY(-50%); }
.chart-range span[data-chart-range="mid"] { color: #8a5c0f; border-color: rgba(200,150,46,.22); }
.chart-panel[data-chart="coin"] .chart-range span { color: #8a5c0f; border-color: rgba(200,150,46,.24); }
.chart-point { position: absolute; z-index: 4; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 16px; height: 16px; padding: 0; border: 3px solid var(--white); border-radius: 50%; background: var(--green); box-shadow: 0 8px 18px rgba(15,79,69,.22); cursor: pointer; opacity: 0; pointer-events: auto; transform: translate(-50%, -50%) scale(.72); transition: opacity .16s ease, transform .16s ease; }
.chart-canvas:hover .chart-point, .chart-canvas:focus-within .chart-point { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.chart-panel[data-chart="coin"] .chart-point { background: var(--gold); box-shadow: 0 8px 18px rgba(200,150,46,.26); }
.chart-point::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 10; min-width: 148px; padding: 9px 10px; border: 1px solid rgba(17,24,39,.1); border-radius: 8px; background: #111827; color: var(--white); font-size: 12px; font-weight: 900; line-height: 1.6; opacity: 0; pointer-events: none; text-align: center; transform: translate(-50%, 6px); transition: opacity .16s ease, transform .16s ease; white-space: pre-line; }
.chart-point::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 5; border: 6px solid transparent; border-top-color: #111827; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .16s ease; }
.chart-point:hover, .chart-point:focus-visible { z-index: 8; outline: none; transform: translate(-50%, -50%) scale(1.16); }
.chart-point:hover::after, .chart-point:focus-visible::after, .chart-point:hover::before, .chart-point:focus-visible::before { opacity: 1; }
.chart-point:hover::after, .chart-point:focus-visible::after { transform: translate(-50%, 0); }
.chart-axis { position: absolute; right: 20px; left: 20px; bottom: 14px; display: flex; direction: ltr; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; }
.chart-axis span { direction: rtl; }
.chart-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 20px 20px; }
.chart-stat { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; }
.chart-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.chart-stat strong { display: block; margin-top: 4px; font-size: 17px; line-height: 1.45; white-space: nowrap; }

.contact-panel { padding: 24px; position: sticky; top: 100px; }
.market-side .contact-panel { position: static; }
.contact-panel h3 { margin: 0 0 8px; font-size: 22px; }
.contact-panel p { margin: 0 0 18px; color: var(--muted); font-weight: 700; }
.phone-card { display: grid; gap: 10px; padding: 18px; border-radius: 8px; background: #f5f1ea; }
.phone-label { color: var(--muted); font-size: 13px; font-weight: 900; }
.phone-number, .ltr { direction: ltr; text-align: right; color: var(--green); }
.phone-number { font-size: 24px; font-weight: 900; }
.panel-action { width: 100%; min-height: 50px; margin-top: 14px; padding: 0 16px; background: var(--ink); color: var(--white); text-align: center; line-height: 1.4; }

.bar-section { margin-top: 54px; }
.bar-teaser { min-height: 330px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 0; overflow: hidden; }
.bar-teaser-media { min-height: 330px; background: var(--bar-image, none) center / cover no-repeat; }
.bar-teaser-content { padding: 34px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.bar-teaser-content h3 { margin: 0; font-size: 28px; line-height: 1.4; }
.bar-teaser-content p { margin: 0; color: var(--muted); font-weight: 700; }
.bar-teaser-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bar-teaser-stat { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; }
.bar-teaser-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 900; }
.bar-teaser-stat strong { display: block; margin-top: 4px; font-size: 18px; line-height: 1.5; }
.bar-teaser-actions .primary-action { background: var(--green); color: var(--white); }

.page-hero { padding: 72px 0 44px; background: linear-gradient(135deg, rgba(15,79,69,.95), rgba(17,24,39,.84)), var(--hero-image, none) center / cover no-repeat; color: var(--white); }
.page-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.25; }
.page-hero p { width: min(720px, 100%); margin: 16px 0 0; color: rgba(255,255,255,.8); font-size: 17px; font-weight: 700; }
.toolbar { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 38px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 900; }
.toolbar button.chip { appearance: none; -webkit-appearance: none; cursor: pointer !important; }
.toolbar button.chip:hover { border-color: rgba(255,255,255,.56); background: rgba(255,255,255,.18); }
.chip.active { border-color: var(--gold); background: var(--gold); color: #211706; }

.products-section, .about-main { padding: 42px 0 70px; }
.section-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.sort-control { position: relative; }
.sort-trigger { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; font-family: inherit; font-size: 20px; font-weight: 900; box-shadow: var(--shadow); }
.sort-trigger[aria-expanded="true"] { border-color: rgba(15,79,69,.34); background: var(--green); color: var(--white); }
.sort-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 10; width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: var(--shadow); display: none; }
.sort-control.open .sort-menu { display: grid; gap: 4px; }
.sort-button { width: 100%; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 900; text-align: right; white-space: nowrap; }
.sort-button.active { background: var(--green-soft); color: var(--green); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; }
.product-card[hidden] { display: none !important; }
.product-image { aspect-ratio: 4 / 3; background: #f4efe5; overflow: hidden; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: var(--image-crop-x, 50%) var(--image-crop-y, 50%); transform: scale(var(--image-zoom, 1)); transform-origin: var(--image-crop-x, 50%) var(--image-crop-y, 50%); }
.image-fit-contain img { object-fit: contain; padding: 18px; }
.image-fit-cover img { object-fit: cover; }
.image-fit-zoom img { object-fit: cover; }
.image-remove-white img { mix-blend-mode: multiply; }
.image-bg-warm { background: #f4efe5; }
.image-bg-gold { background: #fff4d7; }
.image-bg-white { background: #fff; }
.image-bg-green { background: #e6f3ef; }
.product-body { padding: 18px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.category { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--gold-soft); color: #8a5c0f; font-size: 12px; font-weight: 900; white-space: nowrap; }
.stock { color: var(--green); font-size: 12px; font-weight: 900; white-space: nowrap; }
.product-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
.product-card p { min-height: 52px; margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 700; }
.price-list, .card-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.price-box { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-box span, .price-box small { color: var(--muted); font-size: 12px; font-weight: 900; white-space: nowrap; }
.price-box strong { font-size: 17px; line-height: 1.45; white-space: nowrap; }
.card-actions .primary-action { background: var(--green); color: var(--white); }

.notice { margin-top: 22px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.notice strong { display: block; margin-bottom: 4px; font-size: 16px; }
.notice span { color: var(--muted); font-weight: 700; }

.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.panel { padding: 28px; }
.panel h2, .contact-stack h2 { margin: 0 0 12px; font-size: 30px; line-height: 1.35; }
.panel p { margin: 0 0 16px; color: var(--muted); font-weight: 700; }
.trust-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.trust-item { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfaf7; }
.trust-item strong { display: block; margin-bottom: 4px; font-size: 16px; }
.trust-item span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.contact-stack { display: grid; gap: 14px; }
.info-card { padding: 18px; }
.info-card span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 900; }
.info-card strong, .info-card a { display: block; color: var(--ink); font-size: 18px; font-weight: 900; }
.map-panel { margin-top: 22px; overflow: hidden; }
.map-placeholder { min-height: 280px; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, rgba(255,244,215,.85), rgba(230,243,239,.88)), repeating-linear-gradient(45deg, transparent 0 22px, rgba(17,24,39,.04) 22px 24px); text-align: center; }
.map-placeholder strong { display: block; margin-bottom: 8px; font-size: 22px; }
.map-placeholder span { color: var(--muted); font-weight: 800; }
.map-embed iframe { width: 100%; min-height: 320px; display: block; border: 0; }

.footer {
  border-top: 1px solid rgba(255,255,255,.08);
  background: #171a20;
  color: rgba(255,255,255,.78);
}

.footer-inner {
  padding: 38px 0 20px;
  font-size: 13px;
  font-weight: 700;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(0, .8fr));
  gap: 28px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
}

.footer-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  color: #f4c35e;
  font-weight: 900;
  overflow: hidden;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 4px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.66);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.footer-col h4 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 15px;
  line-height: 1.4;
}

.footer-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.66);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

.footer-list a {
  color: inherit;
}

.footer-list a:hover {
  color: #f4c35e;
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.footer-contact a,
.footer-contact span {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 800;
}

.footer-contact .ltr {
  direction: ltr;
  text-align: right;
  color: #f4c35e;
  font-size: 15px;
  font-weight: 900;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 900;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.footer-social a:hover {
  border-color: rgba(244,195,94,.42);
  background: rgba(244,195,94,.12);
  color: #f4c35e;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.footer-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 900;
}

.footer-market-panel {
  position: relative;
  margin-top: 26px;
  padding-top: 22px;
  text-align: center;
}

.footer-market-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(520px, 100%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,195,94,.18), rgba(255,255,255,.2), rgba(244,195,94,.18), transparent);
  transform: translateX(-50%);
}

.footer-market-panel::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(244,195,94,.52);
  border-radius: 50%;
  background: #171a20;
  box-shadow: 0 0 0 5px rgba(244,195,94,.06);
  transform: translateX(-50%);
}

.footer-market-panel h4 {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  padding: 0 11px;
  border: 1px solid rgba(244,195,94,.22);
  border-radius: 999px;
  background: rgba(244,195,94,.08);
  color: #f4c35e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0;
}

.footer-market-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-market-list li {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-market-list li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 12px;
  margin: 0 10px;
  background: rgba(255,255,255,.16);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .header-inner { position: relative; }
  .brand { order: 1; }
  .call-button { order: 2; }
  .menu-toggle { order: 3; display: inline-flex !important; }
  .nav { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; display: none !important; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .nav.open { display: block !important; }
  .nav .menu { display: grid !important; gap: 4px; width: 100%; }
  .nav .menu li { width: 100%; }
  .nav .menu a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; color: var(--ink); }
  .nav .menu a:hover { background: var(--green-soft); color: var(--green); }
  .hero-prices, .product-grid { grid-template-columns: 1fr 1fr; }
  .market-layout { grid-template-columns: 1fr; }
  .bar-teaser, .about-grid, .trust-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .market-layout > .market-stack:first-child { position: static; }
  .contact-panel { position: static; }
}

@media (max-width: 680px) {
  .header-inner, .page-inner, .main, .footer-inner, .hero-inner { width: min(100% - 22px, 1180px); }
  .brand-logo { width: 138px; height: auto; }
  .menu-toggle { width: 40px; height: 40px; }
  .call-button { display: none; }
  .hero { min-height: auto; background: linear-gradient(180deg, rgba(17,24,39,.72) 0%, rgba(17,24,39,.5) 48%, rgba(17,24,39,.86) 100%), var(--hero-image, none) center / cover no-repeat; }
  .hero-inner { padding: 52px 0 24px; }
  h1 { font-size: 38px; }
  .hero-copy { font-size: 15px; }
  .primary-action, .secondary-action { width: 100%; }
  .hero-prices, .market-layout, .product-grid, .bar-teaser-stats, .trust-list { grid-template-columns: 1fr; }
  .section-head, .notice, .footer-inner, .section-tools { align-items: flex-start; flex-direction: column; }
  .table-shell, .parsian-panel { overflow-x: auto; }
  .chart-head, .parsian-titlebar { flex-direction: column; }
  .chart-tabs, .chart-stats { width: 100%; }
  .chart-tab { flex: 1; }
  .chart-stats { width: auto; grid-template-columns: 1fr; }
  .chart-stat { min-width: 0; }
  .chart-stat strong { white-space: normal; overflow-wrap: anywhere; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .table-shell table,
  .parsian-table { min-width: 0; }
  .table-shell th,
  .table-shell td,
  .parsian-table th,
  .parsian-table td { padding: 12px 10px; }
  .table-shell th:nth-child(3),
  .table-shell td:nth-child(3),
  .parsian-table th:nth-child(2),
  .parsian-table td:nth-child(2),
  .parsian-table th:nth-child(4),
  .parsian-table td:nth-child(4) { display: none; }
  .table-shell .price-cell,
  .parsian-table .price-cell { font-size: 15px; white-space: normal; }
  .asset-name { gap: 7px; }
  table { min-width: 520px; }
  .bar-teaser-content, .panel { padding: 22px; }
  .sort-menu { left: auto; right: 0; }
}
