/* assets/mfr.css */

.mfr-root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #03212e;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;
}

.mfr-app {
  max-width: 1400px;
  min-width: 320px;
  width: 100%;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: #ffffff;
  border-radius: 20px;
  border: 2px solid #083141;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

@media (max-width: 1400px) {
  .mfr-app {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

.mfr-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: visible;
}

/* Intro */

.mfr-title {
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #03212e;
}

.mfr-lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #4b5760;
  line-height: 1.6;
}

.mfr-inst {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #f0f7fa;
  border: 2px dashed #59747c;
  font-size: 0.88rem;
  color: #083141;
}

/* Examples */

.mfr-examples {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border-radius: 12px;
  border: 2px solid #dde7ea;
  background: #fbfeff;
}

.mfr-examples-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #083141;
}

.mfr-examples-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #5b6a72;
}

.mfr-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

.mfr-example-btn {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 2px solid #dde7ea;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.mfr-example-btn:hover {
  border-color: #083141;
  background: #f0f7fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.mfr-example-btn--selected {
  border-color: #083141;
  background: #eff6ff;
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.15);
}

.mfr-example-btn--selected:hover {
  background: #dbeafe;
}

.mfr-example-selected {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #083141;
}

.mfr-example-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #083141;
  margin-bottom: 0.25rem;
}

.mfr-example-desc {
  font-size: 0.82rem;
  color: #5b6a72;
  line-height: 1.4;
}

/* Steps */

.mfr-step {
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 16px;
  border: 3px solid #083141;
  background: linear-gradient(135deg, #fbfeff 0%, #f0f7fa 100%);
  box-shadow: 0 6px 24px rgba(8, 49, 65, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.mfr-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #083141 0%, #59747c 50%, #083141 100%);
  border-radius: 16px 16px 0 0;
}

.mfr-step:hover {
  border-color: #03212e;
  box-shadow: 0 8px 30px rgba(8, 49, 65, 0.2);
  transform: translateY(-3px);
}

.mfr-step:focus-within {
  border-color: #03212e;
  box-shadow: 0 8px 30px rgba(8, 49, 65, 0.25);
  outline: 2px solid rgba(8, 49, 65, 0.3);
  outline-offset: 2px;
}

.mfr-step-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #03212e;
  line-height: 1.2;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #083141;
}

.mfr-step-desc {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #083141;
  line-height: 1.7;
  font-weight: 600;
}

.mfr-step > *:last-child {
  margin-bottom: 0;
}

/* Grid */

.mfr-grid {
  display: grid;
  gap: 1.25rem 1.5rem;
}

.mfr-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mfr-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .mfr-grid-2,
  .mfr-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fields & inputs */

.mfr-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mfr-field:last-child {
  margin-bottom: 0;
}

.mfr-label {
  font-size: 0.9rem;
  color: #083141;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mfr-field-help {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #59747c;
  line-height: 1.5;
  font-style: italic;
}

.mfr-input-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 10px;
  border: 3px solid #083141;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(8, 49, 65, 0.1);
}

.mfr-input-wrap:hover {
  border-color: #03212e;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.15);
}

.mfr-input-wrap:focus-within {
  border-color: #03212e;
  box-shadow: 0 4px 16px rgba(8, 49, 65, 0.2);
  transform: translateY(-1px);
}

.mfr-input-prefix,
.mfr-input-suffix {
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: #083141;
  background: linear-gradient(135deg, #f0f7fa 0%, #e1eaed 100%);
  border-right: 3px solid #083141;
  font-weight: 700;
}

.mfr-input-suffix {
  border-right: 0;
  border-left: 2px solid #dde7ea;
}

.mfr-input,
.mfr-input-wrap select {
  flex: 1 1 auto;
  border: none;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: #03212e;
  background: #ffffff;
  font-weight: 500;
  width: 100%;
}

.mfr-input-wrap select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23083141' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.mfr-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.mfr-input:focus {
  outline: none;
  background: #ffffff;
}

/* Info / card */

.mfr-info {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 2px dashed #59747c;
  background: #f0f7fa;
  font-size: 0.88rem;
  color: #083141;
}

.mfr-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #dde7ea;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mfr-card--emphasis {
  border-color: #083141;
  background: linear-gradient(135deg, #fbfeff 0%, #f0f7fa 100%);
}

.mfr-step--results .mfr-card--emphasis {
  border-color: #083141;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-width: 2px;
}

.mfr-step--results .mfr-card--emphasis .mfr-card-title {
  color: #03212e;
}

.mfr-step--results .mfr-card--emphasis .mfr-step-desc {
  color: #083141;
}

/* Spending comparison */

.mfr-spending-comparison {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mfr-spending-item {
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #dde7ea;
  background: #ffffff;
}

.mfr-spending-item--highlight {
  border-color: #083141;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-width: 3px;
}

.mfr-spending-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #083141;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mfr-spending-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #03212e;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.mfr-spending-breakdown {
  font-size: 0.9rem;
  color: #59747c;
  font-weight: 600;
}

.mfr-card-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #083141;
}

