.gk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gk-modal.is-open {
  display: flex;
}

.gk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px);
}

.gk-modal__panel {
  position: relative;
  width: min(100%, 460px);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background:
    radial-gradient(circle at top left, rgba(246, 168, 0, 0.16), transparent 45%),
    #0b1220;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  color: #e5e7eb;
  padding: 1.15rem;
}

.gk-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.gk-modal__close:hover {
  border-color: #f6a800;
}

.gk-modal__title {
  margin: 0 2.4rem 0.45rem 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.gk-modal__copy {
  margin: 0 0 1rem;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.94rem;
}

.gk-modal__label {
  display: block;
  margin: 0 0 0.4rem;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.88rem;
}

.gk-modal__input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(2, 6, 23, 0.78);
  color: #e5e7eb;
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.gk-modal__input:focus {
  outline: 3px solid rgba(246, 168, 0, 0.78);
  outline-offset: 2px;
}

.gk-modal__actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.gk-modal__submit,
.gk-modal__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.gk-modal__submit {
  flex: 1;
  border: 0;
  background: linear-gradient(135deg, #f6a800, #ffcf61);
  color: #111827;
}

.gk-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.gk-modal__fallback {
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.86);
  color: #e5e7eb;
}

.gk-modal__status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.45;
}

.gk-modal__status[data-state="success"] {
  color: #86efac;
}

.gk-modal__status[data-state="error"] {
  color: #fecaca;
}

body.gk-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .gk-modal {
    align-items: center;
    padding: 0.65rem;
  }

  .gk-modal__panel {
    border-radius: 18px;
    padding: 1rem;
  }

  .gk-modal__actions {
    flex-direction: column;
  }

  .gk-modal__submit,
  .gk-modal__fallback {
    width: 100%;
  }
}
