/**
 * FIRE Pension Calculator CSS Style Sheet
 * All classes are fully isolated with the '.fire-' prefix to prevent WordPress theme conflicts.
 * Zero external Tailwind reliance. Built beautifully with Inter & mobile-first responsive mechanics.
 */

:root {
  --fire-primary-blue: #2563eb;
  --fire-primary-blue-light: rgba(37, 99, 235, 0.1);
  --fire-emerald: #10b981;
  --fire-emerald-light: #ecfdf5;
  --fire-emerald-dark: #059669;
  --fire-bg-slate: #f8fafc;
  --fire-border-color: #e2e8f0;
  --fire-text-dark: #0f172a;
  --fire-text-medium: #475569;
  --fire-text-light: #64748b;
  --fire-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fire-calc-wrapper {
  font-family: var(--fire-font-sans);
  color: var(--fire-text-medium);
  background-color: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box;
  max-width: 800px;
  margin: 1.5rem auto;
  line-height: 1.5;
}

.fire-calc-wrapper * {
  box-sizing: border-box;
}

/* Headings and descriptions */
.fire-title-container {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 1.5rem auto;
}

.fire-title-container h1 {
  font-size: 1.75rem !important;
  font-weight: 900 !important;
  color: var(--fire-text-dark) !important;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.fire-title-container h1 span.fire-text-gradient {
  background: linear-gradient(to right, var(--fire-emerald-dark), #047857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--fire-emerald-dark);
}

.fire-subtitle {
  font-size: 0.8125rem !important;
  color: var(--fire-text-light) !important;
  font-weight: 400 !important;
  margin: 0 auto !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Switcher Tabs inside Wrapper */
.fire-tab-bar {
  max-width: 26rem;
  margin: 0 auto 1.5rem auto;
  background-color: rgba(226, 232, 240, 0.6);
  padding: 0.25rem;
  border-radius: 0.75rem;
  display: flex;
  position: relative;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.fire-tab-btn {
  width: 50%;
  text-align: center;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--fire-text-medium);
  outline: none;
  margin: 0 !important;
}

.fire-tab-btn:hover {
  color: var(--fire-text-dark);
}

.fire-tab-btn-active {
  background-color: #ffffff !important;
  color: #064e3b !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.fire-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.fire-col-5 {
  grid-column: span 12 / span 12;
}

.fire-col-7 {
  grid-column: span 12 / span 12;
}

@media (min-width: 768px) {
  .fire-grid {
    gap: 1.5rem;
  }
  .fire-col-5 {
    grid-column: span 12 / span 12;
  }
  .fire-col-7 {
    grid-column: span 12 / span 12;
  }
}

/* Double column stack spacers */
.fire-space-y-4 > * + * {
  margin-top: 1rem;
}

/* Card wrappers */
.fire-inputs-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--fire-border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.fire-card-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  margin-top: 0;
}

/* Inputs element list */
.fire-input-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .fire-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

.fire-input-inner-card {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .fire-input-inner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    padding: 0.25rem 0;
  }
  .fire-input-inner-card .fire-input-field-wrapper {
    width: 100% !important;
  }
}

.fire-input-inner-card-full {
  grid-column: span 1 / span 1;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.375rem !important;
}

.fire-input-inner-card-full .fire-input-label {
  max-width: 100% !important;
}

@media (min-width: 768px) {
  .fire-input-inner-card-full {
    grid-column: span 2 / span 2;
    align-items: flex-start !important;
  }
}

.fire-tag-btn {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  font-family: var(--fire-font-sans);
}

.fire-tag-btn:hover {
  background-color: #e2e8f0;
  color: #334155;
}

.fire-advanced-toggle-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.625rem 1.25rem !important; /* Increased padding to yield a proper 44px+ touch target */
  font-family: var(--fire-font-sans);
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: rgb(34, 123, 201) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s;
  outline: none;
  text-decoration: none !important;
  margin: 0 auto !important;
  min-height: 44px; /* Standard minimum touch target */
}

.fire-advanced-toggle-btn * {
  pointer-events: none !important; /* Forces events directly to button element */
}

.fire-advanced-toggle-btn:hover {
  color: rgb(22, 82, 137) !important;
  background-color: transparent !important;
  text-decoration: none !important;
}

.fire-advanced-toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.fire-tag-btn-active {
  background-color: #e0e7ff;
  border-color: #c7d2fe;
  color: #4f46e5;
  font-weight: 600;
}

.fire-input-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  line-height: 1.4;
  max-width: 100%;
}

