:root {
  --bg: #faf8f3;
  --card: #ffffff;
  --ink: #1c1a15;
  --muted: #6b675c;
  --gold: #b8860b;
  --gold-soft: #f6ecd4;
  --line: #e8e2d4;
  --down: #c0392b;
  --up: #1e8449;
  --warn-bg: #fdf3e3;
  --warn-ink: #8a5a00;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.7;
}
body.ltr { font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
header.top {
  padding: 18px 0 8px; display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--gold); margin-bottom: 22px;
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--gold); }
.lang a { color: var(--muted); text-decoration: none; font-size: .9rem; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; background: #fff; }
h1 { font-size: 1.35rem; margin: 10px 0 4px; }
.live { color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.live .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-inline-end: 6px; }
.stale-banner {
  display: none; background: var(--warn-bg); color: var(--warn-ink);
  border: 1px solid #ecd9ac; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .9rem;
}
.hero {
  background: linear-gradient(135deg, #fffdf7, var(--gold-soft));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.hero .label { color: var(--muted); font-size: .95rem; }
.hero .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.hero .price small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.change { font-size: .95rem; font-weight: 700; }
.change.down { color: var(--down); }
.change.up { color: var(--up); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile .t { color: var(--muted); font-size: .82rem; }
.tile .v { font-size: 1.25rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
caption { text-align: start; font-weight: 700; padding: 10px 0 6px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; font-size: .95rem; }
th { background: var(--gold-soft); color: #5c4a12; font-weight: 700; }
tr:last-child td { border-bottom: none; }
.note, .disclaimer { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.note h2 { font-size: 1.05rem; color: var(--ink); margin-bottom: 6px; }
footer { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; color: var(--muted); font-size: .82rem; }
footer a { color: var(--gold); }
.num { font-variant-numeric: tabular-nums; }
