/* Overlay e modal — pure CSS, no JS required */
.gdm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2147483647;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: gdmFadeIn 0.2s ease-out;
}

@keyframes gdmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gdm-backdrop-close {
  position: absolute;
  inset: 0;
  z-index: 0;
  text-decoration: none;
}

.gdm-card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: 100%;
  background: #fff;
  color: #1a1a26;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: gdmSlideIn 0.25s ease-out;
}

@keyframes gdmSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.gdm-x {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  z-index: 3;
  line-height: 1;
}
.gdm-x:hover { color: #fff; }

.gdm-head {
  padding: 1.7rem 1.5rem 1.5rem;
  text-align: center;
  color: #fff;
}

.gdm-logo {
  margin-bottom: 1rem;
  text-align: center;
}
.gdm-logo img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  display: inline-block;
}

.gdm-h {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  font-family: inherit;
}

.gdm-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

.gdm-body {
  padding: 1.5rem 1.6rem 1.4rem;
  text-align: left;
}

.gdm-label {
  display: block;
  color: #1a1a26;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gdm-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #1a1a26;
  font-family: inherit;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gdm-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.gdm-input::placeholder { color: #9ca3af; }

.gdm-btn {
  width: 100%;
  padding: 0.95rem 1.4rem;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.gdm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gdm-privacy {
  text-align: center;
  color: #6b7280;
  font-size: 0.78rem;
  margin: 0.9rem 0 0;
  line-height: 1.4;
}

/* Success state */
.gdm-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdm-sub-d {
  color: #6b7280;
  font-size: 0.92rem;
  text-align: center;
  margin: 0 0 0.4rem;
}

.gdm-email-d {
  color: #1a1a26;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.3rem;
  font-size: 1rem;
  word-break: break-all;
}

.gdm-info-box {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 0 0 1.2rem;
  text-align: left;
}

.gdm-info-icon {
  flex-shrink: 0;
  color: #16a34a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.gdm-info-text {
  color: #4b5563;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}
