:root {
  color-scheme: light;
  --ink: #101917;
  --ink-soft: #40504b;
  --night: #09110f;
  --night-2: #101c19;
  --night-3: #172521;
  --paper: #f5f2e9;
  --paper-2: #ebe5d6;
  --white: #fffef9;
  --gold: #c99738;
  --gold-bright: #e0b75e;
  --gold-pale: #f2e1b5;
  --sage: #748e7c;
  --green: #3b9b6d;
  --red: #b8584f;
  --amber: #b87925;
  --focus-ring: #654500;
  --line: rgba(16, 25, 23, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(9, 17, 15, 0.12);
  --radius: 24px;
  --radius-small: 14px;
  --shell: 1180px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

html[lang="ar"] {
  font-family: "Noto Sans Arabic", Tahoma, Arial, "Segoe UI", sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .brand-copy strong,
html[lang="ar"] .calculation-results strong {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

html[lang="ar"] .eyebrow,
html[lang="ar"] .section-kicker,
html[lang="ar"] .panel-topline,
html[lang="ar"] .form-grid label > span:first-child,
html[lang="ar"] .calculation-results span,
html[lang="ar"] .method-grid article > span {
  letter-spacing: 0;
  text-transform: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--white);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--night);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(245, 242, 233, 0.88);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-elevated {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(9, 17, 15, 0.06);
}

.header-inner,
.dashboard-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--night);
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 34px);
}

.language-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.language-toggle > span:first-child {
  display: grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  color: var(--night);
  background: var(--gold-pale);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.language-toggle:hover {
  border-color: rgba(16, 25, 23, 0.3);
  background: var(--white);
}

.language-toggle-dark {
  border-color: var(--line-dark);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.language-toggle-dark:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.header-nav > a:not(.button) {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.header-nav > a:not(.button):hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 12px;
}

.button-quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.button-primary {
  color: var(--white);
  background: var(--night);
  box-shadow: 0 16px 34px rgba(9, 17, 15, 0.2);
}

.button-primary:hover {
  background: var(--night-3);
}

.button-light {
  color: var(--night);
  background: var(--white);
}

.text-link {
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #82621f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 151, 56, 0.14);
}

.hero {
  display: grid;
  min-height: min(800px, calc(100vh - 78px));
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  align-items: center;
  gap: clamp(46px, 7vw, 100px);
  padding-block: 80px 100px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7.4vw, 106px);
  font-weight: 500;
  letter-spacing: -0.067em;
  line-height: 0.9;
}

.hero h1 em {
  color: var(--gold);
  font-weight: 500;
}

.hero-lede {
  max-width: 610px;
  margin: 34px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.microcopy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #67736f;
  font-size: 11px;
}

.lock-icon {
  position: relative;
  width: 10px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.lock-icon::before {
  position: absolute;
  bottom: 6px;
  left: 1.5px;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  content: "";
}

.hero-instrument {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 0%, rgba(201, 151, 56, 0.22), transparent 35%),
    linear-gradient(145deg, var(--night-3), var(--night));
  box-shadow: 0 34px 80px rgba(9, 17, 15, 0.24);
}

.hero-instrument::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(224, 183, 94, 0.15);
  border-radius: 50%;
  content: "";
}

.instrument-topline,
.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.instrument-topline {
  color: rgba(255, 255, 255, 0.58);
}

.live-principle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-principle i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(59, 155, 109, 0.15);
}

.formula-display {
  display: grid;
  min-height: 280px;
  align-content: center;
  justify-items: center;
  margin: 24px 0;
  border-block: 1px solid var(--line-dark);
  background: radial-gradient(circle, rgba(201, 151, 56, 0.1), transparent 58%);
}

.formula-label,
.formula-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formula-display strong {
  margin: 12px 0 8px;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.formula-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.formula-flow div {
  display: grid;
  min-width: 0;
}

.formula-flow div > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
}

.formula-flow strong {
  overflow: hidden;
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-flow small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.formula-flow > b {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.instrument-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.instrument-footer i {
  height: 1px;
  flex: 1;
  background: var(--line-dark);
}

.principle-band {
  color: rgba(255, 255, 255, 0.72);
  background: var(--night);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.principle-grid p {
  margin: 0;
  padding: 34px clamp(24px, 4vw, 50px);
  border-inline-start: 1px solid var(--line-dark);
  font-size: 12px;
}

.principle-grid p:last-child {
  border-inline-end: 1px solid var(--line-dark);
}

.principle-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-size: 13px;
}

.section {
  padding-block: clamp(90px, 11vw, 150px);
}

.section-contrast {
  background: var(--paper-2);
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.3vw, 72px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 70px;
}

.split-heading > p,
.centered-heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}

.feature-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 249, 0.62);
}

