html.flc-router-open,
html.flc-router-open body {
  overflow: hidden;
}

.flc-router-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  isolation: isolate;
}

.flc-router-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.flc-router-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(6px);
}

.flc-router-modal__dialog {
  position: relative;
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
  transform: translateY(20px) scale(.98);
  transition: transform .28s ease;
}

.flc-router-modal.is-visible .flc-router-modal__dialog {
  transform: translateY(0) scale(1);
}

.flc-router-modal__inner {
  padding: 32px;
}

.flc-router-modal__close {
  all: unset;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, .05);
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.flc-router-modal__eyebrow {
  margin-bottom: 10px;
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.flc-router-modal__title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  color: #111827;
}

.flc-router-modal__text {
  margin: 0 0 22px;
  color: #374151;
  font-size: 16px;
  line-height: 1.6;
}

.flc-router-modal__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.flc-router-modal__btn {
  all: unset;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(17, 24, 39, .08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.flc-router-modal__btn:hover,
.flc-router-modal__btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, .55);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
}

.flc-router-modal__btn-label {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.flc-router-modal__btn-desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.flc-router-trigger {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 767px) {
  .flc-router-modal {
    align-items: flex-end;
  }

  .flc-router-modal__dialog {
    width: calc(100vw - 16px);
    border-radius: 22px 22px 0 0;
    max-height: min(88vh, 780px);
  }

  .flc-router-modal__inner {
    padding: 24px 18px 18px;
  }

  .flc-router-modal__buttons {
    grid-template-columns: 1fr;
  }

  .flc-router-modal__title {
    font-size: 24px;
  }

  .flc-router-modal__text {
    font-size: 15px;
  }
}