.fire-input-field-wrapper {
  position: relative;
  width: 8rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid var(--fire-border-color);
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.fire-input-field-wrapper:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  border-color: var(--fire-emerald);
}

.fire-input-prefix {
  padding-left: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  pointer-events: none;
}

.fire-input-number {
  width: 100%;
  background: transparent !important;
  border: none !important;
  text-align: right !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  color: var(--fire-text-dark) !important;
  padding: 0.375rem 0.375rem 0.375rem 0.25rem !important;
  outline: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
  -moz-appearance: textfield;
}

.fire-input-number::-webkit-outer-spin-button, 
.fire-input-number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fire-input-suffix {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding-right: 0.375rem;
}

.fire-dropdown-trigger {
  padding: 0 0.5rem;
  border-left: 1px solid var(--fire-border-color);
  color: #94a3b8;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-right: none;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 9px;
  outline: none;
  transition: color 0.2s;
}

.fire-dropdown-trigger:hover {
  color: #475569;
}

/* Combobox Custom Dropdowns (Absolute Popover) */
.fire-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 30;
  width: 8rem;
  padding: 0.25rem 0;
  display: none;
}

.fire-dropdown-menu.active {
  display: block;
}

.fire-dropdown-option {
  display: block;
  width: 100%;
  text-align: right;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  transition: background-color 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
}

.fire-dropdown-option:hover {
  background-color: #f8fafc;
}

/* Economy parameters mini grid */
.fire-economic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.fire-economic-col {
  display: flex;
  flex-direction: column;
}

.fire-economic-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.fire-economic-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--fire-border-color);
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.fire-economic-wrapper:focus-within {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
  border-color: var(--fire-emerald);
}

.fire-economic-number {
  width: 100%;
  background: transparent !important;
  border: none !important;
  text-align: right !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: var(--fire-text-dark) !important;
  padding: 0.375rem 0.375rem 0.375rem 0.25rem !important;
  outline: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  min-height: auto !important;
}

.fire-economic-suffix {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  padding-right: 0.5rem;
}

/* Accordion Component */
.fire-accordion-card {
  background-color: #ffffff;
  border: 1px solid var(--fire-border-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.fire-accordion-header {
  width: 100%;
  text-align: left;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  margin: 0 !important;
}

.fire-accordion-header:hover {
  background-color: #f8fafc;
}

.fire-accordion-header-content {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fire-text-dark);
}

.fire-accordion-header-icon-emoji {
  font-size: 1rem;
}

.fire-accordion-header-title {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fire-text-dark);
}

