:root {
  --fm-emerald: #22c55e;
  --fm-emerald-soft: #34d399;
  --fm-graphite: #111827;
  --fm-graphite-hover: #1f2937;
  --fm-soft: #f3f4f6;
  --fm-line: #e5e7eb;
  --fm-muted: #6b7280;
}

body {
  background: #fff;
}

.fm-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.fm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fm-graphite);
  font-size: 25px;
  line-height: 1;
}

.fm-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--fm-graphite);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.fm-logo-dot {
  color: var(--fm-emerald);
}

.fm-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  transition: color .15s ease, background-color .15s ease;
}

.fm-nav-link:hover {
  color: var(--fm-graphite);
  background: var(--fm-soft);
}

.fm-nav-link.is-active {
  color: #047857;
  background: #ecfdf5;
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}

.fm-btn:active {
  transform: scale(.985);
}

.fm-btn-dark {
  background: var(--fm-graphite);
  color: #fff;
  box-shadow: 0 8px 22px -14px rgba(17, 24, 39, .7);
}

.fm-btn-dark:hover {
  background: var(--fm-graphite-hover);
  color: #fff;
}

.fm-btn-light {
  background: var(--fm-soft);
  color: var(--fm-graphite);
  border: 1px solid var(--fm-line);
}

.fm-btn-light:hover {
  background: #e5e7eb;
  color: var(--fm-graphite);
}

.fm-btn-white {
  background: #fff;
  color: var(--fm-graphite);
}

.fm-btn-white:hover {
  background: #f9fafb;
  color: var(--fm-graphite);
}

.fm-card {
  background: #fff;
  border: 1px solid var(--fm-line);
  border-radius: 24px;
  box-shadow: 0 2px 6px rgba(17, 24, 39, .03), 0 24px 48px -32px rgba(17, 24, 39, .18);
}

.fm-card-soft {
  background: var(--fm-soft);
  border: 1px solid #eceef2;
  border-radius: 20px;
}

.fm-promo {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 34px;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #34d399 100%);
  box-shadow: 0 24px 48px -28px rgba(34, 197, 94, .65);
}

.fm-promo::before,
.fm-promo::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  pointer-events: none;
}

.fm-promo::before {
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
}

.fm-promo::after {
  width: 150px;
  height: 150px;
  right: 40px;
  bottom: -85px;
  background: rgba(255, 255, 255, .1);
}

.fm-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  backdrop-filter: blur(6px);
}

.fm-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--fm-soft);
  border: 1px solid #eceef2;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.fm-pill-group::-webkit-scrollbar {
  display: none;
}

.fm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.fm-pill:hover {
  color: var(--fm-graphite);
  background: rgba(255, 255, 255, .7);
}

.fm-pill.is-active {
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(34, 197, 94, .8);
}

.fm-pill.is-active:hover {
  color: #fff;
}

.fm-mobile-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #eceef2;
  overflow-x: auto;
  scrollbar-width: none;
}

.fm-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.fm-mobile-tabs .fm-pill {
  height: 30px;
  padding: 0 14px;
  flex: 0 0 auto;
}

.fm-mobile-tabs .fm-pill.is-danger {
  color: #dc2626;
}

.fm-mobile-tabs .fm-pill.is-danger:hover {
  color: #b91c1c;
  background: #fef2f2;
}

.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.fm-badge-zero {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.fm-badge-approve {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.fm-badge-neutral {
  background: var(--fm-soft);
  color: #4b5563;
  border: 1px solid var(--fm-line);
}

.fm-capsule {
  border: 1px solid var(--fm-line);
  border-radius: 16px;
  background: var(--fm-soft);
  overflow: hidden;
}

.fm-capsule-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px 7px;
}

.fm-capsule-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4b5563;
}

.fm-capsule-value {
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--fm-graphite);
  font-variant-numeric: tabular-nums;
}

.fm-capsule-bounds {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 16px 11px;
  font-size: 10px;
  font-weight: 500;
  color: #9ca3af;
}

input[type="range"].fm-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: calc(100% - 32px);
  height: 6px;
  margin: 0 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e var(--fill, 50%), #e5e7eb var(--fill, 50%));
  outline: none;
  cursor: pointer;
}

input[type="range"].fm-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--fm-graphite);
  box-shadow: 0 2px 8px rgba(17, 24, 39, .2);
  cursor: pointer;
}

input[type="range"].fm-range::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--fm-graphite);
  box-shadow: 0 2px 8px rgba(17, 24, 39, .2);
  cursor: pointer;
}

.fm-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--fm-line);
  border-radius: 14px;
  background: #fff;
}

.fm-return-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.fm-rate {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, #22c55e, #34d399);
  color: #fff;
}

.fm-rate.is-rate {
  background: var(--fm-soft);
  color: #4b5563;
  border: 1px solid var(--fm-line);
}

.fm-return-amount {
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--fm-graphite);
  font-variant-numeric: tabular-nums;
}

.fm-offer {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fm-offer:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .05), 0 32px 60px -40px rgba(17, 24, 39, .25);
}

.fm-footer {
  margin-top: 64px;
  border-radius: 28px 28px 0 0;
  background: var(--fm-graphite);
  color: #d1d5db;
}

.fm-footer a {
  color: #d1d5db;
}

.fm-footer a:hover {
  color: #fff;
}

.fm-footer-logo {
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fm-side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}

.fm-side-link:hover {
  background: var(--fm-soft);
  color: var(--fm-graphite);
}

.fm-side-link.is-active {
  background: #ecfdf5;
  color: #047857;
}

.fm-status-card {
  background: linear-gradient(135deg, #22c55e 0%, #34d399 100%);
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 24px 48px -28px rgba(34, 197, 94, .65);
}

.fm-status-inner {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.fm-status-inner .fm-capsule-top {
  padding: 7px 12px 3px;
}

.fm-status-inner .fm-capsule-value {
  font-size: 19px;
}

.fm-status-inner .fm-capsule-bounds {
  padding: 3px 12px 6px;
}

.fm-status-inner input[type="range"].fm-range {
  width: calc(100% - 24px);
  height: 5px;
  margin: 0 12px;
}

@media (max-width: 767px) {
  .fm-promo {
    padding: 26px 22px;
  }

  .fm-capsule-value {
    font-size: 22px;
  }

  .fm-footer {
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 639px) {
  .fm-status-inner .fm-capsule-top {
    gap: 6px;
    padding: 5px 9px 1px;
  }

  .fm-status-inner .fm-capsule-value {
    font-size: 16px;
  }

  .fm-status-inner .fm-capsule-bounds {
    padding: 1px 9px 4px;
    font-size: 8px;
  }

  .fm-status-inner input[type="range"].fm-range {
    width: calc(100% - 18px);
    height: 4px;
    margin: 0 9px;
  }
}