.feature-card-large {
  color: var(--white);
  background: var(--night-2);
}

.card-index {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: auto 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.feature-card-large p {
  color: rgba(255, 255, 255, 0.58);
}

.mini-price {
  display: grid;
  margin: 46px 0 30px;
  padding: 28px 0;
  border-block: 1px solid var(--line-dark);
}

.mini-price span,
.mini-price small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-price b {
  margin: 7px 0;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.spread-glyph,
.rules-glyph {
  display: flex;
  height: 150px;
  align-items: flex-end;
  justify-content: center;
  gap: 9px;
  margin: 42px 0 20px;
}

.spread-glyph i {
  display: block;
  width: 18px;
  border-radius: 9px;
  background: var(--gold-pale);
}

.spread-glyph i:nth-child(1) { height: 54px; }
.spread-glyph i:nth-child(2) { height: 105px; background: var(--gold); }
.spread-glyph i:nth-child(3) { height: 76px; }

.rules-glyph {
  align-items: center;
  gap: 0;
}

.rules-glyph i {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.rules-glyph i + i {
  margin-inline-start: -8px;
}

.rules-glyph i:nth-child(2),
.rules-glyph i:nth-child(3) {
  background: var(--gold-pale);
}

.rules-glyph i:nth-child(4) {
  border-color: var(--gold);
  background: var(--gold);
}

.journey {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.journey li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.journey li > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
}

.journey h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.journey p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.tax-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 34px;
  padding: 26px;
  border: 1px solid rgba(130, 98, 31, 0.23);
  border-radius: var(--radius-small);
  background: rgba(255, 254, 249, 0.52);
}

.note-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--gold-pale);
  font-family: Georgia, serif;
  font-weight: 700;
}

.tax-note h3 {
  margin: 2px 0 6px;
  font-size: 15px;
}

.tax-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.centered-heading {
  max-width: 750px;
  margin-inline: auto;
  text-align: center;
}

.centered-heading .eyebrow {
  margin-bottom: 20px;
}

.centered-heading > p {
  max-width: 620px;
  margin: 24px auto 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-grid article {
  padding: 30px 24px;
  border-top: 1px solid var(--line);
}

.trust-icon {
  display: block;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: 30px;
}

.trust-grid h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.trust-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.cta-section {
  padding: 0 24px 24px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  padding: clamp(50px, 7vw, 90px);
  border-radius: 36px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 183, 94, 0.18), transparent 28%),
    var(--night);
}

.cta-panel .eyebrow {
  color: var(--gold-bright);
}

.cta-copy {
  align-self: end;
}

.cta-copy p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
}

.site-footer {
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 70px;
  padding-bottom: 50px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid p {
  max-width: 390px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.footer-grid h2 + p {
  margin-top: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Dashboard */

.dashboard-page {
  min-height: 100vh;
  color: var(--ink);
  background: #ebe8df;
}

.dashboard-header {
  border-bottom: 1px solid var(--line-dark);
  color: var(--white);
  background: var(--night);
}

.brand-on-dark {
  color: var(--white);
}

.brand-on-dark .brand-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.owner-status {
  display: flex;
  align-items: center;
  gap: 18px;
}

.private-badge,
.header-clock {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
}

.private-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.header-clock {
  color: rgba(255, 255, 255, 0.72);
}

.dashboard-main {
  padding-bottom: 80px;
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 55px 0 30px;
}

.physical-scope-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(201, 151, 56, 0.32);
  border-radius: var(--radius-small);
  background: linear-gradient(135deg, rgba(201, 151, 56, 0.14), rgba(255, 255, 255, 0.54));
}

.physical-scope-banner > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff7df;
  background: var(--night-2);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.physical-scope-banner strong {
  font-size: 16px;
}

.physical-scope-banner p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-title-block .eyebrow {
  margin-bottom: 10px;
}

.dashboard-title-block h1 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 1;
}

.as-of-line {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.icon-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--white);
}

.icon-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon-button.is-loading svg {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.data-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-bottom: 18px;
  padding: 17px 20px;
  border: 1px solid rgba(184, 88, 79, 0.26);
  border-radius: var(--radius-small);
  background: #f8e8e4;
}

.data-banner[data-kind="stale"] {
  border-color: rgba(184, 121, 37, 0.3);
  background: #f7ecd8;
}

.banner-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
}

.data-banner[data-kind="stale"] .banner-icon {
  background: var(--amber);
}

