/* Currency full page — Google/XE style */
.dbk-fx-page {
  --fx-teal: #0d9488;
  --fx-teal-dark: #0f766e;
  --fx-muted: #64748b;
  --fx-border: #e2e8f0;
  background: #f1f5f9;
  min-height: 60vh;
  padding: 28px 16px 56px;
  font-family: 'Poppins', sans-serif;
}

.dbk-fx-page__wrap {
  max-width: 720px;
  margin: 0 auto;
}

.dbk-fx-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fx-teal-dark);
  text-decoration: none;
  margin-bottom: 12px;
}

.dbk-fx-page__head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  color: #0f172a;
}

.dbk-fx-page__lead {
  margin: 0 0 24px;
  color: var(--fx-muted);
  line-height: 1.55;
}

.dbk-fx-main-card {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.dbk-fx-headline {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.dbk-fx-timestamp {
  margin: 0 0 20px;
  font-size: 0.75rem;
  color: var(--fx-muted);
}

.dbk-fx-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dbk-fx-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fx-border);
  border-radius: 14px;
  padding: 8px 12px;
  background: #f8fafc;
}

.dbk-fx-amt {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: inherit;
  color: #0f172a;
  outline: none;
}

.dbk-fx-amt--out {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--fx-teal-dark);
}

.dbk-fx-curr-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--fx-border);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.dbk-fx-curr-btn__flag {
  font-size: 1.25rem;
  line-height: 1;
}

.dbk-fx-curr-btn i {
  font-size: 0.625rem;
  color: var(--fx-muted);
  margin-left: 4px;
}

.dbk-fx-curr-list {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  width: min(280px, 90vw);
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.dbk-fx-curr-search-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 4px 4px 6px !important;
  cursor: default !important;
  background: #fff;
}

.dbk-fx-curr-search-wrap:hover {
  background: #fff !important;
}

.dbk-fx-curr-search {
  width: 100%;
  border: 1px solid var(--fx-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
}

.dbk-fx-curr-search:focus {
  border-color: var(--fx-teal);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.dbk-fx-curr-list li[data-code] {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
}

.dbk-fx-curr-list li[data-code]:hover {
  background: #ecfdf5;
}

.dbk-fx-curr-list li[hidden] {
  display: none;
}

.dbk-fx-curr-list .flag {
  font-size: 1.125rem;
}

.dbk-fx-swap-center {
  align-self: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--fx-border);
  border-radius: 50%;
  background: #fff;
  color: var(--fx-teal-dark);
  cursor: pointer;
  z-index: 2;
  margin: -4px 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.dbk-fx-chart-wrap {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.dbk-fx-chart-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.dbk-fx-chart-tabs button {
  border: 1px solid var(--fx-border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fx-muted);
  cursor: pointer;
  font-family: inherit;
}

.dbk-fx-chart-tabs button.is-active {
  background: #ecfdf5;
  border-color: var(--fx-teal);
  color: var(--fx-teal-dark);
}

.dbk-fx-chart-status {
  margin: 0 0 8px;
  font-size: 0.75rem;
  color: var(--fx-muted);
  min-height: 1.2em;
}

.dbk-fx-chart-status.is-error {
  color: #b45309;
}

#dbkFxChart {
  width: 100%;
  display: block;
  height: 120px;
  display: block;
}

.dbk-fx-panel {
  background: #fff;
  border: 1px solid var(--fx-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.dbk-fx-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dbk-fx-panel__head h2,
.dbk-fx-panel__title {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fx-muted);
}

.dbk-fx-panel__head h2 { margin-bottom: 0; }

.dbk-fx-refresh {
  border: 1px solid var(--fx-border);
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fx-teal-dark);
  cursor: pointer;
  font-family: inherit;
}

.dbk-fx-pairs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.dbk-fx-pair {
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  font-family: inherit;
}

.dbk-fx-pair:hover {
  border-color: var(--fx-teal);
  background: #ecfdf5;
}

.dbk-fx-pair__flags { font-size: 1.125rem; margin-bottom: 4px; }
.dbk-fx-pair__label { display: block; font-size: 0.75rem; font-weight: 700; color: #334155; }
.dbk-fx-pair__rate { display: block; font-size: 0.8125rem; font-weight: 800; color: var(--fx-teal-dark); margin-top: 4px; }

.dbk-fx-search-wrap {
  position: relative;
  margin-bottom: 12px;
}

.dbk-fx-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fx-muted);
}

.dbk-fx-search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--fx-border);
  border-radius: 12px;
  font-size: 0.9375rem;
  box-sizing: border-box;
}

.dbk-fx-table {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.dbk-fx-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 0.9375rem;
}

.dbk-fx-table li:hover { background: #f0fdfa; }
.dbk-fx-table-val { font-weight: 800; color: var(--fx-teal-dark); font-variant-numeric: tabular-nums; }

.dbk-fx-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--fx-muted);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .dbk-fx-main-card { padding: 16px; }
  .dbk-fx-amt { font-size: 1.25rem; }
}
