/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg:           #eaf6f1;
  --surface:      #ffffff;
  --surface-2:    #f3fbf7;

  --usd:          #60a9e0;
  --usd-light:    #dbeafe;
  --usd-mid:      #93c5fd;

  --ars:          #52cb8e;
  --ars-light:    #dcfce7;
  --ars-mid:      #86efac;

  --best:         #10b981;
  --best-dim:     #d1fae5;

  --text:         #0c2518;
  --text-2:       #3a6650;
  --text-3:       #8aaa9a;

  --border:       #c3ecd6;
  --border-2:     #e6f8ef;

  --panel-w:      360px;
  --radius:       18px;
  --radius-sm:    11px;
  --shadow:       0 4px 28px rgba(16,185,129,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 8px 48px rgba(16,185,129,.11), 0 2px 8px rgba(0,0,0,.05);

  --font-d: 'Inter', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

/* ─── Base ──────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: var(--font-b); }

/* ─── App shell ─────────────────────────────────────── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ────────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand-name {
  font-family: var(--font-d);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-badge {
  display: none;
}
.status-badge.visible { display: none; }
.status-badge.error { display: none; }

.app-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  max-width: min(86vw, 620px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.app-toast.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.settings-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.settings-btn:hover {
  background: var(--ars-light);
  border-color: var(--ars-mid);
  color: var(--best);
}

/* ─── Main ──────────────────────────────────────────── */
.app-main {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 88px;
  width: 100%;
}

/* ─── Hero ──────────────────────────────────────────── */
.hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  margin-bottom: 18px;
}

.amount-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 32px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.amount-block:focus-within {
  border-color: var(--ars);
  box-shadow: 0 0 0 4px rgba(82,203,142,.12), var(--shadow);
}

.amount-prefix {
  font-family: var(--font-d);
  font-size: 26px;
  font-weight: 700;
  color: var(--usd);
  flex-shrink: 0;
  user-select: none;
}

.amount-input {
  font-family: var(--font-d);
  font-size: 58px;
  font-weight: 800;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
  line-height: 1;
}
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ─── Methods ───────────────────────────────────────── */
.methods-section {
  text-align: center;
  margin-bottom: 30px;
}

.methods-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.methods-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.method-pill {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.method-pill:hover {
  border-color: var(--ars-mid);
  color: var(--text);
  background: var(--surface-2);
}
.method-pill.active {
  background: var(--ars-light);
  border-color: var(--ars);
  color: var(--best);
  font-weight: 600;
}

/* ─── CTA ───────────────────────────────────────────── */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.save-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.save-check input { accent-color: var(--ars); }

.compare-btn {
  background: linear-gradient(135deg, #4dd4a0 0%, #10b981 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 46px;
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(16,185,129,.32);
  transition: transform .14s, box-shadow .14s;
}
.compare-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(16,185,129,.42);
}
.compare-btn:active { transform: translateY(0); }

/* ─── Results ───────────────────────────────────────── */
.results-wrapper {
  animation: fadeUp .4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── View toggle ───────────────────────────────────── */
.view-toggle-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.view-toggle-btn {
  padding: 6px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.view-toggle-btn:hover { border-color: var(--ars-mid); color: var(--text); }
.view-toggle-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

/* ─── Cards grid (vista visual) ─────────────────────── */
.rc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  animation: fadeUp .4s ease both;
}
.rc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.rc-card:hover { box-shadow: var(--shadow-lg); }
.rc-card--best {
  border: 2px solid var(--usd);
}
.rc-badge-slot {
  min-height: 26px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.rc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 10px;
  border-radius: 999px;
}
.rc-badge--blue  { background: rgba(96,169,224,.18); color: var(--usd); }
.rc-badge--green { background: rgba(16,185,129,.16); color: var(--best); }
.rc-badge--warn  { background: rgba(245,158,11,.15); color: #d97706; }
.rc-badge--gray  { background: var(--border-2); color: var(--text-3); }

.rc-name {
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}
.rc-sub {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 12px;
  line-height: 1.4;
}
.rc-stats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-2);
  margin-bottom: 12px;
}
.rc-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-2);
  font-size: 12.5px;
}
.rc-stat-row:last-child { border-bottom: none; }
.rc-stat-label { color: var(--text-2); }
.rc-stat-val   { font-weight: 600; color: var(--text); }
.rc-val--good  { color: var(--best); }
.rc-val--best  { color: var(--best); }
.rc-val--worst { color: #e57373; }
.rc-val--muted { color: var(--text-3); font-weight: 500; }

.rc-payout {
  margin-top: auto;
  padding-top: 10px;
}
.rc-payout-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.rc-payout-amount {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.1;
}
.rc-payout-amount.rc-val--best  { color: var(--best); }
.rc-payout-amount.rc-val--worst { color: #e57373; }
.rc-bar-wrap {
  height: 5px;
  background: var(--border-2);
  border-radius: 3px;
  overflow: hidden;
}
.rc-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--ars);
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.rc-card--best .rc-bar-fill { background: var(--best); }
.rc-note {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 10px;
}

/* Bar chart */
.chart {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.chart-heading {
  font-family: var(--font-d);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 18px;
}

.chart-row {
  margin-bottom: 14px;
}
.chart-row:last-child { margin-bottom: 0; }

.chart-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.chart-rank {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  width: 18px;
  flex-shrink: 0;
}

.chart-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-val {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.chart-track {
  height: 9px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 26px;
}

.chart-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--usd-mid), var(--ars-mid));
  width: 0;
  transition: width .65s cubic-bezier(.16,1,.3,1);
}

