
/* ==========================================================================
   Mithqal site — design v2, ported.  Source: mithqal.iq-docs/design/v2/
   (assets/brand.css, app.css, shell.css).  Loaded AFTER app.css: it supplies
   the design's tokens and the shell (glass header, desktop top navigation,
   footer), the home/prices components, and re-skins the old components
   (.btn .chip .card .page-head ...) so inner pages sit in the same shell.
   All new classes are prefixed `mq-`.  Motion values are the design's own:
   --ease cubic-bezier(.2,.8,.2,1); page-in .38s; sheet/toast rise .4–.5s;
   pulse 1.8s; flash .9s; odometer .75s; chart ring 2.2s.
   ========================================================================== */

:root {
  --gold-grad: linear-gradient(115deg, #C99625 0%, #E4B94F 34%, #F4CF7C 64%, #FFF6C4 100%);
  --gold-grad-soft: linear-gradient(115deg, rgba(201, 150, 37, .22), rgba(255, 246, 196, .12));
  --charcoal: #414042;
  --bg-2: #0A1B3F;
  --surface-2: #122A60;
  --elev: #17326F;
  --line: rgba(255, 255, 255, .08);
  --line-gold: rgba(226, 184, 84, .30);
  --up: #5ED39B;
  --down: #FF8C84;
  --glass: rgba(7, 20, 48, .78);
  --lattice-op: .10;
  --cn-1: #fff; --cn-2: #C9D4EE; --cn-3: #93A3C8; --cn-line: rgba(255, 255, 255, .14); --cn-fill: rgba(255, 255, 255, .07);
  --sl1: #C99625; --sl2: #F4CF7C; --sl3: #FFF6C4;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r-xl: 32px;
  --top-h: 60px;
}
:root[data-theme='light'] {
  --bg-2: #FFEFCF;
  --surface-2: #FFF9EC;
  --elev: #FFFFFF;
  --line: rgba(21, 53, 117, .11);
  --line-gold: rgba(168, 122, 18, .38);
  /* --gold-ink stays app.css's #8A5F08: the design's #9A6E0C reads 4.27:1 on the cream, below the 4.5 the brand spec asserts */
  --up: #136F40;      /* was #1E8E5A: 3.2-3.5:1 on the pale-green chips and the live pill; this is 5.2:1 (QA round 7) */
  --down: #B3382F;    /* was #C8453B: 4.4:1 on the cream; this is 5.3:1 */
  --glass: rgba(255, 247, 230, .82);
  --lattice-op: .16;
  --sl1: #8E6208; --sl2: #B88A1E; --sl3: #D8A93C;
}

body { line-height: 1.7; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

/* ---- the metal ---- */
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
:root[data-theme='light'] .gold-text { background: linear-gradient(115deg, #7A5206, #A97B14 45%, #C99625); -webkit-background-clip: text; background-clip: text; }
:root[data-theme='light'] .mq-card-navy .gold-text { background: linear-gradient(115deg, #7A5206, #A97B14 45%, #C99625); -webkit-background-clip: text; background-clip: text; }

/* ---- the lattice: the brand pattern as a faded watermark ---- */
.lattice{position:absolute;inset:0;pointer-events:none;background:var(--gold-grad);opacity:var(--lattice-op);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='11' y='11' width='50' height='50'/%3E%3Crect x='11' y='11' width='50' height='50' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(0 0)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(72 0)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(0 72)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(72 72)'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to bottom left,#000 0%,transparent 72%);
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.6'%3E%3Crect x='11' y='11' width='50' height='50'/%3E%3Crect x='11' y='11' width='50' height='50' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(72 0)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(0 72)'/%3E%3Cpath d='M0 -12 L12 0 L0 12 L-12 0Z' transform='translate(72 72)'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(to bottom left,#000 0%,transparent 72%);
  -webkit-mask-composite:source-in;mask-composite:intersect;
  -webkit-mask-size:72px 72px,100% 100%;mask-size:72px 72px,100% 100%}

/* ---- surfaces ---- */
.mq-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.mq-card-navy {
  position: relative; overflow: hidden; color: var(--cn-1); border-radius: 24px;
  background: radial-gradient(120% 90% at 100% 0%, #1E4A9A 0%, rgba(30, 74, 154, 0) 55%), linear-gradient(160deg, #153575 0%, #0C2253 100%);
  border: 1px solid rgba(226, 184, 84, .30); box-shadow: var(--shadow-lg);
}
:root[data-theme='light'] .mq-card-navy {
  --cn-1: #10204A; --cn-2: #414042; --cn-3: #4F4A44; --cn-line: rgba(21, 53, 117, .16); --cn-fill: rgba(21, 53, 117, .06);
  background: radial-gradient(120% 90% at 100% 0%, rgba(226, 184, 84, .30), rgba(226, 184, 84, 0) 58%), linear-gradient(160deg, #FFFFFF 0%, #FFF2D2 100%);
  border-color: var(--line-gold);
}
.mq-hair { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); border: 0; margin: 0; }

/* ---- controls ---- */
.mq-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; transition: .2s var(--ease);
}
.mq-chip.on, .karats .chip[aria-pressed='true'] { color: #1a1203; background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 18px var(--glow); }
.mq-pill { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mq-pill .ico { width: 11px; height: 11px; }
.mq-pill.up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.mq-pill.down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.mq-pill.flat { color: var(--text-3); background: var(--surface-2); }
.mq-pill.ad { color: #1a1203; background: var(--gold-grad); }
.mq-pill.soft { color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.mq-pill.sm { height: 20px; font-size: 11px; padding: 0 8px; gap: 3px; }
.mq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .25s var(--ease); font-family: inherit; text-decoration: none;
}
.mq-btn.gold { color: #1a1203; background-color: var(--gold); background-image: var(--gold-grad); box-shadow: 0 10px 26px var(--glow), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.mq-btn.gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px var(--glow); }
.mq-btn.ghost { color: var(--text); border-color: var(--line-gold); background: transparent; }
.mq-btn.ghost:hover { background: var(--gold-grad-soft); }
.mq-btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: 12px; }
.mq-btn.block { width: 100%; }
.mq-btn:active { transform: scale(.98); }
.mq-btn .ico { width: 20px; height: 20px; }

/* old components, re-skinned so inner pages sit in the same shell */
.btn { border-radius: 14px; font-weight: 700; transition: .25s var(--ease); }
.btn-gold { background-color: var(--gold); background-image: var(--gold-grad); color: #1a1203; border-color: transparent; box-shadow: 0 10px 26px var(--glow), 0 1px 0 rgba(255, 255, 255, .5) inset; }
.btn-gold:hover { background-color: var(--gold); background-image: var(--gold-grad); transform: translateY(-1px); box-shadow: 0 14px 34px var(--glow); }
.btn-ghost { border-color: var(--line-gold); }
.btn-ghost:hover { background: var(--gold-grad-soft); border-color: var(--line-gold); color: var(--text); }
.btn:active { transform: scale(.98); }
.chip { border-radius: 999px; border-color: var(--line); background: var(--surface); transition: .2s var(--ease); }
.chip:hover { border-color: var(--line-gold); }
.chip[aria-pressed='true'] { background-color: var(--gold); background-image: var(--gold-grad); border-color: transparent; color: #1a1203; box-shadow: 0 6px 18px var(--glow); }
.card { border-color: var(--line); border-radius: var(--r-lg); }
.page-head h1 { font-weight: 800; }
.eyebrow { color: var(--gold-ink); }

/* ---- header: mobile app bar and desktop top navigation are one element ---- */
.mq-top {
  position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, backdrop-filter .25s, -webkit-backdrop-filter .25s;
}
.mq-top.scrolled {
  background: var(--glass); border-bottom-color: var(--line);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
.mq-top-in { max-width: 1160px; margin: 0 auto; padding: 0 18px; height: var(--top-h); display: flex; align-items: center; gap: 28px; }
.mq-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.mq-brand .brand-logo { height: 38px; width: auto; }
.mq-brand b { font-size: 20px; font-weight: 800; letter-spacing: .01em; }
:root[data-theme='light'] .mq-brand b { background: linear-gradient(115deg, #153575, #2457B5); -webkit-background-clip: text; background-clip: text; }
.mq-links { display: flex; gap: 6px; flex: 1; }
.mq-links a { padding: 8px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; transition: background-color .2s, color .2s; }
.mq-links a:hover { background: var(--surface); }
.mq-links a.on { color: var(--gold-ink); background: var(--gold-grad-soft); }
.mq-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.mq-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--up); padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--up) 13%, transparent); }
.mq-live .dot, .mq-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: mq-pulse 1.8s infinite; display: block; }
.mq-live.down { color: var(--down); }
.mq-live.flat { color: var(--gold-ink); }
.mq-live .dot, .mq-live .dot.up, .mq-live .dot.down, .mq-live .dot.flat { background: currentColor; width: 7px; height: 7px; box-shadow: 0 0 0 0 currentColor; }
.mq-live:has(.dot.down) { color: var(--down); }
.mq-live:has(.dot.flat) { color: var(--gold-ink); }
@keyframes mq-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.mq-ib { position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: .2s var(--ease); }
.mq-ib:hover { border-color: var(--line-gold); }
.mq-ib:active { transform: scale(.94); }
.mq-ib .ico { width: 21px; height: 21px; }
.mq-top .mq-desk { display: none; }
@media (min-width: 881px) {
  :root { --top-h: 70px; }
  .mq-top-in { padding: 0 28px; }
  .mq-top .mq-desk { display: inline-flex; }
  .mq-top .mq-mob-only { display: none; }
}
@media (max-width: 880px) {
  .mq-links { display: none; }
}

/* ---- page entrance and card entrances (the design's `in` / `rise`) ---- */
@keyframes mq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mq-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes mq-fade { from { opacity: 0; } }
#main { animation: mq-in .38s var(--ease); }
.mq-stagger > * { animation: mq-rise .5s var(--ease) both; }
.mq-stagger > *:nth-child(2) { animation-delay: .05s; }
.mq-stagger > *:nth-child(3) { animation-delay: .1s; }
.mq-stagger > *:nth-child(4) { animation-delay: .15s; }
.mq-stagger > *:nth-child(5) { animation-delay: .2s; }
.mq-stagger > *:nth-child(n+6) { animation-delay: .25s; }
@media (prefers-reduced-motion: reduce) {
  #main, .mq-stagger > *, .mq-live i, .mq-live .dot, .mq-chart .cl::after { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---- page layout ---- */
.mq-page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 8px 16px 40px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 881px) { .mq-page { padding: 18px 28px 56px; gap: 22px; } }
.mq-h { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 0; }
.mq-h h2 { margin: 0; font-size: 17px; font-weight: 800; }
.mq-h a { font-size: 12.5px; color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.mq-h .ico { width: 15px; height: 15px; }
.mq-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 20px; }
.mq-sec-h h2 { margin: 6px 0 0; font-size: 28px; font-weight: 800; }
.mq-sec-h .eyebrow, .mq-band .eyebrow { display: inline-flex; background: none; padding: 0; margin: 0; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); }
.mq-sec-h p { margin: 0; font-size: 14px; color: var(--text-2); max-width: 420px; }
.mq-sec-h a { font-size: 14px; font-weight: 700; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 3px; }
@media (max-width: 880px) { .mq-desk-only { display: none !important; } }
@media (min-width: 881px) { .mq-mob-only-b { display: none !important; } }

/* ---- desktop landing head ---- */
.mq-dh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: center; padding: 18px 0 4px; }
.mq-dh .eyebrow { display: inline-flex; font-size: 12.5px; font-weight: 800; color: var(--gold-ink); padding: 5px 12px; border-radius: 999px; background: var(--gold-grad-soft); border: 1px solid var(--line-gold); }
.mq-dh h1 { margin: 14px 0 12px; font-size: 44px; line-height: 1.3; font-weight: 800; }
.mq-dh .lead { margin: 0 0 22px; font-size: 16.5px; color: var(--text-2); line-height: 1.9; max-width: 520px; }
.mq-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.mq-ctas .mq-btn { height: 52px; padding: 0 24px; }
.mq-facts { display: flex; gap: 28px; margin-top: 26px; }
.mq-facts b { display: block; font-size: 26px; font-weight: 800; line-height: 1.4; }
.mq-facts span { font-size: 12.5px; color: var(--text-3); }
@media (max-width: 880px) { .mq-dh { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; } .mq-dh-copy { display: none; } }

/* ---- hero price card ---- */
.mq-hero { padding: 20px 20px 0; }
.mq-hero .lattice { opacity: .20; }
.mq-hero-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; gap: 8px; }
.mq-hero .lbl { font-size: 13px; color: var(--cn-2); font-weight: 600; line-height: 1.5; }
.mq-hero .lbl small { display: block; font-size: 11.5px; color: var(--cn-2); font-weight: 500; } /* cn-2, not cn-3: cn-3 on the card's lighter blue is 2.9–3.2:1 (QA 2026-10-11) */
.mq-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; position: relative; flex-wrap: wrap; }
.mq-price .num { font-size: 54px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.mq-price .u { font-size: 14px; color: var(--cn-2); font-weight: 600; }
.mq-buy { position: relative; margin-top: 4px; font-size: 13px; color: var(--cn-2); font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.mq-buy em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--cn-fill); border: 1px solid var(--cn-line); color: var(--cn-2); }
.mq-buy .num { font-weight: 800; color: var(--cn-1); font-size: 15px; }
.mq-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; position: relative; font-size: 12.5px; color: var(--cn-2); }
.mq-meta .ico { width: 15px; height: 15px; }
.mq-meta .upd { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.mq-sharebtn { margin-inline-start: auto; white-space: nowrap; position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--cn-fill); border: 1px solid var(--cn-line); color: var(--cn-1); font-size: 12px; font-weight: 800; cursor: pointer; transition: .2s var(--ease); }
.mq-sharebtn:hover { border-color: var(--line-gold); }
.mq-sharebtn:active { transform: scale(.96); }
.mq-sharebtn .ico { width: 15px; height: 15px; }
.mq-hero .chg { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; position: relative; }
.mq-hero .chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.mq-hero .chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.mq-hero .chg.flat { color: var(--cn-3); background: var(--cn-fill); }
.mq-spark { display: block; width: calc(100% + 40px); margin: 6px -20px 0; height: 112px; position: relative; }
.mq-ranges { display: flex; gap: 6px; padding: 0 0 16px; position: relative; align-items: center; }
.mq-ranges button { height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--cn-2); border: 1px solid var(--cn-line); background: transparent; cursor: pointer; transition: .2s var(--ease); }
.mq-ranges button:hover { border-color: var(--line-gold); }
.mq-ranges button.on { background: var(--gold-grad); color: #1a1203; border-color: transparent; }
.mq-ranges .full { margin-inline-start: auto; border: 0; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 3px; padding: 0 4px; font-size: 12px; font-weight: 700; }
:root:not([data-theme='light']) .mq-ranges .full { color: var(--gold); }
.mq-ranges .full .ico { width: 14px; height: 14px; }
@media (min-width: 881px) {
  .mq-hero { padding: 26px 28px 0; }
  .mq-price .num { font-size: 72px; }
  .mq-spark { width: calc(100% + 56px); margin: 8px -28px 0; height: 210px; }
  .mq-hero-solo .mq-spark { height: 150px; }
}
.mq-spark.none { opacity: 1; } /* no series: the box keeps its height — the card must not jump when the line arrives or never does */

/* the chart (the design's M.chart): gold line, gradient fill, end dot with a ring, hover/touch readout */
.mq-chart { position: relative; touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.mq-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mq-chart svg { animation: mq-reveal 1.1s var(--ease) .05s both; }
@keyframes mq-reveal { from { clip-path: inset(-20px 100% -20px 0); } to { clip-path: inset(-20px -20px -20px 0); } }
@keyframes mq-fade-in { to { opacity: 1; } }
.mq-chart .cx, .mq-chart .cd, .mq-chart .tip { opacity: 0; pointer-events: none; transition: opacity .15s; }
.mq-chart.has .cx, .mq-chart.has .cd, .mq-chart.has .tip { opacity: 1; }
.mq-chart .cx { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold) 70%, transparent); }
.mq-chart .cd { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--sl3); border: 3px solid var(--gold); box-shadow: 0 0 0 6px var(--glow); }
.mq-chart .cl { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sl3); border: 2.5px solid var(--gold); pointer-events: none; opacity: 0; animation: mq-fade-in .4s var(--ease) 1s forwards; }
.mq-chart .cl.up { border-color: var(--up); color: var(--up); }
.mq-chart .cl.down { border-color: var(--down); color: var(--down); }
.mq-chart .cl::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: mq-ring 2.2s ease-out infinite; }
@keyframes mq-ring { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.15); } }
.mq-chart.has .cl { opacity: 0 !important; }
.mq-chart .tip { position: absolute; z-index: 6; min-width: 138px; padding: 10px 13px; border-radius: 15px; background: rgba(6, 16, 40, .93); border: 1px solid var(--line-gold); color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: right; direction: rtl; white-space: nowrap; line-height: 1.35; }
:root[data-theme='light'] .mq-chart .tip { background: rgba(255, 255, 255, .97); color: #10204A; box-shadow: var(--shadow-lg); }
.mq-chart .tip .tt { font-size: 11.5px; opacity: .72; }
.mq-chart .tip .tp { font-size: 21px; font-weight: 800; line-height: 1.25; }
.mq-chart .tip .tp small { font-size: 11px; font-weight: 600; opacity: .7; }
.mq-chart .tip .td { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11px; opacity: .85; }

/* ---- odometer (design counter.js) ---- */
.odo { display: inline-flex; direction: ltr; align-items: flex-start; line-height: 1.12; height: 1.12em; font-variant-numeric: tabular-nums; unicode-bidi: isolate; transition: filter .3s; }
.odo .od { display: inline-block; height: 1.12em; overflow: hidden; width: .62em; text-align: center; }
.odo .oc { display: inline-block; width: .3em; text-align: center; }
.odo .odi { display: block; will-change: transform; }
.odo .odi > i { display: block; height: 1.12em; line-height: 1.12em; font-style: normal; font-weight: inherit; }
.odo.up { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--up) 70%, transparent)); }
.odo.down { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--down) 70%, transparent)); }
/* The counter box itself must not carry the gradient: `background-clip: text` on it also paints the
   digits the .od boxes clip away (a stray 0 and half-glyphs over the real digit). Each digit paints its own. */
