/* Single coin — layout only */
.coin-card {
  border: 1px solid #eef2f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.04);
}

/* Trade calculator — buy (green) / sell (red) */
.coin-trade-tab {
  height: 2.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.coin-trade[data-trade-mode="buy"] .coin-trade-tab--buy,
.coin-trade[data-trade-mode="sell"] .coin-trade-tab--sell {
  color: #fff;
}

.coin-trade[data-trade-mode="buy"] .coin-trade-tab--buy {
  background: #57bd84;
}

.coin-trade[data-trade-mode="sell"] .coin-trade-tab--sell {
  background: #ef4444;
}

.coin-trade-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.coin-trade-fields [data-trade-field="irt"] {
  order: 1;
}

.coin-trade-fields [data-trade-field="coin"] {
  order: 2;
}

/* Sell: coin amount first, IRT second */
.coin-trade[data-trade-mode="sell"] .coin-trade-fields [data-trade-field="coin"] {
  order: 1;
}

.coin-trade[data-trade-mode="sell"] .coin-trade-fields [data-trade-field="irt"] {
  order: 2;
}

.coin-trade-input {
  transition: border-color 0.15s ease;
}

.coin-trade[data-trade-mode="buy"] .coin-trade-input:focus-within {
  border-color: #57bd84;
}

.coin-trade[data-trade-mode="sell"] .coin-trade-input:focus-within {
  border-color: #ef4444;
}

.coin-trade-cta {
  transition: background-color 0.15s ease;
}

.coin-trade[data-trade-mode="buy"] .coin-trade-cta {
  background: #57bd84;
}

.coin-trade[data-trade-mode="sell"] .coin-trade-cta {
  background: #ef4444;
}

.coin-chart-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(87, 189, 132, 0.12) 0%, rgba(87, 189, 132, 0.02) 55%, #f8faf9 100%);
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 600;
}

.coin-prose {
  color: #374151;
  font-size: 16px;
  line-height: 2.1;
  text-align: right;
}

.coin-prose h1,
.coin-prose h2,
.coin-prose h3 {
  color: #0a0a0a;
  font-weight: 800;
  line-height: 1.6;
}

.coin-prose h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.coin-prose h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.coin-prose h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.coin-prose p {
  margin: 0 0 1rem;
  text-align: justify;
}

.coin-prose ul,
.coin-prose ol {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}

.coin-prose ul {
  list-style: disc;
}

.coin-prose ol {
  list-style: decimal;
}

.coin-prose a {
  color: #57bd84;
  text-decoration: underline;
}

.coin-faq-item {
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 0 1rem;
}

.coin-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111;
}

.coin-faq-item summary::-webkit-details-marker {
  display: none;
}

.coin-faq-item p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #6b7280;
}

.coin-related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.coin-related-row:hover {
  background: #f3f9f4;
}

@media (min-width: 768px) {
  .coin-chart-placeholder {
    min-height: 420px;
  }
}
