/* ============================================================
   Crypto Profit Calculator — Tool-Specific Styles
   RT-CRY-001 · recatools.com/crypto-profit-calculator/
   ============================================================ */

/* ── Input Group ─────────────────────────────────────────────── */
.cpc-input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.cpc-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.cpc-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary, #64748B);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cpc-input-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border, #E2E4E8);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.18s;
}

.cpc-input-prefix:focus-within {
  border-color: var(--accent, #E8472F);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.12);
}

.cpc-prefix {
  padding: 0 12px;
  background: #FFFFFF;
  color: var(--text-secondary, #64748B);
  font-weight: 600;
  font-size: 0.9rem;
  border-right: 1.5px solid var(--border, #E2E4E8);
  height: 48px;
  display: flex;
  align-items: center;
  user-select: none;
  white-space: nowrap;
}

.cpc-input {
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary, #0D1B2A);
  background: transparent;
  width: 100%;
  min-width: 0;
}

.cpc-input-plain {
  border: 1.5px solid var(--border, #E2E4E8);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary, #0D1B2A);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.18s;
  outline: none;
}

.cpc-input-plain:focus {
  border-color: var(--accent, #E8472F);
  box-shadow: 0 0 0 3px rgba(232, 98, 42, 0.12);
}

.cpc-field-hint {
  font-size: 0.75rem;
  color: var(--text-secondary, #64748B);
  font-style: italic;
}

/* ── Calculate Button ────────────────────────────────────────── */
.cpc-btn-calc {
  display: block;
  width: 100%;
  background: var(--accent, #E8472F);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(232, 98, 42, 0.28);
  margin-top: 8px;
  text-align: center;
}

.cpc-btn-calc:hover {
  background: #d4541f;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 98, 42, 0.36);
}

.cpc-btn-calc:active {
  transform: translateY(0);
}

/* ── Error message ───────────────────────────────────────────── */
.cpc-error {
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 6px;
  padding: 8px 12px;
  background: #fff0ed;
  border-radius: 8px;
  border-left: 3px solid #c0392b;
}

/* ── Finance Disclaimer Banner (amber) ──────────────────────── */
.cpc-disclaimer-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8e1;
  border: 1.5px solid #f9a825;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #7c5a00;
  line-height: 1.5;
}

.cpc-disclaimer-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Results Panel ───────────────────────────────────────────── */
.cpc-results {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border, #E2E4E8);
  animation: cpcFadeIn 0.25s ease;
}

@keyframes cpcFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cpc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.cpc-result-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpc-result-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #64748B);
}

.cpc-big-val {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary, #0D1B2A);
}

.cpc-positive { color: #1a7a4a; }
.cpc-negative { color: #c0392b; }

/* ── Profit/Loss Hero Row ───────────────────────────────────── */
.cpc-pl-hero {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cpc-pl-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cpc-pl-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary, #64748B);
}

.cpc-big-val.cpc-pl-amount {
  font-size: 2rem;
  font-family: 'IBM Plex Serif', Georgia, serif;
}

.cpc-pl-icon {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

/* ── ROI Badge ───────────────────────────────────────────────── */
.cpc-roi-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cpc-roi-positive {
  background: #e8f7ef;
  color: #1a7a4a;
}

.cpc-roi-negative {
  background: #fdeeeb;
  color: #c0392b;
}

/* ── Fees row within results ─────────────────────────────────── */
.cpc-fees-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafaf8;
  border: 1px solid var(--border, #E2E4E8);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.cpc-fees-label {
  color: var(--text-secondary, #64748B);
  font-weight: 600;
}

.cpc-fees-val {
  font-weight: 700;
  color: var(--text-primary, #0D1B2A);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .cpc-row-2col {
    grid-template-columns: 1fr;
  }

  .cpc-big-val.cpc-pl-amount {
    font-size: 1.6rem;
  }

  .cpc-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .cpc-results-grid {
    grid-template-columns: 1fr;
  }
}

/* cache-buster: 2026-05-24T05:06:05Z */
