/* Standalone Opt-In Gate - Perfect Centered */
.nugget-optin-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* iOS Safari fix: fill available space including behind address bar */
  min-height: -webkit-fill-available;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
}

.nugget-optin-gate .nugget-gate {
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nugget-optin-gate .nugget-gate-header {
  margin-bottom: 24px;
}

.nugget-optin-gate .nugget-gate-header h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
  line-height: 1.2;
  color: #111827;
  font-weight: 700;
}

.nugget-optin-gate .nugget-gate-header p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

/* Buttons - zero gap, full width center */
.nugget-optin-gate .gate-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}

.nugget-optin-gate .gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.nugget-optin-gate .gate-btn-primary {
  background: #f59e0b;
  color: #111827;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.nugget-optin-gate .gate-btn-primary:hover {
  background: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.nugget-optin-gate .gate-btn-base {
  background: #2151f5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(33, 81, 245, 0.3);
}

.nugget-optin-gate .gate-btn-base:hover {
  background: #1a3fd4;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(33, 81, 245, 0.4);
}

.nugget-optin-gate .gate-btn-hedera {
  background: #222222;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nugget-optin-gate .gate-btn-hedera:hover {
  background: #444444;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Fade out */
@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

.nugget-optin-gate.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Mobile - even tighter */
@media (max-width: 600px) {
  .nugget-optin-gate {
    padding: 12px;
  }

  .nugget-optin-gate .nugget-gate {
    padding: 28px 20px;
    border-radius: 16px;
    max-height: 95vh;
  }

  .nugget-optin-gate .nugget-gate-header h1 {
    font-size: 20px;
  }

  .nugget-optin-gate .gate-btn {
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* Prevent body scroll while open */
body.nugget-gate-open {
  overflow: hidden;
  height: 100vh;
}
