/* ==========================================================================
   KALIUM SOUND VAULT - AUTH SECURITY & VERIFICATION MODALS
   Dark Obsidian Monochrome Design System
   ========================================================================== */

/* ── 1. ANTI-BOT VERIFICATION CHALLENGE (CAPTCHA) ──────────────────────── */
.auth-captcha-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  margin-top: 4px;
  position: relative;
  outline: none;
}

.auth-captcha-box:hover,
.auth-captcha-box:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-captcha-box.is-verifying {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.auth-captcha-box.is-verified {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.06);
  cursor: default;
}

.auth-captcha-box.is-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  animation: captchaShake 0.4s ease-in-out;
}

@keyframes captchaShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.captcha-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
}

.auth-captcha-box:hover .captcha-checkbox {
  border-color: rgba(255, 255, 255, 0.55);
}

.auth-captcha-box.is-verified .captcha-checkbox {
  background: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.captcha-spin-ring {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #FAFAFA;
  border-radius: 50%;
  animation: captchaSpin 0.7s linear infinite;
  display: none;
}

.auth-captcha-box.is-verifying .captcha-spin-ring {
  display: block;
}

@keyframes captchaSpin {
  to { transform: rotate(360deg); }
}

.captcha-check-svg {
  width: 14px;
  height: 14px;
  color: #070709;
  display: none;
  transform: scale(0.6);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-captcha-box.is-verified .captcha-check-svg {
  display: block;
  transform: scale(1);
}

.captcha-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.captcha-label {
  font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #FAFAFA;
  letter-spacing: 0.01em;
}

.auth-captcha-box.is-verified .captcha-label {
  color: #10B981;
}

.captcha-sublabel {
  font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.auth-captcha-box.is-verified .captcha-sublabel {
  color: rgba(16, 185, 129, 0.8);
}

.captcha-shield-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.auth-captcha-box:hover .captcha-shield-badge {
  opacity: 0.85;
}

.captcha-shield-badge svg {
  color: #A1A1AA;
}

.captcha-shield-badge span {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #A1A1AA;
  text-transform: uppercase;
}

/* ── CAPTCHA INTERACTIVE CHALLENGE TRAY ────────────────────────── */
.auth-captcha-challenge-tray {
  margin-top: 10px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  animation: captchaTraySlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

@keyframes captchaTraySlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.challenge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.challenge-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #10B981;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.challenge-refresh-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.challenge-refresh-btn:hover {
  color: #FAFAFA;
  background: rgba(255, 255, 255, 0.08);
}

.challenge-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.challenge-canvas-wrapper {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
  background: #000;
  line-height: 0;
}

.challenge-canvas {
  display: block;
}

.challenge-action-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.challenge-code-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FAFAFA;
  text-transform: uppercase;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.challenge-code-input:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.challenge-code-input.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
  animation: captchaShake 0.35s ease;
}

.challenge-submit-btn {
  width: 100%;
  background: #10B981;
  border: none;
  border-radius: 7px;
  padding: 7px 12px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #070709;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.1s ease;
}

.challenge-submit-btn:hover {
  background: #059669;
}

.challenge-submit-btn:active {
  transform: scale(0.98);
}

.challenge-feedback {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.72rem;
  color: #EF4444;
  margin-top: -2px;
}

@media (max-width: 480px) {
  .challenge-body {
    flex-direction: column;
    align-items: stretch;
  }
  .challenge-canvas-wrapper {
    display: flex;
    justify-content: center;
  }
  .challenge-action-col {
    flex-direction: row;
    gap: 8px;
  }
  .challenge-submit-btn {
    width: auto;
    padding: 7px 16px;
    flex-shrink: 0;
  }
}


/* ── 2. EMAIL VERIFICATION MODAL ────────────────────────────────────────── */
.ev-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: evFadeIn 0.25s ease-out;
}

@keyframes evFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ev-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.ev-modal-card {
  position: relative;
  background: #0E0E12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: evPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

@keyframes evPopIn {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.ev-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.ev-icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.ev-pill-tag {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A1A1AA;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ev-title {
  font-family: 'Nohemi', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #FAFAFA;
  line-height: 1.2;
  margin: 0;
}

.ev-desc {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
  max-width: 360px;
}

.ev-code-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 16px;
}

.ev-code-digit {
  width: 48px;
  height: 58px;
  background: #14141A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: 'Nohemi', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  outline: none;
  transition: all 0.2s ease;
}

.ev-code-digit:focus {
  border-color: #FFFFFF;
  background: #1B1B22;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.ev-code-digit.is-filled {
  border-color: rgba(255, 255, 255, 0.35);
  background: #181820;
}

.ev-status-text {
  min-height: 20px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.ev-status-text.is-error {
  color: #EF4444;
}

.ev-status-text.is-success {
  color: #10B981;
}

.ev-actions-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ev-hint-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
}

.ev-autofill-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  color: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ev-autofill-pill:hover {
  background: #FFFFFF;
  color: #070708;
  border-color: #FFFFFF;
}

.btn-ev-verify {
  width: 100%;
  padding: 14px 20px;
  background: #FFFFFF;
  color: #070708;
  border: none;
  border-radius: 999px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ev-verify:hover {
  background: #EAEAEA;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.22);
}

.btn-ev-verify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ev-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ev-link-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.18s ease;
}

.ev-link-btn:hover {
  color: #FAFAFA;
  text-decoration: underline;
}

/* ── 3. SIGNUP SUCCESS COMPLETION MODAL ────────────────────────────────── */
.signup-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ssFadeIn 0.3s ease-out;
}

@keyframes ssFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ss-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.ss-modal-card {
  position: relative;
  background: #0E0E13;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  max-width: 520px;
  width: 100%;
  padding: 38px 32px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: ssPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  overflow: hidden;
}

@keyframes ssPopIn {
  from { transform: scale(0.92) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.ss-card-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 180px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.ss-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ss-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.25);
  animation: ssIconBounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ssIconBounce {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.ss-eyebrow {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ss-title {
  font-family: 'Nohemi', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #FAFAFA;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.ss-sub {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 auto 22px;
  max-width: 420px;
}

.ss-perks-container {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: left;
  margin-bottom: 24px;
}

.ss-perks-header {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ss-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.ss-perk-item:last-child {
  margin-bottom: 0;
}

.ss-perk-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ss-perk-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ss-perk-info strong {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #FAFAFA;
}

.ss-perk-info span {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.ss-cta-row {
  margin-bottom: 12px;
}

.ss-btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: #FFFFFF;
  color: #070708;
  border: none;
  border-radius: 999px;
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.18);
}

.ss-btn-primary:hover {
  background: #EBEBEB;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.3);
}

.ss-countdown-text {
  font-family: 'Neue Montreal', sans-serif;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
}

.ss-countdown-text strong {
  color: #FAFAFA;
}
