.currency-page {
  --currency-green: #05ad62;
  --currency-blue: #2b8cff;
  --currency-cyan: #1dbecb;
  --currency-orange: #ff9f1c;
  --currency-red: #ff5b65;
  --currency-soft: #f6fbff;
  background: #fff;
}

.currency-page .directory-header,
.currency-page .directory-footer,
.currency-page .cookie-bar {
  font-family: var(--font-sans);
}

.currency-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: #fff;
}

.currency-hero__inner {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  min-height: 158px;
  gap: 30px;
  padding: 18px 0 14px;
}

.breadcrumb,
.hero-trust-row,
.hero-kicker,
.tool-card-head,
.mode-tabs,
.currency-pair-row,
.currency-mini-row,
.popular-pills,
.rate-metrics,
.trend-card,
.side-card-head,
.examples-card button,
.pairs-card button,
.currency-tabs,
.related-list .related-card {
  display: flex;
  align-items: center;
}

.breadcrumb {
  gap: 8px;
  margin-bottom: 18px;
  color: #66799d;
  font-size: 13px;
  font-weight: 650;
}

.breadcrumb a {
  color: #0c9f5e;
}

.currency-hero h1 {
  margin: 0;
  color: #061738;
  font-size: clamp(42px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.currency-hero p {
  max-width: 680px;
  margin: 14px 0 0;
  color: #415477;
  font-size: 17px;
  line-height: 1.45;
}

.currency-hero__art {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0c8aa1, #09a77c);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .28), 0 14px 30px rgba(0, 129, 134, .2);
}

.currency-globe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(90deg, transparent 47%, #fff 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #fff 48% 52%, transparent 53%);
  box-shadow: none;
}

.currency-globe span {
  position: absolute;
  border-radius: 999px;
  border: 3px solid #fff;
  background: transparent;
}

.currency-globe span:nth-child(1) {
  inset: 8px 20px;
  width: auto;
  height: auto;
  transform: none;
}

.currency-globe span:nth-child(2) {
  inset: 20px 8px;
  width: auto;
  height: auto;
  transform: none;
}

.currency-globe span:nth-child(3) {
  display: none;
}

.currency-card-art,
.currency-badge,
.currency-orbit {
  display: none;
}

.currency-hero__art::before,
.currency-hero__art::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 6px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.currency-hero__art::before {
  left: 12px;
  top: 18px;
  transform: rotate(-42deg);
}

.currency-hero__art::after {
  right: 12px;
  bottom: 18px;
  transform: rotate(138deg);
}

.currency-tool-section {
  position: relative;
  padding: 0 0 20px;
  background: #fff;
}

.currency-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 24px;
  align-items: start;
}

.currency-tool-card,
.side-card,
.learning-card,
.insight-card {
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 48, 90, .06);
}

.currency-tool-card {
  padding: 12px 14px 14px;
}

.tool-card-head {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe7f1;
}

.tool-card-head > div:first-child {
  display: none;
}

