/* Credit Card Payoff Calculator — Premium Overrides */
/* Extends global /style.css */

/* ── Ad slots hidden ── */
.ad-slot,.ad-leaderboard,.ad-in-article,.ad-anchor,.ad-placeholder,[class*='ad-slot']{display:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;}

/* ── Custom Theme Variables ── */
:root {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --accent: #10b981;
  --accent-rgb: 16, 185, 129;
}

/* ── Page Hero ── */
.tool-hero {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
}
.tool-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
}
.tool-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Main layout ── */
.tool-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* ── Calculator card ── */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.3s;
}
.calc-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-card h2 svg {
  color: var(--primary);
}

/* ── Form elements ── */
.form-field {
  margin-bottom: 1.25rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-field input,
.form-field select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-field .help {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Mode toggles */
.calc-mode-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.mode-btn {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  text-align: center;
}
.mode-btn:hover {
  background: var(--border);
  color: var(--text);
}
.mode-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Calculate button ── */
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.calc-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ── Results cards ── */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .results-grid { grid-template-columns: 1fr; }
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
}
.result-card .rc-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.result-card .rc-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.result-card.highlight {
  background: linear-gradient(135deg, #f0f7ff, #ecfeff);
  border-color: #bfdbfe;
  grid-column: 1 / -1;
}
html[data-theme="dark"] .result-card.highlight {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-color: #334155;
}
.result-card.highlight .rc-value {
  font-size: 2.2rem;
  color: var(--primary);
}

/* Copy buttons */
.btn-copy {
  background: rgba(var(--primary-rgb), 0.08);
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-copy:hover {
  background: rgba(var(--primary-rgb), 0.15);
}
.btn-copy.is-success {
  background: #10b981 !important;
  color: #fff !important;
}

/* Comparison modules */
.comparison-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .comparison-grid { grid-template-columns: 1fr; }
}
.strategy-card {
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}
.strategy-card.minimum {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
html[data-theme="dark"] .strategy-card.minimum {
  background: #271616;
  border-color: #4c1d1d;
  color: #fecaca;
}
.strategy-card.accelerated {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
html[data-theme="dark"] .strategy-card.accelerated {
  background: #142217;
  border-color: #14532d;
  color: #bbf7d0;
}
.strategy-card .title-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.strategy-card .time-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0.35rem 0;
}

.savings-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 0.85rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: 1rem;
}

/* ── Content sections ── */
.content-section {
  margin-top: 2rem;
}
.content-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.25rem 0 0.75rem;
  border-left: 3.5px solid var(--primary);
  padding-left: 0.75rem;
  line-height: 1.2;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

/* Steps Box */
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.steps-box li:last-child { border-bottom: none; }
.steps-box li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 26px;
}

/* Features Grid */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-pill {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.feature-pill svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.feature-pill strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.feature-pill span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* FAQ cards */
.faq-accordion {
  margin-top: 1rem;
}
.faq-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem !important;
}
.faq-card p {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Related lists */
.related-list {
  padding-left: 0;
  list-style: none;
  margin-top: 1rem;
}
.related-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.related-list a:hover { color: var(--primary); }
.related-list a::before {
  content: "→";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* "People Also Use" section */
.related-tools-section {
  margin: 2rem 0;
}
.related-tools-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 768px) {
  .related-tools-grid { grid-template-columns: 1fr; }
}
.tool-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.08);
}
.tool-card .icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.tool-card .tool-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.tool-card .tool-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
