/* Self-hosted fonts (SIL Open Font License) – no third-party request, no render blocking */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/readex-pro-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/fonts/readex-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/readex-pro-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/readex-pro-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ==========================================================================
   Saudi Gold Rate – design system
   ========================================================================== */
:root {
  /* brand palette – overridden per site from Admin → Customize */
  --b-dark: #8a6508; --b-mid: #c9971f; --b-light: #f2cf6b; --b-ink: #1b1404; --b-pale: #f6e3a6; --b-text: #b8860b; --b-soft: #fbf4e0;
  --gold: var(--b-text); --gold-2: var(--b-light); --gold-3: var(--b-pale); --gold-soft: var(--b-soft);
  --bg: #f7f4ec; --surface: #ffffff; --surface-2: #fbf9f4; --ink: #15120b; --ink-2: #3b352a; --muted: #6f685b; --line: #ebe4d4; --line-2: #f2ede2;
  --navy: #0f1a2b; --navy-2: #16243a; --on-navy: #f3ecdc; --on-navy-muted: #a9b2c2;
  --up: #0e9f6e; --up-bg: #e3f7ee; --down: #e02424; --down-bg: #fdeaea;
  --r: 16px; --r-sm: 10px; --shadow: 0 1px 2px rgba(20, 16, 6, .04), 0 8px 24px -12px rgba(20, 16, 6, .12);
  --shadow-lg: 0 24px 48px -24px rgba(15, 26, 43, .45);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-d: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --w: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gold: var(--b-light); --gold-2: var(--b-light); --gold-3: color-mix(in srgb, var(--b-mid) 45%, #000); --gold-soft: color-mix(in srgb, var(--b-mid) 16%, #0b0d12);
    --bg: #0b0d12; --surface: #12151c; --surface-2: #161a22; --ink: #f3efe6; --ink-2: #d6d0c3; --muted: #9aa1ae; --line: #232833; --line-2: #1a1e27;
    --navy: #0e1522; --navy-2: #141d2e; --up: #34d399; --up-bg: #0f2d22; --down: #f87171; --down-bg: #331616; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --gold: var(--b-light); --gold-2: var(--b-light); --gold-3: color-mix(in srgb, var(--b-mid) 45%, #000); --gold-soft: color-mix(in srgb, var(--b-mid) 16%, #0b0d12);
  --bg: #0b0d12; --surface: #12151c; --surface-2: #161a22; --ink: #f3efe6; --ink-2: #d6d0c3; --muted: #9aa1ae; --line: #232833; --line-2: #1a1e27;
  --navy: #0e1522; --navy-2: #141d2e; --up: #34d399; --up-bg: #0f2d22; --down: #f87171; --down-bg: #331616; --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.35; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-weight: 700; }
h2 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
.num { font-family: var(--font-d); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { flex: none; vertical-align: middle; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--gold); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- shared header pieces ---------- */
.hdr { position: relative; z-index: 50; } /* sticky only when enabled in Customize (body.sticky-hdr) */
.hdr .bar { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-family: var(--font-d); font-weight: 700; font-size: 1.12rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; font: 400 .72rem/1.2 var(--font); color: var(--muted); }
.actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: .15s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.lang-btn { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font-weight: 600; font-size: .9rem; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.menu-btn { display: none; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--gold-soft); color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.live-chip b { font-family: var(--font-d); color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(14, 159, 110, .6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(14, 159, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); } }

/* desktop navigation with dropdown panels */
.nav { display: flex; align-items: center; gap: 2px; }
.nav > .ni { position: relative; }
.nav > .ni > a, .nav > .ni > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; color: inherit; font: 600 .93rem var(--font); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav > .ni > a:hover, .nav > .ni > button:hover, .nav > .ni.on > a, .nav > .ni.on > button { background: var(--gold-soft); color: var(--gold); text-decoration: none; }
.nav .caret { opacity: .6; transition: transform .2s; }
.nav > .ni:hover .caret, .nav > .ni:focus-within .caret { transform: rotate(180deg); }
.dd { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 300px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 60; }
.dd::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav > .ni:hover > .dd, .nav > .ni:focus-within > .dd, .nav > .ni.open > .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: .93rem; }
.dd a:hover { background: var(--gold-soft); text-decoration: none; }
.dd a .ico { color: var(--gold); }
.dd a .lbl { flex: 1; }
.dd a .vol { font-size: .72rem; color: var(--muted); font-family: var(--font-d); }
.hot { font: 700 .66rem var(--font); background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; padding: 1px 7px; border-radius: 99px; }
.dd.cols2 { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; }

/* ticker */
.ticker { background: var(--navy); color: var(--on-navy); font-size: .85rem; overflow: hidden; }
.ticker .track { display: flex; gap: 28px; align-items: center; min-height: 38px; white-space: nowrap; width: max-content; animation: marquee 50s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
[dir="rtl"] .ticker .track { animation-name: marquee-rtl; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ticker .ti { display: inline-flex; gap: 8px; align-items: center; }
.ticker .ti span { color: var(--on-navy-muted); }
.ticker .ti b { font-family: var(--font-d); color: #fff; font-weight: 600; }
.chg { display: inline-flex; align-items: center; gap: 2px; font: 600 .78rem var(--font-d); padding: 2px 8px; border-radius: 99px; direction: ltr; }
.chg.up { color: var(--up); background: var(--up-bg); }
.chg.down { color: var(--down); background: var(--down-bg); }
.ticker .chg { background: transparent; padding: 0; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(10, 12, 18, .5); opacity: 0; transition: .2s; }
.drawer.open .scrim { opacity: 1; }
.drawer .panel { position: absolute; top: 0; bottom: 0; right: 0; width: min(88vw, 380px); background: var(--surface); color: var(--ink); overflow-y: auto; padding: 16px; transform: translateX(100%); transition: transform .25s; }
.drawer.open .panel { transform: none; }
.drawer .dhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 4px; font-weight: 600; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ico:first-child { color: var(--gold); }
.drawer summary::after { content: "+"; margin-inline-start: auto; color: var(--gold); font-size: 1.2rem; }
.drawer details[open] summary::after { content: "−"; }
.drawer .dl a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; color: var(--ink); border-radius: 10px; }
.drawer .dl a:hover { background: var(--gold-soft); text-decoration: none; }
.drawer .dprice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.drawer .dprice div { background: var(--gold-soft); border-radius: 12px; padding: 10px; }
.drawer .dprice b { display: block; font-family: var(--font-d); font-size: 1.1rem; }

@media (max-width: 1080px) {
  .hdr .nav { display: none !important; }
  .menu-btn { display: inline-grid; }
}

/* ---------- header styles 1–10 ---------- */
/* 1 Classic */
.h1 { background: var(--surface); border-bottom: 1px solid var(--line); }
.h1 .nav { margin-inline-start: 12px; }
/* 2 Ticker Pro */
.h2 .main { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.h2 .nav { margin-inline-start: 8px; }
/* 3 Midnight */
.h3 { background: var(--navy); color: var(--on-navy); }
.h3 .brand small { color: var(--on-navy-muted); }
.h3 .nav > .ni > a:hover, .h3 .nav > .ni > button:hover, .h3 .nav > .ni.on > a, .h3 .nav > .ni.on > button { background: rgba(230, 190, 90, .12); color: #f2d37f; }
.h3 .icon-btn, .h3 .lang-btn { background: transparent; border-color: rgba(255, 255, 255, .14); color: var(--on-navy); }
.h3 .live-chip { background: rgba(230, 190, 90, .12); color: var(--on-navy); }
.h3 .live-chip b { color: #f2d37f; }
.h3 .sub { border-top: 1px solid rgba(255, 255, 255, .08); }
/* 4 Gold gradient */
.h4 { background: linear-gradient(110deg, var(--b-dark) 0%, var(--b-mid) 40%, var(--b-light) 70%, var(--b-mid) 100%); color: var(--b-ink); }
.h4 .brand small { color: rgba(27, 20, 4, .7); }
.h4 .nav > .ni > a:hover, .h4 .nav > .ni > button:hover, .h4 .nav > .ni.on > a, .h4 .nav > .ni.on > button { background: rgba(255, 255, 255, .28); color: var(--b-ink); }
.h4 .icon-btn, .h4 .lang-btn { background: rgba(255, 255, 255, .25); border-color: rgba(27, 20, 4, .15); color: var(--b-ink); }
.h4 .live-chip { background: var(--b-ink); color: var(--b-pale); }
.h4 .live-chip b { color: #fff; }
/* 5 Glass */
.h5 { padding: 10px 0; }
.h5 .glass { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: saturate(1.6) blur(16px); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 18px; padding: 0 12px; box-shadow: var(--shadow); }
.h5 .nav { margin: 0 auto; }
.h5 .actions { margin-inline-start: 0; }
/* 6 Split board */
.h6 { background: var(--surface); border-bottom: 1px solid var(--line); }
.h6 .bar { min-height: 84px; }
.h6 .board-mini { display: flex; gap: 8px; margin-inline-start: auto; }
.h6 .board-mini div { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; min-width: 120px; background: var(--surface-2); }
.h6 .board-mini span { display: block; font-size: .72rem; color: var(--muted); }
.h6 .board-mini b { font-family: var(--font-d); font-size: 1.05rem; }
.h6 .actions { margin-inline-start: 8px; }
.h6 .navrow { border-top: 1px solid var(--line); }
.h6 .navrow .nav > .ni > a, .h6 .navrow .nav > .ni > button { border-radius: 0; padding: 12px 14px; border-bottom: 2px solid transparent; }
.h6 .navrow .nav > .ni.on > a, .h6 .navrow .nav > .ni.on > button { background: none; border-color: var(--gold); }
@media (max-width: 1080px) { .h6 .board-mini { display: none; } .h6 .navrow { display: none; } }
/* 7 Minimal */
.h7 { background: var(--bg); border-bottom: 1px solid var(--line); }
.h7 .bar { justify-content: space-between; }
.h7 .menu-btn { display: inline-grid; }
.h7 .brand { position: absolute; left: 50%; transform: translateX(-50%); }
.h7 .chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 10px; scrollbar-width: none; }
.h7 .chips a { flex: none; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.h7 .chips a:hover, .h7 .chips a.on { border-color: var(--gold); color: var(--gold); text-decoration: none; }
@media (max-width: 640px) { .h7 .brand span { display: none; } }
/* 8 Floating pill */
.h8 { padding: 12px 0; pointer-events: none; }
.h8 .pill { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 18px; box-shadow: var(--shadow-lg); min-height: 60px; }
[dir="rtl"] .h8 .pill { padding: 6px 18px 6px 8px; }
.h8 .nav { margin: 0 auto; }
.h8 .nav > .ni > a, .h8 .nav > .ni > button { border-radius: 99px; }
.h8 .actions { margin-inline-start: 0; }
.h8 .icon-btn, .h8 .lang-btn { border-radius: 99px; }
/* 9 Mega */
.h9 { background: var(--surface); border-bottom: 1px solid var(--line); }
.h9 .mega-wrap { position: static; }
.h9 .nav > .ni { position: static; }
.h9 .dd { inset-inline: 16px; top: 100%; min-width: 0; max-width: calc(var(--w) - 32px); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 8px; padding: 16px; }
.h9 .bar { position: relative; }
.h9 .quick { background: var(--navy); }
.h9 .quick .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.h9 .quick a { color: var(--on-navy); padding: 9px 12px; font-size: .86rem; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.h9 .quick a .ico { color: var(--gold-2); }
.h9 .quick a:hover { color: #f2d37f; text-decoration: none; }
/* 10 Dashboard */
.h10 { background: var(--surface); border-bottom: 1px solid var(--line); }
.h10 .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 0 12px; }
.h10 .mc { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--surface-2); color: var(--ink); }
.h10 .mc:hover { border-color: var(--gold); text-decoration: none; }
.h10 .mc span { display: block; font-size: .75rem; color: var(--muted); }
.h10 .mc b { font-family: var(--font-d); font-size: 1.15rem; }
.h10 .navrow { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .h10 .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h10 .mc .spark { display: none; } }

/* ---------- layout ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin: 24px auto 40px; align-items: start; }
.page.full { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1000px) { .page { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
@media (max-width: 600px) { .card { padding: 16px; border-radius: 14px; } }
.sec-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-h h2 { margin: 0; }
.sec-h .badge-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.sec-h .more { margin-inline-start: auto; font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs span:not(:last-child)::after { content: "/"; margin-inline-start: 6px; opacity: .5; }

/* ---------- hero price board ---------- */
.board { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #24344f 0%, var(--navy) 55%), var(--navy); color: var(--on-navy); border-radius: 22px; padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow-lg); }
.board::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(230, 190, 90, .25), transparent 60%); pointer-events: none; }
.board .top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; position: relative; z-index: 1; }
.board h1 { color: #fff; margin: 0; }
.board .sub { color: var(--on-navy-muted); font-size: .92rem; margin-top: 4px; }
.board .upd { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); padding: 6px 12px; border-radius: 99px; font-size: .84rem; }
.board .main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 22px; position: relative; z-index: 1; }
@media (max-width: 820px) { .board .main { grid-template-columns: minmax(0, 1fr); } }
.board .big { background: linear-gradient(140deg, rgba(230, 190, 90, .18), rgba(230, 190, 90, .04)); border: 1px solid rgba(230, 190, 90, .28); border-radius: 18px; padding: 20px; }
.board .big .lbl { color: #f2d37f; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board .big .val { font: 700 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1.1 var(--font-d); color: #fff; margin: 8px 0 4px; letter-spacing: -.02em; }
.board .big .val small { font-size: .38em; color: var(--on-navy-muted); font-weight: 500; margin-inline-start: 6px; }
.board .big .usd { color: var(--on-navy-muted); font-size: .9rem; }
.board .big .spark { width: 100%; height: 64px; margin-top: 12px; display: block; }
.board .big .chg { background: rgba(255, 255, 255, .1); }
.board .big .chg.up { color: #34d399; } .board .big .chg.down { color: #f87171; }
.board .kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.board .k { display: block; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 14px; color: var(--on-navy); transition: .15s; }
.board .k:hover { background: rgba(255, 255, 255, .09); border-color: rgba(230, 190, 90, .4); text-decoration: none; }
.board .k span { font-size: .8rem; color: var(--on-navy-muted); display: block; }
.board .k b { font: 600 1.35rem/1.3 var(--font-d); color: #fff; }
.board .k em { font-style: normal; font-size: .78rem; color: var(--on-navy-muted); }
.board .k.flash-up, .board .k.flash-down { transition: none; }

/* KPI row */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); box-shadow: var(--shadow); transition: .15s; }
a.kpi:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-1px); }
.kpi .l { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.kpi .l .ico { color: var(--gold); }
.kpi .v { font: 700 1.4rem/1.3 var(--font-d); }
.kpi .v small { font-size: .6em; color: var(--muted); font-weight: 500; }
.kpi .b { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* karat cards */
.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kc { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); color: var(--ink); display: block; transition: .15s; position: relative; }
.kc:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.kc .t { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; }
.kc .kk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 .85rem var(--font-d); background: linear-gradient(135deg, var(--b-mid), var(--b-light)); color: var(--b-ink); }
.kc .p { font: 700 1.45rem/1.3 var(--font-d); margin-top: 10px; }
.kc .u { font-size: .8rem; color: var(--muted); }
.kc .spark { width: 100%; height: 34px; margin-top: 8px; display: block; }

/* tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
thead th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--gold-soft); }
td.n, th.n { text-align: end; font-family: var(--font-d); font-variant-numeric: tabular-nums; }
td strong { font-weight: 700; }
td a { font-weight: 600; }
.k-badge { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font: 700 .8rem var(--font-d); margin-inline-end: 8px; }
.note { font-size: .84rem; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.note .ico { color: var(--gold); margin-top: 3px; }
@media (max-width: 600px) { th, td { padding: 10px; } .hide-sm { display: none; } }

/* chart block */
.chart-box { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.range { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.range button, .range a { border: 0; background: none; color: var(--muted); font: 600 .82rem var(--font); padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.range .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font: 600 .8rem var(--font-d); padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); display: none; z-index: 5; }
.chart-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.chart-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.chart-stats span { display: block; font-size: .75rem; color: var(--muted); }
.chart-stats b { font: 600 1rem var(--font-d); }
@media (max-width: 600px) { .chart-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* forms & tools */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; }
label { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: .15s; }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
.result { margin-top: 16px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--gold-soft), transparent); border: 1px solid var(--gold-3); }
.result .big { font: 700 2rem/1.2 var(--font-d); color: var(--gold); }
.result .rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.result .rows div { background: var(--surface); border-radius: 10px; padding: 10px; }
.result .rows span { display: block; font-size: .75rem; color: var(--muted); }
.result .rows b { font-family: var(--font-d); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--b-mid), var(--b-mid)); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font: 600 .95rem var(--font); cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.swap { align-self: end; height: 48px; width: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.conv { display: grid; grid-template-columns: 1fr 1fr auto 1fr; gap: 12px; align-items: end; }
@media (max-width: 700px) { .conv { grid-template-columns: 1fr 1fr; } .conv .swap { grid-column: span 2; width: 100%; } }
.rate-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.rate-hero .r { font: 700 clamp(2rem, 1.4rem + 2.5vw, 3rem)/1.1 var(--font-d); color: var(--gold); }

/* chips / grids */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; color: var(--ink); background: var(--surface); font-size: .9rem; }
.chip:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.chip .ico { color: var(--gold); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); color: var(--ink); }
.tile:hover { border-color: var(--gold); text-decoration: none; }
.tile .ti-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.tile b { display: block; }
.tile span { font-size: .84rem; color: var(--muted); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 10px; background: var(--surface-2); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-inline-end: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin-top: 6px; transition: .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 14px; margin: 0; }

/* articles & prose */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.post { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; }
.post .cat { font-size: .72rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.post h3 { margin: 0; font-size: 1rem; line-height: 1.55; }
.post h3 a { color: var(--ink); }
.post p { margin: 0; font-size: .88rem; color: var(--muted); }
.post time { font-size: .78rem; color: var(--muted); margin-top: auto; }
.prose { font-size: 1.04rem; line-height: 1.9; }
.prose h2 { margin-top: 1.6em; }
.prose table { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.prose ul { padding-inline-start: 1.2em; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

/* sidebar */
.side .card { padding: 18px; }
.side h3 { display: flex; align-items: center; gap: 8px; }
.side h3 .ico { color: var(--gold); }
.plist { list-style: none; padding: 0; margin: 0; }
.plist li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.plist li:last-child { border: 0; }
.plist a { color: var(--ink); font-weight: 500; }
.plist .num { font-weight: 600; }
.side .sticky { position: sticky; top: 16px; }
.sticky-hdr .side .sticky { top: 96px; }
.ad { margin: 0 0 20px; text-align: center; overflow: hidden; }

/* flash animation on live updates */
.flash-up { animation: fu 1.4s; } .flash-down { animation: fd 1.4s; }
@keyframes fu { 0%, 30% { background-color: var(--up-bg); } }
@keyframes fd { 0%, 30% { background-color: var(--down-bg); } }

/* footer */
.foot { background: var(--navy); color: var(--on-navy-muted); padding: 44px 0 22px; margin-top: 20px; font-size: .92rem; }
.foot a { color: var(--on-navy); }
.foot a:hover { color: #f2d37f; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: minmax(0, 1fr); } }
.foot h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { padding: 4px 0; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot .src { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.foot .src span { border: 1px solid rgba(255, 255, 255, .12); border-radius: 99px; padding: 3px 10px; font-size: .75rem; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; }

/* back to top + mobile bottom price bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--navy); color: var(--on-navy); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); justify-content: space-around; gap: 6px; font-size: .78rem; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
  .mbar a { color: var(--on-navy); text-align: center; }
  .mbar b { display: block; font: 700 1rem var(--font-d); color: #fff; }
}

/* header density. The bar sits in .wrap, which is capped at --w (1240px), so above ~1240px the row
   never gets wider and viewport-based "wide screen" tiers cannot add room for it. Navs that share the
   bar with the brand (h1–h5, h8, h9) therefore always use the compact density, and collapse into the
   drawer once even that no longer fits: the Arabic nav needs ~1190px, the shorter English one keeps
   the 1080px breakpoint above. Navs on their own row (h6, h10) keep icons while the row is wide. */
html, body { overflow-x: clip; }
.hdr .bar, .hdr .pill { min-width: 0; column-gap: 12px; flex-wrap: wrap; } /* last resort: wrap a row instead of overlapping */
.hdr .brand, .hdr .nav, .hdr .actions { flex-shrink: 0; }
.bar .nav > .ni > a, .bar .nav > .ni > button, .pill .nav > .ni > a, .pill .nav > .ni > button { padding: 8px; font-size: .88rem; gap: 4px; }
.bar .nav > .ni > a > .ico:first-child, .bar .nav > .ni > button > .ico:first-child, .bar .nav .hot,
.pill .nav > .ni > a > .ico:first-child, .pill .nav > .ni > button > .ico:first-child, .pill .nav .hot { display: none; }
.brand { font-size: 1.02rem; }
.h2 .bar .live-chip, .h3 .bar .live-chip, .h4 .bar .live-chip, .h9 .bar .live-chip, .h3 .brand small, .h4 .brand small, .h9 .brand small { display: none; }
@media (max-width: 1280px) { .h10 .brand small, .h6 .brand small { display: none; } }
@media (max-width: 1139px) {
  [dir="rtl"] .hdr .bar .nav, [dir="rtl"] .hdr .pill .nav { display: none !important; }
  [dir="rtl"] :is(.h1, .h2, .h3, .h4, .h5, .h8, .h9) .menu-btn { display: inline-grid; }
  [dir="rtl"] .hdr .bar .live-chip { display: inline-flex; }
}
@media (max-width: 1180px) { .navrow .nav > .ni > a > .ico:first-child, .navrow .nav > .ni > button > .ico:first-child, .navrow .nav .hot { display: none; } }
@media (max-width: 1080px) { .hdr .bar .live-chip { display: inline-flex; } }
@media (max-width: 520px) { .hdr .live-chip, .hdr .lang-btn { display: none !important; } .brand span { font-size: .95rem; } }
@media (max-width: 760px) { .hdr .bar, .hdr .pill { flex-wrap: nowrap; } .hdr .bar > .brand, .hdr .pill > .brand, .hdr .brand span { flex-shrink: 1; min-width: 0; } .hdr .brand span { overflow: hidden; text-overflow: ellipsis; } }

/* long-form copy */
.copy h2:first-child { margin-top: 0; }
.copy p, .copy li { color: var(--ink-2); }
.copy table { width: 100%; display: table; }
.copy td, .copy th { border: 1px solid var(--line); }
.copy th { position: static; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border: 0; }
.news-list a { color: var(--ink); font-weight: 500; display: block; line-height: 1.6; }
.news-list time { font-size: .75rem; color: var(--muted); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }

/* section headers wrap on small screens (chart range buttons, "read more" links) */
.sec-h { flex-wrap: wrap; row-gap: 10px; }
.sec-h h2 { flex: 1 1 auto; min-width: 0; }
@media (max-width: 600px) {
  .sec-h .more { margin-inline-start: 0; width: 100%; }
  .sec-h .more .range { width: 100%; justify-content: space-between; }
  .sec-h .more .range button { flex: 1; }
  .board { padding: 18px; border-radius: 18px; }
  .board .kgrid { gap: 8px; }
  .board .k { padding: 10px 12px; }
  .board .k b { font-size: 1.15rem; }
  .kpi .v { font-size: 1.2rem; }
  .result .big { font-size: 1.6rem; }
  .conv .swap { height: 44px; }
  .page { margin-top: 16px; }
}

/* header fixes on phones */
.h7 .chips { flex-wrap: nowrap; }
@media (max-width: 760px) {
  .h10 { position: relative; }
  .h10 .cards { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .h10 .mc { flex: 0 0 auto; min-width: 140px; padding: 8px 12px; }
  .h10 .mc b { font-size: 1rem; }
}

/* ---------- ad slots: reserved space prevents layout shift (CLS) ---------- */
.ad-slot { position: relative; margin: 0 0 20px; text-align: center; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-lbl { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 4px; align-self: center; }
.ad-ad_top { min-height: 100px; margin: 16px 0 0; }
.ad-ad_after_hero, .ad-ad_in_content, .ad-ad_before_copy, .ad-ad_in_article { min-height: 280px; }
.ad-ad_sidebar { min-height: 270px; }
.ad-ad_sidebar_sticky { min-height: 620px; }
.ad-ad_footer { min-height: 280px; margin-top: 4px; }
@media (min-width: 761px) { .ad-ad_top { min-height: 110px; } .ad-ad_after_hero { min-height: 110px; } }
@media (max-width: 1000px) { .side .ad-slot { display: none; } }
.ad-preview { border: 2px dashed var(--gold); border-radius: 14px; background: repeating-linear-gradient(135deg, var(--gold-soft) 0 12px, transparent 12px 24px); color: var(--ink); padding: 12px; gap: 4px; }
.ad-preview b { font-family: var(--font-d); }
.ad-preview span { font-size: .75rem; color: var(--muted); direction: ltr; }
.m-anchor { display: none; }
@media (max-width: 760px) {
  .m-anchor { display: block; position: fixed; inset: auto 0 0 0; padding-bottom: env(safe-area-inset-bottom); z-index: 41; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 0 2px; box-shadow: 0 -6px 18px rgba(0, 0, 0, .12); }
  .m-anchor .ad-slot { min-height: 50px; margin: 0; }
  .m-anchor .ad-lbl { display: none; }
  .m-anchor .ad-preview { border-radius: 0; padding: 6px; }
  .m-anchor-x { position: absolute; top: -26px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; cursor: pointer; }
  body:has(.m-anchor) { padding-bottom: 66px; }
}
.side { align-self: stretch; }
.side .sticky { position: sticky; top: 16px; }
.sticky-hdr .side .sticky { top: 96px; }
.ad-ad_footer { min-height: 110px; }
@media (max-width: 760px) { .ad-ad_footer { min-height: 260px; } }
.prose table { display: table; width: 100%; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } }

/* mobile tables: fit the screen, no horizontal scroll */
@media (max-width: 600px) {
  .tw, .prose table { overflow-x: hidden; }
  .prose table, .copy table { display: table; width: 100%; }
  table { font-size: .84rem; table-layout: auto; }
  th, td { padding: 9px 6px; white-space: normal; overflow-wrap: anywhere; }
  th:first-child, td:first-child { padding-inline-start: 10px; }
  th:last-child, td:last-child { padding-inline-end: 10px; }
  thead th { font-size: .72rem; letter-spacing: 0; }
  td.n, th.n { white-space: nowrap; overflow-wrap: normal; }
  td.n strong { font-weight: 700; }
  .k-badge { display: none; }
}
@media (max-width: 380px) { table { font-size: .78rem; } th, td { padding: 8px 4px; } }
/* tablets & laptops: let label cells wrap so tables never need an inner scrollbar */
th, td { white-space: normal; }
td.n, th.n, td.num { white-space: nowrap; }
@media (min-width: 601px) and (max-width: 1200px) { table { font-size: .9rem; } th, td { padding: 10px 9px; } }
@media (max-width: 600px) { td.num { white-space: normal; } }

/* article cards with auto images */
.post { padding: 0; overflow: hidden; }
.post .thumb { display: block; aspect-ratio: 16 / 9; background: #0f1a2b; overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post:hover .thumb img { transform: scale(1.03); }
.post .pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hero-img { margin: 14px 0 18px; }
.hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; display: block; background: #0f1a2b; }
.prose figure { margin: 18px 0; }
.prose figure img { width: 100%; height: auto; border-radius: 14px; display: block; background: #0f1a2b; }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---------- compact menu: icon badges + "More" mega panel ---------- */
.nav .nico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(246, 211, 107, .28), rgba(184, 134, 11, .14)); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212, 166, 42, .25); transition: .18s; }
.nav > .ni:hover .nico, .nav > .ni.on .nico, .nav > .ni.open .nico { background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); box-shadow: 0 4px 12px rgba(184, 134, 11, .35); }
.nav > .ni > a, .nav > .ni > button { gap: 8px; }
.dd a .dico, .mega-more a .dico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); flex: 0 0 auto; transition: .15s; }
.dd a:hover .dico { background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.more-ni { position: relative; }
.dd.mega-more { inset-inline-start: auto; inset-inline-end: 0; width: min(900px, calc(100vw - 32px)); min-width: 0; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mega-more .mcol { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-radius: 14px; }
.mega-more .mhead { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.mega-more .mhead a, .mega-more .mhead span:not(.mbadge) { color: var(--ink); }
.mega-more .mbadge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); box-shadow: 0 6px 16px rgba(184, 134, 11, .3); }
.mega-more a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--ink); font-size: .9rem; }
.mega-more a:hover { background: var(--gold-soft); text-decoration: none; }
.mega-more .mhead a { padding: 0; }
.mega-more .mhead a:hover { background: none; color: var(--gold); }
.mega-more .mguides { background: linear-gradient(160deg, var(--gold-soft), transparent 70%); box-shadow: inset 0 0 0 1px rgba(212, 166, 42, .2); }
.mega-more .mall { margin-top: auto; font-weight: 700; color: var(--gold); justify-content: flex-start; gap: 6px; }

/* ---------- footer designs (Admin → Customize) ---------- */
.foot .social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.foot .social a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--on-navy); transition: .15s; }
.foot .social a:hover { background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .flinks a { color: var(--on-navy); font-weight: 600; }
.foot-2 .fcenter { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 6px 0 22px; }
.foot-2 .fcenter p { max-width: 640px; margin: 0; }
.foot-2 .flinks { justify-content: center; }
.foot-2 .social { justify-content: center; margin-top: 4px; }
.foot-3 { padding-top: 0; }
.foot-3 .fband { background: linear-gradient(110deg, var(--b-dark), var(--b-mid) 45%, var(--b-light) 75%, var(--b-mid)); color: var(--b-ink); margin-bottom: 36px; }
.foot-3 .fband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot-3 .fband .small { display: block; font-weight: 600; opacity: .8; }
.foot-3 .fband b { font: 800 2rem var(--font-d); }
.foot-3 .fband-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-3 .fband .btn { background: var(--b-ink); color: var(--b-pale); border: 0; }
.foot-3 .fband .btn.ghost { background: rgba(255, 255, 255, .3); color: var(--b-ink); }
.foot-4 { padding: 22px 0 16px; }
.foot-4 .frow { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding-bottom: 14px; }
.foot-4 .frow .flinks { flex: 1; }
.foot-4 .social { margin-top: 0; }
@media (max-width: 700px) { .foot-4 .frow { flex-direction: column; align-items: flex-start; } }

/* ---------- homepage layout + widget styles (Admin → Customize) ---------- */
.home-flow { display: flex; flex-direction: column; }
.home-flow > .hb > br { display: none; }
.sticky-hdr .hdr { position: sticky; top: 0; z-index: 70; box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .35); }
.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.kcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); overflow: hidden; transition: .15s; }
.kcard:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); }
.kcard .kc-k { position: absolute; inset-inline-end: 12px; top: 12px; width: 40px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 800 .95rem var(--font-d); color: var(--b-ink); background: linear-gradient(135deg, var(--b-light), var(--b-mid)); }
.kcard .kc-l { color: var(--muted); font-size: .85rem; }
.kcard b { font: 800 1.6rem var(--font-d); margin-top: 18px; }
.kcard small { color: var(--muted); font-size: .78rem; }
.prose .callout { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 14px; padding: 6px 16px; margin: 16px 0; }
.prose blockquote { border-inline-start: 4px solid var(--gold); margin: 16px 0; padding: 6px 16px; background: var(--surface-2); border-radius: 10px; }

