:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-secondary: #f1f3f6;
  --text: #0f172a;
  --text-secondary: #64748b;
  --hover: #f1f5f9;
  --primary: #2563eb;
  --topbar: #0f172a;
  --topbar-secondary: #0a1635;
  --financial-note-bg: #f8fafc;
  --financial-note-border: #dce5ee;
  --financial-note-icon: #0f766e;
  --card: #ffffff;
  --navy: #0f172a;
  --muted: #64748b;
  --teal: #0f766e;
  --teal-soft: #e6f4f2;
  --success: #16a34a;
  --success-soft: #ecfdf3;
  --warning: #d97706;
  --danger: #dc2626;
  --border: #e2e8f0;
  --ink: #12233d;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.04);
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --font-sans:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

html[data-theme="dim"] {
  --bg: #18202b;
  --surface: #222c39;
  --surface-secondary: #27323f;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --border: #344154;
  --hover: #2e3947;
  --primary: #38b2f6;
  --topbar: #141c27;
  --topbar-secondary: #1a2532;
  --financial-note-bg: #202c38;
  --financial-note-border: #3b4a5b;
  --financial-note-icon: #5eead4;
  --card: var(--surface);
  --navy: var(--text);
  --muted: var(--text-secondary);
  --ink: var(--text);
  --teal-soft: #173b3b;
  --success-soft: #173c2a;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] {
  --bg: #080d14;
  --surface: #101720;
  --surface-secondary: #151c26;
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --border: #202b38;
  --hover: #1b2432;
  --primary: #60a5fa;
  --topbar: #080d14;
  --topbar-secondary: #101720;
  --financial-note-bg: #111b25;
  --financial-note-border: #2c3948;
  --financial-note-icon: #5eead4;
  --card: var(--surface);
  --navy: var(--text);
  --muted: var(--text-secondary);
  --ink: var(--text);
  --teal-soft: #123c3b;
  --success-soft: #133d2a;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 9px 22px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  background: none;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.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;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(10, 22, 53, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f8fafc;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #f8fafc;
}

.brand-mark {
  width: 98px;
  height: 98px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 7px 12px rgba(34, 211, 238, 0.16));
  transition: filter 200ms ease, transform 200ms ease;
}

.brand:hover .brand-mark svg,
.brand:focus-visible .brand-mark svg {
  filter: drop-shadow(0 9px 15px rgba(34, 211, 238, 0.28));
  transform: translateY(-1px);
}

