/* ==========================================================================
   Global FX Journal — design prototype
   Dark premium financial-editorial system. Local tokens only.
   ========================================================================== */

:root {
  --ink: #05080f;
  --navy-900: #070d18;
  --navy-850: #0a1220;
  --navy-800: #0e1729;
  --surface: #111d31;
  --surface-2: #152540;
  --surface-3: #1c3050;

  --line: rgba(233, 238, 247, 0.10);
  --line-2: rgba(233, 238, 247, 0.18);

  --ivory: #f3f0e7;
  --ivory-dim: #d2dae7;
  --muted: #96a5bd;
  --faint: #6c7a94;

  --gold: #c9a24b;
  --gold-2: #e6c982;
  --gold-dim: rgba(201, 162, 75, 0.16);
  --ice: #6fb2e8;
  --teal: #35ab9d;
  --orange: #e8763b;
  --up: #45c191;
  --down: #e8615a;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;

  --maxw: 1320px;
  --pad: 16px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-1: 130ms;
  --t-2: 190ms;

  --pop: 0 30px 70px -28px rgba(0, 0, 0, 0.8);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--gold);
  color: #1a1204;
  border: 0;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-s) var(--r-s);
  font-weight: 700;
  transition: top var(--t-2) var(--ease);
}
.skip:focus { top: 0; }

/* ---------------------------------------------------------------- typography */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.eyebrow--ice { color: var(--ice); }
.eyebrow--teal { color: var(--teal); }

.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.012em;
}

.lede { color: var(--muted); font-size: 16px; line-height: 1.7; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.up { color: var(--up); }
.down { color: var(--down); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------------- shell */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 120;
  background: transparent;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* ------------------------------------------------------------------ ticker */

.ticker {
  background: linear-gradient(90deg, #060b15, #0b1424 40%, #060b15);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 60;
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
  height: 42px;
}
.ticker__label {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  border-right: 1px solid var(--line-2);
  padding-right: 14px;
  height: 100%;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 0 rgba(69, 193, 145, 0.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(69, 193, 145, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(69, 193, 145, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 193, 145, 0); }
}
.ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 62s linear infinite; will-change: transform; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tick { display: flex; align-items: baseline; gap: 8px; margin-right: 34px; white-space: nowrap; font-size: 13px; }
.tick__pair { font-weight: 700; letter-spacing: 0.02em; color: var(--ivory-dim); }
.tick__val { font-family: var(--mono); color: var(--ivory); }
.tick__chg { font-size: 12px; font-weight: 600; }
.tick__chg::before { content: "▲"; font-size: 8px; margin-right: 3px; }
.tick__chg.is-down::before { content: "▼"; }

/* ------------------------------------------------------------------ header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 13, 24, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 11px var(--pad);
}
.brand { display: flex; align-items: center; gap: 11px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.brand__name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  background: none;
  border: 0;
  padding: 9px 11px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  border-radius: var(--r-s);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="true"] { color: var(--gold-2); }

.masthead__actions { display: flex; align-items: center; gap: 9px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.icon-btn:hover { color: var(--gold-2); border-color: var(--gold); background: var(--gold-dim); }
.icon-btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-1) var(--ease), background-color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), color var(--t-1) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(160deg, var(--gold-2), var(--gold)); color: #1a1204; }
.btn--gold:hover { background: linear-gradient(160deg, #f0d79a, var(--gold-2)); }
.btn--ghost { border-color: var(--line-2); color: var(--ivory-dim); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-dim); }
.btn--sm { min-height: 34px; padding: 6px 13px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* -------------------------------------------------------------- section kit */

.section { padding: 54px 0; scroll-margin-top: 74px; }
.section--alt { background: linear-gradient(180deg, rgba(14, 23, 41, 0.5), rgba(5, 8, 15, 0)); }
.section--band { background: var(--navy-850); border-block: 1px solid var(--line); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.sec-head__title { font-family: var(--serif); font-size: 27px; font-weight: 600; line-height: 1.15; margin-top: 7px; }
.sec-head__note { font-size: 12.5px; color: var(--faint); max-width: 46ch; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease), background-color var(--t-1) var(--ease);
}
.chip:hover { color: var(--gold-2); border-color: var(--gold); }
.chip[aria-pressed="true"] { color: #1a1204; background: var(--gold-2); border-color: var(--gold-2); }

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ice);
  border: 1px solid rgba(111, 178, 232, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
}
.tag--gold { color: var(--gold-2); border-color: rgba(201, 162, 75, 0.4); }
.tag--teal { color: var(--teal); border-color: rgba(53, 171, 157, 0.38); }

.dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.chip:not(button) { cursor: default; }

.media { position: relative; overflow: hidden; background: var(--navy-800); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0) 30%, rgba(5, 8, 15, 0.86));
}

.story { display: flex; flex-direction: column; gap: 11px; }
.story__media { aspect-ratio: 16 / 10; }
.story__kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); letter-spacing: 0.07em; text-transform: uppercase; font-weight: 600; }
.story__title { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.25; }
.story__body { font-size: 14px; color: var(--muted); line-height: 1.62; }
.story__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); }
.story__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