/* ==========================================================================
   Frontend v2 – premium refresh, hero styles, section skins & layouts
   ========================================================================== */
body { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--b-light) 14%, transparent), transparent 70%), var(--bg); }
.card { border-radius: 24px; padding: 24px; border-color: color-mix(in srgb, var(--line) 85%, var(--b-mid)); box-shadow: 0 1px 2px rgba(20, 16, 6, .04), 0 18px 40px -28px rgba(20, 16, 6, .28); }
.sec-h { gap: 14px; margin-bottom: 18px; }
.sec-h h2 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; }
.sec-h .badge-ico { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); box-shadow: 0 8px 18px -10px var(--b-mid); }
.sec-h .more { background: var(--gold-soft); color: var(--gold); padding: 7px 14px; border-radius: 99px; font-size: .82rem; transition: .15s; }
.sec-h .more:hover { background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); text-decoration: none; }
.tw { border-radius: 18px; }
thead th { letter-spacing: .04em; }
td.n strong { font-family: var(--font-d); font-weight: 800; }
.btn { background: linear-gradient(135deg, var(--b-mid), var(--b-light)); color: var(--b-ink); font-weight: 700; box-shadow: 0 10px 22px -14px var(--b-mid); }
.tile { border-radius: 18px; transition: .18s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(0, 0, 0, .4); }
.tile .ti-ico { background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.chip { transition: .15s; }
.chip:hover { background: var(--gold-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.home-flow > .hb { animation: rise .5s ease both; }
.home-flow > .hb:nth-child(2) { animation-delay: .05s; } .home-flow > .hb:nth-child(3) { animation-delay: .1s; }
@media (prefers-reduced-motion: reduce) { .home-flow > .hb { animation: none; } }

/* ---------- hero 2: Spotlight ---------- */
.hero2 { position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 38px 24px 26px; margin-bottom: 20px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid color-mix(in srgb, var(--line) 70%, var(--b-mid)); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.hero2 .h2-glow { position: absolute; inset: -40% 10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--b-light) 35%, transparent), transparent); pointer-events: none; }
.hero2 > * { position: relative; }
.hero2 .h2-top { display: flex; justify-content: center; margin-bottom: 10px; }
.hero2 .h2-live, .hero4 .h4-live, .hero3 .h3-live, .hero5 .h5-live { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold); }
.hero2 h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.hero2 .h2-sub { color: var(--muted); margin: 6px 0 18px; }
.hero2 .h2-lbl { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; color: var(--gold); }
.hero2 .h2-val { font: 800 clamp(3.4rem, 2rem + 6vw, 6.2rem)/1 var(--font-d); letter-spacing: -.03em; background: linear-gradient(180deg, var(--b-light), var(--b-mid) 60%, var(--b-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 8px 0 4px; }
.hero2 .h2-val small { font-size: .26em; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-inline-start: 8px; }
.hero2 .h2-spark { max-width: 900px; margin: 6px auto 18px; } .hero2 .h2-spark .spark { width: 100%; height: 90px; display: block; }
.hero2 .h2-spark span { font-size: .82rem; color: var(--muted); }
.hero2 .h2-pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 900px; margin: 0 auto; }
.hero2 .h2-pills a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: .15s; }
.hero2 .h2-pills a:hover { border-color: var(--gold); text-decoration: none; transform: translateY(-2px); }
.hero2 .h2-pills em { font-style: normal; font-size: .8rem; color: var(--muted); } .hero2 .h2-pills b { font: 800 1.3rem var(--font-d); }