.data-banner strong {
  font-size: 13px;
}

.data-banner p {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.surface-dark,
.surface-light,
.surface-sand {
  border-radius: var(--radius);
}

.surface-dark {
  color: var(--white);
  background: var(--night-2);
}

.surface-light {
  border: 1px solid rgba(16, 25, 23, 0.09);
  background: rgba(255, 254, 249, 0.88);
}

.surface-sand {
  border: 1px solid rgba(130, 98, 31, 0.15);
  background: #e3d8bd;
}

.market-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  gap: 18px;
}

.price-panel,
.review-panel {
  min-height: 390px;
  padding: clamp(24px, 3vw, 38px);
}

.price-panel {
  background:
    radial-gradient(circle at 82% 5%, rgba(201, 151, 56, 0.19), transparent 35%),
    var(--night-2);
}

.price-panel .panel-topline {
  color: rgba(255, 255, 255, 0.5);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surface-light .status-chip {
  border-color: var(--line);
}

.status-chip i,
.source-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #8a9490;
}

[data-status="ok"] i,
.source-dot[data-status="ok"] { background: var(--green); }
[data-status="stale"] i,
.source-dot[data-status="stale"] { background: var(--amber); }
[data-status="error"] i,
[data-status="unavailable"] i,
.source-dot[data-status="error"] { background: var(--red); }
[data-status="disagree"] i,
.source-dot[data-status="disagree"] { background: #b36f45; }
[data-status="misaligned"] i,
.source-dot[data-status="misaligned"] { background: #8f6bb3; }

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 68px;
}

.hero-price .currency,
.hero-price .unit {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-price strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: clamp(60px, 8vw, 92px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.price-context {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.price-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 0;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.price-meta div {
  display: grid;
  gap: 4px;
  padding-right: 14px;
}

.price-meta div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line-dark);
}

.price-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.price-meta strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-panel .panel-topline {
  color: var(--ink-soft);
}

.help-trigger {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 0;
  border-bottom: 1px dotted currentColor;
  color: var(--ink-soft);
  background: none;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.review-state {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 43px;
}

.review-orb {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 1px solid rgba(138, 148, 144, 0.45);
  border-radius: 50%;
  background: rgba(138, 148, 144, 0.12);
}

.review-orb::after {
  position: absolute;
  inset: 21px;
  border-radius: 50%;
  background: #8a9490;
  content: "";
}

.review-orb[data-state="review_buy"] {
  border-color: rgba(59, 155, 109, 0.45);
  background: rgba(59, 155, 109, 0.11);
}

.review-orb[data-state="review_buy"]::after { background: var(--green); }
.review-orb[data-state="review_sell"] { border-color: rgba(184, 88, 79, 0.45); background: rgba(184, 88, 79, 0.1); }
.review-orb[data-state="review_sell"]::after { background: var(--red); }
.review-orb[data-state="neutral"] { border-color: rgba(201, 151, 56, 0.46); background: rgba(201, 151, 56, 0.1); }
.review-orb[data-state="neutral"]::after { background: var(--gold); }
.review-orb[data-state="wait"] { border-color: rgba(184, 121, 37, 0.45); background: rgba(184, 121, 37, 0.1); }
.review-orb[data-state="wait"]::after { background: var(--amber); }
.review-orb[data-state="unavailable"]::after { background: var(--red); }

.review-state p {
  margin: 0 0 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.review-state h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.review-summary {
  margin: 22px 0 15px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.reason-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  padding-inline-start: 17px;
  color: var(--ink-soft);
  font-size: 11px;
}

.reason-list li::before {
  position: absolute;
  top: 0.65em;
  inset-inline-start: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.skeleton-line {
  opacity: 0.55;
}

.state-explainer {
  margin-top: 16px;
  padding: 13px 15px;
  border-inline-start: 2px solid var(--gold);
  background: rgba(201, 151, 56, 0.07);
}

.state-explainer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
}

.compass-section {
  padding: clamp(24px, 3vw, 38px);
}

.compass-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.compass-heading > div:first-child {
  max-width: 720px;
}

.compass-heading p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.evidence-quality-chip {
  display: grid;
  min-width: 150px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 25, 21, 0.035);
}

.evidence-quality-chip span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.evidence-quality-chip strong {
  font-size: 17px;
}

.evidence-quality-chip[data-status="complete"] { border-color: rgba(59, 155, 109, 0.45); background: rgba(59, 155, 109, 0.08); }
.evidence-quality-chip[data-status="limited"] { border-color: rgba(184, 121, 37, 0.45); background: rgba(184, 121, 37, 0.08); }
.evidence-quality-chip[data-status="blocked"] { border-color: rgba(184, 88, 79, 0.4); background: rgba(184, 88, 79, 0.07); }

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.evidence-strip > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 15px;
}

.evidence-strip > div + div {
  border-inline-start: 1px solid var(--line);
}

.evidence-strip span,
.context-metrics span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.evidence-strip strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.evidence-footnote {
  margin: 9px 2px 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.context-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.context-metrics article {
  display: grid;
  min-height: 92px;
  align-content: space-between;
  gap: 7px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(12, 25, 21, 0.045);
}

.context-metrics strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.context-metrics small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.review-guidance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 14px;
  margin-top: 24px;
}

.next-review-card,
.invalidation-card {
  padding: 20px;
  border-radius: 16px;
}

.next-review-card {
  color: var(--white);
  background: var(--night-2);
}

.next-review-card .section-kicker { color: var(--gold-bright); }
.next-review-card h3,
.invalidation-card h3 { margin: 4px 0 12px; font-size: 19px; }
.next-review-card ol,
.invalidation-card ul { margin: 0; padding-inline-start: 22px; font-size: 14px; line-height: 1.75; }
.next-review-card li + li,
.invalidation-card li + li { margin-top: 7px; }
.next-review-card .text-link { display: inline-flex; margin-top: 14px; color: var(--gold-bright); }

.invalidation-card {
  border: 1px solid rgba(130, 98, 31, 0.18);
  background: #eee5d2;
}

.invalidation-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-section {
  margin-top: 18px;
  padding: clamp(24px, 3vw, 36px);
}

.section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-kicker {
  margin-bottom: 7px;
  font-size: 12px;
}

.section-kicker-dark {
  color: var(--gold-bright);
}

.section-toolbar h2,
.section-heading-compact h2,
.alerts-card h2,
.sources-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.032em;
}

.range-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eeebe2;
}