.card {
  background: linear-gradient(180deg, rgba(21, 37, 64, 0.72), rgba(12, 20, 35, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  overflow: hidden;
}
.story.is-clickable { cursor: pointer; }
.story.is-clickable:hover .story__title { color: var(--gold-2); }
.story__title { transition: color var(--t-2) var(--ease); }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; padding: 34px 0 46px; }
.hero::before {
  content: "";
  position: absolute; inset: -10% 0 auto 0;
  height: 520px;
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(201, 162, 75, 0.16), transparent 62%),
    radial-gradient(52% 62% at 88% 6%, rgba(63, 116, 190, 0.2), transparent 64%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__intro { max-width: 62ch; }
.hero__title { font-size: 34px; margin-top: 12px; }
.hero__lede { margin-top: 13px; font-size: 15.5px; color: var(--muted); max-width: 56ch; }

.status {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 16px 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.status::-webkit-scrollbar { display: none; }
.status__item {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: rgba(11, 19, 33, 0.7);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 128px;
}
.status__pair { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.status__val { font-family: var(--mono); font-size: 15px; margin-top: 3px; }
.status__chg { font-size: 11px; font-weight: 600; }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }

.feature { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; justify-content: flex-start; }
.feature__media { position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.94) 0%, rgba(5, 8, 15, 0.8) 32%, rgba(5, 8, 15, 0.38) 62%, rgba(5, 8, 15, 0.1) 100%);
}
.feature__body { position: relative; padding: 22px; }
.feature__title { font-family: var(--serif); font-size: 25px; font-weight: 600; line-height: 1.16; margin-top: 10px; }
.feature__body p { margin-top: 10px; font-size: 14.5px; color: var(--ivory-dim); max-width: 60ch; }
.feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------- converter */

.converter { border-radius: var(--r-l); border: 1px solid rgba(201, 162, 75, 0.28); background: linear-gradient(180deg, rgba(23, 36, 60, 0.94), rgba(9, 15, 27, 0.97)); box-shadow: var(--pop); overflow: hidden; }
.converter__head { padding: 17px 18px 14px; border-bottom: 1px solid var(--line); }
.converter__title { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 6px; }
.converter__sub { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.seg { display: inline-flex; padding: 3px; gap: 3px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; margin-top: 13px; }
.seg__btn { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 15px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: color var(--t-1) var(--ease), background-color var(--t-1) var(--ease); }
.seg__btn[aria-pressed="true"] { background: var(--gold-2); color: #1a1204; }

.converter__body { padding: 18px; display: grid; gap: 13px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 700; }

.input-amout { position: relative; }
.amount-input {
  width: 100%;
  background: rgba(5, 9, 17, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  padding: 15px 16px;
  color: var(--ivory);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color var(--t-1) var(--ease);
}
.amount-input:focus { outline: none; border-color: var(--gold); }
.amount-input.is-invalid { border-color: var(--down); }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 9px; }
.select-wrap { position: relative; }
.select-wrap { min-width: 0; }
.select-wrap select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  appearance: none;
  background: rgba(5, 9, 17, 0.72);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  color: var(--ivory);
  padding: 13px 38px 13px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-1) var(--ease);
}
.select-wrap select:focus { outline: none; border-color: var(--gold); }
.select-wrap::after {
  content: "";
  position: absolute; right: 15px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.swap {
  width: 42px; height: 42px;
  margin-bottom: 1px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--gold-dim);
  color: var(--gold-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform var(--t-2) var(--ease), background-color var(--t-1) var(--ease);
}
.swap:hover { background: rgba(201, 162, 75, 0.28); transform: rotate(180deg); }
.swap svg { width: 18px; height: 18px; }

.quick { display: flex; flex-wrap: wrap; gap: 6px; }

.result {
  border-radius: var(--r-m);
  border: 1px solid rgba(201, 162, 75, 0.3);
  background: linear-gradient(140deg, rgba(201, 162, 75, 0.13), rgba(111, 178, 232, 0.07));
  padding: 15px 16px;
}
.result__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.result__from { font-size: 12.5px; color: var(--muted); }
.result__value { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 4px; word-break: break-word; }
.result__ccy { font-family: var(--sans); font-size: 15px; color: var(--gold-2); font-weight: 700; letter-spacing: 0.06em; }
.result__rate { font-size: 12px; color: var(--muted); margin-top: 9px; }
.result__src { font-size: 11px; color: var(--faint); margin-top: 3px; }

.cmp { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cmp__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; background: rgba(9, 15, 27, 0.85); font-size: 13px; }
.cmp__ccy { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.cmp__code { font-weight: 700; color: var(--ivory-dim); letter-spacing: 0.04em; font-size: 12px; }
.cmp__val { font-family: var(--mono); color: var(--ivory); }

.spark { width: 100%; height: 78px; display: block; }
.spark-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--faint); margin-top: 3px; letter-spacing: 0.04em; }

.note {
  font-size: 11.5px;
  color: var(--faint);
  border-left: 2px solid var(--gold);
  padding-left: 10px;
  line-height: 1.55;
}

.hero__hot { display: grid; gap: 9px; margin-top: 24px; }

/* --------------------------------------------------------- trending pairs */

.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.pair-card {
  flex: 0 0 auto;
  width: 224px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(21, 37, 64, 0.62), rgba(10, 17, 30, 0.9));
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-2) var(--ease), transform var(--t-2) var(--ease);
}
.pair-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.pair-card__top { display: flex; align-items: center; justify-content: space-between; }
.pair-card__name { font-weight: 700; letter-spacing: 0.02em; font-size: 14px; }
.pair-card__val { font-family: var(--mono); font-size: 21px; margin-top: 9px; }
.pair-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--faint); }