.mfr-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: #4b5760;
  line-height: 1.6;
}

.mfr-list li {
  margin-bottom: 0.35rem;
}

/* Results */

.mfr-step--results {
  background: #ffffff;
  border-color: #083141;
  border-width: 4px;
  box-shadow: 0 12px 40px rgba(8, 49, 65, 0.2), 0 0 0 1px rgba(8, 49, 65, 0.1);
  padding: 2rem;
  margin-top: 2rem;
  position: relative;
}

.mfr-step--results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #083141 0%, #59747c 50%, #083141 100%);
  border-radius: 16px 16px 0 0;
}

.mfr-step--results:hover {
  box-shadow: 0 16px 50px rgba(8, 49, 65, 0.25), 0 0 0 1px rgba(8, 49, 65, 0.15);
  transform: translateY(-3px);
}

.mfr-step--results .mfr-step-title {
  color: #03212e;
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #083141;
}

.mfr-step--results .mfr-step-desc {
  color: #083141;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.7;
}

.mfr-results-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #dde7ea;
}

/* Countdown Timer */

.mfr-countdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.mfr-countdown {
  padding: 2rem;
  border-radius: 16px;
  border: 3px solid #083141;
  background: linear-gradient(135deg, #ffffff 0%, #fbfeff 100%);
  box-shadow: 0 8px 24px rgba(8, 49, 65, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mfr-countdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: currentColor;
}

.mfr-countdown--scenario-a {
  border-left: 6px solid #3b82f6;
  color: #3b82f6;
}

.mfr-countdown--scenario-b {
  border-left: 6px solid #8b5cf6;
  color: #8b5cf6;
}

.mfr-countdown-header {
  margin-bottom: 1.5rem;
}

.mfr-countdown-title {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: #03212e;
  letter-spacing: -0.02em;
}

.mfr-countdown-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #59747c;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mfr-countdown-display {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7fa 0%, #e1eaed 100%);
  border-radius: 14px;
  border: 2px solid #083141;
}

.mfr-countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mfr-countdown-value {
  font-size: 3.5rem;
  font-weight: 900;
  color: #03212e;
  line-height: 1;
  letter-spacing: -0.03em;
}

.mfr-countdown-label {
  font-size: 0.85rem;
  color: #59747c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mfr-countdown-age {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #083141;
}

.mfr-countdown-savings {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e6f5ea 0%, #d1fae5 100%);
  border-radius: 10px;
  border: 2px solid #22c55e;
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
}

/* Progress Bars */

.mfr-progress-section {
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fbfeff 0%, #f0f7fa 100%);
  border-radius: 16px;
  border: 3px solid #083141;
}

.mfr-progress-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #03212e;
  letter-spacing: -0.02em;
}

.mfr-progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mfr-progress-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mfr-progress-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #083141;
  margin-bottom: 0.5rem;
}

.mfr-progress-bar {
  width: 100%;
  height: 40px;
  background: #e1eaed;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid #083141;
  position: relative;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mfr-progress-fill {
  height: 100%;
  border-radius: 17px;
  transition: width 0.8s ease;
  position: relative;
  overflow: hidden;
}

.mfr-progress-fill--a {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.mfr-progress-fill--b {
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.mfr-progress-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #59747c;
  margin-top: 0.25rem;
}

/* Explanation */

.mfr-explanation {
  margin-top: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  border: 3px solid #3b82f6;
}

.mfr-explanation-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #03212e;
  letter-spacing: -0.02em;
}

/* Scenario Headers */

.mfr-scenario-headers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7fa 0%, #e1eaed 100%);
  border-radius: 16px;
  border: 2px solid #083141;
}

.mfr-scenario-header {
  padding: 1.5rem 2rem;
  border-radius: 14px;
  border: 3px solid #dde7ea;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mfr-scenario-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: currentColor;
}

.mfr-scenario-header:hover {
  box-shadow: 0 8px 24px rgba(8, 49, 65, 0.2);
  transform: translateY(-3px);
  border-color: currentColor;
}

.mfr-scenario-header--a {
  border-left: 6px solid #3b82f6;
  color: #3b82f6;
}

.mfr-scenario-header--b {
  border-left: 6px solid #8b5cf6;
  color: #8b5cf6;
}

.mfr-scenario-title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #03212e;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.mfr-scenario-desc {
  margin: 0;
  font-size: 0.95rem;
  color: #083141;
  font-weight: 600;
  line-height: 1.5;
}

/* Metrics */

.mfr-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fbfeff 0%, #f0f7fa 100%);
  border-radius: 20px;
  border: 3px solid #083141;
}

.mfr-metric-card {
  border: 3px solid #083141;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(8, 49, 65, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mfr-metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #083141 0%, #59747c 100%);
}

.mfr-metric-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(8, 49, 65, 0.25);
  border-color: #03212e;
}

.mfr-metric-label {
  font-size: 0.75rem;
  color: #59747c;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mfr-metric-value {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #03212e;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.mfr-metric-diff {
  font-size: 0.85rem;
  color: #22c55e;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Age strip */

.mfr-age-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f7fa 0%, #e1eaed 100%);
  border-radius: 16px;
  border: 2px solid #083141;
}