.range-switcher button {
  min-width: 48px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.range-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--night-2);
  box-shadow: 0 5px 12px rgba(9, 17, 15, 0.16);
}

.chart-summary {
  display: flex;
  gap: 40px;
  margin-top: 26px;
}

.chart-summary div {
  display: grid;
  gap: 3px;
}

.chart-summary span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-summary strong {
  font-size: 14px;
}

.chart-wrap {
  position: relative;
  min-height: 300px;
  margin-top: 16px;
}

.price-chart {
  width: 100%;
  height: 300px;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(16, 25, 23, 0.09);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  fill: url(#chartAreaGradient);
}

.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-point {
  fill: var(--white);
  stroke: var(--gold);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-soft);
  text-align: center;
}

.chart-empty strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.chart-empty span {
  margin-top: 4px;
  font-size: 14px;
}

.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 12px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.section-heading-compact > p:last-child {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

.botim-calculator-help {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 8px;
  color: var(--ink-soft);
  background: rgba(201, 151, 56, 0.08);
  font-size: 14px;
  line-height: 1.65;
}

.form-grid label {
  display: grid;
  gap: 7px;
}

.form-grid label > span:first-child {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-grid small {
  color: var(--ink-soft);
  font-size: 12px;
}

.input-with-suffix,
.input-with-prefix {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f6ef;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-with-suffix:focus-within,
.input-with-prefix:focus-within {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(101, 69, 0, 0.18);
}

.input-with-suffix input,
.input-with-prefix input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
  font-weight: 650;
}

.input-with-suffix input:focus-visible,
.input-with-prefix input:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
  border-radius: 8px;
  box-shadow: none;
}

.input-with-suffix b,
.input-with-prefix b {
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.input-with-suffix b { padding-inline-end: 14px; }
.input-with-prefix b { padding-inline-start: 14px; }

.form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #7b2d28;
  background: #f8e8e4;
  font-size: 14px;
}

.calculation-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.calculation-results > div {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculation-results span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.calculation-results strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.calculation-results small {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.calculator-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.comparison-warning {
  padding: 12px 14px;
  border-inline-start: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(201, 151, 56, 0.08);
}

.dashboard-sidebar {
  display: grid;
  align-content: start;
}

.alerts-card,
.sources-card {
  min-height: 0;
}

.alerts-card h2,
.sources-card h2 {
  margin-top: 18px;
  font-size: 24px;
}

.alerts-card > p,
.sources-card > p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.compact-details {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
}

.compact-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.compact-details dt {
  color: var(--ink-soft);
}

.compact-details dd {
  margin: 0;
  font-weight: 750;
  text-align: end;
}

.privacy-line {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sources-card .panel-topline,
.sources-card > p {
  color: rgba(255, 255, 255, 0.72);
}

.source-list {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid var(--line-dark);
}

.source-dot {
  margin-top: 5px;
}

.source-list div {
  display: grid;
  gap: 2px;
}

.source-list strong {
  font-size: 14px;
}

.source-list small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

.source-note {
  padding-top: 15px;
  border-top: 1px solid var(--line-dark);
}

.botim-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: 42px;
  overflow: hidden;
}

.botim-heading > p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.botim-gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.botim-gate-grid article {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.045);
}

.botim-gate-grid article > span {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 850;
}

.botim-gate-grid strong {
  font-size: 14px;
}

.botim-gate-grid p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.58;
}

.botim-gate-grid .botim-stop-card {
  grid-column: 1 / -1;
  border-color: rgba(215, 191, 132, 0.5);
  background: rgba(215, 191, 132, 0.09);
}

.botim-source-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 2px;
}