.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; }
.delta::before { font-size: 8px; }
.delta--up { color: var(--up); }
.delta--up::before { content: "▲"; }
.delta--down { color: var(--down); }
.delta--down::before { content: "▼"; }

/* ------------------------------------------------------------------- table */

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 220px; max-width: 320px; }
.search input {
  width: 100%;
  background: rgba(5, 9, 17, 0.72);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  color: var(--ivory);
  font-size: 14px;
}
.search input:focus { outline: none; border-color: var(--gold); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); -webkit-overflow-scrolling: touch; }
table.fx { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 14px; }
table.fx th, table.fx td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.fx thead th {
  background: rgba(12, 20, 35, 0.94);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  position: sticky; top: 0;
}
table.fx thead th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
table.fx thead th button:hover { color: var(--gold-2); }
table.fx tbody tr { cursor: pointer; transition: background-color var(--t-1) var(--ease); }
table.fx tbody tr:hover { background: rgba(201, 162, 75, 0.07); }
table.fx tbody tr:last-child td { border-bottom: 0; }
table.fx td.n { font-family: var(--mono); }
.ccy-cell { display: flex; align-items: center; gap: 11px; }
.flag {
  width: 34px; height: 24px;
  flex: 0 0 auto;
  border-radius: 5px;
  display: grid; place-items: center;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ivory);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
}
.flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag--text { font-size: 12px; }
.ccy-cell b { display: block; font-size: 14px; }
.ccy-cell span { display: block; font-size: 11.5px; color: var(--faint); }

.empty { padding: 34px 18px; text-align: center; color: var(--muted); }
.empty__title { font-family: var(--serif); font-size: 18px; color: var(--ivory-dim); }

/* ------------------------------------------------------------------ movers */

.grid-3 { display: grid; gap: 14px; }
.grid-4 { display: grid; gap: 14px; }
.grid-2 { display: grid; gap: 14px; }

