/* LUMA • تابلوی نرخ طلا • طراحی مناسب مانیتور 16:9 */
:root {
  --ink: #27140c;
  --coffee: #32190d;
  --coffee-deep: #1b0b06;
  --cream: #f5e7d9;
  --gold: #c58b3b;
  --gold-light: #ffdf91;
  --line: #bd884a;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-weight: 800;
  font-synthesis: none;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: #22110b; }
.dashboard {
  direction: ltr; /* جایگاه فیزیکی: نرخ‌ها چپ، لوگو راست */
  display: grid;
  grid-template-columns: 69.4% 30.6%;
  width: min(100vw, calc(100svh * 1672 / 941));
  aspect-ratio: 1672 / 941;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 16px 60px #1708008f;
}
.rates-panel {
  position: relative;
  container-type: inline-size;
  isolation: isolate;
  min-width: 0;
  padding: 2.3cqw;
  background:
    repeating-radial-gradient(ellipse at 17% 28%, transparent 0, transparent 10px, #d6b59316 10.5px, transparent 11px),
    repeating-radial-gradient(ellipse at 80% 72%, transparent 0, transparent 12px, #cfae8a16 12.5px, transparent 13px),
    radial-gradient(ellipse at 48% 44%, #fff4e9 0%, #f4e3d1 66%, #e7ceb1 100%);
}
/* حاشیه دو لایه طلایی */
.rates-panel::before,
.rates-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 2.8cqw;
}
.rates-panel::before {
  inset: 1.8cqw;
  border: max(2px, .23cqw) solid #ad782d;
  box-shadow: 0 0 0 .26cqw #fff0d7, 0 0 0 .45cqw #9d6120,
              inset 0 0 0 .24cqw #fff7e6, 0 0 14px #a15c1f66;
}
.rates-panel::after {
  inset: 2.2cqw;
  border: 1px solid #fbe1a0;
  box-shadow: inset 0 0 12px #b978266b;
}
.rates-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 2.3cqw;
  padding: 3.4cqw 3cqw 2.5cqw;
}
.rate-columns {
  direction: ltr;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6cqw;
}
.category { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.category + .category { border-left: .18cqw solid #bd8f57; padding-left: 1.1cqw; }
.category-header {
  position: relative;
  display: flex;
  flex: 0 0 12.2%;
  min-height: 68px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4.6cqw 0 1cqw;
  overflow: hidden;
  border: .23cqw solid #e9b25e;
  border-radius: 10cqw;
  color: #fff4e4;
  background: linear-gradient(180deg,#3e2316 0%,#1d0c06 55%,#2a130b 100%);
  box-shadow: 0 0 0 .19cqw #fff0d6, 0 0 0 .37cqw #b27a35,
              0 6px 9px #391a106b, inset 0 3px 10px #ad702f48;
}
.category-header::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 44%;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 104%;
  mix-blend-mode: screen;
}
.coin-header::before { background-image: url('assets/coin-icon-source.png'); }
.gold-header::before { background-image: url('assets/bars-icon-source.png'); }
.category-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  direction: rtl;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -.09cqw;
  font-size: clamp(24px, 4.0cqw, 55px);
  line-height: 1.5;
  text-shadow: 0 2px 2px #0008;
}
.rate-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 2.5cqw;
}
.rate-row {
  direction: ltr;
  display: grid;
  grid-template-columns: 43% .12cqw 1fr;
  align-items: center;
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: .3cqw;
  border-radius: 2.5cqw;
  border-bottom: .13cqw solid #cca771;
  background: linear-gradient(180deg,#fff5ec7b,#f5dfca60 73%,#fff8f15e);
  box-shadow: inset 0 1px 0 #fffdf7c7;
}
.rate-row:last-child { margin-bottom: 0; }
.rate-row .price,
.rate-row .product {
  min-width: 0;
  display: block;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.7;
}
.rate-row .price {
  text-align: center;
  font-size: clamp(18px, 2.58cqw, 37px);
  direction: ltr;
  font-variant-numeric: tabular-nums;
}
.rate-row .product {
  text-align: center;
  direction: rtl;
  font-size: clamp(16px, 2.5cqw, 35px);
  padding: 0 .5cqw;
}
.rate-row .separator {
  background: linear-gradient(180deg,transparent, #ac762b 20%, #8b5422 80%,transparent);
  height: 55%;
  width: 100%;
}
.market-strip {
  direction: ltr;
  display: flex;
  flex: 0 0 11.2%;
  min-height: 68px;
  border-radius: 6cqw;
  padding: .5cqw 1.65cqw;
  align-items: center;
  background: linear-gradient(180deg,#3f2614 0%,#291209 65%,#1b0b06);
  color: #fff4e3;
  border: .25cqw solid #e1a751;
  box-shadow: 0 0 0 .25cqw #fff6de, 0 0 0 .45cqw #ad762f,
              0 7px 10px #57270f77, inset 0 2px 8px #b67c3d66;
}
.market-item {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: space-around;
  gap: .5cqw;
  direction: rtl;
  font-size: clamp(18px,2.8cqw,38px);
  font-weight: 800;
  white-space: nowrap;
}
.market-value { font-weight: 800; }
.market-label { font-weight: 800; }
.market-icon {
  font-size: 3.4cqw;
  color: #edb552;
  text-shadow: 0 0 5px #fff8c4,0 2px 0 #955820;
  line-height: 1;
}
.currency-icon {
  display: grid;
  place-items: center;
  height: 4.7cqw; width: 4.7cqw;
  min-height: 30px; min-width: 30px;
  background: radial-gradient(circle at 30% 20%,#ffea99,#c27c24 73%);
  color: #4a260b;
  border: .3cqw double #fbe6af;
  border-radius: 50%;
  font: 900 3.1cqw Georgia,serif;
}
.market-divider {
  height: 70%;
  border-left: .15cqw solid #ca924a;
  margin: 0 2cqw;
}
.board-footer {
  direction: rtl;
  flex: 0 0 9.4%;
  min-height: 57px;
  display: grid;
  grid-template-columns: 1.2fr .85fr 1.4fr;
  align-items: center;
  border-radius: 6cqw;
  background: linear-gradient(180deg,#f8e7d4,#f0d6b7 48%,#fff2e1);
  border: .16cqw solid #b88544;
  box-shadow: 0 0 0 .25cqw #fff8eb, 0 0 0 .4cqw #b88b4b, 0 3px 6px #774b2766;
}
.footer-cell {
  height: 60%;
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75cqw;
  padding: 0 1cqw;
  white-space: nowrap;
  font-size: clamp(13px,2.05cqw,30px);
  font-weight: 800;
}
.footer-cell + .footer-cell { border-right: .14cqw solid #ae7644; }
.footer-cell b { font-weight: 900; }
.footer-cell svg { flex: 0 0 2.7cqw; width: 2.7cqw; height: 2.7cqw; fill: none; stroke: #241208; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-panel {
  min-width: 0;
  background: #2d170f url('assets/luma-logo-panel.png') center center / 100% 100% no-repeat;
}
/* صفحه‌های باریک: نرخ‌ها زیر نشان لوما قرار می‌گیرند */
@media (max-width: 950px) {
  .dashboard { width: 100%; display: flex; flex-direction: column; aspect-ratio: auto; min-height: 100svh; overflow: visible; }
  .brand-panel { order: -1; min-height: 255px; background-size: auto 580px; background-position: center 36%; }
  .rates-panel { padding: 3%; }
  .rates-inner { min-height: 680px; padding: 4.5% 4% 3%; gap: 22px; }
  .rate-columns { gap: 3%; }
  .category + .category { padding-left: 2%; }
  .category-header { min-height: 76px; }
  .category-header h2 { font-size: clamp(20px,4.1vw,38px); }
  .rate-list { margin-top: 20px; }
  .rate-row .price { font-size: clamp(14px,2.5vw,26px); }
  .rate-row .product { font-size: clamp(13px,2.4vw,25px); }
  .market-strip { min-height: 72px; }
  .market-item { font-size: clamp(13px,2.7vw,25px); }
  .board-footer { min-height: 68px; }
  .footer-cell { font-size: clamp(11px,2.1vw,20px); }
}
@media (max-width: 580px) {
  .brand-panel { min-height: 210px; }
  .rates-inner { min-height: 970px; }
  .rate-columns { grid-template-columns: 1fr; gap: 28px; }
  .category + .category { border-left: 0; padding-left: 0; }
  .category { min-height: 390px; }
  .category-header { flex-basis: 77px; }
  .category-header h2 { font-size: 29px; }
  .rate-row .price { font-size: 20px; }
  .rate-row .product { font-size: 19px; }
  .market-strip { padding: 5px; }
  .market-item { font-size: 13px; }
  .market-icon { display: none; }
  .board-footer { grid-template-columns: 1fr; gap: 0; padding: 8px; }
  .footer-cell { min-height: 34px; border-right: 0 !important; font-size: 14px; }
}
