/* PayRu rate calculator — shared by the home page (style.css) and the user app (app.css). */
.rcalc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow);
  padding: 18px;
  color: var(--text);
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.rcalc--flat { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.rcalc *, .rcalc *::before, .rcalc *::after { box-sizing: border-box; }

.rcalc-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 12px;
  margin-bottom: 14px;
}
.rcalc-tab {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; background: transparent; color: var(--text-muted);
  font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.2;
  padding: 9px 6px; border-radius: 9px; cursor: pointer; text-align: center;
  transition: background .15s, color .15s;
}
.rcalc-tab i { font-size: 16px; flex-shrink: 0; }
.rcalc-tab:hover { color: var(--text); }
.rcalc-tab.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rcalc-tab.is-active i { color: var(--primary); }

.rcalc-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rcalc-assets[hidden] { display: none; }
.rcalc-asset {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--border); background: transparent; color: var(--text);
  font: inherit; font-size: 13px; font-weight: 600;
  padding: 6px 12px 6px 6px; border-radius: 999px; cursor: pointer;
}
.rcalc-asset.is-active { border-color: var(--primary); background: var(--primary-soft); }
.rcalc-coin {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800;
}

.rcalc-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.rcalc-input {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-soft);
  transition: border-color .15s;
}
.rcalc-input:focus-within { border-color: var(--primary); }
.rcalc-input input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--text);
  font-family: Sora, Inter, system-ui, sans-serif; font-size: 22px; font-weight: 700;
  padding: 12px 14px;
}
.rcalc-unit { padding: 0 14px; font-weight: 700; font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.rcalc-swap {
  width: 32px; height: 32px; margin: 8px auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); font-size: 18px;
}

.rcalc-rate { margin-top: 12px; font-size: 13px; display: grid; gap: 3px; }
.rcalc-rate [data-rate-line] { font-weight: 600; }
.rcalc-note { color: var(--text-muted); font-size: 12px; }
.rcalc.is-unavailable [data-rate-line] { color: var(--warning); }

.rcalc-cta { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 6px; width: 100%; }

@media (max-width: 480px) {
  .rcalc { padding: 14px; }
  .rcalc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcalc-input input { font-size: 19px; }
}

/* Home page section */
.calc-section .calc-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 48px; align-items: center; }
.calc-section .calc-points { display: grid; gap: 14px; margin-top: 22px; }
.calc-section .calc-point { display: flex; gap: 12px; align-items: flex-start; }
.calc-section .calc-point i { font-size: 22px; color: var(--primary); flex-shrink: 0; }
.calc-section .calc-point p { margin: 0; color: var(--text-muted); }
@media (max-width: 900px) {
  .calc-section .calc-grid { grid-template-columns: 1fr; gap: 28px; }
}