.tool-eyebrow {
  color: var(--currency-green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card-head h2,
.side-card h2,
.learning-card h2,
.insight-card h2 {
  margin: 0;
  color: #061738;
  font-weight: 850;
  letter-spacing: 0;
}

.tool-card-head h2 {
  font-size: 26px;
}

.mode-tabs {
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 142px;
  border: 1px solid #d4e1ee;
  border-radius: 8px;
  padding: 11px 16px;
  background: #fff;
  color: #0a234a;
  font-size: 13px;
  font-weight: 800;
}

.mode-tab.is-active {
  border-color: #078da0;
  background: linear-gradient(180deg, #0498a8, #067b92);
  color: #fff;
  box-shadow: none;
}

.currency-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, .61fr) minmax(330px, .39fr);
  gap: 14px;
  align-items: start;
}

.currency-form {
  display: grid;
  gap: 13px;
  align-content: start;
  padding: 4px 6px 0;
}

.currency-form > label:first-child {
  width: 220px;
}

.currency-form label {
  display: grid;
  gap: 7px;
  color: #314767;
  font-size: 13px;
  font-weight: 750;
}

.currency-form label small {
  color: #6a7c98;
  font-size: 11px;
  font-weight: 600;
}

.currency-form input,
.currency-form select {
  width: 100%;
  height: 46px;
  min-width: 0;
  border: 1px solid #d9e4f0;
  border-radius: 9px;
  background: #fff;
  color: #061738;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  padding: 0 14px;
}

.currency-select-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  height: 48px;
  border: 1px solid #d9e4f0;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.currency-select-wrap::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #071b43;
  border-bottom: 2px solid #071b43;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}

.currency-select-wrap:focus-within {
  border-color: #17bb74;
  box-shadow: 0 0 0 4px rgba(13, 184, 110, .12);
}

.currency-select-wrap select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.currency-select-wrap select:focus {
  border-color: transparent;
  box-shadow: none;
}

.currency-code {
  display: block;
  color: #061738;
  font-weight: 900;
  line-height: 1.05;
}

.currency-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #385171;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}

.currency-text {
  min-width: 0;
  padding-left: 8px;
}

.currency-flag {
  justify-self: end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #d5e2ef;
}

.flag-us {
  background:
    radial-gradient(circle at 30% 30%, #2459cc 0 20%, transparent 21%),
    repeating-linear-gradient(180deg, #bf2f3b 0 3px, #fff 3px 6px);
}

.flag-eu {
  background:
    radial-gradient(circle at 50% 25%, #ffcf35 0 5%, transparent 6%),
    radial-gradient(circle at 68% 50%, #ffcf35 0 5%, transparent 6%),
    radial-gradient(circle at 50% 75%, #ffcf35 0 5%, transparent 6%),
    radial-gradient(circle at 32% 50%, #ffcf35 0 5%, transparent 6%),
    #2459cc;
}

.flag-uk {
  background:
    linear-gradient(135deg, transparent 0 42%, #fff 43% 48%, #c8102e 49% 54%, #fff 55% 60%, transparent 61%),
    linear-gradient(45deg, transparent 0 42%, #fff 43% 48%, #c8102e 49% 54%, #fff 55% 60%, transparent 61%),
    linear-gradient(90deg, transparent 0 38%, #fff 39% 44%, #c8102e 45% 55%, #fff 56% 61%, transparent 62%),
    linear-gradient(180deg, transparent 0 38%, #fff 39% 44%, #c8102e 45% 55%, #fff 56% 61%, transparent 62%),
    #21468b;
}

.flag-ca {
  background:
    radial-gradient(circle at 50% 50%, #e4222f 0 15%, transparent 16%),
    linear-gradient(90deg, #e4222f 0 28%, #fff 29% 71%, #e4222f 72%);
}

.flag-jp {
  background: radial-gradient(circle, #cf2635 0 28%, #fff 29%);
}

.flag-au {
  background: radial-gradient(circle at 65% 45%, #fff 0 8%, transparent 9%), #2459cc;
}

.flag-cn {
  background: radial-gradient(circle at 35% 35%, #ffd761 0 12%, transparent 13%), #dd1f2d;
}
.flag-ch,.flag-hk,.flag-sg,.flag-nz,.flag-in,.flag-kr,.flag-br,.flag-mx,.flag-se,.flag-no,.flag-pl,.flag-ae{background:linear-gradient(135deg,#e8eef8,#6d86b5);position:relative}.flag-ch:after{content:'✚';color:#d22b3a}.flag-in:after{content:'●';color:#f3a51c}.flag-kr:after{content:'☯';color:#173c7b}.flag-ae:after{content:'▪';color:#b3202a}

.currency-form input:focus,
.currency-form select:focus {
  border-color: #17bb74;
  box-shadow: 0 0 0 4px rgba(13, 184, 110, .12);
}

.currency-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 12px;
}

.swap-btn {
  align-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 48px;
  border: 1px solid #d4e1ee;
  border-radius: 8px;
  background: #fff;
  color: #071b43;
}

.info-dot {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border: 1px solid #071b43;
  border-radius: 50%;
  color: #071b43;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.currency-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.input-affix {
  position: relative;
}

.input-affix input {
  padding-right: 42px;
}

.input-affix span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #647795;
  font-weight: 850;
}

.popular-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.popular-title {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dfe7f1;
  color: #061738;
  font-size: 13px;
  font-weight: 850;
}

.popular-title span {
  color: #506682;
  font-weight: 700;
}

.popular-pills button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  border: 1px solid #dbe7f3;
  border-radius: 8px;
  background: #f9fcff;
  color: #214160;
  padding: 9px 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.popular-pills button::after {
  content: "›";
  color: #061738;
  font-size: 22px;
  line-height: 1;
}

.popular-pills strong,
.popular-pills small {
  display: block;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.15;
}

.pair-copy {
  min-width: 0;
}

.popular-pills small {
  margin-top: 5px;
  color: #375476;
  font-size: 11px;
}

.flag-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px #d8e4f0;
}

.currency-result-card {
  min-width: 0;
  border-radius: 13px;
  padding: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(43, 140, 255, .16), transparent 160px),
    linear-gradient(135deg, #f1fff7 0%, #f8fbff 58%, #fff 100%);
}

.currency-result-card h2 {
  margin: 0 0 20px;
  color: #078da0;
  font-size: 16px;
  font-weight: 850;
}

.result-equation {
  margin: 0 0 2px;
  color: #061738;
  font-size: 22px;
  font-weight: 850;
}

.result-label,
.rate-metrics span {
  color: #61748f;
  font-size: 13px;
  font-weight: 750;
}

#convertedAmount {
  display: block;
  margin: 0 0 14px;
  color: #078da0;
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: 0;
}

#sourceSummary {
  display: none;
  margin: 0 0 8px;
  color: #3f5371;
  font-size: 14px;
  line-height: 1.35;
}

.rate-metrics {
  display: grid;
  gap: 0;
  border-top: 1px solid #dce8f4;
  border-bottom: 1px solid #dce8f4;
}

.rate-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #dce8f4;
  border-radius: 0;
  background: transparent;
}

.rate-metrics div:last-child {
  border-bottom: 0;
}

.rate-metrics strong {
  display: block;
  margin-top: 0;
  color: #061738;
  font-size: 13px;
  text-align: right;
}

.trend-card {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trend-card strong {
  display: none;
  margin-top: 2px;
  color: #061738;
}

.trend-card svg {
  width: 100%;
  min-width: 0;
  height: 84px;
}

.trend-card svg text {
  fill: #5f718d;
  stroke: none;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
}

.trend-card svg .date-label {
  text-anchor: middle;
  font-size: 9px;
}

.trend-card svg .grid-line {
  stroke: #dbe6f3;
  stroke-width: 1;
}

.trend-card span {
  color: #078da0;
  font-size: 14px;
  font-weight: 850;
}

.trend-card span small {
  color: #061738;
  font-size: 12px;
  font-weight: 700;
}

.currency-sidebar {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 18px;
}

.side-card-head {
  gap: 10px;
  margin-bottom: 14px;
}

.side-card-head > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ecfff5;
  color: #06a760;
}

.side-card h2 {
  font-size: 18px;
}

.examples-card {
  display: grid;
  gap: 10px;
}

.examples-card button {
  width: 100%;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #dfe7f1;
  border-radius: 0;
  background: #fff;
  padding: 10px 0 12px;
  text-align: left;
  color: #061738;
}

.examples-card button:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.examples-card button:hover,
.pairs-card button:hover,
.popular-pills button:hover {
  border-color: #16bb73;
  box-shadow: 0 8px 18px rgba(9, 168, 96, .1);
}

.example-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: #d8fbf2;
  color: #07879b;
  font-size: 13px;
  font-weight: 900;
}

.examples-card button:nth-of-type(2) .example-icon {
  background: #dff5ff;
}

.examples-card button:nth-of-type(3) .example-icon {
  background: #ffe2ec;
  color: #d73d61;
}

.examples-card button:nth-of-type(4) .example-icon {
  background: #fff0d8;
  color: #c87513;
}

.examples-card strong,
.examples-card small {
  display: block;
}

.examples-card small {
  margin-top: 4px;
  color: #60738f;
  font-size: 12px;
  line-height: 1.35;
}

.checklist-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist-card li {
  position: relative;
  padding-left: 22px;
  color: #405472;
  font-size: 14px;
  line-height: 1.45;
}

.checklist-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0db96d;
}

.pairs-card #popularPairs {
  display: grid;
  gap: 9px;
}

.pairs-card button {
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  background: #fff;
  color: #061738;
  padding: 0 12px;
  font-weight: 800;
}

.pairs-card span {
  color: #566986;
}

.currency-content-section {
  padding: 0 0 22px;
  border-top: 0;
  background: #fff;
}

.currency-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 24px;
  align-items: start;
}

.currency-main-stack,
.content-side-stack {
  display: grid;
  gap: 16px;
}

@media (min-width: 1121px) {
  .currency-tool-section {
    padding-bottom: 14px;
  }

  .currency-layout {
    display: block;
    padding-right: 366px;
  }

  .currency-sidebar {
    position: absolute;
    top: 0;
    right: max(48px, calc((100vw - 1376px) / 2));
    width: 342px;
  }

  .currency-content-section {
    padding-top: 0;
  }

  .currency-content-grid {
    display: block;
    padding-right: 366px;
  }
}

.currency-tabs {
  flex-wrap: wrap;
  gap: 0;
  padding: 0 14px;
  border: 1px solid #dfe7f1;
  border-radius: 10px 10px 0 0;
  background: #fff;
  border-bottom: 0;
}

.currency-tabs button {
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #0b2246;
  padding: 12px 30px;
  font-weight: 850;
  border-bottom: 3px solid transparent;
}

.currency-tabs button.is-active {
  border-color: transparent;
  border-bottom-color: #078da0;
  background: transparent;
  color: #078da0;
}

.learning-card {
  display: none;
  position: relative;
  padding: 14px 18px 20px;
  border-radius: 0 0 10px 10px;
  box-shadow: none;
}

.learning-card.is-active {
  display: block;
}

.section-mark {
  display: none;
}

.learning-card h2,
.insight-card h2 {
  font-size: 18px;
}

.learning-card p,
.insight-card p {
  color: #405472;
  line-height: 1.46;
}

.learning-card h3 {
  margin: 14px 0 8px;
  color: #061738;
  font-size: 16px;
}

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

.formula-box {
  margin: 10px 0;
  padding: 13px 14px;
  border: 1px solid #dce8f4;
  border-radius: 7px;
  background: linear-gradient(135deg, #effff6, #f5fbff);
  color: #061738;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.example-grid div,
.factor-list span {
  border: 1px solid #dfe7f1;
  border-radius: 12px;
  background: #fff;
}

.example-grid div {
  padding: 16px;
}

.example-grid strong {
  color: #061738;
}

.example-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.factor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.factor-list span {
  padding: 13px 14px;
  color: #214160;
  font-weight: 800;
}

.learning-card details {
  border-top: 1px solid #e3ebf4;
  padding: 16px 0;
}

.learning-card details:first-of-type {
  margin-top: 12px;
}

.learning-card summary {
  color: #061738;
  font-weight: 850;
  cursor: pointer;
}

.learning-card details p {
  margin-bottom: 0;
}

.insight-card {
  padding: 22px;
}

.insight-card h2 {
  font-size: 20px;
}

.mini-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f1f8;
}

.mini-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0db96d, #2b8cff);
}

.currency-related {
  background: #fff;
}

.currency-related .related-inner,
.currency-related .related-list {
  min-width: 0;
}

.currency-related .related-list {
  overflow-x: auto;
  scrollbar-width: none;
}

.currency-related .related-list::-webkit-scrollbar {
  display: none;
}

.currency-related .related-card,
.currency-related .related-card span:first-child {
  min-width: 0;
}

.currency-related .related-card span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .currency-hero__inner,
  .currency-layout,
  .currency-content-grid {
    grid-template-columns: 1fr;
  }

  .currency-hero__art {
    display: none;
  }

  .currency-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .currency-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px 0 28px;
  }

  .currency-hero__art {
    display: none;
  }

  .breadcrumb {
    margin-bottom: 14px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .currency-hero h1 {
    font-size: 38px;
  }

  .currency-hero p {
    font-size: 16px;
  }

  .currency-tool-section {
    padding: 22px 0 26px;
  }

  .currency-tool-card,
  .side-card,
  .learning-card,
  .insight-card {
    border-radius: 12px;
  }

  .currency-tool-card {
    padding: 18px;
  }

  .tool-card-head {
    display: grid;
    align-items: start;
  }

  .mode-tabs {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .mode-tab {
    flex: 0 0 auto;
  }

  .currency-pair-row,
  .currency-mini-row,
  .example-grid,
  .factor-list,
  .guide-columns {
    grid-template-columns: 1fr;
  }

  .swap-btn {
    justify-self: center;
    transform: rotate(90deg);
  }

  #convertedAmount {
    font-size: 36px;
  }

  .trend-card {
    display: grid;
  }

  .trend-card svg {
    width: 100%;
  }

  .currency-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .currency-tabs button {
    flex: 0 0 auto;
  }

  .learning-card {
    padding: 22px 18px;
  }

  .formula-box {
    font-size: 17px;
  }

  .currency-related .related-list {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .currency-hero h1 {
    font-size: 34px;
  }

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

  .hero-trust-row span {
    width: 100%;
  }

  .popular-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .popular-pills button {
    min-height: 40px;
  }
}
