.nudge-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: nudge-fade-in 160ms ease-out;
}

.nudge-modal {
  position: relative;
  max-width: 480px;
  width: 100%;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 28px 28px 24px;
  color: #e6edf3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nudge-accent {
  height: 3px;
  background: linear-gradient(90deg, #d63a33 0%, #ffffff 50%, #1f6feb 100%);
  border-radius: 2px;
  margin-bottom: 18px;
}

.nudge-modal h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.nudge-modal p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #c9d1d9;
}

.nudge-secondary {
  color: #8b949e !important;
  font-size: 13px !important;
}

.nudge-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.nudge-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.nudge-cta-primary {
  display: inline-block;
  padding: 11px 20px;
  background: #1f6feb;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.nudge-cta-secondary {
  padding: 11px 18px;
  background: transparent;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.nudge-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1f6feb;
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9998;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  animation: nudge-slide-down 200ms ease-out;
}

.nudge-banner-text {
  flex: 1;
}

.nudge-banner-cta {
  padding: 6px 14px;
  background: #ffffff;
  color: #1f6feb;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
}

.nudge-banner-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

@keyframes nudge-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nudge-slide-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@media (max-width: 600px) {
  .nudge-modal {
    max-width: calc(100vw - 32px);
    padding: 22px 20px 20px;
  }

  .nudge-actions,
  .nudge-banner {
    flex-wrap: wrap;
  }
}
