.gxm-lock {
  overflow: hidden;
}

.gxm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .28s ease;
}

.gxm-backdrop[hidden] {
  display: none;
}

.gxm-backdrop.gxm-visible {
  opacity: 1;
}

.gxm-modal {
  position: relative;
  display: flex;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
  background: #fff;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, .42), 0 0 0 1px rgba(15, 23, 42, .04);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1);
}

.gxm-backdrop.gxm-visible .gxm-modal {
  opacity: 1;
  transform: scale(1);
}

.gxm-panel {
  position: relative;
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 26px;
  overflow: hidden;
  text-align: center;
  background-color: var(--gxm-panel, #1a2a4a);
  background-position: center;
  background-size: cover;
}

.gxm-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gxm-logo {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
}

.gxm-tagline {
  max-width: 180px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: .02em;
}

.gxm-rule {
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--gxm-accent, #f0a500);
}

.gxm-body {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 38px 38px 30px;
  background: #fff;
}

.gxm-title {
  margin: 0;
  color: var(--gxm-panel, #1a2a4a);
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
}

.gxm-subtitle {
  margin: 0;
  color: #5b6470;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
}

.gxm-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gxm-benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.gxm-benefit-icon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gxm-panel, #1a2a4a);
  border-radius: 11px;
  background: rgba(26, 42, 74, .07);
}

.gxm-benefit-icon svg,
.gxm-close svg,
.gxm-cta svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gxm-benefit-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gxm-benefit-copy strong {
  color: var(--gxm-panel, #1a2a4a);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}

.gxm-benefit-copy span {
  color: #6b7280;
  font-size: 12.5px;
  line-height: 1.4;
}

.gxm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.gxm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  color: var(--gxm-panel, #1a2a4a);
  background: var(--gxm-accent, #f0a500);
  border-radius: 9px;
  box-shadow: 0 6px 18px -6px rgba(240, 165, 0, .7);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.gxm-cta:hover,
.gxm-cta:focus {
  color: var(--gxm-panel, #1a2a4a);
  text-decoration: none;
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(.99);
  box-shadow: 0 9px 22px -6px rgba(240, 165, 0, .8);
}

.gxm-cta svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}

.gxm-secondary {
  align-self: center;
  padding: 7px;
  color: #6b7280;
  background: transparent;
  border: 0;
  font: 500 13.5px/1.25 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
}

.gxm-secondary:hover,
.gxm-secondary:focus {
  color: var(--gxm-panel, #1a2a4a);
  text-decoration: underline;
}

.gxm-login {
  margin: -2px 0 0;
  color: #98a1ad;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.gxm-login a {
  color: var(--gxm-panel, #1a2a4a);
  font-weight: 600;
  text-decoration: none;
}

.gxm-login a:hover,
.gxm-login a:focus {
  text-decoration: underline;
}

.gxm-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #64748b;
  background: rgba(15, 23, 42, .06);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.gxm-close:hover,
.gxm-close:focus {
  color: var(--gxm-panel, #1a2a4a);
  background: rgba(15, 23, 42, .12);
}

.gxm-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

@media (max-width: 639px) {
  .gxm-backdrop {
    align-items: center;
    padding: 14px;
  }

  .gxm-modal {
    flex-direction: column;
    width: min(380px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
  }

  .gxm-panel {
    flex: 0 0 auto;
    width: 100%;
    min-height: 118px;
    padding: 0 26px;
    background-image: none !important;
  }

  .gxm-panel-inner {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 16px;
  }

  .gxm-logo {
    width: 120px;
  }

  .gxm-tagline {
    max-width: 120px;
    font-size: 12px;
    text-align: left;
  }

  .gxm-rule {
    display: none;
  }

  .gxm-body {
    padding: 26px 24px 24px;
    gap: 16px;
  }

  .gxm-title {
    font-size: 21px;
  }

  .gxm-subtitle {
    font-size: 13.5px;
  }

  .gxm-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }

  .gxm-benefit {
    flex-direction: column;
    gap: 8px;
  }

  .gxm-benefit-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .gxm-benefit-copy strong {
    font-size: 13.5px;
  }

  .gxm-benefit-copy span {
    font-size: 11.5px;
  }

  .gxm-close {
    color: #fff;
    background: rgba(255, 255, 255, .18);
  }

  .gxm-close:hover,
  .gxm-close:focus {
    color: #fff;
    background: rgba(255, 255, 255, .32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gxm-backdrop,
  .gxm-modal,
  .gxm-cta {
    transition: none;
  }

  .gxm-modal,
  .gxm-backdrop.gxm-visible .gxm-modal {
    transform: none;
  }
}
