/* FIRE Calculator Specific Styles */

/* Container */
main.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Back Link */
.back-link {
  align-self: flex-start;
  color: #7a5af8;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

.fire-layout {
  display: grid;
  grid-template-columns: 525px 1fr;
  gap: 2rem;
  width: 103%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 900px) {
  .fire-layout {
    grid-template-columns: 1fr;
  }
}

/* Calculator Card */
.calculator-card {
  background: linear-gradient(135deg, rgba(248, 245, 255, 0.95), rgba(233, 229, 255, 0.92));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border: 1px solid rgba(122, 90, 248, 0.15);
  transition: transform 0.25s ease;
  width: 100%;
  margin: 0 auto;
}

.calculator-card:hover {
  transform: translateY(-2px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.85rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-group input {
  border: 1px solid #ddd;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #7a5af8;
  box-shadow: 0 0 0 2px rgba(122, 90, 248, 0.2);
}

.inline-help {
  font-size: 0.8rem;
  color: #6b7280;
}

#calcBtn {
  margin-top: 1.2rem;
  background: linear-gradient(120deg, #b68eff, #7a7df8);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 1rem;
  font-size: 1.05rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  width: 100%;
}

#calcBtn:hover {
  transform: scale(1.02);
  background: linear-gradient(120deg, #a471ff, #6d68f6);
  box-shadow: 0 6px 25px rgba(122, 90, 248, 0.4);
}

#calcBtn:active {
  transform: scale(0.98);
}

/* Results Section (side by side with form) */
#result {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 0;
  overflow: hidden;
}

.result-header {
  background: linear-gradient(135deg, #9b6bff, #7a5af8);
  color: #fff;
  padding: 1.5rem 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.result-header-title span:first-child {
  font-size: 2rem;
}

/* Share Button */
.share-container {
  position: relative;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Summary Container */
#summary {
  padding: 2rem;
}

/* Metrics Overview */
.metrics-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .metrics-overview {
    grid-template-columns: 1fr 1fr;
  }
}

.metric-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid #86efac;
  transition: all 0.3s ease;
}

.metric-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  border-color: #4ade80;
}

.metric-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #166534;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-sublabel {
  font-size: 0.85rem;
  color: #16a34a;
}

/* FIRE Comparison Table */
.fire-comparison-table {
  overflow: visible;
  margin: 0 0 2.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.fire-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  position: relative;
  overflow: visible;
}

.fire-comparison-table th {
  background: linear-gradient(135deg, #7a5af8 0%, #6366f1 100%);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fire-comparison-table th:first-child {
  border-top-left-radius: 12px;
  width: 160px;
}

.fire-comparison-table th:last-child {
  border-top-right-radius: 12px;
}

.fire-comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.fire-comparison-table td:first-child {
  width: 160px;
  position: relative;
  overflow: visible;
}

.fire-comparison-table tr {
  position: relative;
}

.fire-comparison-table tr:last-child td {
  border-bottom: none;
}

.fire-comparison-table tr:hover {
  background: #f9fafb;
}

.fire-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: help;
  position: relative;
}

.fire-type-badge::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 400;
  white-space: normal;
  width: 340px;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fire-type-badge::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #1f2937;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.fire-type-badge:hover::after,
.fire-type-badge:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  margin-left: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fire-type-badge:hover .tooltip-icon {
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.15);
}

.lean-fire-badge {
  background: #dcfce7;
  color: #166534;
}

.regular-fire-badge {
  background: #dbeafe;
  color: #1e40af;
}

.fat-fire-badge {
  background: #fef3c7;
  color: #92400e;
}

.coast-fire-badge {
  background: #e0e7ff;
  color: #3730a3;
}

.barista-fire-badge {
  background: #fce7f3;
  color: #831843;
}

/* Modern FIRE Journey Container */
.fire-journey-container {
  margin: 2rem 0;
  padding: 2.5rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .fire-journey-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }
}

/* Progress Ring */
.progress-ring-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  stroke-dasharray: 534.07;
  stroke-dashoffset: 0;
}