.fire-accordion-chevron {
  color: #94a3b8;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}

.fire-accordion-chevron svg {
  width: 1rem;
  height: 1rem;
}

.fire-accordion-body {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  font-size: 0.75rem;
  color: var(--fire-text-medium);
  line-height: 1.625;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.fire-accordion-body.active {
  display: block;
}

.fire-accordion-body p {
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.625 !important;
}

.fire-accordion-body p:last-child {
  margin-bottom: 0 !important;
}

/* Right Premium Results Hero Card */
.fire-results-hero-card {
  background: linear-gradient(135deg, #f0fdf4 0%, rgba(240, 253, 250, 0.7) 50%, rgba(240, 253, 254, 0.3) 100%);
  color: var(--fire-text-dark);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(209, 250, 229, 0.8);
  position: relative;
  overflow: hidden;
}

.fire-results-hero-card::after {
  content: "";
  position: absolute;
  right: -2.5rem;
  bottom: -2.5rem;
  width: 11rem;
  height: 11rem;
  background-color: rgba(16, 185, 129, 0.05);
  border-radius: 9999px;
  filter: blur(24px);
  pointer-events: none;
}

.fire-results-hero-card.fire-mode-b-bg {
  background: linear-gradient(135deg, #fefaf0 0%, #fef3c7 50%, #fbf3d5 100%) !important;
  border-color: rgba(251, 191, 36, 0.4) !important;
}

.fire-results-hero-card.fire-mode-b-bg::after {
  background-color: rgba(245, 158, 11, 0.05) !important;
}

.fire-results-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fire-results-badge {
  background-color: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 10px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
}

.fire-results-right-label {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fire-results-body {
  margin-bottom: 0.75rem;
}

.fire-results-hero-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fire-text-medium);
  margin-bottom: 0.125rem;
  margin-top: 0;
}

.fire-results-big-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.fire-results-big-value {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(to right, #047857, #0f766e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #047857;
  letter-spacing: -0.025em;
  line-height: 1;
}

.fire-results-big-value-suffix {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--fire-text-light);
}

.fire-results-hero-subtitle {
  font-size: 0.75rem;
  color: var(--fire-text-light);
  line-height: 1.5;
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.fire-results-hero-subtitle span.fire-bold-slate {
  color: var(--fire-text-dark);
  font-weight: 700;
}

.fire-results-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.fire-results-detail-card {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(209, 250, 229, 0.6);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.fire-results-detail-title-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.125rem;
}

.fire-results-detail-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--fire-text-light);
}

.fire-results-detail-value {
  font-size: 1.25rem;
  font-weight: 950;
  color: var(--fire-text-dark);
  display: block;
}

.fire-results-detail-dot-real {
  display: block;
  font-size: 8px;
  color: #059669;
  font-weight: 700;
  margin-top: 0.125rem;
}

.fire-results-detail-dot-nominal {
  display: block;
  font-size: 8px;
  color: #d97706;
  font-weight: 700;
  margin-top: 0.125rem;
}

/* Full Width Chart block below columns on PC */
.fire-chart-card {
  background-color: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--fire-border-color);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  grid-column: span 12 / span 12;
  margin-top: 1rem;
}

.fire-chart-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .fire-chart-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.fire-chart-title {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--fire-text-dark);
  margin: 0;
}

.fire-chart-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 9px;
}

.fire-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--fire-text-light);
}

.fire-chart-legend-color-real {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  background-color: #10b981;
  display: inline-block;
}

.fire-chart-legend-color-nominal {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  background-color: #cbd5e1;
  display: inline-block;
}

.fire-chart-legend-color-pension {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.125rem;
  background-color: #6366f1;
  display: inline-block;
}

.fire-chart-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
}

.fire-chart-footer {
  text-align: center;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Methodology Section */
.fire-methodology-card {
  background-color: #ffffff;
  border: 1px solid var(--fire-border-color);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.fire-methodology-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.fire-methodology-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--fire-emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.125rem;
}

.fire-methodology-main-title {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--fire-text-dark) !important;
  margin: 0 0 0.125rem 0 !important;
}

.fire-methodology-sub-p {
  color: var(--fire-text-light);
  font-size: 0.75rem;
  margin: 0;
}

.fire-methodology-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .fire-methodology-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.fire-methodology-col-left, .fire-methodology-col-right {
  font-size: 0.75rem;
  color: var(--fire-text-medium);
  line-height: 1.625;
}

.fire-methodology-title {
  font-weight: 700;
  color: var(--fire-text-dark);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  margin-top: 0;
}

.fire-methodology-p {
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  margin-top: 0;
  line-height: 1.625;
}

.fire-methodology-latex-box {
  font-weight: 600;
  color: var(--fire-emerald-dark);
  font-size: 10px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: #f0fdf4;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1fae5;
  text-align: center;
}

.fire-methodology-formula-list {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  font-size: 10px;
  color: var(--fire-text-light);
}

.fire-methodology-col-right {
  background-color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--fire-border-color);
}

