/* Subscription Tracker — Tool Styles (Finance / Money category) */

/* ── Page hero (Finance gradient) ── */
.tool-hero {
  background: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: #fff;
}
.tool-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.tool-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

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

/* ── Main card ── */
.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.calc-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Subscription table */
.sub-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.sub-table th {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sub-table td {
  padding: 0.4rem 0.25rem;
  vertical-align: middle;
}
.sub-table input[type="text"],
.sub-table input[type="number"],
.sub-table select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}
.sub-table input:focus,
.sub-table select:focus {
  border-color: #10b981;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.sub-table .delete-btn {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.sub-table .delete-btn:hover {
  background: #fecaca;
}

/* Buttons */
.add-btn {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.add-btn:hover {
  background: #e5e7eb;
}

.calc-btn {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(16,185,129,0.3);
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (max-width: 700px) {
  .results-grid { grid-template-columns: 1fr; }
}
.result-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-align: center;
}
.result-card.highlight {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
  border-color: #10b981;
}
.result-card .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.result-card .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* Related & Content (standard) */
.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: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 600px) { .related-tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.tool-card:hover { border-color: #10b981; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

.icon-wrapper {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.tool-title { font-weight: 700; font-size: 0.95rem; color: var(--text); margin: 0 0 0.25rem; }
.tool-desc { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.content-section { margin-top: 2rem; }
.content-section h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-left: 3px solid #10b981;
  padding-left: 0.75rem;
}
.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-pill {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.feature-pill strong {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.feature-pill p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.85rem;
}
.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.faq-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.related-list li {
  border-bottom: 1px solid var(--border);
}
.related-list li:last-child { border-bottom: none; }
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  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: #10b981;
  font-weight: 700;
  flex-shrink: 0;
}


.accuracy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Dark mode */
html[data-theme="dark"] .calc-card { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .sub-table input,
html[data-theme="dark"] .sub-table select { background: #111827; border-color: #374151; color: #f9fafb; }
html[data-theme="dark"] .result-card { background: #111827; }
html[data-theme="dark"] .result-card.highlight { background: #064e3b; border-color: #10b981; }
html[data-theme="dark"] .add-btn { background: #374151; color: #e5e7eb; border-color: #4b5563; }
html[data-theme="dark"] .feature-pill { background: rgba(16,185,129,0.12); }
html[data-theme="dark"] .faq-item { background: #1f2937; border-color: #374151; }
html[data-theme="dark"] .tool-card { background: #1f2937; border-color: #374151; }

/* ── Steps box (numbered tips) - Finance green circles ── */
.steps-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  counter-reset: steps;
}
.steps-box li {
  list-style: none;
  padding: 0.5rem 0 0.5rem 2.5rem;
  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: 24px;
  height: 24px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 24px;
  text-align: center;
}

/* Dark mode for steps */
html[data-theme="dark"] .steps-box li::before {
  background: #34d399;
}

/* ── Footer ── */
#footer-root {
  background: #000000;
  margin-top: 3rem;
}
.site-footer {
  background: #000000 !important;
  color: #94a3b8 !important;
}
.site-footer a { color: #94a3b8 !important; }
.site-footer a:hover { color: #fff !important; }
