.newsletter-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, rgba(34, 27, 27, 0.96) 0%, rgba(20, 17, 17, 0.98) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.newsletter-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.newsletter-panel {
  width: min(100%, 560px);
  position: relative;
  padding: 32px 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(145deg, rgba(24, 24, 28, 0.78), rgba(18, 18, 22, 0.68));
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  margin: 0 auto;
  overflow: hidden;
}

.newsletter-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(var(--accent-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
  pointer-events: none;
}

.newsletter-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
  opacity: 0.75;
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.newsletter-title {
  margin-top: 18px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.14),
    0 6px 20px rgba(0, 0, 0, 0.16);
}

.newsletter-copy {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.7;
  max-width: 46ch;
}

.newsletter-image { margin: 1.5rem auto 0 auto; }

.newsletter-form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.newsletter-input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  color: var(--text-main);
  font: inherit;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.newsletter-input::placeholder { color: var(--text-muted);}

.newsletter-input:focus {
  border-color: rgba(var(--accent-rgb), 0.32);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.newsletter-submit {
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.34), rgba(var(--accent-rgb), 0.16));
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.newsletter-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.newsletter-submit:active { transform: translateY(0);}

.newsletter-message {
  min-height: 24px;
  font-size: 1em;
  color: var(--text-soft);
  text-align: center;
}

.newsletter-message.success { color: var(--accent-soft);}

.newsletter-message.error { color: #ff9a9a; }

@media (max-width: 640px) {
  .newsletter-gate {
    padding: 18px;
  }

  .newsletter-panel {
    padding: 24px 20px;
    border-radius: 24px;    
  }

  .newsletter-title { font-size: 30px;  }

  .newsletter-copy { font-size: 14px; }
}