.mfr-age-strip__item {
  flex: 1 1 160px;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #ffffff;
  border: 3px solid #083141;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.12);
  position: relative;
  overflow: hidden;
}

.mfr-age-strip__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: currentColor;
}

.mfr-age-strip__item:hover {
  background: #fbfeff;
  box-shadow: 0 8px 24px rgba(8, 49, 65, 0.2);
  transform: translateY(-3px) scale(1.02);
}

.mfr-age-strip__item--scenario-a {
  border-left: 5px solid #3b82f6;
  color: #3b82f6;
}

.mfr-age-strip__item--scenario-b {
  border-left: 5px solid #8b5cf6;
  color: #8b5cf6;
}

.mfr-age-strip__label {
  font-size: 0.75rem;
  color: #59747c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mfr-age-strip__value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #03212e;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Badges */

.mfr-badge {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  font-size: 0.95rem;
  background: #ffffff;
  border: 3px solid #083141;
  color: #03212e;
  line-height: 1.7;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(8, 49, 65, 0.12);
}

.mfr-badge--good {
  border-color: #22c55e;
  background: linear-gradient(135deg, #e6f5ea 0%, #d1fae5 100%);
  color: #166534;
  border-width: 3px;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}

.mfr-badge--warn {
  border-color: #f97316;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border-width: 3px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.mfr-badge--info {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-width: 3px;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

/* Tables */

.mfr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #083141;
  box-shadow: 0 6px 20px rgba(8, 49, 65, 0.15);
}

.mfr-table th,
.mfr-table td {
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #dde7ea;
}

.mfr-table th {
  text-align: left;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #083141 0%, #03212e 100%);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  padding: 1.25rem 1.5rem;
}

.mfr-table td {
  color: #03212e;
  font-weight: 600;
  background: #ffffff;
}

.mfr-table tbody tr:nth-child(even) td {
  background: #fbfeff;
}

.mfr-table tbody tr:hover td {
  background: #f0f7fa;
  transform: scale(1.01);
}

.mfr-table tbody tr:last-child td {
  border-bottom: none;
}

/* NEW: wrapper + yearly */

.mfr-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 0;
}

.mfr-yearly {
  margin-top: 2.5rem;
}

.mfr-yearly-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #03212e;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dde7ea;
}

/* Buttons */

.mfr-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mfr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #083141;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: #ffffff;
  color: #083141;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(8, 49, 65, 0.15);
}

.mfr-btn:hover {
  background: #083141;
  color: #ffffff;
  border-color: #083141;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(8, 49, 65, 0.25);
}

.mfr-btn--primary {
  border-color: #083141;
  background: #083141;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.mfr-btn--primary:hover {
  background: #03212e;
  border-color: #03212e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Charts */

.mfr-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #fbfeff 0%, #f0f7fa 100%);
  border-radius: 20px;
  border: 3px solid #083141;
}

.mfr-chart-block {
  border: 3px solid #083141;
  border-radius: 16px;
  padding: 2rem;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(8, 49, 65, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

.mfr-chart-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #083141 0%, #59747c 100%);
  border-radius: 16px 16px 0 0;
}

.mfr-chart-block:hover {
  border-color: #03212e;
  box-shadow: 0 12px 36px rgba(8, 49, 65, 0.2);
  transform: translateY(-4px);
}

.mfr-chart-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #03212e;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #dde7ea;
}

.mfr-chart-subtitle {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: #083141;
  font-weight: 600;
  line-height: 1.6;
}

.mfr-chart-canvas {
  width: 100%;
  height: 280px;
  display: block;
  margin: 0.5rem 0;
}

.mfr-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.mfr-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #083141;
  font-weight: 500;
}

.mfr-legend-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive */

@media (max-width: 768px) {
  .mfr-app {
    padding: 1.5rem;
  }

  .mfr-countdowns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mfr-countdown {
    padding: 1.5rem;
  }

  .mfr-countdown-value {
    font-size: 2.5rem;
  }

  .mfr-countdown-display {
    gap: 1rem;
    padding: 1rem;
  }

  .mfr-progress-section {
    padding: 1.5rem;
  }

  .mfr-charts {
    grid-template-columns: 1fr;
  }

  .mfr-chart-canvas {
    height: 220px;
  }

  .mfr-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .mfr-examples-grid {
    grid-template-columns: 1fr;
  }

  .mfr-scenario-headers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mfr-metrics {
    grid-template-columns: 1fr;
  }
}

/* Print */

@media print {
  body {
    background: #ffffff !important;
  }

  .mfr-root {
    margin: 0;
    padding: 0;
  }

  .mfr-app {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  .mfr-inst,
  .mfr-actions {
    display: none !important;
  }

  .mfr-step {
    page-break-inside: avoid;
  }

  .mfr-step--results {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .mfr-charts {
    page-break-inside: avoid;
  }

  .mfr-chart-canvas {
    height: 200px;
  }
}