.chart-row.is-best .chart-fill {
  background: linear-gradient(90deg, var(--ars), var(--best));
}
.chart-row.is-best .chart-name { color: var(--best); font-weight: 600; }
.chart-row.is-best .chart-val  { color: var(--best); }

/* Detail cards */
.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.detail-card.is-best {
  border-color: var(--ars-mid);
}

.detail-card summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--surface-2);
  border-radius: calc(var(--radius) - 1px);
  transition: background .15s;
}
.detail-card summary:hover { background: var(--best-dim); }
details[open] > summary { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.detail-card summary::-webkit-details-marker { display: none; }

.detail-rank {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.detail-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.detail-card.is-best .detail-name { color: var(--best); font-weight: 600; }

.best-badge {
  background: var(--ars);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 11px;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.chevron {
  color: var(--text-3);
  font-size: 12px;
  transition: transform .2s;
  flex-shrink: 0;
}
details[open] .chevron { transform: rotate(180deg); }

.detail-body {
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border-2);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
}
.stat-value {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.stat-value.usd { color: var(--usd); }
.stat-value.ars { color: var(--best); }

.steps-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
  margin-bottom: 7px;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.steps-list li {
  font-size: 12.5px;
  color: var(--text-2);
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-2);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.steps-list .fee-separator {
  border: none;
  height: 1px;
  margin: 4px 0px 6px;
  background: var(--border);
  opacity: 0.85;
  padding: 0px !important;
}
.steps-list li:last-child { border-bottom: none; }

/* ─── Panel overlay ─────────────────────────────────── */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,37,24,.22);
  backdrop-filter: blur(3px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Config panel ──────────────────────────────────── */
.config-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--panel-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  box-shadow: 6px 0 48px rgba(16,185,129,.09);
}
.config-panel.open { transform: translateX(0); }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-2);
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--font-d);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.close-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.close-btn:hover { background: var(--ars-light); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.section-label {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-usd { background: var(--usd); }
.dot-ars { background: var(--ars); }

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  cursor: text;
}
.field span {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.field > span:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}
.field-value--money .field-currency {
  flex-shrink: 0;
}
.field input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-d);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  width: 110px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.field-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  justify-content: flex-end;
}
.field-value--money {
  gap: 5px;
  flex: 0 0 auto;
  justify-content: flex-end;
}
.field-value--money input {
  box-sizing: content-box;
  min-width: 4.25ch;
  max-width: 13ch;
  width: 7ch;
  text-align: right;
}
@supports (field-sizing: content) {
  .field-value--money input {
    width: auto;
    field-sizing: content;
  }
}
.field-currency {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.wise-fees-separator {
  border: none;
  height: 1px;
  margin: 4px 2px 6px;
  background: var(--border);
  opacity: 0.85;
}
.wise-variable-fees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(96, 169, 224, 0.09) 0%, var(--surface-2) 100%);
  border: 1px solid var(--usd-mid);
  border-radius: var(--radius-sm);
}
.wise-variable-fees-intro {
  font-family: var(--font-d);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--usd);
  margin: 0 2px 6px;
  text-align: center;
}
.field-total-wise-fee .field-value {
  gap: 4px;
}
.field-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.is-loading {
  color: var(--text-3) !important;
  font-style: italic;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button { -webkit-appearance: none; }

.panel-btn {
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all .18s;
  letter-spacing: .01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.panel-btn.outline {
  background: transparent;
  border: 1.5px solid var(--usd-mid);
  color: var(--usd);
}
.panel-btn.outline:hover {
  background: var(--usd-light);
}
.panel-btn.solid {
  background: linear-gradient(135deg, #4dd4a0 0%, #10b981 100%);
  border: none;
  color: #fff;
  box-shadow: 0 3px 14px rgba(16,185,129,.28);
}
.panel-btn.solid:hover {
  box-shadow: 0 4px 20px rgba(16,185,129,.38);
}
.panel-btn.fresh {
  background: #e7faf1;
  border-color: var(--ars-mid);
  color: var(--best);
}
.panel-btn.tiny {
  padding: 9px 14px;
  font-size: 12.5px;
}
.btn-meta {
  font-size: 11px;
  font-weight: 500;
  opacity: .85;
}

.accordion {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 2px 0;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 13px;
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
  transition: transform .2s;
}
.accordion[open] summary::after { transform: rotate(180deg); }
.accordion .field-stack {
  padding: 0 10px 10px;
}

/* History */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.empty-note {
  font-size: 13px;
  color: var(--text-3);
}

.history-item {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.history-date {
  font-size: 11px;
  color: var(--text-3);
}
.history-amount {
  font-family: var(--font-d);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.history-best {
  font-size: 12px;
  color: var(--best);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-load {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
  margin-top: 5px;
  align-self: flex-start;
  transition: background .2s, border-color .2s;
}
.history-load:hover {
  background: var(--ars-light);
  border-color: var(--ars-mid);
}

/* ─── Hero title & subtitle (new) ──────────────────── */
.hero-title {
  font-family: var(--font-d);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Ad placeholder ─────────────────────────────── */
.ad-container {
  margin: 32px 0;
  min-height: 0;
}

/* ─── About section ──────────────────────────────── */
.about-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-2);
}

.about-title {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -.3px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.about-step {
  font-family: var(--font-d);
  font-size: 24px;
  font-weight: 800;
  color: var(--ars);
  line-height: 1;
}

.about-card h3 {
  font-family: var(--font-d);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.about-card p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.about-who {
  font-size: 13.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.55;
}

/* ─── Guides section ──────────────────────────────── */
.guides-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-2);
}

.guides-title {
  font-family: var(--font-d);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.guides-subtitle {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

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

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.guide-card:hover {
  border-color: var(--ars-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card h3 {
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.guide-card p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ─── Footer ──────────────────────────────────────── */
.app-footer {
  margin-top: 48px;
  padding: 20px 20px;
  border-top: 1px solid var(--border-2);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.app-footer p {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.6;
  text-align: center;
}

/* ─── Disabled button state ───────────────────────── */
.panel-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 22px; }
  .amount-input { font-size: 44px; }
  .amount-prefix { font-size: 22px; }
  .config-panel { width: 100%; }
  .compare-btn { padding: 14px 36px; }
}