.odo.gold-text, .odo.mq-silver-text { background: none !important; }
.odo.gold-text .oc { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
:root[data-theme='light'] .odo.gold-text .oc { background: linear-gradient(115deg, #7A5206, #A97B14 45%, #C99625); -webkit-background-clip: text; background-clip: text; }
.odo.mq-silver-text .oc { background: linear-gradient(115deg, #DDE5F3, #fff 55%, #B7C3DA); -webkit-background-clip: text; background-clip: text; }
:root[data-theme='light'] .odo.mq-silver-text .oc { background: linear-gradient(115deg, #4A5670, #6B7896 55%, #3D4863); -webkit-background-clip: text; background-clip: text; }
.odo .odi > i.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme='light'] .odo .odi > i.gold-text { background: linear-gradient(115deg, #7A5206, #A97B14 45%, #C99625); -webkit-background-clip: text; background-clip: text; }

/* ---- small cards: ounce / mithqal / silver ---- */
.mq-duo { display: grid; grid-template-columns: 1.12fr .88fr; gap: 12px; }
.mq-cards { display: grid; grid-template-columns: 1.12fr .88fr; gap: 12px; }
@media (min-width: 881px) { .mq-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.mq-ounce { padding: 14px 14px 12px; overflow: hidden; min-height: 150px; display: block; }
.mq-ounce .bar { position: absolute; inset-inline-end: 16px; bottom: -34px; height: 104px; width: auto; transform: rotate(8deg); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); pointer-events: none; transition: transform .5s var(--ease); }
.mq-ounce:hover .bar { transform: rotate(5deg) translateY(-3px); }
.mq-ounce .t, .mq-mini .t { font-size: 12px; color: var(--text-2); font-weight: 600; }
.mq-ounce .v { direction: ltr; text-align: end; }
.mq-ounce .v { font-size: 25px; font-weight: 800; margin-top: 2px; line-height: 1.3; }
.mq-ounce .chg { display: inline-flex; margin-top: 6px; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mq-ounce .chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.mq-ounce .chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.mq-ounce .chg.flat { display: none; }
.mq-mini { padding: 14px; display: grid; align-content: space-between; min-height: 150px; }
.mq-mini .v { font-size: 24px; font-weight: 800; line-height: 1.15; }
.mq-mini .s { font-size: 11.5px; color: var(--text-3); }
/* Dark: --text-3 is 4.26:1 on the silver card's blue (#223561); this is 5.27:1 and reads as the same grey-blue. */
:root:not([data-theme='light']) .mq-mini .s { color: #A0ACC8; }
.mq-mini .pairs { display: grid; gap: 2px; }
.mq-mini .sellv { font-size: 24px; font-weight: 800; line-height: 1.15; }
.mq-mini .buyv { font-size: 12.5px; color: var(--text-2); font-weight: 600; display: flex; gap: 6px; align-items: baseline; }
.mq-mini .buyv em { font-style: normal; font-size: 10.5px; color: var(--text-3); font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }

/* ---- slider (promo / news / ad cards) ---- */
.mq-slider { margin: 0 -16px; position: relative; }
.mq-slider .slider-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px; scrollbar-width: none; }
.mq-slider .slider-rail::-webkit-scrollbar { display: none; }
.mq-slider .slide { flex: none; width: 100%; scroll-snap-align: center; height: 154px; border-radius: 22px; padding: 18px 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-gold); color: #fff; transition: transform .3s var(--ease), border-color .3s; text-decoration: none; }
.mq-slider a.slide:hover { transform: translateY(-3px); }
.mq-slider .slide:active { transform: scale(.985); }
.mq-slider .slide .lattice { opacity: .16; }
.mq-slider .slide .img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mq-slider .slide .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 20, 48, .88) 6%, rgba(7, 20, 48, .30) 62%, rgba(7, 20, 48, .12)); }
.mq-slider .slide.s-in .shade { background: linear-gradient(to top, rgba(42, 29, 3, .55) 4%, rgba(42, 29, 3, .08) 70%); }
.mq-slider .slide .row { display: flex; align-items: center; justify-content: space-between; position: relative; }
.mq-slider .slide h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.35; font-weight: 800; max-width: 84%; position: relative; }
.mq-slider .slide .src { font-size: 11.5px; opacity: .85; display: flex; gap: 5px; align-items: center; margin-top: 6px; }
.mq-slider .slide .ico { width: 16px; height: 16px; }
.mq-slider .s-ad { background: linear-gradient(130deg, #153575, #0B2154); }
.mq-slider .s-news { background: linear-gradient(130deg, #10244F 0%, #17326F 60%, #1E4A9A); }
.mq-slider .s-shop { background: linear-gradient(130deg, #153575, #0B2154 70%, #1E4A9A); }
.mq-slider .slide .slide-place { display: block; position: relative; margin-top: 4px; font-size: 12px; opacity: .85; }
.mq-slider .s-in { background: linear-gradient(130deg, #E2B854, #F6D98A 55%, #FFF1BE); color: #fff; border-color: transparent; }
.mq-slider .s-in .lattice { background: #153575; opacity: .14; }
.mq-slider .tag { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mq-slider .tag.n { background: rgba(255, 255, 255, .16); color: #fff; }
.mq-slider .tag.i { background: #153575; color: #fff; }
.mq-slider .tag.ad { background: var(--gold-grad); color: #1a1203; }
.mq-slider .slider-dots, .mq-dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.mq-slider .slider-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 99px; background: var(--line-gold); cursor: pointer; transition: .3s var(--ease); min-width: 0; }
.mq-slider .slider-dots button[aria-selected='true'] { width: 22px; background: var(--gold); }
@media (min-width: 881px) {
  .mq-slider { margin: 0; }
  .mq-slider .slider-rail { padding: 0; }
  .mq-slider .slide { width: calc((100% - 24px) / 3); height: 168px; }
}

/* ---- the table of prices, as rows ---- */
.mq-karats { display: flex; gap: 8px; flex-wrap: wrap; }
.mq-karats .karats-label { display: none; }
.mq-rows { overflow: hidden; }
.mq-rows .rowh, .mq-rows .prow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 13px 18px; }
.mq-rows .rowh { font-size: 11.5px; color: var(--text-3); font-weight: 700; background: var(--surface-2); letter-spacing: .03em; }
.mq-rows .prow { grid-template-areas: 'w p' 'c p'; border-top: 1px solid var(--line); transition: background-color .2s; }
.mq-rows .prow:hover { background: var(--gold-grad-soft); }
.mq-rows .prow .w { grid-area: w; display: grid; gap: 3px; justify-items: start; }
.mq-rows .prow .w b { display: block; font-size: 15px; font-weight: 700; line-height: 1.4; }
.mq-rows .prow .w small { font-size: 11.5px; color: var(--text-3); }
.mq-rows .k { display: none; }
.mq-rows .k.is-on { display: contents; }
.mq-rows .k .p { grid-area: p; text-align: left; display: grid; gap: 1px; justify-items: end; }
.mq-rows .sell { font-size: 19px; font-weight: 800; color: var(--gold-ink); }
.mq-rows .buy { font-size: 13px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mq-rows .buy em { font-style: normal; font-size: 10.5px; color: var(--text-3); font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.mq-rows .cell-chg { grid-area: c; justify-self: start; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mq-rows .cell-chg.up { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); }
.mq-rows .cell-chg.down { color: var(--down); background: color-mix(in srgb, var(--down) 14%, transparent); }
.mq-rows .cell-chg.flat { display: none; }
.mq-note { font-size: 11.5px; color: var(--text-3); padding: 2px 4px; line-height: 1.8; margin: 0; }
.basis-note.mq-note[hidden] { display: none; }
.mq-split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.mq-stack { display: grid; gap: 12px; align-content: start; }
@media (min-width: 881px) {
  .mq-split { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .mq-split > aside { position: sticky; top: 90px; }
}
.mq-callout { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 18px; text-align: start; width: 100%; color: inherit; transition: .3s var(--ease); background: var(--gold-grad-soft); border: 1px solid var(--line-gold); border-radius: var(--r-lg); }
.mq-callout:hover { transform: translateY(-2px); }
.mq-callout .ico-c { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-grad); color: #1a1203; }
.mq-callout .ico-c .ico { width: 22px; height: 22px; }
.mq-callout b { font-size: 14.5px; display: block; line-height: 1.5; }
.mq-callout small { font-size: 12px; color: var(--text-2); }
.mq-callout small .num { color: inherit; }

/* ---- news ---- */
.mq-nrows { overflow: hidden; }
.mq-nrows .nrow { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px 14px; transition: background-color .2s; }
.mq-nrows .nrow + .nrow { border-top: 1px solid var(--line); }
.mq-nrows .nrow:hover { background: var(--gold-grad-soft); }
.mq-ng { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.mq-nc { overflow: hidden; display: flex; flex-direction: column; align-content: start; text-align: start; transition: .3s var(--ease); color: inherit; }
.mq-nc:hover { transform: translateY(-3px); border-color: var(--line-gold); }
.mq-nc.big { grid-row: span 2; }
.mq-nc .pic { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg, #153575, #0B2154); border-bottom: 1px solid var(--line-gold); overflow: hidden; display: grid; place-items: center; }
.mq-nc .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mq-nc:hover .pic img { transform: scale(1.04); }
.mq-nc .pic .brand-logo { height: 44px; width: auto; opacity: .85; }
.mq-nc.big .pic { aspect-ratio: auto; flex: 1; min-height: 290px; }
.mq-nc .nb { padding: 16px 18px 18px; display: grid; gap: 8px; }
.mq-nc .nb b { font-size: 16px; line-height: 1.6; font-weight: 700; }
.mq-nc.big .nb b { font-size: 22px; }
.mq-nc .meta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mq-nc .nb small { font-size: 12px; color: var(--text-3); }
.mq-feat { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--gold-ink); background: var(--gold-grad-soft); border: 1px solid var(--line-gold); }
@media (max-width: 880px) { .mq-ng { grid-template-columns: minmax(0, 1fr); } .mq-nc.big { grid-row: auto; } .mq-nc.big .pic { aspect-ratio: 16/9; min-height: 0; flex: none; } .mq-nc.big .nb b { font-size: 18px; } }

/* ---- the official dollar, at the foot ---- */
.mq-usd { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mq-usd .t { font-size: 14.5px; font-weight: 800; line-height: 1.4; }
.mq-usd .s { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mq-usd .v { font-size: 30px; font-weight: 800; white-space: nowrap; }
.mq-usd .v small { font-size: 12px; font-weight: 600; color: var(--text-3); -webkit-text-fill-color: var(--text-3); }

/* ---- the app band + faq teaser (desktop landing) ---- */
.mq-band { position: relative; overflow: hidden; border-radius: 30px; padding: 44px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; color: #fff;
  background: radial-gradient(600px 300px at 0% 0%, rgba(226, 184, 84, .22), transparent 70%), linear-gradient(135deg, #153575, #071836); border: 1px solid rgba(226, 184, 84, .35); box-shadow: var(--shadow-lg); }
.mq-band .lattice { opacity: .15; }
.mq-band h2 { margin: 10px 0; font-size: 32px; line-height: 1.35; font-weight: 800; position: relative; color: #fff; }
.mq-band p { margin: 0 0 20px; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.9; position: relative; }
.mq-band .eyebrow { font-size: 12.5px; font-weight: 800; color: #F4CF7C; position: relative; }
.mq-band .stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: relative; }
.mq-band .stores img { height: 52px; width: auto; display: block; }
.mq-qr { position: relative; display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: 22px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.mq-qr img { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 6px; }
.mq-qr b { font-size: 16px; display: block; margin-bottom: 4px; }
.mq-qr span { font-size: 13px; color: rgba(255, 255, 255, .75); line-height: 1.7; }
@media (max-width: 880px) { .mq-band { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; gap: 22px; } .mq-band h2 { font-size: 26px; } }
.mq-faq { display: grid; gap: 10px; }
.mq-faq details { padding: 0; }
.mq-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.mq-faq summary::-webkit-details-marker { display: none; }
.mq-faq summary::after { content: '+'; font-size: 20px; color: var(--gold-ink); line-height: 1; transition: transform .3s var(--ease); }
.mq-faq details[open] summary::after { content: '\2212'; }
.mq-faq details p { margin: 0; padding: 0 20px 16px; color: var(--text-2); font-size: 14px; line-height: 1.9; animation: mq-in .3s var(--ease); }

/* ---- footer ---- */
.mq-foot { margin-top: 40px; background: var(--bg-2); border-top: 1px solid var(--line); padding: 36px 0 0; }
.mq-foot-in { max-width: 1160px; margin: 0 auto; padding: 0 18px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; align-items: start; }
@media (min-width: 881px) { .mq-foot-in { padding: 0 28px; } }
.mq-foot .logo-line { display: flex; align-items: center; gap: 10px; }
.mq-foot .logo-line .brand-logo { height: 40px; width: auto; }
.mq-foot .logo-line b { font-size: 20px; font-weight: 800; }
.mq-foot p { font-size: 13px; color: var(--text-3); margin: 10px 0 0; max-width: 300px; line-height: 1.8; }
.mq-foot h3 { display: block; margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.mq-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mq-foot a { display: inline-block; padding: 4px 0; font-size: 13.5px; color: var(--text-2); transition: color .2s; }
.mq-foot a:hover { color: var(--gold-ink); }
.mq-foot .foot-contact li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); padding: 3px 0; }
.mq-foot .foot-contact .ico { color: var(--gold-ink); flex: none; }
.mq-foot .foot-social { display: flex; gap: 8px; margin-top: 14px; }
.mq-foot .foot-social a { width: 38px; height: 38px; padding: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.mq-foot .foot-social a:hover { color: var(--gold-ink); border-color: var(--line-gold); }
.mq-foot-bottom { max-width: 1160px; margin: 26px auto 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-3); }
@media (min-width: 881px) { .mq-foot-bottom { padding-inline: 28px; } }
.mq-foot-bottom p { margin: 0; max-width: none; font-size: 12px; }
.mq-foot-bottom .mq-themebtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.mq-foot-bottom .mq-themebtn .ico { width: 16px; height: 16px; }
@media (max-width: 880px) {
  .mq-foot-in { grid-template-columns: 1fr 1fr; }
  .mq-foot-in > div:first-child { grid-column: 1 / -1; }
  /* clear of the floating bar */
  body:has(.nav2) .mq-foot { padding-bottom: 104px; }
  /* The footer is not shown on phones that have the floating bar (the design has none), so the
     page itself has to end above the bar: the last control on any page — the share button, a
     form's submit — must be reachable, not sitting under it. */
  body:has(.nav2) .mq-page { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* ---- inner pages inside the shell ---- */
.page-head { padding-block: 28px 8px; }
.section { padding-block: 40px; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.page-head .crumbs { font-size: 12.5px; }
.topbar, .ticker, .drawer { display: none !important; }

/* a gold calculator CTA on every page is the nav's job; the floating button follows the design's FAB */
.wc-fab { background: var(--gold-grad); color: #1a1203; box-shadow: 0 12px 28px var(--glow), 0 1px 0 rgba(255, 255, 255, .6) inset; }

/* ---- the logo intro: a full-screen curtain on the page's own colour, with the design's «تخطّي» ---- */
.intro-hero { display: none; }
.intro-hero.on { display: grid; }
.intro-hero { position: fixed; inset: 0; z-index: 200; background: var(--bg); animation: mq-fade .3s; }
.intro-hero .skip, .intro-hero .skip:focus { top: auto; position: absolute; bottom: calc(34px + env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: max-content; pointer-events: auto; font: inherit; font-size: 13px; color: var(--text-3); padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.intro-hero[data-done] { opacity: 0; transition: opacity .5s; }

/* ---- sheets (the design's `sheet`: blurred scrim fades in .3s, the panel rises .42s; centred dialog on a desktop) ---- */
@keyframes mq-up { from { transform: translateY(100%); } }
.mq-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(2, 8, 22, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: mq-fade .3s; }
.mq-sheet[hidden] { display: none; }
.mq-sheet .sh { width: min(100%, 560px); max-height: 88%; overflow-y: auto; background: var(--bg-2); color: var(--text); border-radius: 30px 30px 0 0; border: 0; border-top: 1px solid var(--line-gold); padding: 10px 20px calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 10px; animation: mq-up .42s var(--ease); }
.mq-sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-gold); justify-self: center; margin: 2px 0 8px; }
.mq-sheet h2 { margin: 0; font-size: 18px; font-weight: 800; text-align: start; }
.mq-sheet .sub { margin: 0 0 4px; font-size: 13px; color: var(--text-2); }
.mq-sheet .share-sheet__opt, .mq-sheet .share-sheet__cancel { min-height: 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: .2s var(--ease); font-weight: 700; }
.mq-sheet .share-sheet__opt { display: flex; align-items: center; gap: 14px; padding: 10px 14px; text-align: start; cursor: pointer; color: inherit; font-family: inherit; }
.mq-sheet .share-sheet__opt span { display: grid; }
.mq-sheet .share-sheet__opt:hover, .mq-sheet .share-sheet__opt:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px var(--glow); background: var(--surface); }
.mq-sheet .share-sheet__opt b { font-size: 14.5px; }
.mq-sheet .share-sheet__opt small { opacity: 1; color: var(--text-3); font-weight: 500; font-size: 12px; }
.mq-sheet .share-sheet__shape { border-color: var(--gold); }
.mq-sheet .share-sheet__cancel { justify-content: center; border-color: transparent; background: transparent; color: var(--text-2); opacity: 1; }
@media (min-width: 881px) {
  .mq-sheet { align-items: center; }
  .mq-sheet .sh { border-radius: 28px; border: 1px solid var(--line-gold); animation: mq-fade .25s; }
  .mq-sheet .grab { display: none; }
}

/* ---- /chart ---- */
.mq-backrow { display: flex; align-items: center; gap: 12px; }
.mq-backrow h1 { margin: 0; font-size: 22px; font-weight: 800; }
.mq-backrow .mq-ib .ico { transform: scaleX(-1); }
.mq-rng { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.mq-rng::-webkit-scrollbar { display: none; }
.mq-rng .mq-chip { flex: none; }
.mq-bigchart { height: 210px; }
@media (min-width: 881px) { .mq-bigchart, .mq-hero-solo .mq-bigchart { height: 320px; } }
.mq-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mq-stats[hidden] { display: none; }
.mq-stats > div { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mq-stats small { display: block; font-size: 11.5px; color: var(--text-3); }
.mq-stats b { font-size: 16px; font-weight: 800; }
.mq-stats b.up { color: var(--up); } .mq-stats b.down { color: var(--down); }
.mq-stack { grid-template-columns: minmax(0, 1fr); }
.mq-rng { padding: 4px 4px 8px; }

/* ---- the floating bottom bar, the design's way (nav2): a glass pill that slides to the current tab ---- */
@media (max-width: 880px) {
  .nav2 .cap { position: relative; }
  .nav2 .cap::before, .nav2 .act::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(158deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .05) 38%, transparent 58%, rgba(255, 255, 255, .07)); }
  .nav2 .act::before { background: linear-gradient(158deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 42%, transparent 60%); }
  .nav2 .ind { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 29px; pointer-events: none; background: rgba(226, 184, 84, .20); border: 1px solid rgba(226, 184, 84, .46); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 4px 16px rgba(226, 184, 84, .2); transition: transform .46s cubic-bezier(.3, 1.35, .4, 1), width .46s var(--ease), opacity .2s; }
  :root[data-theme='light'] .nav2 .ind { background: rgba(226, 184, 84, .34); }
  .nt { position: relative; z-index: 1; transition: flex-grow .4s var(--ease), opacity .22s, color .2s, transform .15s; }
  .nt.on, :root[data-theme='light'] .nt.on { background: none; box-shadow: none; }
  .nav2 .act { box-shadow: 0 14px 34px var(--glow), 0 0 0 1px rgba(201, 150, 37, .35), inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(120, 80, 0, .25); transition: transform .3s var(--ease), box-shadow .3s var(--ease); overflow: hidden; position: relative; }
  .nav2 .act .ico { position: relative; }
  .nav2 .act.on { box-shadow: 0 18px 40px var(--glow), 0 0 0 4px rgba(226, 184, 84, .30), inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(120, 80, 0, .25); }
}

/* ---- the price flash, as the design draws it: a ring of the move's colour that grows and fades (.9s, ease-out) ---- */
@keyframes flash-up { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes flash-down { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--down) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
.flash-up { animation: flash-up .9s ease-out; border-radius: 10px; }
.flash-down { animation: flash-down .9s ease-out; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .flash-up, .flash-down { animation: none; } }


/* ==========================================================================
   Round 4: the silver card in the ounce card's family, the store badges, the app band's
   hint line, the full logo, and the footer as the design draws it
   ========================================================================== */
.mq-ounce .s { font-size: 11.5px; color: var(--text-3); margin-top: 4px; position: relative; }
.mq-ounce .v small { font-size: 13px; color: var(--text-3); font-weight: 600; }
.mq-ounce { transition: transform .25s var(--ease), border-color .25s; }
a.mq-ounce:hover { border-color: var(--line-gold); }
a.mq-ounce:active { transform: scale(.985); }
.mq-cards .mq-silver { grid-column: 1 / -1; min-height: 120px; }
@media (min-width: 881px) { .mq-cards .mq-silver { grid-column: auto; min-height: 150px; } }

.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stores.center { justify-content: center; }
.sbtn { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .2s var(--ease); cursor: pointer; }
.sbtn:hover { transform: translateY(-1px); }
.sbtn img { height: 52px; width: auto; display: block; }
:root[data-theme='light'] .sbtn img { filter: drop-shadow(0 2px 6px rgba(21, 53, 117, .18)); }
:root[data-os='ios'] .os-android, :root[data-os='android'] .os-ios { display: none; }
.mq-band .stores { position: relative; }
.mq-band .hint { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); position: relative; }
.mq-band .hint .ico { width: 18px; height: 18px; color: #F4CF7C; flex: none; }
.mq-band .mq-btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); position: relative; }
.mq-band .mq-btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* the full logo (mark and wordmark), drawn from the brand SVG as a mask so it takes the gold or the navy */
.mq-logo-full { display: inline-block; flex: none; width: 92px; aspect-ratio: 1100 / 912; background: var(--gold-grad); -webkit-mask-image: url('images/logo-full.svg'); mask-image: url('images/logo-full.svg'); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; }
:root[data-theme='light'] .mq-logo-full { background: linear-gradient(115deg, #153575, #2457B5); }

/* footer, the design's: bg-2, a hairline above, the logo and one sentence, then the link columns */
.mq-foot { margin-top: 40px; padding: 36px 0 0; }
.mq-foot-in { grid-template-columns: 1.5fr 1fr 1fr .8fr 1.2fr; gap: 30px; }
.mq-foot .brand-col p { margin: 10px 0 0; max-width: 280px; }
.mq-foot .brand-col .foot-social { margin-top: 16px; }
.mq-foot h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.mq-foot ul a { display: block; padding: 3px 0; font-size: 13.5px; color: var(--text-2); }
.mq-foot .foot-contact li { padding: 3px 0; }
.mq-foot .foot-contact li a { display: inline; padding: 0; }
.mq-foot-bottom { padding-top: 16px; margin-top: 24px; }
@media (max-width: 1100px) { .mq-foot-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .mq-foot-in > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 880px) {
  .mq-foot-in { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .mq-foot-in > div:first-child { grid-column: 1 / -1; }
  .mq-foot-in > div:last-child { grid-column: 1 / -1; }
}


/* ==========================================================================
   Round 4b: gradient-clipped text gets a box tall enough for its glyphs.
   `background-clip: text` paints the gradient only inside the element's own box, and at the
   page's tight line-height (20px at a 20px size) the box was shorter than an Arabic word's
   extents — the tail of the «ق» in the logo, the descenders of «لحظةً بلحظة» were cut off.
   A taller line box, with the extra taken back out of the layout by a negative margin, keeps
   every line where it was and the whole glyph inside the gradient.
   ========================================================================== */
.gold-text:not(.odo):not(i), .mq-silver-text:not(.odo):not(i), .mq-brand b { display: inline-block; line-height: 1.7; padding-block: .2em; margin-block: -.2em; }
.mq-brand b { line-height: 1.7; }

/* ==========================================================================
   Round 4b: no footer on a phone that has the bottom bar (the design's phone has none);
   the account screen carries the links instead. The footer stays for a tablet and a desktop.
   ========================================================================== */
/* The design's phone has NO footer, with or without the bottom bar (the bar is a panel switch,
   the footer is not part of the phone design). The account screen carries the links. */
@media (max-width: 880px) {
  .mq-foot { display: none; }
}
.mq-gm { display: grid; gap: 14px; margin-top: 4px; padding-bottom: 8px; }
.mq-menu { overflow: hidden; }
button.mq-li { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.mq-menu .mq-pill { justify-self: end; }
@media (min-width: 881px) { .mq-gm { display: none; } }

/* ---- the hero's share button: large, high contrast, bottom centre of the card (customer request,
        2026-10-10 — a deliberate departure from the design's small pill beside the update time) ---- */
.mq-sharerow { display: flex; justify-content: center; padding: 2px 0 20px; position: relative; z-index: 2; }
.mq-sharerow .mq-sharebtn { margin: 0; height: 46px; min-width: 190px; padding: 0 26px; justify-content: center; gap: 9px; font-size: 14.5px; font-weight: 800; border-radius: 999px; background: var(--cn-fill); border: 1.5px solid var(--gold); color: var(--cn-1); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
:root[data-theme='light'] .mq-sharerow .mq-sharebtn { border-color: var(--gold-ink); background: rgba(255, 255, 255, .85); box-shadow: 0 6px 18px rgba(21, 53, 117, .14); }
.mq-sharerow .mq-sharebtn:hover { background: var(--gold-grad-soft); border-color: var(--gold); }
.mq-sharerow .mq-sharebtn .ico { width: 19px; height: 19px; color: var(--gold); }
:root[data-theme='light'] .mq-sharerow .mq-sharebtn .ico { color: var(--gold-ink); }
.mq-sharerow .mq-sharebtn[hidden] { display: none; }
/* the chips and «الرسم الكامل» never wrap inside themselves: tighter at 360px, or a second row rather than a broken label */
.mq-ranges { flex-wrap: wrap; row-gap: 8px; }
.mq-ranges button, .mq-ranges .full { white-space: nowrap; flex: none; }
@media (max-width: 380px) { .mq-ranges { gap: 5px; } .mq-ranges button { padding: 0 10px; } .mq-ranges .full { font-size: 11.5px; padding: 0 2px; } }

/* the install bar and card show the app's own icon (the one dark icon), not a mark on a tile */
.install-app { background: none !important; padding: 0 !important; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-gold); }
.install-app img { width: 100%; height: 100%; display: block; }

/* Phone = the design's app-like page: no explanatory prose under the cards, and the live pill is
   always the design's green (it does not follow the price direction). */
@media (max-width: 880px) { .mq-seo { display: none; } }
.mq-live.down, .mq-live.flat, .mq-live:has(.dot.down), .mq-live:has(.dot.flat) { color: var(--up); }
.mq-live .dot.down, .mq-live .dot.flat { background: var(--up); }

/* Phase three: a range, average or card that belongs to مثقال+, shown locked rather than hidden. */
.mq-chip.is-locked { opacity: .72; }
.mq-chip.is-locked svg { vertical-align: -2px; }
.mq-lock-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mq-cmp-locked { display: grid; gap: 10px; }
.mq-summary h3 small { font-weight: 400; color: var(--caption, #8a93a8); margin-inline-start: 6px; }
.mq-sumrow { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 0; border-top: 1px solid var(--line, rgba(128,128,128,.2)); font-size: 13.5px; }
.mq-sumrow > b:first-child { flex-basis: 100%; }
.mq-heads { list-style: none; margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid var(--line, rgba(128,128,128,.2)); display: grid; gap: 6px; font-size: 13.5px; }

/* The «مثقال+» badge a subscriber carries next to their name and on «اشتراكي». */
.mq-plus-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #1a1203; background: var(--gold-grad, #E2B854); vertical-align: middle; margin-inline-start: 6px; }
.mq-plus-badge svg { stroke: currentColor; }

/* «محفظتي»: the مثقال+ tools bar, locked tools, and an item's picture. */
.wallet-extras { padding: 14px 16px; display: grid; gap: 10px; }
.wallet-extras-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wallet-extras .mq-btn.is-locked, .mq-btn.is-locked { opacity: .7; cursor: not-allowed; }
.wallet-photo { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.wallet-photo img { width: 80px; height: 80px; object-fit: cover; border-radius: 12px; }