/* ---------- hero 3: Chart split ---------- */
.hero3 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 20px; }
.hero3 .h3-chart { border-radius: 26px; padding: 22px; color: var(--on-navy); background: radial-gradient(120% 140% at 100% 0%, var(--navy-2), var(--navy) 60%); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero3 .h3-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.hero3 h1 { color: #fff; margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); } .hero3 .h3-sub { color: var(--on-navy-muted); font-size: .9rem; }
.hero3 .h3-live { background: rgba(255, 255, 255, .08); color: var(--b-pale); }
.hero3 .h3-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.hero3 .h3-price .lbl { color: var(--b-light); font-weight: 700; width: 100%; }
.hero3 .h3-price .val { font: 800 clamp(2.6rem, 1.8rem + 3vw, 4rem)/1 var(--font-d); color: #fff; }
.hero3 .h3-price small { color: var(--on-navy-muted); }
.hero3 .chart-svg text { fill: var(--on-navy-muted); } .hero3 .chart-svg line { stroke: rgba(255, 255, 255, .08); }
.hero3 .h3-list { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.hero3 .h3-row { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; color: var(--ink); transition: .15s; }
.hero3 .h3-row:hover { background: var(--surface-2); text-decoration: none; }
.hero3 .h3-row.on { background: linear-gradient(135deg, color-mix(in srgb, var(--b-light) 30%, transparent), transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--b-mid) 40%, transparent); }
.hero3 .kk { width: 42px; height: 34px; border-radius: 11px; display: grid; place-items: center; font: 800 .95rem var(--font-d); background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.hero3 .oz .kk { background: var(--surface-2); color: var(--ink); }
.hero3 .h3-row b { font: 800 1.15rem var(--font-d); }
.hero3 .nm { font-weight: 600; font-size: .9rem; }

/* ---------- hero 4: Karat cards ---------- */
.hero4 { margin-bottom: 20px; }
.hero4 .h4-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.hero4 h1 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); } .hero4 .h4-head p { margin: 4px 0 0; color: var(--muted); }
.hero4 .h4-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 14px; }
.hero4 .h4-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .4); transition: .18s; }
.hero4 .h4-card:hover { transform: translateY(-3px); text-decoration: none; border-color: var(--gold); }
.hero4 .h4-card.on { background: radial-gradient(120% 120% at 100% 0%, var(--navy-2), var(--navy)); color: #fff; border: 0; }
.hero4 .h4-k { font: 800 2rem/1 var(--font-d); color: var(--gold); } .hero4 .h4-k small { font-size: .5em; }
.hero4 .on .h4-k { color: var(--b-light); }
.hero4 .h4-l { font-size: .82rem; color: var(--muted); } .hero4 .on .h4-l, .hero4 .on .cur { color: var(--on-navy-muted); }
.hero4 .h4-card b { font: 800 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.1 var(--font-d); }
.hero4 .on b { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); background: linear-gradient(180deg, #fff, var(--b-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero4 .cur { font-size: .8rem; color: var(--muted); }
.hero4 .h4-card .spark { width: 100%; height: 44px; margin-top: auto; }
.hero4 .h4-card .chg { position: absolute; top: 16px; inset-inline-end: 16px; }
.hero4 .h4-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.hero4 .h4-strip b { color: var(--ink); font-family: var(--font-d); }
@media (max-width: 900px) { .hero4 .h4-cards { grid-template-columns: 1fr 1fr; } .hero4 .h4-card.on { grid-column: 1 / -1; } .hero3 { grid-template-columns: 1fr; } }

/* ---------- hero 5: Gold banner ---------- */
.hero5 { border-radius: 28px; overflow: hidden; margin-bottom: 20px; background: linear-gradient(115deg, var(--b-dark), var(--b-mid) 40%, var(--b-light) 72%, var(--b-mid)); color: var(--b-ink); box-shadow: 0 30px 60px -36px var(--b-dark); }
.hero5 .h5-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 30px; align-items: center; }
.hero5 .h5-live { background: rgba(0, 0, 0, .12); color: var(--b-ink); }
.hero5 h1 { color: var(--b-ink); margin: 12px 0 6px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.hero5 p { margin: 0 0 18px; opacity: .8; }
.hero5 .h5-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero5 .btn { background: var(--b-ink); color: var(--b-pale); box-shadow: none; }
.hero5 .btn.ghost { background: rgba(255, 255, 255, .28); color: var(--b-ink); border: 0; }
.hero5 .h5-r { background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .35); border-radius: 22px; padding: 20px; }
.hero5 .h5-lbl { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.hero5 .h5-val { font: 800 clamp(3rem, 2rem + 4vw, 5rem)/1 var(--font-d); margin: 8px 0; letter-spacing: -.02em; }
.hero5 .h5-val small { font-size: .26em; opacity: .75; margin-inline-start: 6px; }
.hero5 .spark { width: 100%; height: 70px; }
.hero5 .spark path { stroke: var(--b-ink) !important; } .hero5 .spark path:first-child { fill: rgba(0, 0, 0, .08) !important; }
.hero5 .h5-ticker { background: var(--b-ink); color: var(--b-pale); overflow: hidden; }
.hero5 .h5-track { display: flex; gap: 32px; width: max-content; padding: 10px 0; animation: marquee 40s linear infinite; font-size: .9rem; }
.hero5 .h5-track b { color: #fff; font-family: var(--font-d); }
@media (max-width: 800px) { .hero5 .h5-in { grid-template-columns: 1fr; padding: 22px; } }

/* ---------- section skins ---------- */
.skin-2 .card { background: transparent; border: 0; box-shadow: none; padding: 8px 2px; }
.skin-2 .sec-h { border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.skin-3 .card { box-shadow: none; border: 2px solid color-mix(in srgb, var(--b-mid) 38%, var(--line)); }
.skin-3 .sec-h .badge-ico { background: transparent; border: 2px solid var(--b-mid); color: var(--gold); box-shadow: none; }
.skin-4 .card { background: linear-gradient(160deg, var(--gold-soft), var(--surface) 65%); border-color: color-mix(in srgb, var(--b-mid) 25%, var(--line)); }
.skin-5 { --surface: var(--navy); --surface-2: rgba(255, 255, 255, .05); --ink: #f3ecdc; --ink-2: #d6d0c3; --muted: #a9b2c2; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .06); --gold: var(--b-light); --gold-soft: rgba(255, 255, 255, .07); }
.skin-5 .card { background: radial-gradient(120% 140% at 100% 0%, var(--navy-2), var(--navy) 60%); color: var(--ink); border: 0; box-shadow: var(--shadow-lg); }
.skin-5 h2, .skin-5 h3 { color: #fff; }
.skin-5 thead th { background: rgba(255, 255, 255, .04); }
.skin-5 input, .skin-5 select { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .15); }

/* ---------- karat layouts 3–5 ---------- */
.kcompact { display: flex; flex-wrap: wrap; gap: 10px; }
.kcompact a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: .15s; }
[dir=rtl] .kcompact a { padding: 8px 8px 8px 16px; }
.kcompact a:hover { border-color: var(--gold); text-decoration: none; }
.kcompact .kk { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem var(--font-d); background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.kcompact b { font: 800 1.15rem var(--font-d); } .kcompact em { font-style: normal; font-size: .78rem; color: var(--muted); }
.kbars { display: flex; flex-direction: column; gap: 10px; }
.kbar { display: grid; grid-template-columns: 70px 1fr auto 52px; gap: 12px; align-items: center; color: var(--ink); padding: 6px 4px; border-radius: 12px; }
.kbar:hover { background: var(--surface-2); text-decoration: none; }
.kbar .kb-n { font-weight: 700; font-size: .9rem; }
.kbar .kb-t { height: 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.kbar .kb-t i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--b-dark), var(--b-mid), var(--b-light)); }
[dir=rtl] .kbar .kb-t i { background: linear-gradient(270deg, var(--b-dark), var(--b-mid), var(--b-light)); }
.kbar b { font: 800 1.1rem var(--font-d); } .kbar small { color: var(--muted); font-size: .78rem; }
.krows { display: flex; flex-direction: column; gap: 10px; }
.krow { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: .15s; }
.krow:hover { border-color: var(--gold); text-decoration: none; transform: translateX(-2px); }
.krow .kr-k { width: 60px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 800 1.4rem/1 var(--font-d); background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.krow .kr-k small { font-size: .5em; }
.krow b { display: block; } .krow small { color: var(--muted); font-size: .8rem; }
.krow .kr-v b { font: 800 1.5rem var(--font-d); } .krow .kr-10 b { font: 700 1.05rem var(--font-d); }
@media (max-width: 640px) { .krow { grid-template-columns: 52px 1fr auto; } .krow .kr-10 { display: none; } .kbar { grid-template-columns: 56px 1fr auto; } .kbar small { display: none; } }

/* ---------- currencies layouts ---------- */
.fxlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lay-2 .fxlist { grid-template-columns: 1fr; gap: 6px; }
.lay-2 .fxlist .tile { padding: 10px 14px; } .lay-2 .fxlist .tile div { display: flex; justify-content: space-between; flex: 1; align-items: center; flex-direction: row-reverse; }
.lay-3 .fxlist { display: flex; flex-wrap: wrap; gap: 8px; }
.lay-3 .fxlist .tile { border-radius: 99px; padding: 6px 14px 6px 6px; } .lay-3 .fxlist .ti-ico { width: 32px; height: 32px; border-radius: 50%; }
.lay-3 .fxlist .tile div { display: flex; gap: 8px; align-items: baseline; }
.lay-4 .fxlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lay-4 .fxlist .tile { flex-direction: column; align-items: flex-start; padding: 20px; } .lay-4 .fxlist .tile b { font: 800 1.9rem var(--font-d); }
.lay-5 .fxlist { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lay-5 .fxlist .tile { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; } .lay-5 .fxlist .tile:last-child { border-bottom: 0; }
.lay-5 .fxlist .ti-ico { display: none; } .lay-5 .fxlist .tile div { display: flex; justify-content: space-between; flex: 1; flex-direction: row-reverse; }
.lay-5 .fxlist .tile:hover { transform: none; box-shadow: none; background: var(--surface-2); }
@media (max-width: 700px) { .fxlist, .lay-4 .fxlist { grid-template-columns: 1fr; } }

/* ---------- cities layouts ---------- */
.citylist { display: flex; flex-wrap: wrap; gap: 8px; }
.citylist .chip { padding: 8px 15px; }
.lay-2 .citylist { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lay-2 .citylist .chip { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 18px; background: var(--surface-2); font-weight: 700; }
.lay-2 .citylist .chip .ico { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.lay-3 .citylist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.lay-3 .citylist .chip { border-radius: 0; border: 0; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); justify-content: center; padding: 18px 10px; }
.lay-4 .citylist { flex-direction: column; gap: 0; }
.lay-4 .citylist .chip { border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 12px 4px; justify-content: space-between; width: 100%; font-weight: 600; }
.lay-5 .citylist .chip { padding: 12px 20px; font-size: 1rem; font-weight: 700; background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); border: 0; box-shadow: 0 10px 22px -16px var(--b-mid); }
.lay-5 .citylist .chip .ico { color: var(--b-ink); }
@media (max-width: 700px) { .lay-3 .citylist { grid-template-columns: 1fr 1fr; } }

/* ---------- news layouts ---------- */
.lay-2 .posts { grid-template-columns: 1fr; }
.lay-2 .post { flex-direction: row; } .lay-2 .post .thumb { width: 240px; flex: none; aspect-ratio: 16 / 9; } .lay-2 .post .pbody { padding: 14px 18px; }
.lay-3 .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lay-3 .post:first-child { grid-column: span 2; grid-row: span 2; } .lay-3 .post:first-child h3 { font-size: 1.3rem; }
.lay-4 .posts { grid-template-columns: 1fr 1fr; gap: 0 24px; counter-reset: nw; }
.lay-4 .post { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; counter-increment: nw; flex-direction: row; align-items: center; }
.lay-4 .post .thumb { display: none; } .lay-4 .post p { display: none; }
.lay-4 .post::before { content: counter(nw, decimal-leading-zero); font: 800 1.6rem var(--font-d); color: var(--gold); opacity: .55; padding: 0 12px; }
.lay-5 .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lay-5 .post { border-radius: 22px; } .lay-5 .post h3 { font-size: 1.15rem; }
@media (max-width: 700px) { .lay-2 .post { flex-direction: column; } .lay-2 .post .thumb { width: 100%; } .lay-3 .posts, .lay-4 .posts, .lay-5 .posts { grid-template-columns: 1fr; } .lay-3 .post:first-child { grid-column: auto; grid-row: auto; } }

/* ---------- FAQ layouts ---------- */
.lay-2 .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; } .lay-2 .faq .sec-h { grid-column: 1 / -1; }
.lay-3 .faq details { background: var(--surface); box-shadow: 0 10px 24px -20px rgba(0, 0, 0, .35); border-radius: 18px; padding: 0 18px; }
.lay-3 .faq details[open] { border-color: var(--gold); }
.lay-4 .faq details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; margin: 0; }
.lay-5 .faq { counter-reset: fq; } .lay-5 .faq details { counter-increment: fq; }
.lay-5 .faq summary::before { content: counter(fq); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--font-d); background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); }
.lay-5 .faq summary { justify-content: flex-start; align-items: center; } .lay-5 .faq summary::after { margin-inline-start: auto; }
@media (max-width: 700px) { .lay-2 .faq { grid-template-columns: 1fr; } }
.hero4 .h4-card .chg { position: static; align-self: flex-start; margin-top: 4px; }
.hero5 .h5-val { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero5 .h5-val small { white-space: nowrap; margin: 0; }
.hero2 .h2-val small { white-space: nowrap; }
@media (max-width: 600px) { .hero2 .h2-pills { grid-template-columns: 1fr 1fr; } .hero2 { padding: 26px 16px 18px; } .hero4 .h4-cards { gap: 10px; } }

/* hero 4 on phones: featured card full width, the other three in one premium row */
@media (max-width: 900px) {
  .hero4 .h4-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero4 .h4-card.on { grid-column: 1 / -1; }
  .hero4 .h4-card:not(.on) { padding: 12px 8px 10px; border-radius: 18px; align-items: center; text-align: center; gap: 2px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--b-light) 18%, var(--surface)), var(--surface) 70%);
    border: 1px solid color-mix(in srgb, var(--b-mid) 30%, var(--line)); box-shadow: 0 12px 24px -18px var(--b-mid); }
  .hero4 .h4-card:not(.on) .h4-k { font-size: 1rem; width: 44px; height: 30px; display: grid; place-items: center; border-radius: 10px;
    background: linear-gradient(135deg, var(--b-light), var(--b-mid)); color: var(--b-ink); margin-bottom: 4px; }
  .hero4 .h4-card:not(.on) .h4-k small { font-size: .65em; }
  .hero4 .h4-card:not(.on) .h4-l { font-size: .68rem; }
  .hero4 .h4-card:not(.on) b { font-size: 1.12rem; margin-top: 2px; }
  .hero4 .h4-card:not(.on) .cur { font-size: .68rem; }
  .hero4 .h4-card:not(.on) .spark { height: 26px; margin-top: 6px; }
}
.hero4 .h4-card { min-width: 0; } .hero4 .on b { font-size: clamp(2rem, 1.1rem + 2vw, 3rem); white-space: nowrap; }
@media (max-width: 900px) { .hero4 .h4-card:not(.on) .h4-k { width: auto; padding: 0 10px; display: inline-flex; align-items: baseline; gap: 1px; white-space: nowrap; } }
.hero4 .h4-k { direction: ltr; unicode-bidi: isolate; }
.hero4 .h4-k { align-self: flex-start; } @media (max-width: 900px) { .hero4 .h4-card:not(.on) .h4-k { align-self: center; } }

/* small dollar price under local prices (all karat layouts) */
.kusd { display: block; font-size: .72rem; font-weight: 600; color: var(--muted, #6b7280); line-height: 1.3; margin-top: 2px; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.kusd-in { font-size: inherit; color: inherit; unicode-bidi: isolate; }
.kcompact .kusd { margin-top: 0; }
.show-sm { display: none !important; }
@media (max-width: 600px) { .show-sm { display: block !important; } }
.kusd span { display: inline !important; font: inherit !important; color: inherit !important; margin: 0 !important; padding: 0 !important; }