.mover {
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: linear-gradient(180deg, rgba(21, 37, 64, 0.5), rgba(10, 17, 30, 0.88));
  padding: 16px;
  text-align: left;
}
.mover__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mover__pair { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.mover__val { font-family: var(--mono); font-size: 23px; margin-top: 8px; }
.mover__bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); margin-top: 12px; overflow: hidden; }
.mover__bar i { display: block; height: 100%; border-radius: 3px; }
.mover__note { font-size: 12px; color: var(--muted); margin-top: 11px; line-height: 1.55; }

/* ------------------------------------------------------------ region tabs */

.regions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.regions::-webkit-scrollbar { display: none; }

.news-grid { display: grid; gap: 16px; margin-top: 18px; }

.region-hero {
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.region-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, 0.22) 0%, rgba(5, 8, 15, 0.52) 34%, rgba(5, 8, 15, 0.9) 74%, rgba(5, 8, 15, 0.97) 100%); }
.region-hero__body { position: relative; z-index: 2; padding: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.region-hero__title { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-top: 8px; }

.list { display: grid; }
.list__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.list__item:hover .list__title { color: var(--gold-2); }
.list__item:last-child { border-bottom: 0; }
.list__title { transition: color var(--t-2) var(--ease); }
.list__thumb { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; }
.list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.list__title { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.28; }
.list__meta { font-size: 11px; color: var(--faint); margin-top: 5px; letter-spacing: 0.03em; }
.list__item--plain { grid-template-columns: 1fr; }
.list__item--plain .list__title { font-size: 15px; }

/* -------------------------------------------------------------- briefing etc */

.briefing { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.briefing__row { background: rgba(10, 17, 30, 0.9); padding: 15px 16px; display: grid; gap: 8px; }
.briefing__row h3 { font-family: var(--serif); font-size: 16.5px; font-weight: 600; }

.pos { display: grid; gap: 14px; }
.pos-card { border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 0 var(--r-m) var(--r-m) 0; background: rgba(12, 22, 38, 0.7); padding: 16px; }
.pos-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; margin-top: 7px; }

.banks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.bank { background: rgba(10, 17, 30, 0.9); padding: 14px 15px; display: flex; align-items: center; gap: 13px; text-align: left; width: 100%; border: 0; cursor: pointer; transition: background-color var(--t-1) var(--ease); }
.bank:hover { background: rgba(201, 162, 75, 0.08); }
.bank__mark { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.03em; background: var(--surface-3); border: 1px solid var(--line-2); }
.bank__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bank__name { display: block; font-weight: 600; font-size: 14px; }
.bank__meta { display: block; font-size: 11.5px; color: var(--faint); }
.bank > span { min-width: 0; }
.bank__right { margin-left: auto; text-align: right; flex: 0 0 auto; }

.cities { display: grid; gap: 14px; }
.city { position: relative; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); background: var(--navy-800); min-height: 190px; display: flex; align-items: flex-end; width: 100%; padding: 0; text-align: left; color: var(--ivory); cursor: pointer; }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.city:hover img { transform: scale(1.05); }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, 0.1) 0%, rgba(5, 8, 15, 0.34) 36%, rgba(5, 8, 15, 0.88) 76%, rgba(5, 8, 15, 0.98) 100%); }
.city__body { position: relative; z-index: 2; padding: 15px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85); }
.city__name { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.city__meta { display: block; font-size: 11px; color: rgba(243, 240, 231, 0.84); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

.chart-panel { border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(10, 17, 30, 0.8); padding: 18px; }
.chart-panel__head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.chart-big { width: 100%; height: 240px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }

.know { display: grid; gap: 12px; }
.know__item { border: 1px solid var(--line); border-radius: var(--r-m); padding: 15px; background: rgba(11, 19, 33, 0.6); }
.know__q { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.know__a { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.62; }

.readlist { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.readlist__row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 13px; align-items: center; background: rgba(10, 17, 30, 0.9); padding: 13px 15px; text-align: left; width: 100%; border: 0; cursor: pointer; transition: background-color var(--t-1) var(--ease); }
.readlist__row:hover { background: rgba(201, 162, 75, 0.08); }
.readlist__rank { font-family: var(--serif); font-size: 19px; color: var(--gold); }
.readlist__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.readlist__meta { font-size: 11px; color: var(--faint); margin-top: 3px; }
.save { background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--faint); cursor: pointer; transition: color var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
.save:hover { color: var(--gold-2); border-color: var(--gold); }
.save[aria-pressed="true"] { color: var(--gold-2); border-color: var(--gold); background: var(--gold-dim); }
.save svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------- newsletter */

.newsletter { border: 1px solid rgba(201, 162, 75, 0.3); border-radius: var(--r-l); background: linear-gradient(140deg, rgba(201, 162, 75, 0.14), rgba(63, 116, 190, 0.1) 60%, rgba(10, 17, 30, 0.9)); padding: 26px 20px; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.newsletter__form input { flex: 1 1 240px; background: rgba(5, 9, 17, 0.7); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--ivory); font-size: 14px; }
.newsletter__form input:focus { outline: none; border-color: var(--gold); }
.newsletter__form input.is-invalid { border-color: var(--down); }
.form-msg { font-size: 12.5px; margin-top: 10px; min-height: 18px; }
.form-msg.is-ok { color: var(--up); }
.form-msg.is-err { color: var(--down); }

/* ------------------------------------------------------------------ footer */

.footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 40px 0 26px; margin-top: 20px; }
.footer__grid { display: grid; gap: 26px; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer__col button { display: block; background: none; border: 0; padding: 5px 0; color: var(--muted); font-size: 13.5px; cursor: pointer; text-align: left; transition: color var(--t-1) var(--ease); }
.footer__col button:hover { color: var(--ivory); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* -------------------------------------------------------------- drawer/toast */

.drawer { position: fixed; inset: 0; z-index: 140; display: grid; grid-template-columns: 1fr; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.66); opacity: 0; transition: opacity var(--t-2) var(--ease); }
.drawer__panel {
  position: absolute; inset: auto 0 0 0;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--navy-850);
  border-top: 1px solid var(--line-2);
  border-radius: var(--r-l) var(--r-l) 0 0;
  transform: translateY(102%);
  transition: transform 260ms var(--ease);
  padding: 20px var(--pad) 30px;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateY(0); }
.drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.drawer__title { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-top: 6px; }
.drawer__body { margin-top: 16px; display: grid; gap: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.stat-row div { background: rgba(10, 17, 30, 0.9); padding: 12px 13px; }
.drawer .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-row dt { font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.stat-row dd { margin: 6px 0 0; font-family: var(--mono); font-size: 16px; }

.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translate(-50%, 140%);
  z-index: 160;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 13.5px;
  color: var(--ivory);
  box-shadow: var(--pop);
  transition: transform 240ms var(--ease);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ------------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0;
  z-index: 150;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-2) var(--ease), visibility var(--t-2) var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal__scrim { position: absolute; inset: 0; background: rgba(3, 5, 10, 0.72); }
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(23, 36, 60, 0.98), rgba(9, 15, 27, 0.99));
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: 22px var(--pad) 24px;
  box-shadow: var(--pop);
  transform: translateY(12px);
  transition: transform 240ms var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.modal__title { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.modal__body { margin-top: 14px; display: grid; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.modal__body p { margin: 0; }
.modal__body strong { color: var(--ivory-dim); font-weight: 700; }
.footer__note { font-size: 12px; color: var(--faint); }

/* ------------------------------------------------------------------- misc */

.data-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.55;
  margin-top: 10px;
}
.data-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--gold); }

.skeleton { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); animation: sk 1.4s var(--ease) infinite; }
@keyframes sk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* --------------------------------------------------------------- responsive */