.botim-source-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 750;
  text-underline-offset: 4px;
}

.checklist-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 60px;
}

.buyer-checklist {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(16, 25, 23, 0.15);
  list-style: none;
}

.buyer-checklist li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(16, 25, 23, 0.15);
}

.buyer-checklist li > span {
  color: #82621f;
  font-size: 12px;
  font-weight: 800;
}

.buyer-checklist strong {
  font-size: 14px;
}

.buyer-checklist p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.method-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: #f8f6ef;
}

.method-grid article > span {
  color: #82621f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-grid p {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
}

.method-grid code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.method-grid small {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.5;
}

.legal-notice {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-notice strong {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.65;
}

.dashboard-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--night);
}

.dashboard-footer .shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-footer a {
  color: var(--gold-bright);
  text-underline-offset: 4px;
}

html[dir="rtl"] .price-meta div {
  padding-right: 0;
  padding-left: 14px;
}

html[dir="rtl"] .price-meta div + div {
  padding-right: 14px;
  padding-left: 0;
  border-right: 1px solid var(--line-dark);
  border-left: 0;
}

html[dir="rtl"] input[type="number"] {
  direction: ltr;
  text-align: right;
}

[data-aed-gram],
[data-usd-ounce],
[data-usd-aed],
[data-market-time],
[data-chart-start],
[data-chart-change],
[data-chart-range],
[data-digest-time],
[data-last-alert],
.price-chart,
.method-grid code {
  unicode-bidi: isolate;
}

.price-chart,
.method-grid code {
  direction: ltr;
}

