/* ══════════════════════════════════════════════════════════════════════
   Invite Gate — pre-login access code screen (testing mode only)
   Mirrors the login screen design language.
   ══════════════════════════════════════════════════════════════════════ */

.invite-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: twFadeIn 0.4s ease forwards;
}

@keyframes twFadeIn {
  to { opacity: 1; }
}

.invite-gate-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(140, 50, 70, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 30% 70%, rgba(100, 30, 50, 0.08) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg2) 0%, var(--bg) 100%);
}

.invite-gate-panel {
  position: relative;
  z-index: 1;
  width: 380px;
  max-width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 44px;
}

.invite-gate-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-04) 0%, transparent 70%);
  pointer-events: none;
}

.invite-gate-logo {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 36px;
  text-align: center;
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.invite-gate-logo span {
  color: var(--rose);
  font-style: italic;
}

.invite-gate-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.invite-gate-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--rose-dim);
}

.invite-gate-eyebrow-text {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-dim);
}

.invite-gate-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.45s;
}

.invite-gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.7s ease forwards;
  opacity: 0;
  animation-delay: 0.55s;
}

/* Code input row — static prefix + short input, centered together */
.invite-gate-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-04);
  border: 1px solid var(--border2);
  border-radius: 9px;
  transition: border-color 0.2s;
  padding: 14px 16px;
}

.invite-gate-code-row:focus-within {
  border-color: var(--rose-40);
  background: var(--cream-06);
}

.invite-gate-prefix {
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--muted);
  user-select: none;
  flex-shrink: 0;
}

.invite-gate-code {
  width: 5ch;
  border: none !important;
  background: transparent !important;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0;
  flex: none;
}

.invite-gate-code:focus {
  border: none !important;
  background: transparent !important;
}

.invite-gate-code::placeholder {
  font-weight: 300;
  letter-spacing: 2px;
}

/* ══════════════════════════════════════════════════════════════════════
   Testing Welcome Screen — full-screen overlay shown once to testers
   ══════════════════════════════════════════════════════════════════════ */

.testing-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(8, 6, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: twFadeIn 0.4s ease forwards;
}

.testing-welcome-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 36px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.5s ease 0.1s forwards;
  opacity: 0;
}

.testing-welcome-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--rose-15);
  color: var(--rose);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--ff-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.testing-welcome-title {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--cream);
  margin: 0 0 12px;
  line-height: 1.15;
}

.testing-welcome-body {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}

.testing-welcome-body p {
  margin: 0 0 10px;
}

.testing-welcome-body p:last-child {
  margin-bottom: 0;
}

.testing-welcome-highlight {
  color: var(--cream);
  font-weight: 400;
}

.testing-welcome-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.testing-welcome-features li {
  color: var(--muted);
  font-size: 13px;
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}

.testing-welcome-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
}

.testing-welcome-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.testing-welcome-btn:hover {
  background: var(--rose-hover);
}

.testing-welcome-btn:active {
  transform: scale(0.99);
}

/* ── Light theme ──────────────────────────────────────────────────── */

[data-theme="light"] .invite-gate-overlay .invite-gate-bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(176, 80, 104, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 30% 70%, rgba(140, 50, 70, 0.05) 0%, transparent 60%),
    linear-gradient(160deg, var(--bg2) 0%, var(--bg) 100%);
}

[data-theme="light"] .testing-welcome-overlay {
  background: rgba(250, 248, 246, 0.95);
}

[data-theme="light"] .testing-welcome-card {
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