.progress-ring-circle {
  stroke-dasharray: 534.07;
  stroke-dashoffset: 534.07;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-linecap: round;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.progress-ring-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-percentage {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Milestone Cards */
.milestone-cards {
  display: grid;
  gap: 1rem;
}

.milestone-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(20px);
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.milestone-card:nth-child(1) { animation-delay: 0.1s; }
.milestone-card:nth-child(2) { animation-delay: 0.2s; }
.milestone-card:nth-child(3) { animation-delay: 0.3s; }
.milestone-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.milestone-card.achieved {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.milestone-card.current {
  border-color: #6366f1;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.milestone-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
}

.milestone-card.achieved .milestone-icon {
  background: rgba(16, 185, 129, 0.15);
}

.milestone-content {
  flex: 1;
}

.milestone-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.milestone-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1;
}

.milestone-card.achieved .milestone-value {
  color: #059669;
}

.milestone-card.current .milestone-value {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.milestone-status {
  flex-shrink: 0;
  font-size: 1.5rem;
}

/* Wealth Timeline Container */
.wealth-timeline-container {
  margin: 3rem 0 2rem;
  padding: 2.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.wealth-timeline {
  display: grid;
  gap: 1rem;
}

.timeline-year {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease forwards;
}

.timeline-year:nth-child(1) { animation-delay: 0.05s; }
.timeline-year:nth-child(2) { animation-delay: 0.1s; }
.timeline-year:nth-child(3) { animation-delay: 0.15s; }
.timeline-year:nth-child(4) { animation-delay: 0.2s; }
.timeline-year:nth-child(5) { animation-delay: 0.25s; }
.timeline-year:nth-child(6) { animation-delay: 0.3s; }
.timeline-year:nth-child(7) { animation-delay: 0.35s; }
.timeline-year:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-year:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}

.timeline-year.fire-reached {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #10b981;
}

.timeline-year.fire-reached:hover {
  border-color: #059669;
}

.timeline-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-year-num {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-age {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
}

.timeline-bar-container {
  position: relative;
  height: 40px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: visible;
  display: flex;
  align-items: center;
}

.timeline-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  border-radius: 20px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0%;
}

.timeline-bar-percentage {
  position: absolute;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
  z-index: 1;
}

.timeline-value {
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
}

.timeline-year.fire-reached .timeline-value {
  color: #059669;
}

@media (max-width: 768px) {
  .timeline-year {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }

  .timeline-value {
    grid-column: 2;
    text-align: left;
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .timeline-bar-container {
    height: 32px;
  }
}

/* FIRE Definitions */
.fire-definitions {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: 16px;
  border: 2px solid #a7f3d0;
}

.fire-definitions h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
}

.definition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .definition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .definition-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.definition-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.definition-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.definition-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.definition-range {
  font-weight: 600;
  font-size: 0.9rem;
  color: #7a5af8;
  margin-bottom: 0.75rem;
}

.definition-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.lean-fire {
  border-left: 4px solid #22c55e;
}

.regular-fire {
  border-left: 4px solid #3b82f6;
}

.fat-fire {
  border-left: 4px solid #f59e0b;
}

.coast-fire {
  border-left: 4px solid #6366f1;
}

.barista-fire {
  border-left: 4px solid #ec4899;
}

/* Next Steps CTA */
.next-steps-cta.fire {
  margin: 2rem 0 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  text-align: center;
}

.next-steps-cta strong {
  font-weight: 700;
  color: #92400e;
}

.next-steps-cta a {
  color: #7c2d12;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.next-steps-cta a:hover {
  color: #92400e;
}

/* Wealth Timeline Section */
.wealth-timeline-section {
  width: 100%;
  max-width: 990px;
  margin: 0.6rem auto 0.6rem;
  padding: 0;
}

.wealth-timeline-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  border: 1px solid #e5e7eb;
  width: 100%;
}

/* Methodology Section */
.methodology-wrapper {
  max-width: 1100px;
  margin: 0.03rem auto 2rem;
  padding: 0 1.5rem;
}

.methodology-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.methodology-banner {
  background: linear-gradient(135deg, #7a5af8, #9b6bff);
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 14px 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.methodology-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: white;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  transition: background 0.3s ease;
}

.methodology-toggle:hover {
  background: #f9fafb;
}

.methodology-toggle .icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.methodology-toggle.expanded .icon {
  transform: rotate(180deg);
}

.methodology-content {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.methodology-content.expanded {
  max-height: 5000px;
  padding: 1.5rem 2rem 2rem;
}

.methodology-content h3 {
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
  font-size: 1.25rem;
}

.methodology-content h3:first-child {
  margin-top: 0;
}

.methodology-content p {
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 1rem;
}

.methodology-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.methodology-content li {
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Scroll Indicators */
.scroll-indicator,
.methodology-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-indicator.visible,
.methodology-scroll-indicator.visible {
  opacity: 1;
}

.scroll-arrow,
.methodology-scroll-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid #7a5af8;
  animation: bounce 2s infinite;
}

.scroll-text,
.methodology-scroll-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7a5af8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (min-width: 900px) {
  .scroll-indicator,
  .methodology-scroll-indicator {
    display: none;
  }
}

/* SEO Content */
.seo-content {
  line-height: 1.8;
}

.seo-content h2 {
  font-size: 2rem;
  color: #1f2937;
  margin: 2.5rem 0 1rem;
}

.seo-content h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin: 2rem 0 1rem;
}

.seo-content h4 {
  font-size: 1.25rem;
  color: #374151;
  margin: 1.5rem 0 0.75rem;
}

.seo-content p {
  margin-bottom: 1.25rem;
  color: #4b5563;
}

.seo-content ul,
.seo-content ol {
  margin: 1rem 0 1.5rem 2rem;
  color: #4b5563;
}

.seo-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.faq-item {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #7a5af8;
  box-shadow: 0 4px 15px rgba(122, 90, 248, 0.1);
}

.faq-item summary {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: #7a5af8;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 1rem 0 0;
  line-height: 1.7;
  color: #6b7280;
}

/* Related Block */
.related-block {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 16px;
}

.related-block h2 {
  text-align: center;
  font-size: 1.75rem;
  color: #1f2937;
  margin-bottom: 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  width: 24px;
  height: 24px;
  color: #7a5af8;
}

.related-card p {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f2937;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  flex-shrink: 0;
  color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  main.container {
    padding: 1rem 0.75rem;
    margin: 1rem auto;
  }

  .fire-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0 0.75rem;
  }

  .calculator-card,
  #result {
    padding: 1.5rem;
    border-radius: 18px;
  }

  #summary {
    padding: 1.5rem;
  }

  .wealth-timeline-section {
    padding: 0 0.75rem;
  }

  .wealth-timeline-card {
    padding: 1.5rem;
  }

  .timeline-year {
    grid-template-columns: 80px 1fr 120px;
    gap: 1rem;
    padding: 0.85rem;
  }

  .timeline-year-num {
    font-size: 1rem;
  }

  .timeline-value {
    font-size: 0.9rem;
  }

  .methodology-wrapper {
    padding: 0 0.75rem;
  }

  .methodology-toggle {
    padding: 1.25rem 1.5rem;
  }

  .methodology-content {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  main.container {
    padding: 0.75rem 0.5rem;
    gap: 1.5rem;
  }

  .fire-layout {
    padding: 0 0.5rem;
    gap: 1.25rem;
  }

  .calculator-card {
    position: static;
    padding: 1.25rem;
  }

  #result {
    padding: 0;
  }

  .result-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .result-header-title {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
  }

  #summary {
    padding: 1.25rem;
  }

  .metrics-overview {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .metric-large {
    padding: 1rem 1.25rem;
  }

  .metric-icon {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.75rem;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .fire-comparison-table {
    font-size: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .fire-comparison-table table {
    min-width: 100%;
  }

  .fire-comparison-table th,
  .fire-comparison-table td {
    padding: 0.65rem 0.4rem;
    font-size: 0.8rem;
  }

  .fire-type-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .result-header .share-container {
    width: auto;
  }

  .share-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
  }

  .share-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }

  .next-steps-cta.fire {
    padding: 1.25rem;
    font-size: 0.9rem;
  }

  .wealth-timeline-section {
    padding: 0 0.5rem;
    margin: 2rem auto;
  }

  .wealth-timeline-card {
    padding: 1.25rem;
  }

  .wealth-timeline-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 1.25rem !important;
  }

  .timeline-year {
    grid-template-columns: 65px 1fr 110px;
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }

  .timeline-label {
    gap: 0.15rem;
  }

  .timeline-year-num {
    font-size: 0.9rem;
  }

  .timeline-age {
    font-size: 0.75rem;
  }

  .timeline-value {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .timeline-bar-percentage {
    font-size: 0.65rem;
    left: 0.5rem;
  }

  .methodology-wrapper {
    padding: 0 0.5rem;
  }

  .methodology-banner {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .methodology-toggle {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .methodology-content {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }

  .methodology-content h3 {
    font-size: 1rem;
  }

  .methodology-content p,
  .methodology-content li {
    font-size: 0.9rem;
  }

  .definition-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.85rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
  }

  .inline-help {
    font-size: 0.75rem;
  }

  #calcBtn {
    padding: 0.9rem;
    font-size: 1rem;
    margin-top: 1rem;
  }
}
