:root {
  --surface: #f8f9fa;
  --surface-low: #f3f4f5;
  --surface-card: #ffffff;
  --text: #191c1d;
  --muted: #434654;
  --primary: #003fb1;
  --primary-2: #1a56db;
  --success: #005438;
  --danger: #ba1a1a;
  --outline: rgba(115, 118, 134, 0.28);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 38, 105, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--surface); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); background: rgba(255,255,255,0.86); border-bottom: 1px solid var(--outline); }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: Manrope, Inter, sans-serif; font-weight: 800; color: var(--primary); font-size: 24px; }
.nav-links { display: flex; gap: 18px; font-weight: 600; color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--primary); }
.mobile-toggle { display: none; border: 0; background: var(--surface-card); border: 1px solid var(--outline); border-radius: 8px; padding: 8px 10px; }
.mobile-nav { display: none !important; padding: 8px 0 16px; }
.mobile-nav a { display: block; padding: 8px 0; color: var(--muted); font-weight: 600; }
.section { padding: 36px 0; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.hero h1 { font-family: Manrope, Inter, sans-serif; font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; border: 1px solid var(--outline); background: var(--surface-low); padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pill.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.pill.active { border-color: rgba(0, 63, 177, 0.45); background: rgba(0, 63, 177, 0.08); color: var(--primary); }
.pill.active:hover { background: rgba(0, 63, 177, 0.14); }
.home-primary-links .pill {
  background: rgba(0, 63, 177, 0.06);
  border-color: rgba(0, 63, 177, 0.22);
  color: var(--primary);
}
.home-primary-links .pill:hover {
  background: rgba(0, 63, 177, 0.12);
}
.currency-hub-pill {
  align-items: center;
  gap: 8px;
}
.about-capabilities {
  margin: 10px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.about-capabilities li {
  margin-bottom: 6px;
}
.card { background: var(--surface-card); border: 1px solid var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); }
.converter { padding: 20px; }
.converter-focus {
  border: 1px solid rgba(0, 63, 177, 0.22);
  box-shadow: 0 14px 34px rgba(0, 38, 105, 0.12);
}
.pair-header-section {
  padding-bottom: 10px;
}
.pair-focus-section {
  padding-top: 10px;
}
.converter-rate {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.converter-result {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 63, 177, 0.06);
  border: 1px solid rgba(0, 63, 177, 0.2);
}
.converter-result-primary {
  font-weight: 800;
  font-size: 28px;
  margin: 8px 0 0;
}
.converter-amount-summary {
  font-weight: 700;
  color: var(--primary);
}
.converter-natural-line {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.converter-amount-question {
  margin-top: 6px;
}
.converter-rate {
  margin-top: 12px;
}
.converter label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.input, .select { width: 100%; border-radius: 10px; border: 1px solid var(--outline); padding: 12px 13px; font-size: 18px; background: #fff; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.btn-primary { display: inline-block; text-align: center; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; padding: 12px 16px; border-radius: 11px; font-weight: 800; }
.muted { color: var(--muted); }
.kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.section-title { font-family: Manrope, Inter, sans-serif; font-size: 32px; margin: 0 0 12px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rate-card { padding: 16px; }
.rate-card .pair { font-size: 13px; color: var(--muted); font-weight: 700; }
.rate-card .rate { font-family: Manrope, Inter, sans-serif; font-size: 28px; font-weight: 800; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.up { color: var(--success); background: rgba(0,84,56,.12); }
.badge.down { color: var(--danger); background: rgba(186,26,26,.12); }
.badge.flat { color: var(--muted); background: rgba(67, 70, 84, 0.10); }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.stat-card { padding: 14px; background: #fff; border-radius: 12px; border: 1px solid var(--outline); }
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-card .value { font-size: 22px; font-weight: 800; font-family: Manrope, Inter, sans-serif; margin-top: 6px; }
.stat-card .value.up { color: var(--success); }
.stat-card .value.down { color: var(--danger); }
.stat-card .value.flat { color: var(--muted); }
.stat-card-primary {
  border-color: rgba(0, 63, 177, 0.28);
  box-shadow: 0 10px 20px rgba(0, 63, 177, 0.08);
}
.stat-card-primary .value {
  font-size: 26px;
}
.stat-card-secondary {
  border-color: rgba(0, 84, 56, 0.25);
}
.chart-wrap { padding: 16px; }
.chart-tabs { display: inline-flex; background: var(--surface-low); border-radius: 12px; padding: 4px; gap: 3px; }
.chart-tabs button { border: 0; background: transparent; padding: 7px 10px; border-radius: 9px; font-weight: 800; color: var(--muted); cursor: pointer; }
.chart-tabs button.active { background: #fff; color: var(--primary); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.chart-svg { width: 100%; height: 290px; background: linear-gradient(180deg, rgba(26,86,219,.11), transparent); border-radius: 12px; border: 1px solid var(--outline); }
.chart-stage { position: relative; }
.chart-row-meta {
  margin: 4px 0 4px;
  justify-content: flex-end;
}
.chart-history-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
.chart-grid-line { stroke: rgba(67, 70, 84, 0.14); stroke-width: 0.18; }
.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 156px;
  max-width: 220px;
  background: rgba(25, 28, 29, 0.92);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  pointer-events: none;
}
.chart-tooltip-rate { font-size: 14px; font-weight: 800; line-height: 1.2; }
.chart-tooltip-meta { margin-top: 4px; font-size: 12px; opacity: 0.88; }
.chart-axis-y {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.chart-axis-x {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.fx-converter-grid { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 10px; align-items: end; }
.fx-converter-lock-from .fx-converter-grid {
  grid-template-columns: 1fr 1fr;
}
.fx-picker { position: relative; }
.fx-picker label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.fx-picker-toggle {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: #fff;
  min-height: 48px;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}
.fx-picker-toggle.is-locked {
  cursor: default;
  background: var(--surface-low);
}
.fx-converter-lock-from .fx-picker-toggle.is-locked .fx-picker-chevron {
  display: none;
}
.fx-picker-main { display: flex; align-items: center; gap: 8px; width: 100%; }
.fx-picker-meta { display: block; min-width: 0; flex: 1; }
.fx-picker-code { display: block; font-weight: 800; font-size: 15px; color: var(--text); }
.fx-picker-name { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fx-picker-chevron { margin-left: auto; color: var(--muted); font-size: 14px; transition: transform .18s ease; }
.fx-picker.open .fx-picker-chevron { transform: rotate(180deg); }
.fx-flag-wrap {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--outline);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex: 0 0 20px;
}
.fx-flag-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-flag-fallback {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}
.fx-picker-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--outline);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 38, 105, 0.12);
  padding: 8px;
}
.fx-picker-panel[hidden] {
  display: none !important;
}
.fx-picker-search {
  width: 100%;
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
.fx-picker-list { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.fx-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  padding: 8px;
  cursor: pointer;
}
.fx-option:hover, .fx-option.active { background: var(--surface-low); }
.fx-option-meta { display: flex; flex-direction: column; min-width: 0; }
.fx-option-code { font-weight: 800; color: var(--text); }
.fx-option-name { color: var(--muted); font-size: 12px; }
.fx-option-empty { color: var(--muted); padding: 8px; font-size: 13px; }
.fx-swap-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background: var(--surface-low);
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}
.currencies-toolbar { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.currencies-helper { margin: 12px 0 0; font-size: 14px; }
.currencies-az { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.currencies-empty {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed var(--outline);
  background: rgba(0, 63, 177, 0.04);
  color: var(--muted);
}
.currency-letter-group { margin-top: 18px; }
.currency-letter-title { margin: 0 0 10px; font-size: 20px; font-family: Manrope, Inter, sans-serif; }
.currency-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.currency-card-flag {
  flex: 0 0 auto;
}
.currency-card-meta {
  min-width: 0;
  flex: 1 1 auto;
}
.currency-card-meta p {
  margin: 0;
}
.hub-converter-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 520px; }
.table th, .table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--outline); }
.table .table-row-active td {
  background: rgba(0, 63, 177, 0.10);
  border-top: 1px solid rgba(0, 63, 177, 0.2);
  border-bottom: 1px solid rgba(0, 63, 177, 0.2);
  font-weight: 800;
}
.table th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.category-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination-status {
  font-size: 13px;
  font-weight: 700;
}
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--outline); }
.faq-item h3 { margin: 0 0 7px; font-size: 17px; }
.faq-item p { margin: 0; color: var(--muted); }
.footer { border-top: 1px solid var(--outline); padding: 32px 0 38px; margin-top: 34px; color: var(--muted); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.footer-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-disclaimer {
  font-weight: 700;
}
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.breadcrumbs span.sep { opacity: .55; }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.list-item { padding: 14px; border: 1px solid var(--outline); border-radius: 12px; background: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.highlight { background: var(--surface-low); border: 1px solid var(--outline); border-radius: 12px; padding: 14px; }
.about-meta-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}
.about-meta-list li {
  margin-bottom: 4px;
}
.related-group + .related-group {
  padding-top: 12px;
  border-top: 1px dashed var(--outline);
  margin-top: 12px;
}
.related-group-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text);
}
.page-header {
  padding-bottom: 12px;
}
.page-meta {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}
.page-sections {
  display: grid;
  gap: 14px;
}
.page-section {
  padding: 18px;
}
.page-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: Manrope, Inter, sans-serif;
}
.page-section p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}
.page-section p:last-child {
  margin-bottom: 0;
}
.page-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.page-section li + li {
  margin-top: 8px;
}
.page-callout {
  border: 1px solid rgba(0, 63, 177, 0.18);
  background: rgba(0, 63, 177, 0.04);
}
.page-callout strong {
  color: var(--text);
}
.contact-email-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 63, 177, 0.22);
  background: rgba(0, 63, 177, 0.06);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--primary);
}
.pair-last-section {
  padding-bottom: 42px;
}
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 24px); }
  .section { padding: 24px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .mobile-nav.show { display: block !important; }
  .cards, .grid-3, .list-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-title { font-size: 26px; }
  .chart-svg { height: 220px; }
  .chart-tooltip { min-width: 140px; padding: 7px 9px; }
  .fx-converter-grid { grid-template-columns: 1fr; }
  .fx-swap-btn { width: 100%; }
  .currencies-toolbar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