.fire-methodology-critical-analysis {
  border-top: 1px solid var(--fire-border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.fire-methodology-critical-title {
  font-weight: 700;
  color: #b45309;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
  margin-top: 0;
}

.fire-methodology-critical-p {
  font-size: 10px;
  color: var(--fire-text-medium);
  line-height: 1.4;
  margin: 0;
}

/* Educational Section - Concept FIRE */
.fire-about-section {
  max-width: 56rem;
  margin: 1.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.fire-about-banner {
  background-color: rgba(241, 245, 249, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .fire-about-banner {
    flex-direction: row;
  }
}

.fire-about-banner-emoji-box {
  background-color: #ffffff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid var(--fire-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.fire-about-banner-emoji-box span {
  font-size: 1.5rem;
}

.fire-about-banner-text-wrapper {
  flex-grow: 1;
}

.fire-about-banner-badge {
  font-size: 9px;
  font-weight: 800;
  color: var(--fire-emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.125rem;
}

.fire-about-banner-title {
  font-weight: 700;
  color: var(--fire-text-dark);
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
  margin-top: 0;
}

.fire-about-banner-p {
  color: var(--fire-text-medium);
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.5;
}

/* FAQ Accordions */
.fire-faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fire-faq-main-title {
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: var(--fire-text-dark) !important;
  text-align: center;
  margin-bottom: 1rem;
  margin-top: 0;
}

.fire-faq-card {
  background-color: #ffffff;
  border: 1px solid var(--fire-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.fire-faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  margin: 0 !important;
}

.fire-faq-trigger:hover {
  background-color: #f8fafc;
}

.fire-faq-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .fire-faq-title {
    font-size: 0.8125rem;
  }
}

.fire-faq-content {
  display: none;
  padding: 0 1rem 1rem 1rem;
  font-size: 0.75rem;
  color: var(--fire-text-medium);
  line-height: 1.625;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.fire-faq-content.active {
  display: block;
}

.fire-faq-content p {
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.625 !important;
}

.fire-faq-content p:last-child {
  margin-bottom: 0 !important;
}

.fire-faq-chevron {
  color: #94a3b8;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}

.fire-faq-chevron svg {
  width: 1rem;
  height: 1rem;
}

/* Footer Section */
.fire-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--fire-border-color);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fire-footer-disclaimer {
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.625;
  max-width: 42rem;
  margin: 0 auto;
}

.fire-footer-links {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.fire-footer-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s;
}

.fire-footer-links a:hover {
  color: #1e293b;
}

/* Tooltips */
.fire-tooltip-help {
  display: inline-block;
  position: relative;
  cursor: help;
  margin-left: 0.125rem;
}

.fire-tooltip-help svg {
  width: 0.875rem;
  height: 0.875rem;
  color: #cbd5e1;
  transition: color 0.2s;
  vertical-align: middle;
}

.fire-tooltip-help:hover svg {
  color: #64748b;
}

.fire-tooltip-box {
  pointer-events: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.25rem);
  width: 12rem;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  border-radius: 0.5rem;
  padding: 0.625rem;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 30;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.fire-tooltip-help:hover .fire-tooltip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(-0.5rem);
}

.fire-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #0f172a;
}

/* Toast Alerts */
.fire-toast-alert {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background-color: #0f172a;
  color: #ffffff;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(6rem);
  opacity: 0;
  z-index: 9999;
}

.fire-toast-alert.active {
  transform: translateY(0);
  opacity: 1;
}

.fire-toast-check-icon {
  color: #34d399;
  font-weight: 700;
}

.fire-toast-text {
  font-size: 0.75rem;
  font-weight: 650;
}

/* Helper Utilities */
.fire-calc-wrapper .fire-hidden,
.fire-hidden {
  display: none !important;
}

.fire-active-years {
  font-weight: 800;
  color: var(--fire-text-dark);
}

.fire-active-years-underline {
  border-bottom: 2px dashed var(--fire-emerald);
}

/* Mobile-First Customizations and Responsive Adaptations */
@media (max-width: 767px) {
  .fire-calc-wrapper {
    padding: 0 !important;
    margin: 4px auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  
  .fire-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .fire-tab-bar {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .fire-inputs-card {
    padding: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .fire-input-row {
    padding: 8px !important;
    gap: 0.25rem !important;
    flex-wrap: wrap !important;
    box-sizing: border-box !important;
  }

  .fire-input-inner-card {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.375rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .fire-input-inner-card-full {
    align-items: flex-start !important;
  }

  .fire-input-label {
    max-width: 55% !important;
    font-size: 0.75rem !important;
    word-wrap: break-word !important;
    text-align: left !important;
  }

  .fire-input-field-wrapper {
    width: 7rem !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
  }

  .fire-about-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .fire-economic-grid {
    gap: 0.5rem !important;
  }

  .fire-accordion-header {
    padding: 10px !important;
  }

  .fire-accordion-body {
    padding: 0 10px 10px 10px !important;
    padding-top: 8px !important;
  }

  .fire-results-hero-card {
    padding: 10px !important;
  }

  .fire-results-big-value {
    font-size: 1.75rem !important;
  }

  .fire-results-detail-grid {
    gap: 0.5rem !important;
    padding-top: 8px !important;
    margin-top: 8px !important;
  }

  .fire-results-detail-card {
    padding: 8px !important;
  }

  .fire-results-detail-value {
    font-size: 1.15rem !important;
  }

  .fire-chart-card {
    padding: 10px !important;
  }

  .fire-chart-canvas-wrapper {
    height: 320px !important;
  }

  .fire-methodology-card {
    padding: 10px !important;
    margin-top: 1.5rem !important;
  }

  .fire-methodology-col-right {
    padding: 10px !important;
  }

  .fire-about-banner {
    padding: 10px !important;
    gap: 0.75rem !important;
  }

  .fire-faq-trigger {
    padding: 10px !important;
  }

  .fire-faq-content {
    padding: 0 10px 10px 10px !important;
    padding-top: 8px !important;
  }
}

/* Table of results styles */
.fire-table-card {
  background-color: #ffffff !important;
  border: 1px solid var(--fire-border-color) !important;
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  margin-top: 1.5rem !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  display: block !important;
  visibility: visible !important;
  width: 100% !important;
}

.fire-table-title {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: var(--fire-text-dark) !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  visibility: visible !important;
}

.fire-table-scroll {
  width: 100% !important;
  max-height: 250px !important;
  overflow-y: auto !important;
  overflow-x: auto !important;
  border-radius: 0.5rem !important;
  border: 1px solid var(--fire-border-color) !important;
  display: block !important;
  visibility: visible !important;
  position: relative !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Override and disable overflow on any wrapper element injected by WordPress themes/plugins (e.g. Astra's ast-table-wrap) inside the scroll container */
.fire-table-scroll div:not(.fire-results-table), 
.fire-table-scroll figure, 
.fire-table-scroll .ast-table-wrap, 
.fire-table-scroll [class*="table-wrap"] {
  overflow: visible !important;
  max-width: none !important;
  max-height: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
  display: block !important;
  box-shadow: none !important;
}

.fire-results-table {
  width: 100% !important;
  min-width: 700px !important;
  display: table !important;
  border-collapse: separate !important;
  font-size: 0.8125rem !important;
  text-align: left !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  border-spacing: 0 !important;
  visibility: visible !important;
  table-layout: auto !important;
}

.fire-results-table thead {
  display: table-header-group !important;
  transform: none !important;
  will-change: auto !important;
  perspective: none !important;
  filter: none !important;
}

.fire-results-table tbody {
  display: table-row-group !important;
}

.fire-results-table tr {
  display: table-row !important;
  transform: none !important;
  will-change: auto !important;
  perspective: none !important;
  filter: none !important;
}

.fire-results-table th {
  display: table-cell !important;
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background-color: #f8fafc !important;
  color: var(--fire-text-medium) !important;
  font-weight: 700 !important;
  padding: 0.75rem 0.5rem !important;
  border-bottom: 2px solid var(--fire-border-color) !important;
  font-family: inherit !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  text-align: left !important;
  font-size: 0.75rem !important;
  line-height: 1.25 !important;
  box-shadow: inset 0 -1px 0 var(--fire-border-color) !important;
}

.fire-results-table td {
  display: table-cell !important;
  padding: 0.75rem 0.5rem !important;
  border-bottom: 1px solid var(--fire-border-color) !important;
  color: var(--fire-text-dark) !important;
  font-weight: 500 !important;
  transition: background-color 0.15s ease !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.fire-results-table tbody tr:hover td {
  background-color: #f1f5f9 !important;
}

/* Strict color categories */
.fire-cell-mono {
  font-family: var(--fire-font-sans) !important;
  font-weight: 600 !important;
}

.fire-results-table td.fire-cell-nominal {
  color: #1d4ed8 !important; /* nominal - bold blue */
  background-color: #f0f6ff !important; /* subtle blue tint */
  font-weight: 700 !important;
}

.fire-results-table td.fire-cell-real {
  color: #047857 !important; /* real - bold emerald green */
  background-color: #f0fdf4 !important; /* subtle green tint */
  font-weight: 700 !important;
}

.fire-results-table td.fire-cell-contrib {
  color: var(--fire-text-medium) !important;
}

.fire-results-table td.fire-cell-year {
  color: var(--fire-text-dark) !important;
  font-weight: 700 !important;
}

@media (max-width: 768px) {
  .fire-table-card {
    padding: 10px !important;
  }
  .fire-results-table th {
    padding: 0.4rem 0.35rem !important;
    font-size: 0.65rem !important;
    white-space: normal !important;
  }
  .fire-results-table td {
    padding: 0.4rem 0.35rem !important;
    font-size: 0.7rem !important;
  }
}

/* Capital block card */
.fire-results-capital-card {
  background: #ffffff !important;
  color: var(--fire-text-dark) !important;
  border-radius: 0.75rem !important;
  padding: 1.25rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
}

.fire-results-capital-card .fire-results-badge {
  background-color: #eff6ff !important;
  color: #1e3a8a !important;
  border: 1px solid #bfdbfe !important;
}

.fire-results-capital-card .fire-results-detail-grid {
  border-top: none !important;
}

.fire-results-capital-card .fire-results-detail-card {
  border-color: #e2e8f0 !important;
  background-color: #f8fafc !important;
}

.fire-results-capital-card .fire-results-detail-dot-real {
  color: #059669 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}

.fire-results-capital-card .fire-results-detail-dot-nominal {
  color: #d97706 !important;
  font-size: 10px !important;
  font-weight: 500 !important;
}

/* Doughnut Chart section */
.fire-doughnut-wrapper {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.fire-doughnut-svg-container {
  position: relative !important;
  width: 4rem !important;
  height: 4rem !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fire-doughnut-svg-container svg {
  transform: rotate(-90deg) !important;
  overflow: visible !important;
  width: 4rem !important;
  height: 4rem !important;
}

.fire-doughnut-legend {
  flex: 1 !important;
  min-width: 150px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem !important;
}

.fire-doughnut-legend-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fire-doughnut-legend-span {
  display: flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
}

.fire-doughnut-dot {
  width: 0.5rem !important;
  height: 0.5rem !important;
  border-radius: 9999px !important;
  display: inline-block !important;
}

.fire-doughnut-dot.bg-contrib {
  background-color: #94a3b8 !important;
}

.fire-doughnut-dot.bg-yield {
  background-color: #4ade80 !important;
}

/* New Forecast Summary Box */
.fire-forecast-summary-box {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  padding: 1.25rem 1.375rem !important;
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
  font-family: var(--fire-font-sans);
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  text-align: center !important;
}

.fire-forecast-summary-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  display: block;
}

.fire-forecast-summary-main {
  font-weight: 400 !important;
  margin: 0 0 0.875rem 0 !important;
  color: #334155 !important;
}

.fire-forecast-bold {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.fire-forecast-emerald-bold {
  font-weight: 700 !important;
  color: #059669 !important;
}

.fire-forecast-summary-footnote {
  font-size: 0.7rem !important;
  color: #64748b !important;
  border-top: 1px dashed #e2e8f0 !important;
  padding-top: 0.75rem !important;
  margin: 0.75rem 0 0 0 !important;
  line-height: 1.4 !important;
}

#displayStrategy.fire-input-number {
  padding-left: 0.875rem !important;
  padding-right: 2rem !important;
}

#dropdownStrategy .fire-dropdown-option {
  text-align: left !important;
  padding-left: 0.875rem !important;
}

/* Phase Headers & Uniform Title Sizing */
.fire-phase-heading {
  font-size: 1.1rem !important;
  font-weight: 850 !important;
  color: var(--fire-text-dark) !important;
  margin-top: 2rem !important;
  margin-bottom: 0.35rem !important;
  padding-left: 0.75rem !important;
  border-left: 4px solid #10b981 !important; /* Green for Фаза 1 */
  line-height: 1.25 !important;
  display: block !important;
  font-family: var(--fire-font-sans);
}

.fire-phase-heading.phase-2 {
  border-left-color: #6366f1 !important; /* Indigo for Фаза 2 */
}

.fire-phase-subtext {
  font-size: 0.75rem !important;
  color: #64748b !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  display: block !important;
  font-family: var(--fire-font-sans);
}

.fire-chart-title {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--fire-text-dark) !important;
  margin: 0 !important;
  font-family: var(--fire-font-sans);
}

.fire-table-title {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: var(--fire-text-dark) !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-family: var(--fire-font-sans);
}

.fire-download-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid var(--fire-border-color) !important;
  border-radius: 0.75rem !important;
  font-size: 0.75rem !important;
  font-family: var(--fire-font-sans) !important;
  font-weight: 700 !important;
  color: var(--fire-text-medium) !important;
  background-color: var(--fire-bg-slate) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  margin-top: 1rem !important;
  text-decoration: none !important;
  outline: none !important;
}

.fire-download-btn:hover {
  background-color: #f1f5f9 !important;
  color: var(--fire-text-dark) !important;
}

.fire-download-btn:active {
  transform: scale(0.95) !important;
}

/* Custom scrollbars for WordPress plugin tables to make them clearly visible on both mobile and desktop */
.fire-table-scroll::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
  display: block !important;
}

.fire-table-scroll::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.fire-table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border-radius: 4px !important;
  border: 1px solid #f1f5f9 !important;
}

.fire-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8 !important;
}

@media (max-width: 768px) {
  .fire-table-scroll {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 #f1f5f9 !important;
  }
}

/* Telegram promo card */
.fire-telegram-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
  border: 1px solid var(--fire-border-color) !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
  transition: all 0.3s ease !important;
}

@media (min-width: 768px) {
  .fire-telegram-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 2rem !important;
  }
}

.fire-telegram-card:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  border-color: #cbd5e1 !important;
}

.fire-telegram-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 1rem !important;
  width: 100% !important;
}

@media (min-width: 576px) {
  .fire-telegram-left {
    flex-direction: row !important;
    text-align: left !important;
    gap: 1.5rem !important;
  }
}

.fire-telegram-icon-wrapper {
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 50% !important;
  background-color: #e0f2fe !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

.fire-telegram-icon {
  width: 1.75rem !important;
  height: 1.75rem !important;
  color: #0284c7 !important;
  transform: rotate(-12deg) translate(-1px, 1px) !important;
}

.fire-telegram-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375rem !important;
  max-w: 600px !important;
  text-align: center !important;
}

@media (min-width: 576px) {
  .fire-telegram-content {
    text-align: left !important;
  }
}

.fire-telegram-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

@media (min-width: 576px) {
  .fire-telegram-header {
    justify-content: flex-start !important;
  }
}

.fire-telegram-title {
  font-family: var(--fire-font-sans) !important;
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

.fire-telegram-badge {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  font-size: 0.625rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.125rem 0.5rem !important;
  border-radius: 9999px !important;
  line-height: 1.5 !important;
}

.fire-telegram-subtitle {
  font-family: var(--fire-font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 !important;
}

.fire-telegram-desc {
  font-family: var(--fire-font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.fire-telegram-btn {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  font-family: var(--fire-font-sans) !important;
  font-size: 0.875rem !important;
  font-weight: 750 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.75rem !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2), 0 2px 4px -2px rgba(2, 132, 199, 0.2) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .fire-telegram-btn {
    width: auto !important;
  }
}

.fire-telegram-btn:hover {
  background-color: #0369a1 !important;
  box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.3), 0 4px 6px -4px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.fire-telegram-btn:active {
  transform: translateY(1px) !important;
}
