.tab-one {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-one[hidden] {
  display: none;
}

/* ─── Amount Cards ─── */
.amount-card {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease;
}

.amount-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 118, 0.3), transparent);
}

.amount-card {
  min-height: 178px;
  padding: 18px 20px 16px;
}

.amount-card.field-error {
  border-color: var(--red);
  animation: fieldShake 240ms ease;
  box-shadow: 0 0 0 3px var(--red-dim);
}

.amount-card.field-error .amount-value {
  color: var(--red);
}

.amount-label {
  margin: 0 0 2px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.amount-value {
  display: block;
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  margin: 12px 0 22px 2px;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 62px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  outline: none;
  overflow-wrap: anywhere;
}

.amount-input {
  caret-color: var(--accent);
  appearance: textfield;
}

.amount-input-readonly {
  caret-color: transparent;
  cursor: default;
}

.amount-input:focus {
  color: var(--ink);
}

/* Placeholder style */
.amount-input::placeholder {
  color: var(--ink);
  font-weight: 700;
  opacity: 1;
}

/* ─── Currency Select ─── */
.currency-select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 14px 0 8px;
  background: var(--bg-elevated);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.currency-select:active {
  background: rgba(0, 230, 118, 0.06);
  border-color: rgba(0, 230, 118, 0.3);
}

.coin-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 230, 118, 0.3);
  flex-shrink: 0;
}

.coin-icon {
  width: 27px;
  height: 27px;
  color: #fff;
}

.currency-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.select-icon {
  color: var(--accent);
  width: 26px;
  height: 26px;
  justify-self: end;
}

/* ─── Rate Card ─── */
.rate-card {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rate-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}

.rate-neutral { color: var(--ink); }
.rate-up      { color: #ff6b6b; }
.rate-down    { color: var(--accent); }

.rate-icon {
  color: var(--ink-2);
  width: 22px;
  height: 22px;
}

.amount-card-receive {
  margin-top: 0;
}

/* ─── Primary CTA ─── */
.primary-action {
  width: 100%;
  min-height: 60px;
  margin-top: 0;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #071210;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.28), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.primary-action::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 60%);
  border-radius: inherit;
}

.primary-action:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 12px rgba(0, 230, 118, 0.2);
}

.primary-action.is-loading {
  background: var(--bg-elevated);
  color: var(--ink-2);
  box-shadow: none;
}

/* ─── Animations ─── */
@keyframes fieldShake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-5px); }
  75%       { transform: translateX(5px); }
}

@media (max-width: 360px) {
  .rate-card { padding: 0 16px; }
  .amount-value { font-size: 50px; }
  .currency-name { font-size: 13px; }
}

@media (max-width: 330px) {
  .amount-value { font-size: 42px; }
  .amount-card { padding: 16px 16px 14px; }
  .currency-select { padding: 0 10px 0 6px; }
}
