/**
 * Crypto Fee Calculator — tool styles (quiet-luxury design system tokens).
 */

.calc-lede-tools p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

/* ---- Calculator card ---- */
.fee-calc {
  border: 1px solid var(--hairline);
  background: var(--color-bg-primary);
  border-radius: var(--radius-xl, 18px);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 0 0 2.5rem;
}

.fee-calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
}
.fc-field.fc-plan { grid-column: 1 / -1; }

.fc-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: .55rem;
}

.fc-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--color-bg-secondary, rgba(127,127,127,.05));
  overflow: hidden;
}
.fc-input-wrap:focus-within { border-color: var(--color-primary, #6366f1); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.fc-prefix { padding: 0 .35rem 0 .85rem; color: var(--color-text-secondary); font-weight: 600; }
.fc-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 14px 12px 4px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  outline: none;
  width: 100%;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 6px;
  margin-top: .85rem;
  border-radius: 999px;
  background: var(--grad, linear-gradient(90deg,#6366f1,#8b5cf6));
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary, #6366f1);
  box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary, #6366f1); cursor: pointer;
}

/* ---- Plan toggle ---- */
.fc-plan-toggle { display: flex; gap: .5rem; flex-wrap: wrap; }
.fc-plan-btn {
  flex: 1; min-width: 160px;
  padding: 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--color-bg-secondary, rgba(127,127,127,.05));
  color: var(--color-text-secondary);
  font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .15s ease;
}
.fc-plan-btn:hover { color: var(--color-text-primary); }
.fc-plan-btn.active {
  background: var(--grad-tint, rgba(99,102,241,.12));
  border-color: var(--color-primary, #6366f1);
  color: var(--color-primary-dark, #4338ca);
}
html.dark-mode .fc-plan-btn.active { color: var(--color-primary-light, #a5b4fc); }

/* ---- Results ---- */
.fee-calc-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.fc-card {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  background: var(--color-bg-primary);
  display: flex; flex-direction: column; gap: .25rem;
}
.fc-card-label { font-size: .9rem; font-weight: 600; color: var(--color-text-primary); line-height: 1.3; }
.fc-card-label em { display: block; font-style: normal; font-weight: 500; font-size: .78rem; color: var(--color-text-secondary); margin-top: 2px; }
.fc-card-month { font-size: 1.6rem; font-weight: 800; color: var(--color-text-primary); margin-top: .4rem; letter-spacing: -.01em; }
.fc-card-year { font-size: .85rem; color: var(--color-text-secondary); }

.fc-card-win {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
    var(--grad, linear-gradient(135deg,#6366f1,#8b5cf6)) border-box;
  box-shadow: 0 6px 24px -8px rgba(99,102,241,.45);
}
.fc-card-win .fc-card-month { background-image: var(--grad, linear-gradient(90deg,#6366f1,#8b5cf6)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- Savings highlight ---- */
.fc-savings {
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--grad-tint, rgba(99,102,241,.1));
  margin-bottom: 1.25rem;
}
.fc-savings-amt {
  display: block;
  font-size: clamp(2rem, 6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.02em;
  background-image: var(--grad, linear-gradient(90deg,#6366f1,#8b5cf6));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fc-savings-cap { font-size: .95rem; color: var(--color-text-secondary); font-weight: 600; }
.fc-savings.fc-savings-neg .fc-savings-amt { background: none; -webkit-text-fill-color: initial; color: var(--color-text-secondary); }

.fc-note { font-size: .82rem; color: var(--color-text-secondary); line-height: 1.5; margin: 0 0 1.25rem; }
.fc-note a { color: var(--color-primary-dark, #4338ca); }
html.dark-mode .fc-note a { color: var(--color-primary-light, #a5b4fc); }

.fc-cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 12px;
  background: var(--grad, linear-gradient(135deg,#6366f1,#8b5cf6));
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.fc-cta:hover { filter: brightness(1.05); text-decoration: none; }

.calc-explainer { margin-top: 2.5rem; }

@media (max-width: 720px) {
  .fee-calc-inputs { grid-template-columns: 1fr; }
  .fee-calc-results { grid-template-columns: 1fr; }
}

/* CTA is a button, never underline it (beats the .article-body a underline). */
.article-body a.fc-cta, .article-body a.fc-cta:hover { text-decoration: none; }
