#studiografix-newsletter-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  background: var(--surface-container-high, #222a3d);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  padding: 24px;
  z-index: 1000;
  display: none; /* Initially hidden */
  color: var(--on-surface, #dae2fd);
}

#studiografix-newsletter-popup h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: var(--text-lg, 1.125rem);
  font-weight: 700;
  color: var(--on-surface, #dae2fd);
}

#studiografix-newsletter-popup p {
  margin-bottom: 16px;
  font-size: var(--text-sm, 0.875rem);
  color: var(--on-surface-variant, #c4c5d9);
  line-height: 1.5;
}

#studiografix-newsletter-popup .close-popup {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  color: var(--on-surface-variant, #c4c5d9);
  line-height: 1;
  transition: color 0.2s;
}

#studiografix-newsletter-popup .close-popup:hover {
  color: var(--on-surface, #dae2fd);
}

#newsletter-form-wrapper #newsletter-form-message {
  color: #4ade80;
  margin-bottom: 12px;
  font-size: var(--text-sm, 0.875rem);
}

#studiografix-newsletter-popup input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-container-highest, #2d3449);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--on-surface, #dae2fd);
  font-size: var(--text-sm, 0.875rem);
  box-sizing: border-box;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}

#studiografix-newsletter-popup input[type="email"]:focus {
  border-color: var(--primary-container, #2e5bff);
}

#studiografix-newsletter-popup input[type="email"]::placeholder {
  color: var(--on-surface-variant, #c4c5d9);
  opacity: 0.6;
}

#studiografix-newsletter-popup input[type="submit"] {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--primary-container, #2e5bff), var(--primary, #b8c3ff));
  color: var(--on-primary-fixed, #001356);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-sm, 0.875rem);
  transition: box-shadow 0.2s, transform 0.1s;
}

#studiografix-newsletter-popup input[type="submit"]:hover {
  box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.20);
  transform: translateY(-1px);
}