.brand-copy {
  display: grid;
  gap: 5px;
  min-width: max-content;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 2.18rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-tagline {
  color: rgba(203, 213, 225, 0.8);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.23em;
  line-height: 1;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.nav-link {
  position: relative;
  color: rgba(226, 232, 240, 0.84);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 36px 0 32px;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #2dd4bf;
}

@media (max-width: 1180px) {
  .topbar-inner {
    gap: 14px;
  }

  .brand-mark {
    width: 72px;
    height: 72px;
  }

  .brand-copy strong {
    font-size: 1.68rem;
  }

  .brand-tagline {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .primary-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.9rem;
  }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 500;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.language-chip {
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

html[dir="rtl"] .rates-copy,
html[dir="rtl"] .bank-copy,
html[dir="rtl"] .reference-copy,
html[dir="rtl"] .converter-drawer-body {
  text-align: right;
}

.language-chip.is-active {
  background: rgba(45, 212, 191, 0.16);
  color: #ffffff;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.theme-icon {
  display: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

html[data-theme="light"] .theme-icon-light,
html:not([data-theme]) .theme-icon-light,
html[data-theme="dim"] .theme-icon-dim,
html[data-theme="dark"] .theme-icon-dark {
  display: block;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.16);
}

.market-ticker-band {
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  background:
    linear-gradient(90deg, rgba(5, 17, 43, 0.98), rgba(8, 35, 78, 0.98) 52%, rgba(5, 24, 55, 0.98));
}

.market-ticker {
  width: min(1240px, calc(100% - 32px));
  min-height: 58px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.market-ticker-item {
  min-width: 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #e8f2ff;
  border-right: 1px solid rgba(125, 211, 252, 0.12);
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}

.market-ticker-item:first-child {
  border-left: 1px solid rgba(125, 211, 252, 0.12);
}

.market-ticker-item:hover,
.market-ticker-item:focus-visible {
  background: rgba(45, 212, 191, 0.09);
}

.market-ticker-flag {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(226, 232, 240, 0.2);
}

.market-ticker-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px 9px;
}

.market-ticker-pair {
  color: #dbeafe;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.market-ticker-price {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.market-ticker-change {
  grid-column: 1 / -1;
  color: #5eead4;
  font-size: 0.72rem;
  font-weight: 700;
}

.market-ticker-change.is-down {
  color: #fb7185;
}

.market-ticker-change.is-neutral {
  color: #94a3b8;
}

.market-ticker-loading {
  align-self: center;
  color: #93c5fd;
  font-size: 0.84rem;
}

.app-main {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 40px;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 30px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.site-footer-primary-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a {
  color: var(--primary);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--teal);
}

.site-footer-link {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  color: var(--primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-footer-link:hover {
  color: var(--teal);
}

.site-footer-popular {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.site-footer-popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer-popular-links a {
  line-height: 1.45;
}

.contact-page-body {
  background:
    radial-gradient(circle at 84% 8%, rgba(45, 212, 191, 0.16), transparent 24%),
    radial-gradient(circle at 12% 30%, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 76%);
}

.contact-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, #0d1b35, #0a2345);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.contact-topbar-inner {
  width: min(1240px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
}

.contact-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.contact-brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(45, 212, 191, 0.2));
}

.contact-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.contact-brand strong {
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact-brand small {
  color: rgba(203, 213, 225, 0.76);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.contact-nav a {
  position: relative;
  padding: 31px 0 28px;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-nav a:hover,
.contact-nav a.is-active {
  color: #ffffff;
}

.contact-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #2dd4bf;
}

.contact-page-main {
  width: min(1120px, calc(100% - 32px));
  flex: 1 0 auto;
  margin: 48px auto 64px;
}

.contact-hero {
  min-height: 260px;
  padding: clamp(28px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 32px;
  overflow: hidden;
  border: 1px solid #cfe1ee;
  border-radius: 24px;
  background:
    radial-gradient(circle at 87% 15%, rgba(45, 212, 191, 0.3), transparent 30%),
    linear-gradient(122deg, #ecf7fb 0%, #f7fbff 52%, #e7f2fb 100%);
  box-shadow: 0 20px 42px rgba(18, 51, 86, 0.08);
}

.contact-eyebrow,
.contact-section-kicker {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-hero h1,
.contact-form-card h2 {
  margin: 0;
  color: #10233e;
  letter-spacing: -0.045em;
}

.contact-hero h1 {
  max-width: 600px;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.98;
}

.contact-hero-copy > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: #526c89;
  font-size: 1.04rem;
  line-height: 1.65;
}

.contact-email-spotlight {
  min-height: 110px;
  padding: 19px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-email-spotlight:hover,
.contact-email-spotlight:focus-visible {
  border-color: rgba(15, 118, 110, 0.44);
  box-shadow: 0 18px 32px rgba(15, 118, 110, 0.16);
  transform: translateY(-2px);
}

.contact-email-spotlight svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  background: #0f766e;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-email-spotlight span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.contact-email-spotlight small {
  color: #7185a1;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.contact-email-spotlight strong {
  overflow: hidden;
  color: #10233e;
  font-size: 0.91rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-email-spotlight b {
  color: #0f766e;
  font-size: 1.2rem;
}

.contact-content-grid {
  max-width: 760px;
  margin: 24px auto 0;
}

.contact-form-card {
  padding: clamp(24px, 3.6vw, 36px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.contact-form-card h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.1;
}

.contact-form-card > p:last-of-type {
  margin: 13px 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact-form-card form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

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

.contact-form-card label {
  display: grid;
  gap: 8px;
}

.contact-form-card label > span {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: 0;
  background: var(--surface-secondary);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.contact-form-card input {
  height: 46px;
  padding: 0 13px;
}

.contact-form-card textarea {
  min-height: 130px;
  padding: 13px;
  resize: vertical;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: #91a0b4;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: rgba(15, 118, 110, 0.68);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.contact-submit {
  min-height: 48px;
  margin-top: 4px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: start;
  border-radius: 12px;
  background: #0f766e;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #0b665f;
  box-shadow: 0 13px 22px rgba(15, 118, 110, 0.26);
  transform: translateY(-1px);
}

.faq-page-main {
  width: min(960px, calc(100% - 32px));
  flex: 1 0 auto;
  margin: 48px auto 64px;
}

.faq-hero {
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #cfe1ee;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 14%, rgba(45, 212, 191, 0.26), transparent 29%),
    linear-gradient(122deg, #ecf7fb 0%, #f7fbff 55%, #e7f2fb 100%);
  box-shadow: 0 20px 42px rgba(18, 51, 86, 0.08);
}

.faq-hero h1 {
  margin: 0;
  color: #10233e;
  font-size: clamp(2.15rem, 4.8vw, 3.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.faq-hero > p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: #526c89;
  font-size: 1.02rem;
  line-height: 1.65;
}

.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(18, 51, 86, 0.04);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.faq-item:hover,
.faq-item:focus-within {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 12px 24px rgba(18, 51, 86, 0.08);
}

.faq-item summary {
  min-height: 66px;
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  color: #10233e;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e7f7f5;
  color: #0f766e;
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}

.faq-item[open] summary {
  color: #0f766e;
}

.faq-item[open] summary::after {
  background: #0f766e;
  color: #ffffff;
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.contact-page-footer {
  width: min(1120px, calc(100% - 32px));
  margin: auto auto 26px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.contact-page-footer p {
  margin: 0;
}

.contact-page-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.contact-page-footer a {
  color: var(--primary);
  font-weight: 700;
}

.contact-page-footer a[aria-current="page"] {
  color: var(--teal);
}

@media (max-width: 860px) {
  .contact-topbar-inner {
    min-height: auto;
    padding: 16px 0 0;
    display: grid;
    gap: 14px;
  }

  .contact-nav {
    width: 100%;
    padding-bottom: 0;
    overflow-x: auto;
    gap: 18px;
  }

  .contact-nav a {
    padding: 14px 0 16px;
  }

  .contact-page-main {
    margin-top: 28px;
  }

  .faq-page-main {
    margin-top: 28px;
    margin-bottom: 40px;
  }

  .contact-hero {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    min-height: 0;
  }

  .contact-email-spotlight {
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .contact-topbar-inner,
  .contact-page-main,
  .faq-page-main,
  .contact-page-footer {
    width: min(100% - 24px, 1120px);
  }

  .contact-hero {
    padding: 25px 21px;
    border-radius: 18px;
  }

  .faq-hero {
    padding: 25px 21px;
    border-radius: 18px;
  }

  .faq-item summary {
    min-height: 60px;
    padding: 15px 17px;
    gap: 14px;
    font-size: 0.92rem;
  }

  .faq-answer {
    padding: 0 17px 17px;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .contact-content-grid {
    margin-top: 16px;
  }

  .contact-form-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .contact-page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .contact-page-footer nav {
    justify-content: flex-start;
  }
}

.legal-warning-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.legal-warning-dialog::backdrop {
  background: rgba(8, 13, 20, 0.58);
}

.legal-warning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.legal-warning-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.legal-warning-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-secondary);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.legal-warning-close:hover {
  background: var(--hover);
  color: var(--text);
}

.legal-warning-body {
  max-height: calc(min(78vh, 720px) - 71px);
  overflow-y: auto;
  padding: 20px;
}

.legal-warning-body p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.legal-warning-body p:last-child {
  margin-bottom: 0;
}

.legal-warning-body strong {
  color: var(--text);
}

.rates-panel,
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.rates-panel {
  padding: 28px;
}

.rates-head,
.section-head,
.paper-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rates-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.rates-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.rates-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rates-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  white-space: nowrap;
}

.rates-status-icon {
  color: #475569;
  font-size: 1.1rem;
}

.toolbar-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.toolbar-button.secondary {
  background: #f8fbff;
  color: #38506d;
}

.financial-disclaimer {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--financial-note-border);
  border-radius: 8px;
  background: var(--financial-note-bg);
  color: var(--text);
}

.financial-disclaimer-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: var(--financial-note-icon);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.financial-disclaimer p {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.5;
}

.rates-toolbar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.currency-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.currency-tab {
  min-height: 72px;
  padding: 10px 18px 14px;
  border-radius: 12px 12px 0 0;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  text-decoration: none;
}

.currency-tab:hover {
  color: var(--ink);
}

.currency-tab.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.currency-tab-code {
  display: block;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.currency-tab-name {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--muted);
}

.currency-tab.is-active .currency-tab-name,
.currency-tab:hover .currency-tab-name {
  color: currentColor;
}

.direction-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fafc;
  gap: 4px;
}

.direction-chip {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.direction-chip.is-active {
  background: linear-gradient(180deg, #108a80, var(--teal));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.summary-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 108px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.summary-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-soft);
}

.summary-product-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.14));
}

.summary-card:nth-child(2) .summary-icon {
  color: var(--success);
  background: #ecfdf3;
}

.summary-card:nth-child(3) .summary-icon {
  color: #2563eb;
  background: #eff6ff;
}

.summary-card:nth-child(4) .summary-icon {
  color: #a16207;
  background: #fffbeb;
}

.summary-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-card h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.summary-card strong {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 800;
}

.reference-rate-card {
  min-height: 126px;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
}

.reference-rate-card[data-reference-type="tcmb"] {
  border-color: #cfe2f3;
  background: #f8fbff;
}

.reference-rate-card[data-reference-type="grand-bazaar"] {
  border-color: #f0dfbd;
  background: #fffcf5;
}

.reference-rate-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.reference-rate-card[data-reference-type="tcmb"] .reference-rate-icon {
  background: transparent;
}

.reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-icon {
  background: transparent;
}

.grand-bazaar-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.reference-rate-icon svg,
.reference-rate-icon .tcmb-logo-mark {
  width: 44px;
  height: 44px;
  overflow: visible;
}

.tcmb-logo-mark {
  display: block;
  object-fit: contain;
  background: transparent;
}

.reference-icon-roof,
.reference-icon-base {
  fill: currentColor;
  opacity: 0.92;
}

.reference-icon-column {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}

.reference-icon-arch,
.reference-icon-arch-inner {
  fill: currentColor;
}

.reference-icon-arch-inner {
  opacity: 0.55;
}

.reference-icon-door {
  fill: none;
  stroke: #fff8e8;
  stroke-width: 4;
}

.reference-icon-detail {
  fill: none;
  stroke: #fff8e8;
  stroke-width: 2;
  stroke-linecap: round;
}

.reference-rate-copy {
  min-width: 0;
}

.reference-rate-copy p {
  margin: 0 0 5px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.25;
}

.reference-rate-copy span {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.reference-rate-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--teal);
  font-size: clamp(1.22rem, 1.7vw, 1.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-copy strong {
  color: #a16207;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="tcmb"],
html[data-theme="dark"] .reference-rate-card[data-reference-type="tcmb"] {
  border-color: #31516a;
  background: #172a3a;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="grand-bazaar"],
html[data-theme="dark"] .reference-rate-card[data-reference-type="grand-bazaar"] {
  border-color: #5b472b;
  background: #292519;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="tcmb"] .reference-rate-icon,
html[data-theme="dark"] .reference-rate-card[data-reference-type="tcmb"] .reference-rate-icon {
  background: #fff7f7;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-icon,
html[data-theme="dark"] .reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-icon {
  color: #f4c76f;
  background: transparent;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-copy strong,
html[data-theme="dark"] .reference-rate-card[data-reference-type="grand-bazaar"] .reference-rate-copy strong {
  color: #f4c76f;
}

.trend-reference-row {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.trend-reference-spacer {
  flex: 1 1 auto;
}

.trend-reference-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #cfe0ef;
  border-radius: 14px;
  background: #f8fbff;
  color: #38506d;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.trend-reference-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #9fb7cb;
  color: #54728d;
  font-size: 0.78rem;
  font-weight: 800;
}

.trend-reference-note {
  min-height: 20px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.trend-reference-note.is-warning {
  color: #b45309;
}

.trend-reference-note.is-success {
  color: #0f766e;
}

.trend-reference-note.is-error {
  color: #dc2626;
}

.filters-bar {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(260px, 320px) minmax(220px, 240px);
  gap: 14px;
  align-items: center;
}

.filter-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
}

.filter-field select {
  padding-right: 40px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-search input {
  padding-left: 44px;
}

.filter-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1rem;
}

.filter-sort {
  justify-self: end;
  width: 100%;
}

.table-card {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

.quotes-table,
.paper-table {
  width: 100%;
  border-collapse: collapse;
}

.quotes-table {
  min-width: 980px;
}

.paper-table {
  min-width: 860px;
}

.quotes-table thead th,
.paper-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
}

.quotes-table thead th span,
.paper-table thead th span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.quotes-table tbody td,
.paper-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: middle;
}

.quotes-table tbody tr {
  transition: background 160ms ease;
}

.quotes-table tbody tr:hover {
  background: #f8fafc;
}

.quotes-table tbody tr.is-recommended {
  background: linear-gradient(90deg, rgba(236, 253, 243, 0.94), rgba(255, 255, 255, 0.98));
}

.bank-cell {
  min-width: 240px;
}

.bankIdentity,
.bank-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bankIdentity.compact,
.bank-identity.compact {
  gap: 10px;
}

.bankLogoBox,
.bank-logo-shell {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #dbe5ec;
  overflow: hidden;
}

.bankLogoBox.compact,
.bank-logo-shell.compact {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.bankLogo,
.bank-logo-image {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.bankLogoBox.compact .bankLogo,
.bank-logo-shell.compact .bank-logo-image {
  width: 28px;
  height: 28px;
}

.physical-gold-image {
  transform: scale(1.08);
}

.bank-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--avatar-tint, #0f766e) 14%, white);
  border: 1px solid color-mix(in srgb, var(--avatar-tint, #0f766e) 22%, white);
  border-radius: inherit;
}

.bank-logo-shell.compact .bank-avatar-fallback {
  font-size: 0.72rem;
}

.bank-logo-shell.is-fallback .bank-avatar-fallback {
  display: inline-flex;
}

.bank-logo-shell.is-fallback .bank-logo-image {
  display: none;
}

.bank-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bank-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bankName,
.bank-name {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
}

.bankSource,
.bank-meta {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  opacity: 1;
}

.bank-secondary-meta {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.emphasis-buy {
  color: var(--teal);
  font-weight: 800;
}

.emphasis-sell {
  color: var(--ink);
  font-weight: 800;
}

.spread-cell strong {
  display: block;
  color: var(--teal);
  font-weight: 800;
}

.age-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.age-cell::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
  flex: 0 0 auto;
}

.age-cell.is-stale::before {
  background: var(--danger);
}

.detail-button {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.detail-button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.table-info-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.trend-cell {
  min-width: 150px;
}

.trend-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.trend-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.trend-symbol {
  font-size: 1rem;
  line-height: 1;
}

.trend-up {
  color: #16a34a;
}

.trend-down {
  color: #dc2626;
}

.trend-neutral {
  color: #64748b;
}

.trend-unknown {
  color: #94a3b8;
}

.trend-legend {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 14px 18px 16px;
  border-top: 1px solid #edf2f7;
  color: var(--muted);
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.trend-legend-note {
  color: #64748b;
  font-size: 0.95rem;
}

.trend-tooltip {
  position: absolute;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  padding: 0;
  border: 1px solid #dbe5ec;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.trend-tooltip-card {
  padding: 14px 16px;
}

.trend-tooltip-card strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: 0.96rem;
}

.trend-tooltip-card p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.trend-tooltip-grid {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 1fr);
  gap: 7px 12px;
}

.trend-tooltip-grid span {
  color: #64748b;
  font-size: 0.82rem;
}

.trend-tooltip-grid b {
  margin: 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: right;
}

.empty-state {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}

.references-card {
  margin-top: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.section-head h2 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.reference-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.reference-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.reference-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 1.15rem;
}

.reference-icon.reference-icon-tcmb {
  background: transparent;
}

.reference-icon .tcmb-logo-mark {
  width: 31px;
  height: 31px;
}

.reference-copy {
  display: grid;
  gap: 4px;
}

.reference-copy strong {
  font-size: 0.98rem;
}

.reference-copy span,
.reference-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.reference-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.reference-meta strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.reference-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reference-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--success);
}

.tools-panel {
  margin-top: 18px;
  background: transparent;
}

.opportunity-center-panel {
  margin-top: 18px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 24%),
    linear-gradient(180deg, #111111 0%, #171717 100%);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
}

.opportunity-center-head,
.opportunity-section-head,
.opportunity-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.opportunity-branding {
  display: flex;
  align-items: center;
  gap: 16px;
}

.opportunity-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #7cc1ff, #5ea9f8);
  color: #0f172a;
  font-weight: 800;
  font-size: 1.2rem;
}

.opportunity-branding h2,
.opportunity-section-head h3 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.opportunity-branding p,
.opportunity-section-head p,
.opportunity-muted {
  margin: 6px 0 0;
  color: #94a3b8;
}

.opportunity-live-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #cbd5e1;
}

.opportunity-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opportunity-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.opportunity-tabs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.opportunity-tab {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-weight: 700;
  cursor: pointer;
}

.opportunity-tab.is-active {
  background: #6eb5ff;
  color: #0f172a;
}

.opportunity-tab-panel {
  margin-top: 24px;
}

.opportunity-controls {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.opportunity-field {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.opportunity-field span,
.opportunity-checkbox span,
.portfolio-total-card span {
  color: #cbd5e1;
  font-weight: 600;
}

.opportunity-field input,
.opportunity-field select {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.opportunity-field select option {
  color: #0f172a;
  background: #ffffff;
}

.opportunity-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 28px;
}

.opportunity-summary-grid,
.portfolio-summary-grid,
.rotation-card-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-summary-grid {
  grid-template-columns: 1.1fr 1.4fr;
}

.opportunity-summary-card,
.opportunity-table-card,
.opportunity-detail-card,
.rotation-card,
.portfolio-total-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.opportunity-summary-card,
.rotation-card,
.portfolio-total-card {
  padding: 20px;
}

.opportunity-summary-card p {
  margin: 0;
  color: #a1a1aa;
}

.opportunity-summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.opportunity-summary-card span {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
}

.opportunity-content-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.opportunity-table-card,
.opportunity-detail-card {
  padding: 18px;
}

.opportunity-inline-status,
.opportunity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.18);
  color: #dcfce7;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.opportunity-table-wrap {
  margin-top: 16px;
  overflow: auto;
}

.opportunity-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.opportunity-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-align: left;
}

.opportunity-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.opportunity-rate-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opportunity-rate-cell strong {
  color: #f8fafc;
  font-weight: 700;
}

.opportunity-rate-cell span {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.2;
}

.opportunity-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.opportunity-row:hover,
.opportunity-row.is-active {
  background: rgba(30, 64, 175, 0.28);
}

.opportunity-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
}

.opportunity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-weight: 800;
}

.opportunity-flow strong {
  display: block;
}

.opportunity-flow span {
  color: #94a3b8;
  font-size: 0.92rem;
}

.opportunity-positive {
  color: #7dd3fc;
  font-weight: 800;
}

.opportunity-detail-body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.opportunity-detail-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.opportunity-leg {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.opportunity-leg .opportunity-avatar {
  margin: 0 auto 14px;
}

.opportunity-leg span {
  display: block;
  color: #94a3b8;
}

.opportunity-stat-list {
  display: grid;
  gap: 10px;
}

.opportunity-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.opportunity-stat-item span {
  color: #94a3b8;
}

.opportunity-stat-item strong {
  color: #ffffff;
}

.opportunity-stat-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.opportunity-stat-value small {
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.2;
}

.opportunity-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opportunity-reason {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
}

.opportunity-primary-button {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #0ea5a5, #0f766e);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.opportunity-primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opportunity-warning-banner {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-weight: 700;
}

.rotation-card {
  display: grid;
  gap: 14px;
}

.rotation-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rotation-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.rotation-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.rotation-metrics span {
  color: #94a3b8;
  display: block;
  font-size: 0.84rem;
}

.rotation-metrics strong {
  display: block;
  margin-top: 4px;
}

.portfolio-weight-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.portfolio-weight-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.portfolio-weight-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.portfolio-weight-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #0ea5a5);
}

.portfolio-total-card strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.empty-state.dark {
  color: #94a3b8;
}

.tools-panel > summary {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.tools-panel > summary::-webkit-details-marker {
  display: none;
}

.tools-panel > summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-size: 1.15rem;
}

.tools-panel[open] > summary::after {
  content: "-";
}

.tools-body {
  margin-top: 14px;
  display: grid;
  gap: 16px;
}

.panel {
  padding: 22px;
}

.providers-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.provider-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.provider-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.provider-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag.healthy,
.tag.viable {
  color: var(--success);
  background: var(--success-soft);
}

.tag.degraded,
.tag.unavailable,
.tag.not-viable {
  color: var(--danger);
  background: #fef2f2;
}

.tag.muted {
  color: var(--muted);
  background: #f1f5f9;
}

.paper-actions {
  flex-wrap: wrap;
}

.ghost-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: #f8fffe;
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}

.ghost-button.secondary {
  color: #334155;
  border-color: var(--border);
  background: #ffffff;
}

.ghost-button.danger {
  color: var(--danger);
  border-color: rgba(220, 38, 38, 0.18);
  background: #fff7f7;
}

.paper-workspace {
  margin-top: 16px;
}

.paper-setup-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdff;
}

.paper-setup-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 16px;
}

.paper-input-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.paper-subhead {
  margin-bottom: 14px;
}

.paper-subhead h3 {
  margin: 0;
  font-size: 1.02rem;
}

.paper-subhead p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.paper-setup-form,
.paper-balance-block {
  display: grid;
  gap: 14px;
}

.paper-setup-grid,
.advanced-controls-grid,
.paper-balance-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.paper-execution-grid.one-col {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.paper-setup-form label,
.advanced-controls-grid label,
.paper-balance-inputs label,
.paper-execution-grid label {
  display: grid;
  gap: 8px;
}

.paper-setup-form span,
.advanced-controls-grid span,
.paper-balance-inputs span,
.paper-execution-grid span,
.paper-balance-title,
.metric-title,
.metric-subtitle {
  color: var(--muted);
}

.paper-setup-form input,
.paper-setup-form select,
.advanced-controls-grid input,
.advanced-controls-grid select,
.paper-balance-inputs input,
.paper-execution-grid input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.advanced-panel {
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfdff;
}

.advanced-panel summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary::after {
  content: "+";
  float: right;
  color: var(--teal);
}

.advanced-panel[open] summary::after {
  content: "-";
}

.advanced-panel p {
  margin: 10px 0 14px;
  color: var(--muted);
}

.paper-checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.paper-checkbox input {
  width: 18px;
  height: 18px;
}

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

.paper-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.paper-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.paper-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.status-indicator.status-idle {
  background: #94a3b8;
}

.status-indicator.status-updated {
  background: var(--teal);
}

.status-indicator.status-success {
  background: var(--success);
}

.status-indicator.status-warning {
  background: var(--warning);
}

.status-indicator.status-error {
  background: var(--danger);
}

.paper-table tbody tr:hover {
  background: #f8fafc;
}

.quote-drawer[hidden] {
  display: none;
}

.quote-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.quote-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  cursor: pointer;
}

.quote-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 100%);
  height: 100%;
  padding: 24px;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.12);
  overflow-y: auto;
}

.quote-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-drawer-head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.drawer-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.quote-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #334155;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quote-drawer-body {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.drawer-bank-card,
.drawer-section {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.drawer-bank-card {
  display: grid;
  gap: 12px;
}

.drawer-bank-card .bank-identity {
  align-items: flex-start;
}

.drawer-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.drawer-stat {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}

.drawer-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.drawer-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.drawer-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.drawer-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.drawer-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.drawer-list dt {
  color: var(--muted);
}

.drawer-list dd {
  margin: 0;
  color: var(--ink);
  word-break: break-word;
}

.drawer-list a {
  color: var(--teal);
}

.drawer-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.converter-drawer-panel {
  width: min(420px, 100%);
}

.converter-drawer-body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.converter-field {
  display: grid;
  gap: 8px;
}

.converter-field span {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.converter-field input,
.converter-field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.converter-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.converter-swap-button {
  width: 52px;
  height: 52px;
  align-self: end;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.converter-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.converter-segment {
  min-height: 46px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.converter-segment.is-active {
  background: linear-gradient(180deg, #108a80, var(--teal));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.converter-rate-info {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfdff;
}

.converter-rate-info p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.converter-rate-info p + p {
  margin-top: 6px;
}

.converter-stale {
  display: inline-flex;
  margin-top: 8px;
  color: var(--warning);
  font-size: 0.85rem;
  font-weight: 700;
}

.converter-result-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.36);
  background: linear-gradient(180deg, #f3fffd, #ecfeff);
}

.converter-result-card span {
  display: block;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 600;
}

.converter-result-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.converter-result-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.converter-submit-button {
  min-height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, #108a80, var(--teal));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.22);
  cursor: pointer;
}

.converter-submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.converter-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.fade-in {
  animation: rise 260ms ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-summary-grid,
  .portfolio-summary-grid,
  .rotation-card-grid,
  .filters-bar,
  .paper-setup-grid,
  .advanced-controls-grid,
  .paper-balance-inputs,
  .paper-grid,
  .paper-setup-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opportunity-content-grid {
    grid-template-columns: 1fr;
  }

  .paper-setup-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand {
    gap: 11px;
  }

  .brand-copy {
    gap: 4px;
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    min-height: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 8px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0;
  }

  .nav-link.is-active::after {
    left: 0;
    right: auto;
    width: 44px;
  }

  .live-pill {
    margin-left: auto;
  }

  .language-switch {
    order: 4;
  }

  .market-ticker {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(166px, 1fr));
    scrollbar-width: thin;
  }

  .market-ticker-item:first-child {
    border-left: 0;
  }

  .rates-panel,
  .panel,
  .quote-drawer-panel {
    padding: 18px;
  }

  .rates-head,
  .rates-toolbar,
  .section-head,
  .opportunity-center-head,
  .opportunity-controls,
  .opportunity-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .trend-reference-row {
    justify-content: flex-start;
  }

  .rates-head-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .filters-bar {
    grid-template-columns: 1fr;
  }

  .filter-sort {
    justify-self: stretch;
  }

  .summary-grid,
  .paper-grid,
  .opportunity-summary-grid,
  .rotation-card-grid,
  .portfolio-summary-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .app-main,
  .site-footer,
  .topbar-inner {
    width: min(100% - 20px, 1240px);
  }

  .converter-drawer-panel {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: min(88vh, 760px);
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.16);
  }

  .converter-pair-grid {
    grid-template-columns: 1fr;
  }

  .converter-swap-button {
    width: 100%;
  }

  .quotes-table thead,
  .paper-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .quotes-table,
  .quotes-table tbody,
  .quotes-table tr,
  .quotes-table td,
  .opportunity-table,
  .opportunity-table tbody,
  .opportunity-table tr,
  .opportunity-table td,
  .paper-table,
  .paper-table tbody,
  .paper-table tr,
  .paper-table td {
    display: block;
    width: 100%;
  }

  .quotes-table tbody,
  .opportunity-table tbody,
  .paper-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .quotes-table tbody tr,
  .opportunity-table tbody tr,
  .paper-table tbody tr {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
  }

  .quotes-table tbody td,
  .opportunity-table tbody td,
  .paper-table tbody td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 0;
  }

  .quotes-table tbody td::before,
  .opportunity-table tbody td::before,
  .paper-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .quotes-table tbody td.bank-cell {
    display: grid;
    gap: 8px;
  }

  .quotes-table tbody td.bank-cell::before {
    content: none;
  }

  .quotes-table tbody td.trend-cell {
    display: none;
  }

  .bank-secondary-meta {
    display: block;
    margin-top: 2px;
  }

  .bank-secondary-meta .trend-trigger {
    justify-content: flex-start;
  }

  .bankLogoBox,
  .bank-logo-shell {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .bankLogo,
  .bank-logo-image {
    width: 28px;
    height: 28px;
  }

  .quotes-table tbody td.empty-state,
  .opportunity-table tbody td.empty-state,
  .paper-table tbody td.empty-state {
    display: block;
  }

  .quotes-table tbody td.empty-state::before,
  .opportunity-table tbody td.empty-state::before,
  .paper-table tbody td.empty-state::before {
    content: none;
  }

  .opportunity-flow,
  .opportunity-detail-route,
  .rotation-metrics,
  .portfolio-weight-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .drawer-stats,
  .drawer-list div {
    grid-template-columns: 1fr;
  }

  .trend-tooltip {
    width: min(340px, calc(100vw - 18px));
  }
}

/* Theme surfaces are centralized here so all interactive areas shift together. */
body,
.topbar,
.market-ticker-band,
.rates-panel,
.table-card,
.references-card,
.summary-card,
.filter-field,
.filter-field input,
.filter-field select,
.toolbar-button.secondary,
.detail-button,
.bank-logo-shell,
.bankLogoBox,
.quote-drawer-panel,
.converter-drawer-panel,
.drawer-bank-card,
.drawer-section,
.reference-item,
.provider-card,
.tools-panel,
.panel,
.opportunity-center-panel,
.opportunity-table-card,
.opportunity-detail-card,
.rotation-card,
.portfolio-total-card {
  transition: background-color 250ms ease, background 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

body {
  color: var(--text);
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--primary) 10%, transparent), transparent 28%), linear-gradient(180deg, var(--surface-secondary) 0%, var(--bg) 100%);
}

.topbar {
  background: linear-gradient(90deg, var(--topbar), var(--topbar-secondary));
  border-bottom-color: color-mix(in srgb, var(--border) 70%, transparent);
}

.market-ticker-band {
  background: linear-gradient(90deg, var(--topbar), var(--topbar-secondary));
}

.rates-panel,
.table-card,
.references-card,
.summary-card,
.reference-item,
.provider-card,
.tools-panel,
.panel,
.opportunity-center-panel,
.opportunity-table-card,
.opportunity-detail-card,
.rotation-card,
.portfolio-total-card,
.quote-drawer-panel,
.converter-drawer-panel,
.drawer-bank-card,
.drawer-section {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.filter-field,
.filter-field input,
.filter-field select,
.toolbar-button.secondary,
.detail-button,
.bank-logo-shell,
.bankLogoBox,
.direction-chip {
  background: var(--surface-secondary);
  border-color: var(--border);
  color: var(--text);
}

.filter-field:hover,
.toolbar-button.secondary:hover,
.detail-button:hover,
.direction-chip:hover,
.bank-logo-shell:hover {
  background: var(--hover);
  border-color: var(--primary);
}

.quotes-table,
.opportunity-table,
.paper-table,
.quotes-table thead,
.opportunity-table thead,
.paper-table thead,
.quotes-table tbody tr,
.opportunity-table tbody tr,
.paper-table tbody tr {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.quotes-table th,
.quotes-table td,
.opportunity-table th,
.opportunity-table td,
.paper-table th,
.paper-table td {
  border-color: var(--border);
  color: var(--text);
}

.quotes-table thead th,
.opportunity-table thead th,
.paper-table thead th {
  background: var(--surface-secondary);
  color: var(--text);
}

.quotes-table tbody tr:hover,
.opportunity-table tbody tr:hover,
.paper-table tbody tr:hover {
  background: var(--hover);
}

html[data-theme="dim"] .nav-toggle,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dim"] .language-switch,
html[data-theme="dark"] .language-switch,
html[data-theme="dim"] .theme-toggle,
html[data-theme="dark"] .theme-toggle {
  border-color: var(--border);
  background: var(--surface-secondary);
}

html[data-theme="dim"] .bank-avatar-fallback,
html[data-theme="dark"] .bank-avatar-fallback {
  background: var(--surface-secondary);
  border-color: var(--border);
}

html[data-theme="dim"] .quotes-table tbody tr.is-recommended,
html[data-theme="dark"] .quotes-table tbody tr.is-recommended {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 14%, var(--surface)), var(--surface));
}

/* Premium dashboard refinement for the live-rate workspace. */
.app-main {
  margin-top: 28px;
}

.rates-panel {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-color: #e6ebf1;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.rates-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -130px;
  right: -110px;
  width: 390px;
  height: 300px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.075), transparent 68%);
}

.rates-panel > * {
  position: relative;
  z-index: 1;
}

.rates-copy h1 {
  max-width: 770px;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
}

.rates-copy p {
  max-width: 670px;
  font-size: 1rem;
}

.rates-head-actions {
  gap: 10px;
}

.toolbar-button {
  min-height: 44px;
  border-radius: 12px;
  box-shadow: none;
}

.financial-disclaimer {
  margin-top: 24px;
  border-radius: 12px;
}

.rates-toolbar {
  margin-top: 20px;
}

.currency-tabs {
  gap: 2px;
}

.currency-tab {
  min-height: 68px;
  padding: 10px 18px 12px;
}

.direction-toggle {
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.direction-chip {
  min-height: 42px;
}

.summary-grid {
  margin-top: 16px;
  gap: 12px;
}

.reference-rate-card {
  min-height: 150px;
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
  box-shadow: none;
}

.reference-rate-icon {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.reference-rate-icon svg,
.reference-rate-icon .tcmb-logo-mark {
  width: 41px;
  height: 41px;
}

.reference-rate-card[data-reference-type="tcmb"] {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px;
}

.reference-rate-card[data-reference-type="tcmb"] .reference-rate-icon {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.reference-rate-card[data-reference-type="tcmb"] .tcmb-logo-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reference-rate-card[data-reference-type="tcmb"] .tcmb-logo {
  width: 72px;
  height: 72px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.reference-rate-copy {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
}

.reference-rate-copy p {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.reference-rate-copy span {
  min-height: auto;
  font-size: 0.8rem;
}

.reference-rate-copy strong {
  margin-top: 8px;
  font-size: clamp(1.28rem, 1.75vw, 1.62rem);
}

.reference-rate-meta {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

.reference-rate-card[data-reference-type="tcmb"] {
  background: #f7fbff;
}

.reference-rate-card[data-reference-type="grand-bazaar"] {
  background: #fffcf6;
}

.filters-bar {
  margin-top: 22px;
  grid-template-columns: minmax(230px, 1.1fr) minmax(250px, 1.25fr) minmax(200px, 0.9fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-secondary) 72%, var(--surface));
}

.filter-field {
  min-height: 46px;
  border-color: transparent;
  border-radius: 10px;
  box-shadow: none;
}

.filter-field input,
.filter-field select {
  min-height: 44px;
  border-radius: 10px;
}

.filter-field:focus-within {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
  background: var(--surface);
}

.filter-icon {
  left: 15px;
}

.table-card {
  margin-top: 16px;
  border-color: #e6ebf1;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.quotes-table thead th {
  padding: 15px 18px;
  background: color-mix(in srgb, var(--surface-secondary) 84%, var(--surface));
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.quotes-table tbody td {
  padding: 18px;
  border-bottom-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.quotes-table tbody tr {
  transition: background-color 180ms ease, transform 180ms ease;
}

.quotes-table tbody tr:hover {
  background: color-mix(in srgb, var(--teal) 4%, var(--surface));
}

.quotes-table tbody tr.is-recommended {
  background: color-mix(in srgb, var(--success-soft) 65%, var(--surface));
}

.bankName,
.bank-name {
  color: var(--text);
  font-weight: 750;
}

.bankSource,
.bank-meta {
  font-size: 0.74rem;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.spread-value {
  display: grid;
  gap: 6px;
  min-width: 106px;
}

.spread-cell strong {
  color: var(--text);
  font-size: 0.86rem;
}

.spread-meter {
  display: block;
  width: 100px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.spread-meter > span {
  display: block;
  width: var(--spread-width);
  height: 100%;
  border-radius: inherit;
  background: #94a3b8;
}

.spread-meter.is-tight > span {
  background: #34c69a;
}

.spread-meter.is-wide > span {
  background: #f3a13b;
}

.detail-button {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 10px;
  box-shadow: none;
}

.detail-button-arrow {
  display: inline-block;
  margin-left: 7px;
  color: var(--teal);
  font-size: 0.92em;
  transition: transform 180ms ease;
}

.detail-button:hover .detail-button-arrow,
.detail-button:focus-visible .detail-button-arrow {
  transform: translateX(2px);
}

html[data-theme="dim"] .rates-panel,
html[data-theme="dark"] .rates-panel,
html[data-theme="dim"] .table-card,
html[data-theme="dark"] .table-card {
  border-color: var(--border);
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="tcmb"],
html[data-theme="dark"] .reference-rate-card[data-reference-type="tcmb"] {
  background: #172a3a;
}

html[data-theme="dim"] .reference-rate-card[data-reference-type="grand-bazaar"],
html[data-theme="dark"] .reference-rate-card[data-reference-type="grand-bazaar"] {
  background: #292519;
}

@media (max-width: 860px) {
  .rates-panel {
    padding: 20px;
  }

  .rates-panel::before {
    width: 240px;
    height: 180px;
  }

  .filters-bar {
    gap: 6px;
    padding: 6px;
  }

  .reference-rate-card {
    min-height: 132px;
  }
}

/* The two market rows share one uninterrupted ribbon. */
.market-ribbon {
  background: #071735;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
  border-bottom: 1px solid rgba(125, 211, 252, 0.14);
}

.market-ticker-band {
  min-height: 90px;
  background: transparent;
  border-top: 0;
}

.market-ticker-layout {
  width: 100%;
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
}

.market-ticker {
  width: auto;
  min-height: 90px;
  flex: 1 1 auto;
}

.market-ticker-item {
  position: relative;
  min-height: 90px;
  padding: 13px clamp(22px, 2.1vw, 38px);
}

.market-ticker-flag {
  width: 34px;
  height: 34px;
}

.market-ticker-copy {
  gap: 3px 10px;
}

.market-ticker-pair {
  font-size: 0.82rem;
}

.market-ticker-price {
  font-size: 1.28rem;
  line-height: 1.05;
}

.market-ticker-change {
  font-size: 0.77rem;
}

.market-ticker-sparkline {
  width: 48px;
  height: 22px;
  margin-left: auto;
  flex: 0 0 auto;
  fill: none;
  stroke: #2dd4bf;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  opacity: 0.9;
}

.market-ticker-sparkline.is-down {
  stroke: #fb7185;
  transform: scaleY(-1);
}

.market-ticker-sparkline.is-neutral {
  stroke: #94a3b8;
}

.market-ticker-status {
  width: 150px;
  margin: 8px 14px 8px 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.09);
  color: #e6f0ff;
}

.market-ticker-status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.market-ticker-status small,
.market-ticker-status strong {
  display: block;
}

.market-ticker-status small {
  margin-bottom: 3px;
  color: #9fb4d2;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.market-ticker-status strong {
  color: #f8fafc;
  font-size: 0.78rem;
}

.market-summary-band {
  min-height: 70px;
  background: transparent;
  border-top: 1px solid rgba(191, 219, 254, 0.18);
}

.market-summary-ticker {
  width: 100%;
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.market-summary-item {
  min-width: 0;
  min-height: 70px;
  padding: 10px clamp(22px, 2.1vw, 38px);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label label"
    "icon value change";
  align-content: center;
  gap: 3px 12px;
  color: #f8fafc;
  text-decoration: none;
  border-right: 1px solid rgba(191, 219, 254, 0.2);
  transition: background-color 150ms ease;
}

.market-summary-item:first-child {
  border-left: 1px solid rgba(191, 219, 254, 0.2);
}

.market-summary-item:last-child {
  border-right: 0;
}

.market-summary-item:hover,
.market-summary-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.market-summary-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.market-summary-icon svg {
  width: 42px;
  height: 42px;
  display: block;
}

.market-summary-label {
  grid-area: label;
  color: #c7d5ea;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.market-summary-value {
  grid-area: value;
  overflow: hidden;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-summary-change {
  grid-area: change;
  align-self: end;
  justify-self: end;
  color: #86efac;
  font-size: 0.71rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.market-summary-change.is-down {
  color: #fda4af;
}

.market-summary-change.is-neutral {
  color: #cbd5e1;
}

.market-summary-amount {
  color: #dbeafe;
  font-weight: 700;
}

.market-summary-loading {
  grid-column: 1 / -1;
  align-self: center;
  padding: 0 18px;
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 700;
}

.rates-head {
  position: relative;
  min-height: clamp(360px, 31vw, 414px);
  margin: -32px -32px 0;
  padding: 48px 32px 42px;
  border-radius: 18px 18px 0 0;
  background-image: url("/static/assets/hero/kiz-kulesi-fintech-hero.png");
  background-repeat: no-repeat;
  background-position: right calc(50% + 38px);
  background-size: 140% auto;
}

.rates-copy {
  position: relative;
  z-index: 1;
}

.rates-copy::before {
  content: "GÜNCEL PİYASA VERİLERİ";
  display: block;
  margin-bottom: 12px;
  color: #6b84a8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.rates-copy h1 {
  max-width: 690px;
  font-size: clamp(2.7rem, 4.7vw, 4.45rem);
  line-height: 1.01;
}

.rates-copy p {
  max-width: 660px;
  margin-top: 18px;
  font-size: clamp(1rem, 1.45vw, 1.38rem);
}

.rates-head-actions {
  position: relative;
  z-index: 1;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 12px;
  flex-wrap: wrap;
  align-self: flex-start;
}

.rates-head-actions .rates-status {
  flex: 0 0 100%;
  justify-content: flex-end;
}

.rates-head-actions .toolbar-button {
  min-width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(207, 219, 235, 0.9);
  border-radius: 12px;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1739;
  box-shadow: 0 10px 22px rgba(48, 72, 111, 0.1);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  flex: 0 0 auto;
}

.rates-head-actions .toolbar-button.secondary {
  background: rgba(255, 255, 255, 0.94);
  color: #0b1739;
}

.rates-head-actions .toolbar-button:hover,
.rates-head-actions .toolbar-button:focus-visible {
  border-color: rgba(0, 140, 131, 0.42);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(48, 72, 111, 0.15);
  transform: translateY(-1px);
}

.hero-action-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-action-label {
  white-space: nowrap;
}

html[data-theme="dim"] .rates-head,
html[data-theme="dark"] .rates-head {
  background-image: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 86%, transparent) 54%, color-mix(in srgb, var(--surface) 42%, transparent) 100%), url("/static/assets/hero/kiz-kulesi-fintech-hero.png");
}

html[data-theme="dim"] .rates-head-actions .toolbar-button,
html[data-theme="dark"] .rates-head-actions .toolbar-button,
html[data-theme="dim"] .rates-head-actions .toolbar-button.secondary,
html[data-theme="dark"] .rates-head-actions .toolbar-button.secondary {
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1080px) {
  .market-ticker-status {
    width: 132px;
  }

  .market-ticker-sparkline {
    display: none;
  }
}

@media (max-width: 860px) {
  .market-ticker-layout {
    width: 100%;
    padding-inline: 0;
  }

  .market-ticker {
    min-height: 66px;
  }

  .market-ticker-item {
    min-height: 66px;
    padding-inline: 14px;
  }

  .market-ticker-status {
    display: none;
  }

  .market-summary-ticker {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(210px, 1fr));
    padding-inline: 0;
  }

  .market-summary-item {
    padding-inline: 14px;
  }

  .market-summary-item:first-child {
    border-left: 0;
  }

  .rates-head {
    min-height: auto;
    margin: 0;
    padding: 4px 0 12px;
    background-image: none;
  }

  .rates-head-actions {
    width: 100%;
    display: flex;
  }

  .rates-copy::before {
    margin-bottom: 9px;
  }

}

@media (max-width: 860px) {
  .financial-disclaimer {
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
  }

  .financial-disclaimer p {
    font-size: 0.79rem;
    line-height: 1.55;
  }

  .site-footer {
    display: block;
  }

  .site-footer-primary-links {
    gap: 10px;
  }

  .site-footer-link {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .site-footer-popular {
    margin-top: 16px;
  }

  .site-footer-popular-links {
    gap: 8px 14px;
  }

  .legal-warning-head,
  .legal-warning-body {
    padding: 16px;
  }
}

/* Full-page FX converter: a focused fintech workspace layered over the Istanbul hero. */
.converter-drawer {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  overflow-y: auto;
  background:
    linear-gradient(135deg, rgba(232, 240, 250, 0.94), rgba(240, 249, 255, 0.78)),
    url("/static/assets/hero/kiz-kulesi-fintech-hero.png") center / cover no-repeat;
}

.converter-drawer .quote-drawer-backdrop {
  z-index: 0;
  background: transparent;
}

.converter-drawer-panel {
  position: relative;
  inset: auto;
  z-index: 1;
  width: min(1120px, 100%);
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 0 0 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: #f8fbff;
  box-shadow: 0 28px 72px rgba(17, 45, 82, 0.22);
}

.converter-page-hero {
  position: relative;
  min-height: 262px;
  padding: 40px 46px 88px;
  display: flex;
  align-items: flex-start;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.91) 36%, rgba(255, 255, 255, 0.36) 69%, rgba(255, 255, 255, 0.12) 100%),
    url("/static/assets/hero/kiz-kulesi-fintech-hero.png");
  background-position: left 58%;
  background-size: 118% auto;
  background-repeat: no-repeat;
}

.converter-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.converter-hero-kicker {
  margin-bottom: 14px;
  color: #5d78a1;
  font-size: 0.7rem;
  letter-spacing: 0.17em;
}

.converter-page-hero h2 {
  max-width: 520px;
  margin: 0;
  color: #0b1739;
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.converter-page-hero .drawer-subtitle {
  max-width: 500px;
  margin-top: 16px;
  color: #506c96;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  line-height: 1.45;
}

.converter-hero-meta {
  position: absolute;
  z-index: 2;
  top: 34px;
  right: 126px;
  display: grid;
  justify-items: end;
  gap: 9px;
}

.converter-live-pill {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(10, 41, 91, 0.89);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 49, 95, 0.16);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  white-space: nowrap;
}

.converter-live-pill svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.converter-live-pill:hover,
.converter-live-pill:focus-visible {
  background: #0f4b9f;
  transform: translateY(-1px);
}

.converter-live-pill.is-loading svg {
  animation: converter-spin 700ms linear infinite;
}

.converter-live-pill:disabled {
  cursor: wait;
  opacity: 0.75;
}

.converter-live-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
}

.converter-live-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.converter-live-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee6a6;
  box-shadow: 0 0 0 4px rgba(46, 230, 166, 0.12);
}

.converter-last-updated {
  margin: 0;
  color: #48658d;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.converter-drawer-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-color: rgba(160, 180, 208, 0.7);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #294263;
  font-size: 1.3rem;
  backdrop-filter: blur(8px);
}

.converter-drawer-body {
  position: relative;
  z-index: 3;
  margin: -48px 34px 0;
  padding: 28px;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(219, 229, 240, 0.94);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 38px rgba(37, 69, 111, 0.11);
  backdrop-filter: blur(15px);
}

.converter-top-fields {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(145px, 0.9fr) 66px minmax(145px, 0.9fr);
  gap: 14px;
  align-items: end;
}

.converter-drawer-panel .converter-field {
  min-width: 0;
  gap: 8px;
}

.converter-drawer-panel .converter-field > span:first-child {
  color: #253c61;
  font-size: 0.88rem;
  font-weight: 750;
}

.converter-input-shell,
.converter-select-shell {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  border: 1px solid #dce7f3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(41, 72, 113, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.converter-input-shell:focus-within,
.converter-select-shell:focus-within {
  border-color: rgba(0, 143, 131, 0.62);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1), 0 8px 20px rgba(41, 72, 113, 0.08);
}

.converter-input-icon {
  width: 31px;
  height: 31px;
  margin-left: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #0e9b8b;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.converter-drawer-panel .converter-field input,
.converter-drawer-panel .converter-field select {
  min-height: 64px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #0b1739;
  box-shadow: none;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.converter-input-shell input {
  min-width: 0;
  padding: 0 18px 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.converter-select-shell select {
  width: 100%;
  padding: 0 42px 0 58px;
  appearance: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
}

.converter-select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #375272;
  border-bottom: 2px solid #375272;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.converter-currency-flag {
  position: absolute;
  z-index: 1;
  left: 17px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(32, 57, 90, 0.14);
  pointer-events: none;
}

.converter-swap-button {
  width: 66px;
  height: 66px;
  margin-top: 26px;
  align-self: start;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0eaf4;
  border-radius: 50%;
  background: #ffffff;
  color: #079787;
  box-shadow: 0 10px 24px rgba(47, 82, 124, 0.12);
  cursor: pointer;
}

.converter-swap-button svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.converter-swap-button:hover,
.converter-swap-button:focus-visible {
  border-color: rgba(0, 143, 131, 0.42);
  background: #effdfa;
  transform: rotate(180deg);
}

.converter-bank-field {
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.7fr);
  align-items: end;
  gap: 20px;
  padding: 2px 0;
}

.converter-bank-field-label {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.converter-bank-field-label > svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: #52779a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.converter-bank-field-label b,
.converter-bank-field-label small {
  display: block;
}

.converter-bank-field-label b {
  color: #233a5e;
  font-size: 0.91rem;
}

.converter-bank-field-label small {
  max-width: 285px;
  margin-top: 4px;
  color: #7185a1;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
}

.converter-bank-select-shell select {
  padding-left: 18px;
  color: #516b91;
  font-size: 0.94rem;
  font-weight: 600;
}

#converter-rate-source-control[hidden],
#converter-market-field[hidden],
#converter-rate-mode-field[hidden] {
  display: none;
}

.converter-result-card {
  position: relative;
  overflow: hidden;
  padding: 24px 28px;
  border: 1px solid rgba(77, 211, 203, 0.48);
  border-radius: 20px;
  background: linear-gradient(120deg, #f5fffe 0%, #edfdfb 66%, #f7ffff 100%);
  box-shadow: none;
}

.converter-result-card::after {
  content: "";
  position: absolute;
  top: -74px;
  right: -38px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.17), rgba(45, 212, 191, 0));
  pointer-events: none;
}

.converter-result-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.converter-result-card .converter-result-head > span:first-child {
  color: #087a71;
  font-size: 0.92rem;
  font-weight: 800;
}

.converter-result-source {
  max-width: 280px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.13);
  color: #087a71;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}

.converter-result-card strong {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: #007b73;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.converter-result-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.converter-result-card p {
  margin: 0;
  color: #506b90;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.converter-rate-info {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.converter-rate-info p,
.converter-rate-info p + p {
  margin: 0;
  color: #59728f;
  font-size: 0.76rem;
  line-height: 1.45;
}

.converter-result-card .converter-rate-info strong {
  display: inline;
  margin: 0;
  color: #254869;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.converter-stale {
  margin: 0;
  color: #a15f0a;
}

.converter-submit-button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(0, 127, 117, 0.68);
  border-radius: 18px;
  background: #078d82;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(0, 126, 117, 0.2);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
}

.converter-submit-button::after {
  content: "→";
  font-size: 1.5em;
  line-height: 1;
  transition: transform 160ms ease;
}

.converter-submit-button:hover:not(:disabled)::after,
.converter-submit-button:focus-visible:not(:disabled)::after {
  transform: translateX(4px);
}

.converter-submit-button:hover:not(:disabled),
.converter-submit-button:focus-visible:not(:disabled) {
  background: #067d74;
  box-shadow: 0 17px 30px rgba(0, 126, 117, 0.26);
  transform: translateY(-1px);
}

.converter-result-card.is-calculated {
  animation: converter-result-pulse 440ms ease;
}

.converter-quick-rates {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.converter-quick-rate {
  min-width: 0;
  min-height: 102px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e2ebf5;
  border-radius: 16px;
  background: #ffffff;
  color: #112349;
  box-shadow: 0 7px 16px rgba(35, 64, 105, 0.05);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.converter-quick-rate:hover,
.converter-quick-rate:focus-visible {
  border-color: rgba(0, 143, 131, 0.42);
  box-shadow: 0 10px 21px rgba(35, 64, 105, 0.1);
  transform: translateY(-2px);
}

.converter-quick-rate img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(31, 52, 87, 0.14);
}

.converter-quick-rate-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.converter-quick-rate b {
  color: #1a3156;
  font-size: 0.76rem;
}

.converter-quick-rate strong {
  overflow: hidden;
  color: #567096;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
}

.converter-quick-rate small {
  font-size: 0.7rem;
  font-weight: 750;
}

.converter-quick-rate small.is-up {
  color: #079665;
}

.converter-quick-rate small.is-down {
  color: #d24b55;
}

.converter-quick-rate small.is-neutral {
  color: #7185a1;
}

.converter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.converter-disclaimer {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #637b9d;
  font-size: 0.83rem;
  line-height: 1.45;
}

.converter-disclaimer svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.converter-detail-link {
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #087f76;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.converter-detail-link > span:last-child {
  font-size: 1.35em;
  transition: transform 160ms ease;
}

.converter-detail-link:hover > span:last-child,
.converter-detail-link:focus-visible > span:last-child {
  transform: translateX(3px);
}

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

@keyframes converter-result-pulse {
  0% {
    transform: scale(0.99);
  }
  55% {
    transform: scale(1.008);
  }
  100% {
    transform: scale(1);
  }
}

html[data-theme="dim"] .converter-drawer,
html[data-theme="dark"] .converter-drawer {
  background:
    linear-gradient(135deg, rgba(8, 20, 40, 0.93), rgba(10, 37, 62, 0.84)),
    url("/static/assets/hero/kiz-kulesi-fintech-hero.png") center / cover no-repeat;
}

html[data-theme="dim"] .converter-drawer-panel,
html[data-theme="dark"] .converter-drawer-panel {
  border-color: var(--border);
  background: var(--surface);
}

html[data-theme="dim"] .converter-page-hero,
html[data-theme="dark"] .converter-page-hero {
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--surface) 97%, transparent) 0%, color-mix(in srgb, var(--surface) 82%, transparent) 50%, color-mix(in srgb, var(--surface) 24%, transparent) 100%),
    url("/static/assets/hero/kiz-kulesi-fintech-hero.png");
}

html[data-theme="dim"] .converter-page-hero h2,
html[data-theme="dark"] .converter-page-hero h2,
html[data-theme="dim"] .converter-drawer-panel .converter-field input,
html[data-theme="dark"] .converter-drawer-panel .converter-field input,
html[data-theme="dim"] .converter-drawer-panel .converter-field select,
html[data-theme="dark"] .converter-drawer-panel .converter-field select {
  color: var(--text);
}

html[data-theme="dim"] .converter-drawer-body,
html[data-theme="dark"] .converter-drawer-body,
html[data-theme="dim"] .converter-input-shell,
html[data-theme="dark"] .converter-input-shell,
html[data-theme="dim"] .converter-select-shell,
html[data-theme="dark"] .converter-select-shell,
html[data-theme="dim"] .converter-quick-rate,
html[data-theme="dark"] .converter-quick-rate {
  border-color: var(--border);
  background: var(--surface-secondary);
}

html[data-theme="dim"] .converter-result-card,
html[data-theme="dark"] .converter-result-card {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-secondary));
}

html[data-theme="dim"] .converter-result-card strong,
html[data-theme="dark"] .converter-result-card strong,
html[data-theme="dim"] .converter-result-card .converter-result-head > span:first-child,
html[data-theme="dark"] .converter-result-card .converter-result-head > span:first-child,
html[data-theme="dim"] .converter-result-source,
html[data-theme="dark"] .converter-result-source,
html[data-theme="dim"] .converter-detail-link,
html[data-theme="dark"] .converter-detail-link {
  color: var(--primary);
}

html[data-theme="dim"] .converter-bank-field-label b,
html[data-theme="dark"] .converter-bank-field-label b,
html[data-theme="dim"] .converter-quick-rate b,
html[data-theme="dark"] .converter-quick-rate b,
html[data-theme="dim"] .converter-quick-rate strong,
html[data-theme="dark"] .converter-quick-rate strong {
  color: var(--text);
}

@media (max-width: 940px) {
  .converter-page-hero {
    min-height: 246px;
    padding: 36px 34px 80px;
  }

  .converter-hero-meta {
    top: 28px;
    right: 104px;
  }

  .converter-drawer-body {
    margin-right: 22px;
    margin-left: 22px;
  }

  .converter-top-fields {
    grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  }

  .converter-amount-field {
    grid-column: 1 / -1;
  }

  .converter-swap-button {
    width: 58px;
    height: 58px;
    margin-top: 26px;
  }
}

@media (max-width: 680px) {
  .converter-drawer {
    display: block;
    padding: 0;
  }

  .converter-drawer-panel {
    width: 100%;
    min-height: 100dvh;
    padding-bottom: 20px;
    border-radius: 0;
  }

  .converter-page-hero {
    min-height: 310px;
    padding: 30px 20px 104px;
    background-position: 63% 56%;
    background-size: cover;
  }

  .converter-page-hero h2 {
    max-width: 330px;
    font-size: clamp(2.15rem, 11vw, 3.25rem);
  }

  .converter-page-hero .drawer-subtitle {
    max-width: 305px;
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .converter-hero-meta {
    top: auto;
    right: 20px;
    bottom: 52px;
  }

  .converter-live-pill {
    min-height: 40px;
    padding: 0 12px;
    gap: 7px;
    font-size: 0.76rem;
  }

  .converter-live-pill svg {
    width: 16px;
    height: 16px;
  }

  .converter-last-updated {
    font-size: 0.68rem;
  }

  .converter-drawer-close {
    top: 13px;
    right: 13px;
  }

  .converter-drawer-body {
    margin: -42px 12px 0;
    padding: 19px;
    gap: 17px;
    border-radius: 22px;
  }

  .converter-top-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .converter-amount-field {
    grid-column: auto;
  }

  .converter-swap-button {
    width: 52px;
    height: 52px;
    margin: -2px auto;
    grid-row: auto;
  }

  .converter-bank-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .converter-bank-field-label {
    min-height: auto;
    padding: 3px 0 7px;
  }

  .converter-result-card {
    padding: 20px;
  }

  .converter-result-head {
    align-items: flex-start;
  }

  .converter-result-source {
    max-width: 160px;
    font-size: 0.67rem;
  }

  .converter-result-card strong {
    font-size: clamp(1.86rem, 10vw, 2.7rem);
  }

  .converter-rate-info {
    display: grid;
    gap: 3px;
  }

  .converter-quick-rates {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .converter-quick-rate {
    min-height: 88px;
    padding: 12px;
  }

  .converter-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .converter-page-hero {
    min-height: 326px;
  }

  .converter-hero-meta {
    right: 16px;
  }

  .converter-drawer-body {
    margin-right: 8px;
    margin-left: 8px;
    padding: 16px;
  }

  .converter-quick-rate {
    gap: 8px;
    padding: 10px;
  }

  .converter-quick-rate img {
    width: 30px;
    height: 30px;
  }
}

/* Keep the converter in the original compact, right-side drawer workflow. */
.converter-drawer {
  display: block;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.converter-drawer .quote-drawer-backdrop {
  z-index: 0;
  background: rgba(15, 23, 42, 0.38);
}

.converter-drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(440px, 100%);
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  padding: 24px;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.12);
}

.converter-drawer:not([hidden]) .converter-drawer-panel {
  animation: converter-drawer-enter 200ms ease-out;
}

.converter-page-hero {
  position: relative;
  min-height: 0;
  padding: 0 48px 0 0;
  display: grid;
  gap: 0;
  background: transparent;
  background-image: none;
}

.converter-hero-copy {
  max-width: none;
}

.converter-hero-kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.converter-page-hero h2 {
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.converter-page-hero .drawer-subtitle {
  max-width: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.converter-hero-meta {
  position: static;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}

.converter-live-pill {
  min-height: 38px;
  padding: 0 12px;
  gap: 7px;
  border-color: rgba(15, 118, 110, 0.18);
  background: #effdfa;
  color: var(--teal);
  box-shadow: none;
  font-size: 0.78rem;
}

.converter-live-pill:hover,
.converter-live-pill:focus-visible {
  background: #dffaf5;
  color: #0b756c;
  transform: none;
}

.converter-live-pill svg {
  width: 17px;
  height: 17px;
}

.converter-live-divider {
  height: 15px;
  background: rgba(15, 118, 110, 0.2);
}

.converter-live-state i {
  width: 7px;
  height: 7px;
  background: #10b981;
  box-shadow: none;
}

.converter-last-updated {
  flex: 1 1 135px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.converter-drawer-close {
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border-color: var(--border);
  border-radius: 12px;
  background: var(--surface-secondary);
  color: var(--muted);
  box-shadow: none;
  backdrop-filter: none;
}

.converter-drawer-body {
  position: static;
  z-index: auto;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.converter-top-fields {
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.converter-amount-field {
  grid-column: 1 / -1;
}

.converter-drawer-panel .converter-field {
  min-width: 0;
  gap: 8px;
}

.converter-drawer-panel .converter-field > span:first-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.converter-input-shell,
.converter-select-shell {
  min-height: 54px;
  border-color: var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.converter-input-icon {
  width: 25px;
  height: 25px;
  margin-left: 14px;
}

.converter-amount-currency-symbol {
  width: 25px;
  margin-left: 14px;
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.converter-amount-currency-symbol[data-currency="XAU"] {
  font-size: 0.82rem;
  letter-spacing: -0.04em;
}

.converter-drawer-panel .converter-field input,
.converter-drawer-panel .converter-field select {
  min-height: 52px;
  color: var(--text);
}

.converter-input-shell input {
  padding: 0 14px 0 12px;
  font-size: 1.35rem;
}

.converter-select-shell select {
  padding: 0 36px 0 48px;
  font-size: 0.94rem;
}

.converter-select-shell::after {
  right: 15px;
}

.converter-currency-flag {
  left: 13px;
  width: 24px;
  height: 24px;
}

.converter-swap-button {
  width: 52px;
  height: 52px;
  margin: 0;
  align-self: end;
  border-radius: 14px;
  background: var(--surface-secondary);
  box-shadow: none;
}

.converter-swap-button svg {
  width: 23px;
  height: 23px;
}

.converter-bank-field {
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
}

.converter-bank-field-label {
  min-height: auto;
  gap: 10px;
}

.converter-bank-field-label > svg {
  width: 26px;
  height: 26px;
}

.converter-bank-field-label b {
  color: var(--text);
  font-size: 0.88rem;
}

.converter-bank-field-label small {
  max-width: none;
  color: var(--muted);
}

.converter-bank-select-shell select {
  padding-left: 14px;
  color: var(--text);
  font-size: 0.9rem;
}

.converter-result-card {
  padding: 20px;
  border-color: rgba(45, 212, 191, 0.36);
  border-radius: 16px;
  background: linear-gradient(180deg, #f3fffd, #ecfeff);
}

.converter-result-card::after {
  display: none;
}

.converter-result-head {
  gap: 10px;
}

.converter-result-card strong {
  margin-top: 11px;
  color: var(--teal);
  font-size: clamp(2rem, 8vw, 2.6rem);
}

.converter-result-source {
  max-width: 175px;
  padding: 5px 8px;
  font-size: 0.68rem;
}

.converter-result-meta {
  margin-top: 10px;
}

.converter-result-card p {
  font-size: 0.86rem;
}

.converter-submit-button {
  min-height: 54px;
  border-radius: 14px;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.16);
  font-size: 1rem;
}

.converter-submit-button:hover:not(:disabled),
.converter-submit-button:focus-visible:not(:disabled) {
  box-shadow: 0 14px 25px rgba(15, 118, 110, 0.2);
}

.converter-quick-rates-section {
  display: none;
}

.converter-footer {
  align-items: flex-start;
  gap: 12px;
  padding-top: 2px;
}

.converter-disclaimer {
  font-size: 0.8rem;
}

.converter-disclaimer svg {
  width: 20px;
  height: 20px;
}

.converter-detail-link {
  font-size: 0.84rem;
}

html[data-theme="dim"] .converter-drawer,
html[data-theme="dark"] .converter-drawer {
  background: transparent;
}

html[data-theme="dim"] .converter-page-hero,
html[data-theme="dark"] .converter-page-hero {
  background: transparent;
}

html[data-theme="dim"] .converter-live-pill,
html[data-theme="dark"] .converter-live-pill {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface-secondary));
  color: var(--primary);
}

html[data-theme="dim"] .converter-result-card,
html[data-theme="dark"] .converter-result-card {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-secondary));
}

/* Server-rendered route copy keeps each public page useful before JavaScript runs. */
.route-seo-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 18px;
  margin: 22px 0 6px;
}

.route-seo-section,
.route-seo-faq {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.045);
}

.route-seo-section:first-child {
  grid-column: 1 / -1;
}

.route-seo-section h2,
.route-seo-faq h2 {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  letter-spacing: -0.025em;
}

.route-seo-section p,
.route-seo-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.route-seo-section p + p {
  margin-top: 12px;
}

.route-seo-faq {
  grid-column: 1 / -1;
}

.route-seo-faq-item {
  border-top: 1px solid var(--border);
}

.route-seo-faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.route-seo-faq-item summary {
  position: relative;
  padding: 14px 28px 14px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 750;
  list-style: none;
}

.route-seo-faq-item summary::-webkit-details-marker {
  display: none;
}

.route-seo-faq-item summary::after {
  position: absolute;
  top: 12px;
  right: 2px;
  color: var(--teal);
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
}

.route-seo-faq-item[open] summary::after {
  content: "−";
}

.route-seo-faq-item p {
  padding: 0 0 15px;
}

@media (max-width: 760px) {
  .route-seo-content {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
  }

  .route-seo-section,
  .route-seo-faq {
    padding: 20px;
    border-radius: 16px;
  }
}

/* Keep the quote cards within the iOS visual viewport after the table becomes block content. */
@media (max-width: 760px) {
  .filters-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-field,
  .filter-sort {
    min-width: 0;
    width: 100%;
  }

  .table-wrap {
    overflow: visible;
  }

  .quotes-table {
    min-width: 0;
    table-layout: fixed;
  }

  .quotes-table,
  .quotes-table tbody,
  .quotes-table tbody tr,
  .quotes-table tbody td {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .quotes-table tbody td:not(.bank-cell):not(.empty-state) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 12px;
  }

  .quotes-table tbody td:not(.bank-cell):not(.empty-state)::before {
    min-width: 0;
    justify-self: start;
  }

  .quotes-table tbody td:not(.bank-cell):not(.empty-state) > * {
    min-width: 0;
    justify-self: end;
    text-align: right;
  }

  .quotes-table .quote-cell-value,
  .quotes-table .spread-value,
  .quotes-table .age-cell {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .quotes-table .detail-button {
    min-width: max-content;
    white-space: nowrap;
  }

  .direction-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .direction-chip {
    width: 100%;
    padding-inline: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}

html[dir="rtl"] .converter-drawer-panel {
  right: auto;
  left: 0;
  border-right: 1px solid var(--border);
  border-left: 0;
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.12);
}

html[dir="rtl"] .converter-page-hero {
  padding: 0 0 0 48px;
}

html[dir="rtl"] .converter-drawer-close {
  right: auto;
  left: 0;
}

@keyframes converter-drawer-enter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 680px) {
  .converter-drawer-panel {
    width: 100%;
    padding: 20px;
  }

  .converter-hero-meta {
    align-items: flex-start;
  }

  .converter-last-updated {
    text-align: left;
  }

  .converter-top-fields {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    gap: 8px;
  }

  .converter-swap-button {
    width: 48px;
    height: 52px;
  }

  .converter-footer {
    flex-direction: column;
  }
}

/* Legacy side drawer form content, preserved with the current converter data flow. */
.converter-hero-meta {
  display: none;
}

.converter-currency-flag {
  display: none !important;
}

.converter-select-shell select {
  padding: 0 36px 0 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.converter-simple-select-shell {
  width: 100%;
}

.converter-bank-field {
  gap: 8px;
}

#converter-rate-source-control {
  display: grid;
}

.converter-segmented {
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-secondary);
}

.converter-segment {
  min-height: 46px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.converter-segment.is-active {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.converter-rate-info {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-secondary);
}

.converter-rate-info p,
.converter-rate-info p + p {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.converter-rate-info p + p {
  margin-top: 8px;
  color: var(--muted);
}

.converter-result-card {
  padding: 20px;
  border-color: rgba(45, 212, 191, 0.46);
  border-radius: 16px;
  background: linear-gradient(180deg, #effdfb, #e8fbfa);
}

.converter-result-card .converter-result-head > span:first-child {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.converter-result-source {
  display: none !important;
}

.converter-result-card strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(1.9rem, 9vw, 2.55rem);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.converter-result-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.converter-submit-button {
  min-height: 54px;
  border-radius: 14px;
  font-size: 0.98rem;
}

.converter-submit-button::after {
  display: none;
}

.converter-footer {
  display: block;
}

.converter-disclaimer {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.converter-disclaimer svg {
  display: none;
}

html[data-theme="dim"] .converter-rate-info,
html[data-theme="dark"] .converter-rate-info {
  border-color: var(--border);
  background: var(--surface-secondary);
}

html[data-theme="dim"] .converter-result-card,
html[data-theme="dark"] .converter-result-card {
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-secondary));
}
