/* =========================================================
   SHARED MODAL SHELL
========================================================= */

.gf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.gf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 14, 35, 0.42);
  backdrop-filter: blur(4px);
}

.gf-modal-panel {
  position: relative;
  width: calc(100% - 32px);
  max-width: 360px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  z-index: 2;
  text-align: center;
}

.gf-modal-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
}

.gf-modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #6d4aff;
}

.gf-modal-title::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 10px;
  background: #eee;
}

.gf-modal-text {
  margin-top: 12px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #666;
}

.gf-modal-actions {
  display: flex;
  gap: 10px;
}

.gf-modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.gf-modal-btn--primary {
  background: linear-gradient(135deg, #8A5CFF, #7C3AED);
  color: #fff;
}

.gf-modal-btn--secondary {
  background: #f3f3f7;
  color: #333;
}

.gf-modal--message .gf-modal-actions {
  flex-direction: column;
}

.gf-modal--message .gf-modal-btn {
  width: 100%;
}

@media (min-width: 768px) {
  .gf-modal-panel {
    max-width: 380px;
  }
}
