/* FX Converter — lightweight, mobile-first, namespaced (.fxc) */

.fxc {
  --fxc-bg: #ffffff;
  --fxc-surface: #ffffff;
  --fxc-border: rgba(15, 23, 42, 0.10);
  --fxc-text: #0f172a;
  --fxc-muted: rgba(15, 23, 42, 0.62);
  --fxc-accent: #0ea5e9;
  --fxc-accent2: #22c55e;

  --fxc-radius: 16px;
  --fxc-shadow: 0 10px 26px rgba(2, 6, 23, 0.10);
  --fxc-shadow-press: 0 6px 16px rgba(2, 6, 23, 0.12);

  margin: 18px 0;
}

.fxc-card {
  background: var(--fxc-surface);
  border: 1px solid var(--fxc-border);
  border-radius: var(--fxc-radius);
  box-shadow: var(--fxc-shadow);
  overflow: hidden;
}

.fxc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fxc-border);
  background: linear-gradient(180deg, rgba(14,165,233,0.06), rgba(34,197,94,0.03));
}

.fxc-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fxc-text);
}

.fxc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fxc-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  user-select: none;
}

.fxc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.fxc-grid {
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
}

.fxc-field {
  display: grid;
  gap: 6px;
}

.fxc-label {
  font-size: 12px;
  color: var(--fxc-muted);
}

.fxc-input,
.fxc-select {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: var(--fxc-text);
  padding: 0 12px;
  outline: none;
  transition: transform 0.06s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fxc-input:focus,
.fxc-select:focus {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.fxc-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: end;
}

.fxc-swap {
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, #ffffff, rgba(15,23,42,0.03));
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--fxc-text);
  user-select: none;
  transition: transform 0.06s ease, box-shadow 0.18s ease;
}

.fxc-swap:active {
  transform: translateY(1px);
  box-shadow: var(--fxc-shadow-press);
}

.fxc-result {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  padding: 12px 12px 10px;
}

.fxc-result-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fxc-result-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fxc-text);
}

.fxc-copy {
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: linear-gradient(180deg, rgba(14,165,233,0.16), rgba(34,197,94,0.10));
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--fxc-text);
  transition: transform 0.06s ease, box-shadow 0.18s ease;
}

.fxc-copy:active {
  transform: translateY(1px);
  box-shadow: var(--fxc-shadow-press);
}

.fxc-result-sub {
  margin-top: 6px;
  color: var(--fxc-muted);
  font-size: 13px;
}

.fxc-meta {
  margin-top: 6px;
  color: rgba(15, 23, 42, 0.58);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fxc-sep {
  opacity: 0.7;
}

@media (max-width: 520px) {
  .fxc-row {
    grid-template-columns: 1fr;
  }
  .fxc-swap {
    width: 100%;
  }
  .fxc-result-value {
    font-size: 26px;
  }
}