.dashboard-title-block,
.hero-copy,
.section-heading,
.section-heading-compact,
.feature-card,
.trust-grid article,
.review-panel,
.alerts-card,
.sources-card,
.physical-scope-banner,
.botim-section,
.checklist-section,
.method-section {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 90px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-instrument {
    max-width: 680px;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card-large {
    grid-row: span 2;
  }

  .trust-grid,
  .method-grid {
    grid-template-columns: 1fr 1fr;
  }

  .market-grid,
  .dashboard-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    display: flex;
    flex-direction: column;
  }

  .dashboard-hero { order: 1; }
  .physical-scope-banner { order: 2; }
  .data-banner { order: 3; }
  .market-grid { order: 4; }
  .compass-section { order: 5; }
  .botim-section { order: 6; }
  .dashboard-columns { order: 7; }
  .chart-section { order: 8; }
  .checklist-section { order: 9; }
  .method-section { order: 10; }

  .evidence-strip {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-strip > div:nth-child(3) {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .evidence-strip > div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .evidence-strip > div:nth-child(5) {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .context-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .checklist-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .botim-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .header-nav {
    gap: 7px;
  }

  .header-nav > a:not(.button) {
    display: none;
  }

  .header-nav .button {
    min-height: 44px;
    padding-inline: 13px;
  }

  .language-toggle {
    flex: 0 0 auto;
    padding-inline: 8px 10px;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    gap: 56px;
    padding-block: 65px 75px;
  }

  .hero h1 {
    font-size: clamp(51px, 16vw, 76px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-instrument {
    padding: 22px;
    border-radius: 24px;
  }

  .formula-display {
    min-height: 220px;
  }

  .formula-flow {
    gap: 6px;
  }

  .formula-flow strong {
    font-size: 9px;
  }

  .instrument-footer {
    display: none;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    padding-block: 8px;
  }

  .principle-grid p,
  .principle-grid p:last-child {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .principle-grid p:last-child {
    border-bottom: 0;
  }

  .split-heading,
  .cta-panel,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-large {
    min-height: 360px;
    grid-row: auto;
  }

  .journey li {
    grid-template-columns: 45px 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article {
    display: grid;
    grid-template-columns: 50px 1fr;
  }

  .trust-grid .trust-icon {
    grid-row: span 2;
    margin: 0;
  }

  .cta-section {
    padding-inline: 10px;
  }

  .cta-panel {
    width: 100%;
    padding: 44px 26px;
    border-radius: 25px;
  }

  .footer-bottom,
  .dashboard-footer .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .dashboard-footer .shell {
    justify-content: center;
    padding-block: 20px;
  }

  .owner-status {
    gap: 8px;
  }

  .header-clock {
    display: none;
  }

  .dashboard-hero {
    align-items: start;
  }

  .refresh-button span {
    display: none;
  }

  .refresh-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    justify-content: center;
    padding: 0;
  }

  .market-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-main {
    display: flex;
    flex-direction: column;
  }

  .dashboard-hero { order: 1; }
  .physical-scope-banner { order: 2; }
  .data-banner { order: 3; }
  .market-grid { order: 4; }
  .compass-section { order: 5; }
  .botim-section { order: 6; }
  .dashboard-columns { order: 7; }
  .chart-section { order: 8; }
  .checklist-section { order: 9; }
  .method-section { order: 10; }

  .compass-heading,
  .review-guidance-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .evidence-quality-chip {
    width: 100%;
  }

  .context-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .status-chip,
  .help-trigger,
  .review-state p,
  .price-meta span {
    font-size: 11px;
  }

  .review-summary,
  .reason-list li,
  .state-explainer p,
  .price-context,
  .source-list small,
  .alerts-card p,
  .privacy-line,
  .physical-scope-banner p,
  .botim-gate-grid p,
  .botim-calculator-help {
    font-size: 14px;
    line-height: 1.65;
  }

  .calculation-results span,
  .calculation-results small,
  .calculator-note,
  .form-error {
    font-size: 13px;
    line-height: 1.55;
  }

  .price-panel,
  .review-panel {
    min-height: auto;
  }

  .hero-price {
    flex-wrap: wrap;
    margin-top: 54px;
  }

  .hero-price .unit {
    flex-basis: 100%;
  }

  .price-meta {
    grid-template-columns: 1fr 1fr;
  }

  .price-meta div:last-child {
    grid-column: 1 / -1;
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .section-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .range-switcher {
    width: 100%;
  }

  .range-switcher button {
    flex: 1;
    min-height: 44px;
  }

  .chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .chart-summary strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chart-wrap,
  .price-chart {
    min-height: 220px;
    height: 220px;
  }

  .form-grid,
  .calculation-results,
  .dashboard-sidebar,
  .botim-gate-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .form-grid input {
    font-size: 16px;
  }

  .calculation-results {
    border-left: 0;
  }

  .calculation-results > div {
    padding-inline: 0;
    border-right: 0;
  }

  .legal-notice {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  html[dir="rtl"] .price-meta div:last-child {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .private-badge {
    display: none;
  }

  .dashboard-header-inner {
    min-height: 66px;
    gap: 8px;
  }

  .header-nav .button span[aria-hidden="true"],
  .language-toggle [data-language-label] {
    display: none;
  }

  .language-toggle {
    width: 44px;
    justify-content: center;
    padding: 5px;
  }

  .hero {
    gap: 42px;
    padding-block: 48px 60px;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 58px);
    line-height: 1.04;
  }

  .hero-lede {
    font-size: 15px;
  }

  .formula-flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .formula-flow small {
    font-size: 8px;
  }

  .dashboard-main {
    padding-bottom: 56px;
  }

  .dashboard-hero {
    gap: 12px;
  }

  .physical-scope-banner {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .physical-scope-banner > span {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }

  .price-panel,
  .review-panel,
  .dashboard-section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hero-price strong {
    font-size: clamp(50px, 18vw, 72px);
  }

  .chart-summary {
    grid-template-columns: 1fr;
  }

  .chart-summary div {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }

  .range-switcher button {
    padding-inline: 5px;
    font-size: 9px;
  }

  .buyer-checklist li {
    grid-template-columns: 28px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .dashboard-header,
  .refresh-button,
  .range-switcher,
  .dashboard-footer,
  .site-footer,
  .cta-section {
    display: none !important;
  }

  body,
  .dashboard-page {
    background: #fff;
  }

  .shell {
    width: 100%;
  }

  .dashboard-section,
  .price-panel,
  .review-panel {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* === Gold Lens control experience: begin === */
.control-page {
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 2%, rgba(201, 151, 56, 0.13), transparent 28rem),
    var(--paper);
}

.control-page button,
.control-page input,
.control-page select,
.control-page textarea {
  max-width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
}

.control-page button,
.control-page select,
.control-page input[type="checkbox"] {
  cursor: pointer;
}

.control-page button:disabled,
.control-page input:disabled,
.control-page select:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.control-shell {
  width: min(calc(100% - 24px), 980px);
  min-width: 0;
  margin-inline: auto;
}

.control-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(9, 17, 15, 0.96);
  backdrop-filter: blur(16px);
}

.control-header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-header .brand {
  min-width: 0;
}

.control-header .brand-copy span {
  color: rgba(255, 255, 255, 0.66);
}

.control-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.control-language,
.control-header-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  color: var(--white);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.control-language:hover,
.control-header-link:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.control-logout {
  appearance: none;
}

.control-main {
  display: grid;
  gap: 18px;
  padding-block: 40px 72px;
}

.control-auth-main {
  max-width: 760px;
}

.control-intro {
  min-width: 0;
  padding: 8px 2px 12px;
}

.control-intro-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.control-eyebrow,
.control-kicker,
.control-step {
  margin: 0 0 6px;
  color: #79591e;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[lang="ar"] .control-eyebrow,
html[lang="ar"] .control-kicker,
html[lang="ar"] .control-step {
  letter-spacing: 0;
  text-transform: none;
}

.control-intro h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.control-intro p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.control-card {
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(9, 17, 15, 0.07);
}

.control-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.control-card-heading h2,
.control-security-form h3,
.control-recovery-stage h3 {
  margin: 0;
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.control-card-heading h2 {
  font-size: clamp(25px, 4vw, 34px);
}

.control-security-form h3,
.control-recovery-stage h3 {
  font-size: 23px;
}

.control-lede,
.control-recovery-stage > p,
.control-security-form > p {
  color: var(--ink-soft);
}

.control-notice {
  padding: 15px 17px;
  border: 1px solid rgba(101, 69, 0, 0.32);
  border-inline-start: 5px solid var(--gold);
  border-radius: 13px;
  color: #523b10;
  background: #fff8e7;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.control-notice[data-notice-type="error"] {
  border-color: rgba(184, 88, 79, 0.35);
  border-inline-start-color: var(--red);
  color: #6f241f;
  background: #fff1ef;
}

.control-notice[data-notice-type="success"] {
  border-color: rgba(59, 155, 109, 0.35);
  border-inline-start-color: var(--green);
  color: #175c3d;
  background: #eefaf4;
}

.control-status,
.control-session-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.control-status i,
.control-session-badge i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
}

.control-status[data-state="ready"] i,
.control-session-badge[data-state="ready"] i {
  background: var(--green);
}

.control-status[data-state="warning"] i,
.control-session-badge[data-state="warning"] i {
  background: var(--red);
}

.control-form {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.control-form-gate {
  display: grid;
  min-inline-size: 0;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

.control-form-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.control-form-grid-actions {
  align-items: end;
}

.control-field {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.control-field-short {
  max-width: 360px;
}

.control-field input,
.control-field textarea,
.control-field select {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(16, 25, 23, 0.25);
  border-radius: 11px;
  color: var(--ink);
  background: #fffefa;
  box-shadow: inset 0 1px 2px rgba(9, 17, 15, 0.03);
}

.control-field input:hover,
.control-field textarea:hover,
.control-field select:hover {
  border-color: rgba(16, 25, 23, 0.45);
}

.control-field input:focus-visible,
.control-field textarea:focus-visible,
.control-field select:focus-visible {
  border-color: var(--gold);
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--gold-pale);
}

.control-field input[dir="ltr"],
.control-field textarea[dir="ltr"],
.control-field select[name="digest_hour"],
.control-secret-display code,
.control-code-list code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  text-align: left;
}

.control-field small,
.control-help,
.control-meta {
  margin: 0;
  color: #5a6964;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.control-button {
  display: inline-flex;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.control-button-primary {
  color: var(--night);
  background: var(--gold-bright);
  box-shadow: 0 8px 22px rgba(201, 151, 56, 0.22);
}

.control-button-primary:hover {
  background: var(--gold);
}

.control-button-secondary,
.control-button-quiet {
  border-color: rgba(16, 25, 23, 0.23);
  color: var(--ink);
  background: transparent;
}

.control-button-secondary:hover,
.control-button-quiet:hover {
  border-color: var(--gold);
  background: rgba(242, 225, 181, 0.3);
}

.control-button-danger {
  border-color: rgba(184, 88, 79, 0.32);
  color: #762d27;
  background: #fff1ef;
}

.control-button-danger:hover {
  border-color: var(--red);
  background: #ffe3df;
}

.control-lock {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--night);
  background: var(--gold-pale);
  font-size: 11px;
  font-weight: 900;
}

.control-warning,
.control-scope-warning {
  margin: 0;
  padding: 13px 15px;
  border-inline-start: 4px solid var(--amber);
  border-radius: 9px;
  color: #624310;
  background: #fff8e7;
  font-size: 13px;
  font-weight: 650;
}

.control-scope-warning {
  margin-block: 16px;
  border-inline-start-color: var(--red);
  color: #662b25;
  background: #fff1ef;
}

.control-secret-display {
  display: grid;
  min-width: 0;
  gap: 7px;
  margin-block: 18px;
  padding: 15px;
  border: 1px dashed rgba(16, 25, 23, 0.3);
  border-radius: 12px;
  background: #f4f0e4;
}

.control-secret-display span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.control-secret-display code {
  display: block;
  min-width: 0;
  color: var(--night);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}

.control-code-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.control-code-list li {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  text-align: center;
}

.control-code-list code {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
}

.control-check {
  display: grid;
  width: fit-content;
  min-width: 0;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-block: 16px;
  font-weight: 750;
}

.control-check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  justify-self: center;
  accent-color: var(--gold);
}

.control-recovery-stage {
  min-width: 0;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7ee;
}

.control-auth-help {
  margin: 4px 0 0;
  color: var(--ink-soft);
  text-align: center;
}

.control-auth-help a,
.control-footer a {
  color: #76551b;
  font-weight: 800;
}

.control-nav {
  display: flex;
  min-width: 0;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 249, 0.8);
  overflow-x: auto;
  scrollbar-width: thin;
}

.control-nav a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.control-nav a:hover {
  color: var(--ink);
  background: var(--gold-pale);
}

.control-status-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.control-status-grid div,
.control-fixed-grid div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7ee;
}

.control-status-grid span,
.control-fixed-grid span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
}

.control-status-grid strong,
.control-fixed-grid strong {
  min-width: 0;
  color: var(--night);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.control-settings-form {
  margin-top: 24px;
}

.control-fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(245, 242, 233, 0.43);
}

.control-fieldset legend {
  max-width: 100%;
  padding-inline: 8px;
  color: var(--night);
  font-size: 17px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.control-fixed-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.control-secret-state {
  align-self: center;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.control-secret-state strong {
  color: var(--ink);
}

.control-inline-group {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.control-threshold-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
}

.control-threshold-state strong {
  color: var(--ink);
}

.control-confirmation {
  border-color: rgba(201, 151, 56, 0.48);
  background: #fffaf0;
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.control-version {
  max-width: 220px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.control-security-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.control-security-form {
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf7ee;
}

.control-footer {
  border-top: 1px solid var(--line);
  background: #e9e3d3;
}

.control-footer .control-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 12px;
}

.control-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .control-intro-row,
  .control-card-heading {
    align-items: flex-start;
  }

  .control-intro-row {
    display: grid;
  }

  .control-form-grid,
  .control-status-grid,
  .control-security-grid {
    grid-template-columns: 1fr;
  }

  .control-field-short {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .control-header-inner {
    min-height: 64px;
  }

  .control-header .brand-copy span,
  .control-header-link:not(.control-logout),
  .control-language [data-control-language-label] {
    display: none;
  }

  .control-language,
  .control-header-link {
    width: 44px;
    padding-inline: 6px;
  }

  .control-main {
    gap: 14px;
    padding-block: 28px 52px;
  }

  .control-card {
    padding: 20px 16px;
    border-radius: 17px;
  }

  .control-card-heading {
    display: grid;
    gap: 12px;
  }

  .control-fixed-grid {
    grid-template-columns: 1fr;
  }

  .control-fieldset,
  .control-security-form,
  .control-recovery-stage {
    padding: 16px 12px;
  }

  .control-code-list {
    grid-template-columns: 1fr;
  }

  .control-actions,
  .control-actions .control-button,
  .control-form > .control-button,
  .control-form-gate > .control-button {
    width: 100%;
  }

  .control-footer .control-shell {
    display: grid;
    justify-items: start;
    padding-block: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-page *,
  .control-page *::before,
  .control-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .control-header,
  .control-nav,
  .control-actions,
  .control-footer,
  .control-button,
  .control-secret-display,
  .control-code-list {
    display: none !important;
  }
}
/* === Gold Lens control experience: end === */