@media (min-width: 560px) {
  :root { --pad: 22px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { padding: 32px 30px; }
  .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  :root { --pad: 26px; }
  .hero__title { font-size: 44px; }
  .section { padding: 66px 0; }
  .sec-head__title { font-size: 31px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter__form input { flex: 1 1 320px; }
  .drawer__panel { padding-inline: calc((100% - 640px) / 2 + 20px); }
}

@media (min-width: 980px) {
  :root { --pad: 34px; }
  .hero { padding: 46px 0 60px; }
  .hero__title { font-size: 52px; }
  .hero__grid { grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.86fr); align-items: stretch; }
  .feature { min-height: 520px; height: 100%; }
  .feature__title { font-size: 31px; }
  .feature__body { padding: 30px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .know { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drawer__panel { inset: 0 0 0 auto; max-height: none; width: min(480px, 92vw); border-radius: 0; border-left: 1px solid var(--line-2); border-top: 0; transform: translateX(102%); padding: 24px; }
  .drawer.is-open .drawer__panel { transform: translateX(0); }
  .chart-big { height: 300px; }
}

@media (min-width: 1200px) {
  .brand__name { font-size: 19.5px; }
  .section { padding: 78px 0; }
  .sec-head__title { font-size: 34px; }
}

@media (max-width: 979px) {
  .masthead__actions { display: none; }
  .hero__grid > .converter { order: 1; }
  .hero__grid > .feature { order: 2; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--pad) 18px;
    background: rgba(7, 13, 24, 0.98);
    border-bottom: 1px solid var(--line);
    max-height: 72vh;
    overflow-y: auto;
  }
  .nav.is-open .nav__link { text-align: left; padding: 12px; font-size: 15px; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker__track { animation: marquee 90s linear infinite !important; }
}

/* ==========================================================================
   VIBRANT COLOR-BLOCK THEME  (appended override layer)
   Light base + high-saturation stacked colour blocks, thick black edges and
   hard offset shadows. Layout, class names and structure are unchanged.
   ========================================================================== */

:root{
  --bg:#fff4e6; --paper:#ffffff; --edge:#16132a;
  --ink:var(--bg);
  --navy-900:#fff4e6; --navy-850:#fff4e6; --navy-800:#eef1ff;
  --surface:#f3efff; --surface-2:#ffe9f3; --surface-3:#e6f6ff;

  --violet:#7c5cff; --pink:#ff3d8b; --cyan:#12c9e5; --amber:#ffb020;
  --orange:#ff7a45; --green:#1fd18a; --blue:#3f7bff;
  --violet-soft:#ece6ff; --pink-soft:#ffe3ee; --cyan-soft:#dcf7fd;
  --amber-soft:#fff1cf; --orange-soft:#ffe7dc; --green-soft:#d9f7e8;

  --line:rgba(22,19,42,0.16); --line-2:rgba(22,19,42,0.34);

  --ivory:#16132a; --ivory-dim:#2c2947; --muted:#5f5a7e; --faint:#8d88ab;
  --gold:#7c5cff; --gold-2:#ff3d8b; --gold-dim:rgba(124,92,255,0.14);
  --ice:#12c9e5; --teal:#1fd18a; --up:#12b981; --down:#ff3d6e;
  --pop:6px 6px 0 rgba(22,19,42,0.9);

  --sec:var(--violet); --sec-soft:var(--violet-soft);
}

/* per-section colour rhythm */
main > section{ --sec:var(--violet); --sec-soft:var(--violet-soft); }
main > section:nth-of-type(6n+1){ --sec:var(--violet); --sec-soft:var(--violet-soft); }
main > section:nth-of-type(6n+2){ --sec:var(--pink); --sec-soft:var(--pink-soft); }
main > section:nth-of-type(6n+3){ --sec:var(--cyan); --sec-soft:var(--cyan-soft); }
main > section:nth-of-type(6n+4){ --sec:var(--amber); --sec-soft:var(--amber-soft); }
main > section:nth-of-type(6n+5){ --sec:var(--orange); --sec-soft:var(--orange-soft); }
main > section:nth-of-type(6n+6){ --sec:var(--green); --sec-soft:var(--green-soft); }

html{ background:var(--bg); }
body{ background:var(--bg); color:var(--edge); }

/* top bars */
.ticker{ background:linear-gradient(90deg,var(--violet),var(--pink) 55%,var(--orange)); border-bottom:2px solid var(--edge); }
.ticker__label{ color:#fff; border-right-color:rgba(255,255,255,0.4); }
.tick__pair{ color:rgba(255,255,255,0.92); }
.tick__val{ color:#fff; }
.tick__chg{ color:#fff; }

.masthead{ background:rgba(255,244,230,0.92); border-bottom:2px solid var(--edge); }
.nav__link:hover{ background:var(--violet-soft); color:var(--edge); }
.nav__link[aria-current="true"]{ color:var(--violet); }
.nav.is-open{ background:var(--bg); border-bottom:2px solid var(--edge); }
.brand__sub{ color:var(--faint); }
.skip{ color:#fff; }

/* sections */
.section--alt{ background:var(--sec-soft); border-block:1px solid var(--line); }
.section--band{ background:var(--sec); color:#fff; border-block:2px solid var(--edge); }
.section--band .sec-head__title{ color:#fff; }
.section--band .sec-head__note{ color:rgba(255,255,255,0.9); }

.eyebrow{ color:var(--sec); }
.sec-head__title{ color:var(--edge); }

/* buttons / chips / tags */
.btn{ border:2px solid var(--edge); box-shadow:3px 3px 0 rgba(22,19,42,0.9); }
.btn:active{ transform:translate(2px,2px); box-shadow:1px 1px 0 rgba(22,19,42,0.9); }
.btn--gold{ background:linear-gradient(140deg,var(--pink),var(--violet)); color:#fff; }
.btn--gold:hover{ background:linear-gradient(140deg,#ff66a6,#8f76ff); }
.btn--ghost{ border-color:var(--edge); color:var(--edge); background:#fff; }
.btn--ghost:hover{ background:var(--violet-soft); color:var(--edge); border-color:var(--edge); }

.chip{ background:#fff; border:2px solid var(--edge); color:var(--edge); box-shadow:2px 2px 0 rgba(22,19,42,0.85); }
.chip:hover{ background:var(--sec-soft); color:var(--edge); border-color:var(--edge); }
.chip[aria-pressed="true"]{ background:var(--sec); color:#fff; border-color:var(--edge); }
.chip:not(button){ background:#fff; }

.tag{ background:var(--cyan-soft); color:#0a7f95; border-color:var(--cyan); }
.tag--gold{ background:var(--amber-soft); color:#a46100; border-color:var(--amber); }
.tag--teal{ background:var(--green-soft); color:#0a8f5f; border-color:var(--green); }

/* cards & list surfaces */
.card,.mover,.pair-card,.know__item,.pos-card,.chart-panel,.status__item{
  background:var(--paper); border:2px solid var(--edge);
  box-shadow:5px 5px 0 rgba(22,19,42,0.85);
}
.pair-card:hover{ transform:translate(-2px,-2px); box-shadow:7px 7px 0 rgba(22,19,42,0.85); }

.cmp,.briefing,.banks,.readlist,.stat-row,.briefing ul.briefing{
  border:2px solid var(--edge); box-shadow:5px 5px 0 rgba(22,19,42,0.85);
}
.cmp__row,.briefing__row,.bank,.readlist__row,.stat-row div{ background:var(--paper); }
.bank:hover,.readlist__row:hover{ background:var(--sec-soft); }
table.fx thead th{ background:var(--sec-soft); color:var(--edge); }
table.fx tbody tr:hover{ background:var(--sec-soft); }
.table-scroll{ border:2px solid var(--edge); box-shadow:5px 5px 0 rgba(22,19,42,0.85); }

/* converter */
.converter{ background:var(--paper); border:2px solid var(--edge); box-shadow:8px 8px 0 rgba(22,19,42,0.9); }
.converter__head{ border-bottom:2px solid var(--edge); }
.converter__head .eyebrow{ color:var(--violet); }
.seg{ background:#fff; border:2px solid var(--edge); }
.seg__btn{ color:var(--muted); }
.seg__btn[aria-pressed="true"]{ background:var(--violet); color:#fff; }
.amount-input,.select-wrap select{ background:#fff; border:2px solid var(--edge); color:var(--edge); }
.swap{ border:2px solid var(--edge); background:var(--violet-soft); color:var(--violet); }
.result{ background:linear-gradient(135deg,var(--violet),var(--cyan)); border:2px solid var(--edge); color:#fff; }
.result__from,.result__rate{ color:rgba(255,255,255,0.9); }
.result__value,.result__ccy{ color:#fff; }
.result .icon-btn{ border-color:rgba(255,255,255,0.6); color:#fff; }

.status__pair{ color:var(--violet); }

/* inputs */
.search input,.newsletter__form input{ background:#fff; border:2px solid var(--edge); color:var(--edge); }

/* text over photography stays light */
.feature,.region-hero,.city{ color:#fff; }
.feature__title,.region-hero__title,.city__name{ color:#fff; }
.feature__body p{ color:rgba(255,255,255,0.92); }
.feature__foot{ color:rgba(255,255,255,0.9); }
.feature .story__kicker,.region-hero .story__kicker,.region-hero .story__meta{ color:rgba(255,255,255,0.88); }

/* newsletter + footer colour blocks */
.newsletter{ background:linear-gradient(130deg,var(--violet),var(--pink) 58%,var(--orange)); border:2px solid var(--edge); box-shadow:6px 6px 0 rgba(22,19,42,0.9); }
.newsletter .eyebrow{ color:rgba(255,255,255,0.92); }
.newsletter .sec-head__title{ color:#fff; }
.newsletter .lede{ color:rgba(255,255,255,0.92); }
.form-msg.is-ok{ color:#eafff5; }
.form-msg.is-err{ color:#ffe0ea; }

.footer{ background:linear-gradient(120deg,var(--violet),var(--blue) 52%,var(--cyan)); color:#fff; }
.footer .brand__name{ color:#fff; }
.footer .brand__sub{ color:rgba(255,255,255,0.75); }
.footer .story__body{ color:rgba(255,255,255,0.9); }
.footer__col h4{ color:var(--amber); }
.footer__col button{ color:rgba(255,255,255,0.85); }
.footer__col button:hover{ color:#fff; }
.footer__bottom{ border-top:1px solid rgba(255,255,255,0.3); color:rgba(255,255,255,0.88); }
.footer__note{ color:rgba(255,255,255,0.88); }
.footer .chip{ background:rgba(255,255,255,0.14); color:#fff; border-color:#fff; box-shadow:2px 2px 0 rgba(0,0,0,0.35); }
.footer .chip:hover{ background:#fff; color:var(--violet); }

/* drawer / modal / toast */
.drawer__panel{ background:var(--paper); border-top:2px solid var(--edge); }
.modal__panel{ background:var(--paper); border:2px solid var(--edge); box-shadow:8px 8px 0 rgba(22,19,42,0.9); }
.toast{ background:var(--edge); color:#fff; border:2px solid var(--edge); }

/* decorative hero glow */
.hero::before{
  background:
    radial-gradient(60% 70% at 12% 0%, rgba(124,92,255,0.30), transparent 62%),
    radial-gradient(52% 62% at 88% 6%, rgba(255,61,139,0.26), transparent 64%),
    radial-gradient(42% 52% at 58% 42%, rgba(18,201,229,0.22), transparent 70%);
}

/* fixes */
.section--band .eyebrow{ color:rgba(255,255,255,0.92); }
.mover__bar{ background:rgba(22,19,42,0.10); }
.swap:hover{ background:rgba(124,92,255,0.24); }
ul.briefing{ border:0; box-shadow:none; }
.skeleton{ background:rgba(22,19,42,0.06); }

/* ------------------------------------------------------------------ language */
.lang-switch{ display:flex; align-items:center; gap:8px; position:relative; }
.lang-switch__globe{ width:17px; height:17px; flex:0 0 auto; color:var(--sec); }
.lang-switch select{
  appearance:none; -webkit-appearance:none;
  background:#fff;
  border:2px solid var(--edge);
  border-radius:999px;
  box-shadow:2px 2px 0 rgba(22,19,42,0.85);
  color:var(--edge);
  font:inherit; font-size:13px; font-weight:600;
  padding:7px 30px 7px 14px;
  max-width:190px;
  cursor:pointer;
}
.lang-switch select:focus-visible{ outline:2px solid var(--edge); outline-offset:2px; }
.lang-switch select option{ color:#16132a; }
.lang-switch::after{
  content:""; position:absolute; right:12px; top:50%;
  width:7px; height:7px;
  border-right:2px solid var(--edge); border-bottom:2px solid var(--edge);
  transform:translateY(-70%) rotate(45deg);
  pointer-events:none;
}
.lang-status{ position:absolute; right:0; top:calc(100% + 5px); font-size:11px; color:var(--faint); white-space:nowrap; }
.lang-status.error{ color:var(--down); }

/* hidden Google Translate host + chrome */
#google_translate_element{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
body > .skiptranslate,
.goog-te-banner-frame.skiptranslate{ display:none !important; }
body{ top:0 !important; }
.goog-logo-link, .goog-te-gadget, .goog-te-gadget-simple{ display:none !important; }

@media (max-width: 979px){
  .lang-switch{ margin-left:auto; }
  .lang-switch select{ max-width:132px; font-size:12px; padding:6px 26px 6px 12px; }
  .lang-switch__globe{ display:none; }
}
